From patchwork Tue May 15 09:36:27 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: 8643 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 BAD5C23F00 for ; Tue, 15 May 2012 09:37:45 +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 83B79A18092 for ; Tue, 15 May 2012 09:37:45 +0000 (UTC) Received: by ggnf1 with SMTP id f1so4489215ggn.11 for ; Tue, 15 May 2012 02:37:45 -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=pwQjgtojZth9xEh6hnmL/ibLjdh73aThHzMqmEv6+9C5bLqa6Es18Ubu8aTA9EkCkD 54ZQwNT5vaItNDKgWQB3U2tzLRrDJ7+68BJLKACSziYcqWqnGUcNHvBr3gflXY1TzOjN 5gKSGkacDv0sDjXnPlULkncFjiQVXmSsTMSv1XrKJ7B6rNJtVLUk/VE9EykAkj/4Wh8u oUuZ/ULIm2TsLWTWs5Wtha7cN8eXQ00SSPGOzErOfpeHWHMHM6SR1NugnqqX772jpRUD qaGFdL4y+sSfhBFAAeW6zJbRc/OAc0t5LvCa2lborVN3bgBMiixJ5W6/5YfE96LSETtK mStw== Received: by 10.50.85.163 with SMTP id i3mr6361907igz.57.1337074664881; Tue, 15 May 2012 02:37:44 -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 o8csp406660ibd; Tue, 15 May 2012 02:37:44 -0700 (PDT) Received: by 10.68.217.38 with SMTP id ov6mr3717438pbc.25.1337074664148; Tue, 15 May 2012 02:37:44 -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 s4si1419400pbc.15.2012.05.15.02.37.43 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 15 May 2012 02:37:44 -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 h15so8809249dan.37 for ; Tue, 15 May 2012 02:37:43 -0700 (PDT) Received: by 10.68.202.130 with SMTP id ki2mr3637854pbc.52.1337074663914; Tue, 15 May 2012 02:37:43 -0700 (PDT) Received: from localhost.localdomain ([115.113.119.130]) by mx.google.com with ESMTPS id d6sm1337457pbi.23.2012.05.15.02.37.32 (version=SSLv3 cipher=OTHER); Tue, 15 May 2012 02:37:39 -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 RESEND 4/4] SCSI: UFS: Added support of PCI/PLTFM for UFS Date: Tue, 15 May 2012 15:06:27 +0530 Message-Id: <1337074587-29021-5-git-send-email-girish.shivananjappa@linaro.org> X-Mailer: git-send-email 1.7.4.1 In-Reply-To: <1337074587-29021-1-git-send-email-girish.shivananjappa@linaro.org> References: <1337074587-29021-1-git-send-email-girish.shivananjappa@linaro.org> X-Gm-Message-State: ALoCoQlBAJhFtBvW+fCrWisAlc87KuI56NUPNHRn3HXXvKg0Bb4qmyDVytV15T1RvXl3WYhblJMx 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