Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3575205imu; Mon, 14 Jan 2019 05:31:46 -0800 (PST) X-Google-Smtp-Source: ALg8bN5mFbuYoWaJYHkqEh5/Z0LI9hWyuqAT6gDser5l4dU5bgVsVBqKwNCIJpRdrxc6r45umXEZ X-Received: by 2002:a63:d846:: with SMTP id k6mr23279126pgj.251.1547472706834; Mon, 14 Jan 2019 05:31:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547472706; cv=none; d=google.com; s=arc-20160816; b=EHnRGbpRGW6ReFHFkQ/KxTq9jtN/mQPZ+UXFs/Y0GXLE7RcMQDPMcFIlyVH00O+znj JXohX+gX0DX31H0wVZSim74JUSEjJoDQB+YW+da9x2V+vIN31+Dpm2zd440HcuQZ1VBa PW6Xs7xyO/UXplNXy3wr6sB6cT6N7ykqsrDEojIfaJDQQavJCAj/nuDr5L9l4q0B/nmG QwBBwQr0QE6JzVXhxDHRIPtyr9CqNneMlV+v2+Hz1zdGAkZ7sN5cop+U4R7+cqGOhdpl gF1l7HzrJvN7YtNerTdghU4zE2E9xnl3nI6xdnw12lbJkmZNxRyxGs2yiY2ShWihS/nz EaOw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:in-reply-to :subject:cc:to:from:user-agent:references:dkim-signature; bh=m+dqoUTZ553nDWQVkK+5miIXYXnjGts+7dZ1viX+uA0=; b=qDnqNCuCLguNbhfvTam+6JysSLtzJoMc1MBPFGizahgrmkw52Jtq7gbFfrNZ/ZI/be zP1hEJ7WyHDBHhJuxrqNbng2axG6mGyOqU2NQsSxurXEEazEoQ5Vkt/dw0aa9e5JFkQy T4kaRW0l7VSxLTSzkyu8iU1cQY04iQ7KTdBizA53O3C7Uk+HOnm49x5+T4vS7l/mQGzX x+VYyG1ZSldOOPdPk58Ji2rnpcGTFvQnRSOFf+U3xUPHz9z0KV8VOUzvkGkKv7zox43G Zf9A0JS1gdkV72T3U+/Kt7N2z7w9+8FHTb2FNGX8+MF/qKgo5y7tKyOmWR9rimNG14B7 m40A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=L6aZMDkn; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v35si355002pgl.130.2019.01.14.05.31.31; Mon, 14 Jan 2019 05:31:46 -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=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=L6aZMDkn; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726643AbfANNa0 (ORCPT + 99 others); Mon, 14 Jan 2019 08:30:26 -0500 Received: from mail-wm1-f67.google.com ([209.85.128.67]:33863 "EHLO mail-wm1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726586AbfANNaZ (ORCPT ); Mon, 14 Jan 2019 08:30:25 -0500 Received: by mail-wm1-f67.google.com with SMTP id y185so7368959wmd.1 for ; Mon, 14 Jan 2019 05:30:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=references:user-agent:from:to:cc:subject:in-reply-to:date :message-id:mime-version; bh=m+dqoUTZ553nDWQVkK+5miIXYXnjGts+7dZ1viX+uA0=; b=L6aZMDkn0eXQpSur/59udmyHKkaaqYwVzoCYf8j2+nP6g+CvW/03enBcLIM3yUGvP6 azqss3Nh/1NvgSnfTRVq+l/zdWPpi4pimmTjWfZ26dVPWyHviJrLsma20gQoBhaF7eBl bs+yyQ5vTi8wGO89Rdpw4T7wNmAmCQez12XjPP0rgy6aAmqwpHMBAXYyj1GARHOHcIO/ 4+woaaNHLLMcGeB8rVn+QT59stAKLeqPPv2KVsUHelSKJPm8AeB6IDgBgd37D1LGKROf zjJBUBAcAurH6t4pccnNOYz0wnFBy8TsXDKFAx6SblfKjndg3cpqXpAd3pYvXBB3ndh/ Tfjg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:references:user-agent:from:to:cc:subject :in-reply-to:date:message-id:mime-version; bh=m+dqoUTZ553nDWQVkK+5miIXYXnjGts+7dZ1viX+uA0=; b=qSb7HnGW8oykQVfEB5TxWqA8d7ehUVtoJPWpcTwHOAmdr2w2fFcZDMj9XE1fteVqxH I921W6S9Z7bQFpynUmQ2cLEl/q3QqoPkCaST31JTkGJJgk9+/zSZH864IEXimkp4wIRQ QOzQphkrgUQh3Mmd7K93dDgh7WF7pIqGdAKkmJxQwy3XDhTqAq1gMVn37Y2A+/1TiMzS ZHNyzTuvcAYUBUMXuf9oMTe7Zh6qgzTNZFxRci6JmVZBSKuVjVJk+ams0iYvL0UCiYpG 7RTg2n9pc2k+gKNiiI9gWlZyZzhQk+Vmr7cZZRBoEYnp61TvNQE/lFhxib4kbEpbTRtO tQEg== X-Gm-Message-State: AJcUukfvXld35nklCyciI4pXXyPpsj31x5McSw2FlPhE+jtLiQRXnI7j JoLgenvKiu3tPQjwi/EdXvUT+g== X-Received: by 2002:a1c:8b44:: with SMTP id n65mr12332007wmd.104.1547472623560; Mon, 14 Jan 2019 05:30:23 -0800 (PST) Received: from localhost (lmontsouris-657-1-212-31.w90-63.abo.wanadoo.fr. [90.63.244.31]) by smtp.gmail.com with ESMTPSA id a1sm64329218wrw.76.2019.01.14.05.30.22 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 14 Jan 2019 05:30:22 -0800 (PST) References: <1547134822-18498-1-git-send-email-lollivier@baylibre.com> <7hy37rm0j6.fsf@baylibre.com> User-agent: mu4e 1.0; emacs 25.3.2 From: Loys Ollivier To: Martin Blumenstingl Cc: Kevin Hilman , Loys Ollivier , devicetree@vger.kernel.org, linux-amlogic@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-mmc@vger.kernel.org, Linus Walleij , Jerome Brunet Subject: Re: [PATCH v3] arm64: dts: meson: Fix mmc cd-gpios polarity In-reply-to: <7hy37rm0j6.fsf@baylibre.com> Date: Mon, 14 Jan 2019 14:30:20 +0100 Message-ID: <861s5fmknn.fsf@baylibre.com> MIME-Version: 1.0 Content-Type: text/plain; format=flowed Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello, On Fri 11 Jan 2019 at 19:55, Kevin Hilman wrote: > Martin Blumenstingl writes: > >> Hi, >> >> some nit-picks as well as my Tested-by (in case it's not too late) below. >> thank you for taking care of this! >> You're welcome ! >> On Thu, Jan 10, 2019 at 4:40 PM Loys Ollivier >> wrote: >>> >>> Commit 89a5e15bcba8 ("gpio/mmc/of: Respect polarity in the device tree") >>> changed the behavior of "cd-inverted" to follow the device tree bindings >>> specification. >>> Lines specifying "cd-inverted" are now "active high". >> this depends on the polarity from the cd-gpios property. above commit >> caused cd-inverted to be applied twice (effectively making it a >> no-op). thus "cd-inverted" only means "active high" if cd-gpios also >> sets GPIO_ACTIVE_HIGH. if the polarity in cd-gpios is GPIO_ACTIVE_LOW >> together with "cd-inverted" then the GPIO will be treated as active >> low. >> Hum ok so there's more to it than the commit message. I'll come by with something clearer for a v4. Thank you for the clarification. >>> Fix the SD card for meson by setting the cd-gpios as "active low" >>> according >>> to the boards specifications. >> not only switching to GPIO_ACTIVE_LOW, also dropping "cd-inverted" >> Indeed. >>> Fixes: 89a5e15bcba8 ("gpio/mmc/of: Respect polarity in the device tree") >> in my patches for the 32-bit boards I used the commit which added SD >> card support to the board for the Fixes tag. however, I'm fine with >> this as well (I just wanted to point out that there's a small >> difference in our commits). >> OK, I treat fixes tags as: from the introduction (or discovery) of a regression (or bug), the "Fixes" commit will patch the commit that introduced the regression. Hence why I tagged the commit from which the platform was not acting correctly anymore. If that's fine for you it's fine for me as well :) >>> Signed-off-by: Loys Ollivier >> on my Khadas VIM(1), using Kevin's v5.0/fixes branch: >> Tested-by: Martin Blumenstingl > > I can add this tested-by tag in my v5.0/fixes branch for now, and can > replace it with a follow up if Loys can update the changelog with your > suggestions/clarifications. > Will do. > Thanks, > > Kevin -- -L