Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933539AbbHKBYY (ORCPT ); Mon, 10 Aug 2015 21:24:24 -0400 Received: from irl-smtp01.263.net ([54.76.167.174]:46737 "EHLO irl-smtp01.263.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932670AbbHKBYW (ORCPT ); Mon, 10 Aug 2015 21:24:22 -0400 X-RL-SENDER: shawn.lin@rock-chips.com X-FST-TO: stripathi@apm.com X-SENDER-IP: 58.22.7.114 X-LOGIN-NAME: shawn.lin@rock-chips.com X-UNIQUE-TAG: X-ATTACHMENT-NUM: 0 X-DNS-TYPE: 0 Subject: Re: [PATCH] mmc: sdhci-of-arasan: Add the support for sdhci-5.1 To: jh80.chung@samsung.com, ulf.hansson@linaro.org References: <1439255696-3263-1-git-send-email-shawn.lin@rock-chips.com> Cc: lintao@rock-chips.com, heiko@sntech.de, dianders@chromium.org, Vineet.Gupta1@synopsys.com, Wei Xu , Joachim Eastwood , Alexey Brodkin , Kukjin Kim , Krzysztof Kozlowski , Russell King , Jun Nie , Arnd Bergmann , Zhou Wang , Ralf Baechle , Govindraj Raja , linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, linux-mips@linux-mips.org, linux-mmc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-rockchip@lists.infradead.org, devicetree@vger.kernel.org, Rob Herring , Pawel Moll , Mark Rutland , Ian Campbell , Kumar Gala , Michal Simek , =?UTF-8?Q?S=c3=b6ren_Brinkmann?= , Suman Tripathi From: Shawn Lin Message-ID: <55C94E2F.5000907@rock-chips.com> Date: Tue, 11 Aug 2015 09:21:51 +0800 User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.1.0 MIME-Version: 1.0 In-Reply-To: <1439255696-3263-1-git-send-email-shawn.lin@rock-chips.com> Content-Type: text/plain; charset=gbk; 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: 2445 Lines: 59 On 2015/8/11 9:14, Shawn Lin wrote: > This patch adds the quirks and compatible string in sdhci-of-arasan.c > to support sdhci-arasan5.1 version of controller. > Sorry for wrong send-email ops, pls ignore this patch :( > Signed-off-by: Shawn Lin > --- > > Documentation/devicetree/bindings/mmc/arasan,sdhci.txt | 2 +- > drivers/mmc/host/sdhci-of-arasan.c | 4 ++++ > 2 files changed, 5 insertions(+), 1 deletion(-) > > diff --git a/Documentation/devicetree/bindings/mmc/arasan,sdhci.txt b/Documentation/devicetree/bindings/mmc/arasan,sdhci.txt > index 7e94903..da541c3 100644 > --- a/Documentation/devicetree/bindings/mmc/arasan,sdhci.txt > +++ b/Documentation/devicetree/bindings/mmc/arasan,sdhci.txt > @@ -9,7 +9,7 @@ Device Tree Bindings for the Arasan SDHCI Controller > > Required Properties: > - compatible: Compatibility string. Must be 'arasan,sdhci-8.9a' or > - 'arasan,sdhci-4.9a' > + 'arasan,sdhci-4.9a' or 'arasan,sdhci-5.1' > - reg: From mmc bindings: Register location and length. > - clocks: From clock bindings: Handles to clock inputs. > - clock-names: From clock bindings: Tuple including "clk_xin" and "clk_ahb" > diff --git a/drivers/mmc/host/sdhci-of-arasan.c b/drivers/mmc/host/sdhci-of-arasan.c > index ef5a7d2..c9012f5 100644 > --- a/drivers/mmc/host/sdhci-of-arasan.c > +++ b/drivers/mmc/host/sdhci-of-arasan.c > @@ -175,6 +175,9 @@ static int sdhci_arasan_probe(struct platform_device *pdev) > if (of_device_is_compatible(pdev->dev.of_node, "arasan,sdhci-4.9a")) { > host->quirks |= SDHCI_QUIRK_NO_HISPD_BIT; > host->quirks2 |= SDHCI_QUIRK2_HOST_NO_CMD23; > + } else if (of_device_is_compatible(pdev->dev.of_node, > + "arasan,sdhci-5.1")) { > + host->quirks |= SDHCI_QUIRK_CAP_CLOCK_BASE_BROKEN; > } > > sdhci_get_of_property(pdev); > @@ -217,6 +220,7 @@ static int sdhci_arasan_remove(struct platform_device *pdev) > > static const struct of_device_id sdhci_arasan_of_match[] = { > { .compatible = "arasan,sdhci-8.9a" }, > + { .compatible = "arasan,sdhci-5.1" }, > { .compatible = "arasan,sdhci-4.9a" }, > { } > }; > -- Shawn Lin -- 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/