From patchwork Mon May 14 11:08:32 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Girish K S X-Patchwork-Id: 8590 Return-Path: X-Original-To: patchwork@peony.canonical.com Delivered-To: patchwork@peony.canonical.com Received: from fiordland.canonical.com (fiordland.canonical.com [91.189.94.145]) by peony.canonical.com (Postfix) with ESMTP id 6014723E37 for ; Mon, 14 May 2012 11:09:13 +0000 (UTC) Received: from mail-gg0-f180.google.com (mail-gg0-f180.google.com [209.85.161.180]) by fiordland.canonical.com (Postfix) with ESMTP id 2FD38A18522 for ; Mon, 14 May 2012 11:09:13 +0000 (UTC) Received: by mail-gg0-f180.google.com with SMTP id f1so3182557ggn.11 for ; Mon, 14 May 2012 04:09:13 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-forwarded-to:x-forwarded-for:delivered-to:received-spf:from:to:cc :subject:date:message-id:x-mailer:in-reply-to:references :x-gm-message-state; bh=z1H8Nkmsqe6NNYv/H5GEQgPqFCdfqfTlGfNJYlnlqSM=; b=iFy9NqfOiC2X0lMj0pQTdf+LlEMOjnYwod6gTHMn+zDLWKQZHuKVR1HO/hr14qQULN RUAMPtiz7GeeCYutp4kcxXL60wpzeVVTanzdwzJ4ewxxb5HgfbwjrODQHbbUfmOE/Faq Bb4OGAN9edVi1dOuDO00k4bznTtSZjMBJsWwL4HgXZRLQhKrAq4mb40fp4PWSQ93x/jZ M1wbFXbHbMd5TQnzFDx0hxOncOksiIzx2VRiHLFCj0n0+iTcY1x2csrvjyhNfR2FAmru Rx9pzlvsFvcwCCIRL8dY7b6tf+1/u9W6ql8sL+3gIHPufBRzlCRhe0mBmog5h+nI9LNt fNVw== Received: by 10.50.154.169 with SMTP id vp9mr3910978igb.53.1336993752881; Mon, 14 May 2012 04:09:12 -0700 (PDT) X-Forwarded-To: linaro-patchwork@canonical.com X-Forwarded-For: patch@linaro.org linaro-patchwork@canonical.com Delivered-To: patches@linaro.org Received: by 10.231.35.72 with SMTP id o8csp334899ibd; Mon, 14 May 2012 04:09:12 -0700 (PDT) Received: by 10.68.238.228 with SMTP id vn4mr21313426pbc.132.1336993752164; Mon, 14 May 2012 04:09:12 -0700 (PDT) Received: from mail-pz0-f50.google.com (mail-pz0-f50.google.com [209.85.210.50]) by mx.google.com with ESMTPS id hq5si286808pbc.178.2012.05.14.04.09.11 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 14 May 2012 04:09:12 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.210.50 is neither permitted nor denied by best guess record for domain of girish.shivananjappa@linaro.org) client-ip=209.85.210.50; Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.210.50 is neither permitted nor denied by best guess record for domain of girish.shivananjappa@linaro.org) smtp.mail=girish.shivananjappa@linaro.org Received: by mail-pz0-f50.google.com with SMTP id h15so7180590dan.37 for ; Mon, 14 May 2012 04:09:11 -0700 (PDT) Received: by 10.68.192.67 with SMTP id he3mr21329952pbc.114.1336993751852; Mon, 14 May 2012 04:09:11 -0700 (PDT) Received: from localhost.localdomain ([115.113.119.130]) by mx.google.com with ESMTPS id d6sm21976811pbi.23.2012.05.14.04.09.07 (version=SSLv3 cipher=OTHER); Mon, 14 May 2012 04:09:10 -0700 (PDT) From: Girish K S To: linux-scsi@vger.kernel.org Cc: james.bottomley@hansenpartnership.com, vinholikatti@gmail.com, santoshsy@gmail.com, patches@linaro.org, Girish K S Subject: [RFC PATCH 4/4] SCSI: UFS: Added support of PCI/PLTFM for UFS Date: Mon, 14 May 2012 16:38:32 +0530 Message-Id: <1336993712-9111-5-git-send-email-girish.shivananjappa@linaro.org> X-Mailer: git-send-email 1.7.4.1 In-Reply-To: <1336993712-9111-1-git-send-email-girish.shivananjappa@linaro.org> References: <1336993712-9111-1-git-send-email-girish.shivananjappa@linaro.org> X-Gm-Message-State: ALoCoQlyV18p+EyLMwAjPc48IfYn+JhktnXrUv+CycMsbcQCk+qKDZzHYsED5mrR7ZSO/tMU4W2k This patch modifies the Kconfig and the Makefile to add support for PCI and Platform config options to the UFS core driver. If the device is attached to the core throught pci,then PCI option has to be selected in the menuconfig. For more information read the help section of Kconfig file. Signed-off-by: Girish K S --- drivers/scsi/ufs/Kconfig | 32 +++++++++++++++++++++++++++++--- drivers/scsi/ufs/Makefile | 2 ++ 2 files changed, 31 insertions(+), 3 deletions(-) diff --git a/drivers/scsi/ufs/Kconfig b/drivers/scsi/ufs/Kconfig index 8f27f9d..70f3a71 100644 --- a/drivers/scsi/ufs/Kconfig +++ b/drivers/scsi/ufs/Kconfig @@ -44,6 +44,32 @@ config SCSI_UFSHCD tristate "Universal Flash Storage host controller driver" - depends on PCI && SCSI - ---help--- - This is a generic driver which supports PCIe UFS Host controllers. + depends on SCSI + help + This is a generic driver which supports UFS Host controllers. + This option is selected automatically if the SCSI option is + selected. This is a core ufs driver. + +config SCSI_UFSHCD_PCI + tristate "Universal Flash Storage host support on PCI bus" + depends on SCSI_UFSHCD && PCI + help + This selects the PCI bus for the Universal Flash Storage IP. + Select this option if the IP is present on PCI platform. + + If you have a controller with this interface, say Y or M here. + + If unsure, say N. + +config SCSI_UFSHCD_PLTFM + tristate "Universal Flash Storage host support as platform device" + depends on SCSI_UFSHCD + help + This selects the common helper functions support for Host Controller + Interface based platform driver. Please select this option if the IP + is present as a platform device. This is the common interface for the + UFS Host Controller IP. + + If you have a controller with this interface, say Y or M here. + + If unsure, say N. diff --git a/drivers/scsi/ufs/Makefile b/drivers/scsi/ufs/Makefile index adf7895..fc56471 100644 --- a/drivers/scsi/ufs/Makefile +++ b/drivers/scsi/ufs/Makefile @@ -1,2 +1,4 @@ # UFSHCD makefile obj-$(CONFIG_SCSI_UFSHCD) += ufshcd.o +obj-$(CONFIG_SCSI_UFSHCD_PCI) += ufshcd-pci.o +obj-$(CONFIG_SCSI_UFSHCD_PLTFM) += ufshcd-pltfm.o