From patchwork Wed Mar 6 12:04:21 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: thomas.abraham@linaro.org X-Patchwork-Id: 15261 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 0CE9123E1F for ; Wed, 6 Mar 2013 11:44:14 +0000 (UTC) Received: from mail-vc0-f181.google.com (mail-vc0-f181.google.com [209.85.220.181]) by fiordland.canonical.com (Postfix) with ESMTP id 9C77BA18FAF for ; Wed, 6 Mar 2013 11:44:13 +0000 (UTC) Received: by mail-vc0-f181.google.com with SMTP id f13so4715112vcb.40 for ; Wed, 06 Mar 2013 03:44:13 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:x-forwarded-to:x-forwarded-for:delivered-to:x-received :received-spf:x-auditid:from:to:cc:subject:date:message-id:x-mailer :x-brightmail-tracker:x-gm-message-state; bh=9bwPavy6kF6YQiwJKbOdjkogzfPl2jhsQOq5+yZCjOU=; b=ldW9Fqr/IlSSQ32TIftzHvDtZGi+nJ0oubkvE18iiDN2P/O+BsyeG+bIefjvFQ0nk5 ISyQcoPTcbOnWB5Lkg4FZZvFXOwJVHau4ajntZPoZZbMwfCS7nRSzXHcQ0Oxu1eYhByI YkoyV+pGkdJLLEFzd/mzb9oKVJ+1Kt+mgX3Mh2+0n71nlSAE5JEYCuT3aC+VrJQkU//R xujbyoQU2y/NdKKV4Lgz7l9vrdn80MNKYX/weROEugk7CQOQmAvbLtUo84XsyMbol1Kx V3Y+CiSOxmWImrSknnN4S+yXx1yyNn1q/R0JznksfR/lFGhEuIXgqh3ZrnlI0poBSTW1 odFQ== X-Received: by 10.52.88.237 with SMTP id bj13mr9729565vdb.75.1362570253127; Wed, 06 Mar 2013 03:44:13 -0800 (PST) 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.58.127.98 with SMTP id nf2csp10539veb; Wed, 6 Mar 2013 03:44:12 -0800 (PST) X-Received: by 10.68.83.38 with SMTP id n6mr45171466pby.28.1362570252031; Wed, 06 Mar 2013 03:44:12 -0800 (PST) Received: from mailout2.samsung.com (mailout2.samsung.com. [203.254.224.25]) by mx.google.com with ESMTP id zs4si33007086pbc.42.2013.03.06.03.44.10; Wed, 06 Mar 2013 03:44:12 -0800 (PST) Received-SPF: neutral (google.com: 203.254.224.25 is neither permitted nor denied by best guess record for domain of thomas.abraham@linaro.org) client-ip=203.254.224.25; Authentication-Results: mx.google.com; spf=neutral (google.com: 203.254.224.25 is neither permitted nor denied by best guess record for domain of thomas.abraham@linaro.org) smtp.mail=thomas.abraham@linaro.org Received: from epcpsbgm1.samsung.com (epcpsbgm1 [203.254.230.26]) by mailout2.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0MJ800GK5LW04G00@mailout2.samsung.com>; Wed, 06 Mar 2013 20:44:10 +0900 (KST) X-AuditID: cbfee61a-b7f7d6d000000f4e-a3-51372c0ae12c Received: from epmmp1.local.host ( [203.254.227.16]) by epcpsbgm1.samsung.com (EPCPMTA) with SMTP id 64.98.03918.A0C27315; Wed, 06 Mar 2013 20:44:10 +0900 (KST) Received: from localhost.localdomain ([107.108.73.37]) by mmp1.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTPA id <0MJ800ADMLUKHQ00@mmp1.samsung.com>; Wed, 06 Mar 2013 20:44:10 +0900 (KST) From: Thomas Abraham To: linux-mmc@vger.kernel.org Cc: cjb@laptop.org, linux-samsung-soc@vger.kernel.org, kgene.kim@samsung.com, girish.shivananjappa@linaro.org, jh80.chung@samsung.com, tgih.jun@samsung.com, linux-arm-kernel@lists.infradead.org, t.figa@samsung.com, heiko@sntech.de, linus.walleij@linaro.org, patches@linaro.org Subject: [PATCH] mmc: dwmmc: let device core setup the default pin configuration Date: Wed, 06 Mar 2013 17:34:21 +0530 Message-id: <1362571461-14570-1-git-send-email-thomas.abraham@linaro.org> X-Mailer: git-send-email 1.6.6.rc2 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrGJMWRmVeSWpSXmKPExsVy+t9jAV0uHfNAg39NPBZfvp5gs5jyZzmT xZTDX1gcmD3uXNvDFsAYxWWTkpqTWZZapG+XwJXx4thqxoLjAhUHfzWxNTBe5O1i5OSQEDCR ePT7DhOELSZx4d56ti5GLg4hgUWMEq2HfrBDOG1MEr0PFrCAVLEJGEg8WviOHcQWEZCV+Pnn AlgHs8AsJonZpx6CJYQFAiQObj8G1sAioCqxf2Ej2ApeAU+JVWvOsUKsU5LY0HuUaQIj9wJG hlWMoqkFyQXFSem5hnrFibnFpXnpesn5uZsYwb59JrWDcWWDxSFGAQ5GJR5eCyWzQCHWxLLi ytxDjBIczEoivFulzQOFeFMSK6tSi/Lji0pzUosPMUpzsCiJ8zKeehIgJJCeWJKanZpakFoE k2Xi4JRqYDxv4rP0+PNvto75eZYy3/PkG21KEyqn6vTunblieqDt7Cszzwm+vJzJCHRFvVbD 75Z6h9n3T9xWmZB2/SgDd0lXhJ0C79Xr7Pvbt/y8XnM6UXcPv+QRXs5d6tWzTgVq7DHbLTa7 +m5Q1ZGshSc+BrFuca2e/GJB2odbZjMCgnZpvT155ZFFtBJLcUaioRZzUXEiAH0dAgXpAQAA X-Gm-Message-State: ALoCoQn4QlyTOjZ7bPDFOn5P+CIdd2z0Vfixr7FVQ2/Wg4ixeO+zfj72sKYf7Gu72MMUySUKSmA2 With device core now able to setup the default pin configuration, the pin configuration code based on the deprecated Samsung specific gpio bindings is removed. Signed-off-by: Thomas Abraham Acked-by: Linus Walleij Reviewed-by: Doug Anderson Tested-by: Doug Anderson --- drivers/mmc/host/dw_mmc-exynos.c | 38 -------------------------------------- 1 files changed, 0 insertions(+), 38 deletions(-) diff --git a/drivers/mmc/host/dw_mmc-exynos.c b/drivers/mmc/host/dw_mmc-exynos.c index 72fd0f2..467d043 100644 --- a/drivers/mmc/host/dw_mmc-exynos.c +++ b/drivers/mmc/host/dw_mmc-exynos.c @@ -152,43 +152,6 @@ static int dw_mci_exynos_parse_dt(struct dw_mci *host) return 0; } -static int dw_mci_exynos_setup_bus(struct dw_mci *host, - struct device_node *slot_np, u8 bus_width) -{ - int idx, gpio, ret; - - if (!slot_np) - return -EINVAL; - - /* cmd + clock + bus-width pins */ - for (idx = 0; idx < NUM_PINS(bus_width); idx++) { - gpio = of_get_gpio(slot_np, idx); - if (!gpio_is_valid(gpio)) { - dev_err(host->dev, "invalid gpio: %d\n", gpio); - return -EINVAL; - } - - ret = devm_gpio_request(host->dev, gpio, "dw-mci-bus"); - if (ret) { - dev_err(host->dev, "gpio [%d] request failed\n", gpio); - return -EBUSY; - } - } - - if (host->pdata->quirks & DW_MCI_QUIRK_BROKEN_CARD_DETECTION) - return 0; - - gpio = of_get_named_gpio(slot_np, "samsung,cd-pinmux-gpio", 0); - if (gpio_is_valid(gpio)) { - if (devm_gpio_request(host->dev, gpio, "dw-mci-cd")) - dev_err(host->dev, "gpio [%d] request failed\n", gpio); - } else { - dev_info(host->dev, "cd gpio not available"); - } - - return 0; -} - /* Exynos5250 controller specific capabilities */ static unsigned long exynos5250_dwmmc_caps[4] = { MMC_CAP_UHS_DDR50 | MMC_CAP_1_8V_DDR | @@ -205,7 +168,6 @@ static const struct dw_mci_drv_data exynos5250_drv_data = { .prepare_command = dw_mci_exynos_prepare_command, .set_ios = dw_mci_exynos_set_ios, .parse_dt = dw_mci_exynos_parse_dt, - .setup_bus = dw_mci_exynos_setup_bus, }; static const struct of_device_id dw_mci_exynos_match[] = {