Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754680AbbG0Vz3 (ORCPT ); Mon, 27 Jul 2015 17:55:29 -0400 Received: from mail-gw2-out.broadcom.com ([216.31.210.63]:58681 "EHLO mail-gw2-out.broadcom.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753934AbbG0Vz1 (ORCPT ); Mon, 27 Jul 2015 17:55:27 -0400 X-IronPort-AV: E=Sophos;i="5.15,557,1432623600"; d="scan'208";a="70882900" Message-ID: <55B6A8B8.3040404@broadcom.com> Date: Mon, 27 Jul 2015 14:55:04 -0700 From: Scott Branden User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.7.0 MIME-Version: 1.0 To: Michal Simek , , CC: Weijun Yang , Andrew Bresticker , Jean Delvare , Srinivas Kandagatla , , Alim Akhtar , addy ke , Stephen Boyd , Chaotian Jing , "Georgi Djakov" , Kevin Hao , Vincent Yang , Ulf Hansson Subject: Re: [RFC PATCH] mmc: Kconfig: Add dependency on GPIOLIB for Arasan driver References: <920802cde8579bdfad47baba85d85212735ed90e.1437745991.git.michal.simek@xilinx.com> In-Reply-To: <920802cde8579bdfad47baba85d85212735ed90e.1437745991.git.michal.simek@xilinx.com> Content-Type: text/plain; charset="windows-1252"; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1642 Lines: 50 Hi Michal, comment in line On 15-07-24 06:53 AM, Michal Simek wrote: > The patch "mmc: sdhci-of-arasan: Call OF parsing for MMC" > (sha1: 16b23787fc709fe60c5d2bd05927b1a3da33d4e9) introduce new > dependency on GPIOLIB which calls mmc_of_parse() -> > mmc_gpiod_request_cd() (slot-gpio.c) which calls devm_gpiod_get_index() > which returns -ENOSYS. > > Error log: > sdhci-arasan ff160000.sdhci: parsing dt failed (4294967258) > sdhci-arasan: probe of ff160000.sdhci failed with error -38 > > Signed-off-by: Michal Simek > --- > > This problem is probably in all others drivers. > This is one way how this can be solved. > Maybe better way is to block return value for cd and wp. It appears there is gpio code in sdhci.c as well. This uses slot-gpio. Perhaps a depends on needs to be added to MMC_SDHCI instead? > > --- > drivers/mmc/host/Kconfig | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/drivers/mmc/host/Kconfig b/drivers/mmc/host/Kconfig > index fd9a58e216a5..4b5854759cfc 100644 > --- a/drivers/mmc/host/Kconfig > +++ b/drivers/mmc/host/Kconfig > @@ -120,6 +120,7 @@ config MMC_SDHCI_PLTFM > config MMC_SDHCI_OF_ARASAN > tristate "SDHCI OF support for the Arasan SDHCI controllers" > depends on MMC_SDHCI_PLTFM > + depends on GPIOLIB > depends on OF > help > This selects the Arasan Secure Digital Host Controller Interface > -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/