Received: by 2002:ac0:8c9a:0:0:0:0:0 with SMTP id r26csp1455545ima; Sat, 2 Feb 2019 00:53:28 -0800 (PST) X-Google-Smtp-Source: ALg8bN7qnBCvUBLVdv2O4GWSLA1MFZUhoqifh56NMQan4bgoT0+8aDQ9mJdwHY+54/L63Nd6ABK1 X-Received: by 2002:a62:2702:: with SMTP id n2mr43793767pfn.29.1549097608746; Sat, 02 Feb 2019 00:53:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549097608; cv=none; d=google.com; s=arc-20160816; b=sMOUGcWFzBZHwT4oHGLY7UZ8yl+VdfRohrhJMSnODizf8fY9+TR253bHE7vXlXI+Ia rzuODYglgomrDCDxQsZGKAgKNFAzuUcsq76I7eSZP8utxneJEQ0xEjbKTQyvh9N44/ho LyU0qpeURVJQp4Fdl6p7YmDKGx6E1LedFDjHYRihUDOdRPIH59vbpSLsKLRsr+9ubgmZ BypfQtq447HGEkyYvhJNIeiKBvhUXMmxmHBOhCYCWlj6zrSRRlQ0rEJmT0d1+nGf70TA xoom/KwBGw3LREFMJ6x+84HLndK50nrUVTZ58uixpL9dy+KVqM/c6kP+p5/oDlXIOD6l rf0w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=4pFOoei9xHRTkuVGj2aLd4yUTKUmq7LmRLqh2yQAnTM=; b=whWY73HmN6aSCc8yNsWpyoTQGhifE/qtfJ3Fq5S3WCqUEpmGvJ+p/FWEQJjS1wyWhv i74ueDcTVjFV1vMAPOpG/5mkZRPYpz9Ej+Ofzx2aqPLAQMZGa60x1uWIyJjA8p8cdxDw oSUJPrm0Q7FwjuyPTckR79GH7QRieHl0fvaSq/SC/waFtbDhKEYV+CpoP5cw/rDXNMRT ex4c9ASYVEyvPop/DTFVcC5KMPAO1DVJLInIvVlzRKIc9V+th7J1jRpDeUVh0PzRqpVT s2cSliJwD+Dvt+XjvZrkOpJRlRyzERyN8bm8tG1srItzR6RnNlRYQE2g97PXyz8FV8gL Fxrg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="O5Ye/g1L"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o7si8901873pgg.118.2019.02.02.00.53.11; Sat, 02 Feb 2019 00:53:28 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="O5Ye/g1L"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727104AbfBBIxF (ORCPT + 99 others); Sat, 2 Feb 2019 03:53:05 -0500 Received: from mail-io1-f66.google.com ([209.85.166.66]:42620 "EHLO mail-io1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726711AbfBBIxE (ORCPT ); Sat, 2 Feb 2019 03:53:04 -0500 Received: by mail-io1-f66.google.com with SMTP id x6so7807069ioa.9 for ; Sat, 02 Feb 2019 00:53:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=4pFOoei9xHRTkuVGj2aLd4yUTKUmq7LmRLqh2yQAnTM=; b=O5Ye/g1LTp5jS6TqYOqEauyXGQ5QqHVhpHziJQ3epgb/hqpgPJ73mCXuffBvLj2sm3 h6RDy4gqgjKbgbCeVgroVwFw9DpNQxcDu/kjDTZa7/AXTbLqYLK9DUkTHV9VpPYeSf84 EjbVXwnD9580PbCsu5uaWvOLTaC++z599DUo8= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=4pFOoei9xHRTkuVGj2aLd4yUTKUmq7LmRLqh2yQAnTM=; b=aIvR02kVXce2if5JtS6I9jCFxZN/ZgsPtX7aB4AE2hRshFVS+MlrjJiDu+tf60R97K 4pmTfZfzkI7mW++CtciBZrdOWBDGCr+XqmBCsCq3jRi7+sIhPFa4A+DeYCmNmZPikyDK 2DiFpCu7yjlFSWCddcFgWYTdVVbrZEaY/hqiprNvz9F6kZYT6hpEPSOBQ5bwyV2b60Py iGBtOhGPugAB9HAQ0mbLIwB3Onk9C1faR0VTqPXFfAg2XgNCtzljSiTGwEnQ9nUPOpAB /zV7Bp96NkIXtHfkdQohDq8bW11pBZ9xm/y9hUh/QlOoVIABex39lDmQJFuhUNminZdR MEbg== X-Gm-Message-State: AHQUAub6tKleW8Qq805ltzv5+c6LOH2KlHQhcSL0JiheUSZQPjCRdiHC 5fJFaVNA+/wSJN97s5flnmRLsdPDW5xeI5+SJkK3Sw== X-Received: by 2002:a6b:c8c9:: with SMTP id y192mr23969712iof.183.1549097583792; Sat, 02 Feb 2019 00:53:03 -0800 (PST) MIME-Version: 1.0 References: <1547454274-1674-1-git-send-email-vincent.guittot@linaro.org> <3722223a-4f06-3e1c-86ca-542289c7c918@hisilicon.com> In-Reply-To: <3722223a-4f06-3e1c-86ca-542289c7c918@hisilicon.com> From: Vincent Guittot Date: Sat, 2 Feb 2019 09:52:52 +0100 Message-ID: Subject: Re: [PATCH v2] arm64/hisilicon: fix SDcard detection To: Wei Xu Cc: Rob Herring , Mark Rutland , LAK , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , linux-kernel , Linus Walleij Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Wei, On Fri, 1 Feb 2019 at 18:00, Wei Xu wrote: > > Hi Vincent, > > On 1/14/2019 8:24 AM, Vincent Guittot wrote: > > The SDcard detection of hikey960 is active low so cd-inverted is wrong. > > Instead of adding cd-inverted, we should better set correctly cd-gpios > > to use GPIO_ACTIVE_LOW. > > > > Signed-off-by: Vincent Guittot > > Updated the subject as Leo suggested and applied to the hisilicon tree. Thanks > Thanks! > > Best Regards, > Wei > > > --- > > > > SD card detection was not working on v5.0-rc1 but patch > > https://marc.info/?l=linux-mmc&m=154637189021211&w=2 makes it work. > > Nevertheles, latest changes in of_mmc_detection makes possible to have > > a correct DT config. > > > > arch/arm64/boot/dts/hisilicon/hi3660-hikey960.dts | 3 +-- > > 1 file changed, 1 insertion(+), 2 deletions(-) > > > > diff --git a/arch/arm64/boot/dts/hisilicon/hi3660-hikey960.dts b/arch/arm64/boot/dts/hisilicon/hi3660-hikey960.dts > > index 71bfe41..dc314e7 100644 > > --- a/arch/arm64/boot/dts/hisilicon/hi3660-hikey960.dts > > +++ b/arch/arm64/boot/dts/hisilicon/hi3660-hikey960.dts > > @@ -665,8 +665,7 @@ > > sd-uhs-sdr50; > > sd-uhs-sdr104; > > disable-wp; > > - cd-inverted; > > - cd-gpios = <&gpio25 3 0>; > > + cd-gpios = <&gpio25 3 GPIO_ACTIVE_LOW>; > > pinctrl-names = "default"; > > pinctrl-0 = <&sd_pmx_func > > &sd_clk_cfg_func > > >