From patchwork Thu Sep 17 09:45:37 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alim Akhtar X-Patchwork-Id: 7205041 Return-Path: X-Original-To: patchwork-linux-scsi@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id A8AD9BEEC1 for ; Thu, 17 Sep 2015 09:56:08 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id D8E6C20549 for ; Thu, 17 Sep 2015 09:56:07 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id EE00C20443 for ; Thu, 17 Sep 2015 09:56:06 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753671AbbIQJzG (ORCPT ); Thu, 17 Sep 2015 05:55:06 -0400 Received: from mailout2.samsung.com ([203.254.224.25]:43192 "EHLO mailout2.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751932AbbIQJzB (ORCPT ); Thu, 17 Sep 2015 05:55:01 -0400 Received: from epcpsbgr1.samsung.com (u141.gpu120.samsung.co.kr [203.254.230.141]) by mailout2.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTP id <0NUT02AI4FJNWQA0@mailout2.samsung.com>; Thu, 17 Sep 2015 18:54:59 +0900 (KST) Received: from epcpsbgm1new.samsung.com ( [172.20.52.125]) by epcpsbgr1.samsung.com (EPCPMTA) with SMTP id A2.5C.29324.3FD8AF55; Thu, 17 Sep 2015 18:54:59 +0900 (KST) X-AuditID: cbfee68d-f79106d00000728c-55-55fa8df3724d Received: from epmmp1.local.host ( [203.254.227.16]) by epcpsbgm1new.samsung.com (EPCPMTA) with SMTP id AE.3C.23663.3FD8AF55; Thu, 17 Sep 2015 18:54:59 +0900 (KST) Received: from exypnos.sisodomain.com ([107.108.73.28]) by mmp1.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTPA id <0NUT000DPFIZ1D40@mmp1.samsung.com>; Thu, 17 Sep 2015 18:54:59 +0900 (KST) From: Alim Akhtar To: linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org Cc: JBottomley@odin.com, vinholikatti@gmail.com, amit.daniel@samsung.com, essuuj@gmail.com, devicetree@vger.kernel.org Subject: [PATCH v2 11/11] scsi: ufs: Add exynos ufs platform data Date: Thu, 17 Sep 2015 15:15:37 +0530 Message-id: <1442483137-32376-12-git-send-email-alim.akhtar@samsung.com> X-Mailer: git-send-email 1.7.10.4 In-reply-to: <1442483137-32376-1-git-send-email-alim.akhtar@samsung.com> References: <1442483137-32376-1-git-send-email-alim.akhtar@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrMLMWRmVeSWpSXmKPExsWyRsSkVvdz769QgxXbhSwaroZYzD9yjtVi +YUlTBb/199msbi8aw6bRff1HWwWOxZWObB77Jx1l93j8I8fzB59W1YxenzeJBfAEsVlk5Ka k1mWWqRvl8CVceP5K+aCFZwVPXN3sjQwvmbvYuTkkBAwkXi6t40RwhaTuHBvPVsXIxeHkMAK RomHr7qYYYomflnCAmILCSxllFjzOh6i6CejxKU9H5lAEmwC2hJ3p28Bs0UEbCTO33wAZjML VEjcOjMBrFlYwFFi+oP7YJtZBFQl7q7cBlbDK+AhcfbEB6grFCW6n01gA7E5geKv/i9i7WLk AFrmLnF+Qy3IXgmBfnaJh8s3MkPMEZD4NvkQC0iNhICsxKYDUDdLShxccYNlAqPwAkaGVYyi qQXJBcVJ6UWGesWJucWleel6yfm5mxiBYX3637PeHYy3D1gfYhTgYFTi4VVw+RUqxJpYVlyZ e4jRFGjDRGYp0eR8YPTklcQbGpsZWZiamBobmVuaKYnzKkr9DBYSSE8sSc1OTS1ILYovKs1J LT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gQAW/kppLMCAAA= DLP-Filter: Pass X-MTR: 20000000000000000@CPGS X-CFilter-Loop: Reflected Sender: linux-scsi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-scsi@vger.kernel.org X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP This adds ufs_hba_exynos_ops{} to platform data, so that exynos ufs driver can be probed. Signed-off-by: Alim Akhtar --- drivers/scsi/ufs/ufshcd-pltfrm.c | 2 ++ drivers/scsi/ufs/ufshcd.h | 1 + 2 files changed, 3 insertions(+) diff --git a/drivers/scsi/ufs/ufshcd-pltfrm.c b/drivers/scsi/ufs/ufshcd-pltfrm.c index 7db9564..39dae76 100644 --- a/drivers/scsi/ufs/ufshcd-pltfrm.c +++ b/drivers/scsi/ufs/ufshcd-pltfrm.c @@ -373,6 +373,8 @@ static int ufshcd_pltfrm_remove(struct platform_device *pdev) static const struct of_device_id ufs_of_match[] = { { .compatible = "jedec,ufs-1.1"}, + { .compatible = "samsung,exynos7-ufs", + .data = &ufs_hba_exynos_ops}, {}, }; diff --git a/drivers/scsi/ufs/ufshcd.h b/drivers/scsi/ufs/ufshcd.h index 83fe605..15f2a7c 100644 --- a/drivers/scsi/ufs/ufshcd.h +++ b/drivers/scsi/ufs/ufshcd.h @@ -687,4 +687,5 @@ static inline int ufshcd_dme_peer_get(struct ufs_hba *hba, int ufshcd_hold(struct ufs_hba *hba, bool async); void ufshcd_release(struct ufs_hba *hba); +extern const struct ufs_hba_variant_ops ufs_hba_exynos_ops; #endif /* End of Header */