From patchwork Tue May 15 12:03:56 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: 8647 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 00F0A23E1B for ; Tue, 15 May 2012 12:06:43 +0000 (UTC) Received: from mail-yx0-f180.google.com (mail-yx0-f180.google.com [209.85.213.180]) by fiordland.canonical.com (Postfix) with ESMTP id BD2C9A18010 for ; Tue, 15 May 2012 12:06:42 +0000 (UTC) Received: by yenq6 with SMTP id q6so6596928yen.11 for ; Tue, 15 May 2012 05:06:42 -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=phcgTD8VM7Wj9bHrs+KkEcj/goDF6bMzQ/XZ6uervkZxc7pyK/Qdli3+lXqdbp3ohE c9nIjQE+LSWNEtBiYfiXKYIWuy+k4mVe74PbpAcqFqdGiNW1vQdIOCXrg9TFlWdrI10S o73WTRXSBRndrVZetDbp9ygyCPiywlwlu+Fn71rU8U9mxTq0DpmnmaEfMSb2rEqfLvRk 4wbQMo4cyIGPutmzPcVBCjS7graeuqipxse1aHqP4indkKrtaBv0Nv5FvDypdqPDAFz6 C9LCFnLouSCIY+wg3WgwCAeAT5Ah9MPa9bjRU+ogqCB/ZytUSqVEg7hLaNUTuIerdM11 B7VQ== Received: by 10.50.85.163 with SMTP id i3mr6704553igz.57.1337083602024; Tue, 15 May 2012 05:06:42 -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 o8csp416290ibd; Tue, 15 May 2012 05:06:41 -0700 (PDT) Received: by 10.68.232.161 with SMTP id tp1mr4937164pbc.44.1337083601236; Tue, 15 May 2012 05:06:41 -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 ou2si509479pbb.39.2012.05.15.05.06.41 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 15 May 2012 05:06:41 -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 danh15 with SMTP id h15so9001667dan.37 for ; Tue, 15 May 2012 05:06:41 -0700 (PDT) Received: by 10.68.226.129 with SMTP id rs1mr4950071pbc.29.1337083600949; Tue, 15 May 2012 05:06:40 -0700 (PDT) Received: from localhost.localdomain ([115.113.119.130]) by mx.google.com with ESMTPS id pl7sm1672023pbb.59.2012.05.15.05.05.54 (version=SSLv3 cipher=OTHER); Tue, 15 May 2012 05:06: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 V1 4/4] SCSI: UFS: Added support of PCI/PLTFM for UFS Date: Tue, 15 May 2012 17:33:56 +0530 Message-Id: <1337083436-4204-5-git-send-email-girish.shivananjappa@linaro.org> X-Mailer: git-send-email 1.7.4.1 In-Reply-To: <1337083436-4204-1-git-send-email-girish.shivananjappa@linaro.org> References: <1337083436-4204-1-git-send-email-girish.shivananjappa@linaro.org> X-Gm-Message-State: ALoCoQkrV/+UCoYD8+dMCt59MqpXvKmwFI36mhGJC0xAjPK/UiCX5H0uxY00u1jFYw38yYwlyiDb 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