From patchwork Fri Jul 24 13:53:16 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michal Simek X-Patchwork-Id: 6860711 Return-Path: X-Original-To: patchwork-linux-mmc@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 355B89F38B for ; Fri, 24 Jul 2015 13:53:31 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 4CC7A20529 for ; Fri, 24 Jul 2015 13:53:30 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 4192620109 for ; Fri, 24 Jul 2015 13:53:29 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754106AbbGXNx2 (ORCPT ); Fri, 24 Jul 2015 09:53:28 -0400 Received: from mail-wi0-f173.google.com ([209.85.212.173]:33027 "EHLO mail-wi0-f173.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753815AbbGXNx1 (ORCPT ); Fri, 24 Jul 2015 09:53:27 -0400 Received: by wicmv11 with SMTP id mv11so65799114wic.0 for ; Fri, 24 Jul 2015 06:53:25 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id; bh=r0oysqo38vt/DHb30hht4xm5rU1w9msY2l2tPmEXbh4=; b=WGV0FyLQJ05POrw2QzixOZPXMkC7IWYiaYYiO3JmhiS/Kx+phSZBt5jKMqDAgWv0eT aJyrah9dOFeAouHB9Drj5KQJYaco3t9UlyEoCtQ2LrOyMsTcvzRL4oYFC36KuKSWvZZ+ WKzRBAwuLF8lroCdAeYUkRW67MJQM6sZLTpQQKefq6ZTZh+zbZkCvogdxIZWV+j06lwZ met5sScLL1F5UeW/mVJKV7Syj3fq6M1jW9klR0s9DBRExFqnedg1DiqwVsPbsgVtdRg3 /WI8q3x3gD9p2PGVvhi8WgXqRafoR+bWtEhXoXvVnBh5h4o2CoxVrM/u2ChbFQtmH4La 7NDg== X-Gm-Message-State: ALoCoQmiYfTyKuc2s8A1DM0HmHfuYxlDp0yZqQ/Nmvo2oLrLIqriPYDRJY588/r/Cpf3lsxHu+A4 X-Received: by 10.180.72.35 with SMTP id a3mr7164382wiv.21.1437746005831; Fri, 24 Jul 2015 06:53:25 -0700 (PDT) Received: from localhost (nat-35.starnet.cz. [178.255.168.35]) by smtp.gmail.com with ESMTPSA id fs8sm12786207wjb.7.2015.07.24.06.53.24 (version=TLS1_1 cipher=AES128-SHA bits=128/128); Fri, 24 Jul 2015 06:53:24 -0700 (PDT) From: Michal Simek To: linux-kernel@vger.kernel.org, monstr@monstr.eu Cc: Weijun Yang , Andrew Bresticker , Jean Delvare , Srinivas Kandagatla , linux-mmc@vger.kernel.org, Alim Akhtar , Scott Branden , addy ke , Stephen Boyd , Chaotian Jing , Georgi Djakov , Kevin Hao , Vincent Yang , Ulf Hansson Subject: [RFC PATCH] mmc: Kconfig: Add dependency on GPIOLIB for Arasan driver Date: Fri, 24 Jul 2015 15:53:16 +0200 Message-Id: <920802cde8579bdfad47baba85d85212735ed90e.1437745991.git.michal.simek@xilinx.com> X-Mailer: git-send-email 2.3.5 Sender: linux-mmc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-mmc@vger.kernel.org X-Spam-Status: No, score=-8.1 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham 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 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. --- 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