Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp1036204imu; Fri, 11 Jan 2019 13:48:35 -0800 (PST) X-Google-Smtp-Source: ALg8bN5BqpXuLv/sXpaamFfVhweCqMUYUMewmhUA9qkZwys0jb9KGI9CdZEK3DNoSrDEfnyz/v31 X-Received: by 2002:a63:c051:: with SMTP id z17mr14602458pgi.20.1547243315088; Fri, 11 Jan 2019 13:48:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547243315; cv=none; d=google.com; s=arc-20160816; b=VG6/QP9xqRHqDuj1mCq0/7ltsVYu2in57izsVYOOMuiNuXaFjYuGVGgvTT0AEscwhx fgW053MB/aNeaEsHiAEQCzLYqKsRVpxBd/2Fl5VHtDpFvXY8TOX8HtQntoxM0Nfn0qmD cBYSFQBOLRc4QylGnbSa87fYgcOYDZ2NNcHwruajkk91S19a2u1R4q0s2btRRqVeGCEa G4vsdJz+1dCLD8nNo+OTjkijI2qEjgl88iaKmsVxhjQawsfZqokgj5MC8b7pb4P9hYB5 JMIJBI9uuPwSJV3aYLTduc+vF9p/jUV7a5iYWMb/Eh7ewckX+j5Z8MSbU4PKVwipfYSn XdQQ== 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:references :in-reply-to:subject:cc:to:from:dkim-signature; bh=OEko4Q1k2V9fZxblUwJN/ehB2KPRXcsUj+UxLIJ/99E=; b=id2usYsxaiNX5rf9z1yp9iLODQinA0IXAqJs5jko+obTk5PXHdQMsdKs8JRnPEdqdu zlSGCOGxaV9jCb3q9FZimL3mB78plihbwWkjibLyywSVgCB0D0ivLCWV1Z2gpOMvG5J4 vRwHhVKcDyidvQo6UFkCXQQ26ZvudBhavt1kOUK+NqkcGY2ZCMry6GWOq3eXj1xCRNF0 Hgh8BBqlVdBxUWscp9uHeHbFKr0Q3/zmAgHQtVZuHlpBQQGQtMrLv2awpQpiR+iklILo fEZSzJ/Ir1R70bqn5zEwCk5V697Q1kkAdw8fIIUazd6FUJELpsfwQlp8OsUg3sxauxep 9ziA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=lREnOr2A; 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 f82si21462656pfa.221.2019.01.11.13.48.19; Fri, 11 Jan 2019 13:48:35 -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=lREnOr2A; 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 S2388281AbfAKT4A (ORCPT + 99 others); Fri, 11 Jan 2019 14:56:00 -0500 Received: from mail-pl1-f193.google.com ([209.85.214.193]:36942 "EHLO mail-pl1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729938AbfAKT4A (ORCPT ); Fri, 11 Jan 2019 14:56:00 -0500 Received: by mail-pl1-f193.google.com with SMTP id b5so7212796plr.4 for ; Fri, 11 Jan 2019 11:55:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:in-reply-to:references:date:message-id :mime-version; bh=OEko4Q1k2V9fZxblUwJN/ehB2KPRXcsUj+UxLIJ/99E=; b=lREnOr2Ab7Kk0yTYlqBE4YoNQuckrSl/N1T7ZYdoiFR8nIrOc5ApkvV3G4eTPNrOdw uSj15PfeBjfHhUSAtIAorUyKZuqAO+zw/2CYIE8C1vDGOhR+Q4qSl0RPqc3fm1eAyzN1 6O/s6BKzHyPPuT0PDA1QAbLYOl2/eoY0qN5Fv9pXO0DaRRnd9Ucb5ThU7+M9/cH6ri0s omlTZ6o3vAw37lLxsBheXZbVEc6RTZ/Z2M86lVmk+pmDPYibEEBWvuuHPF8l4z7O48Y/ mIvsE0TWTzuZz3UrqUZWJ6uZyeoklRaUswl90hxYN0UHG/Pq2xzXhjEdI0Ra20BzG5c0 0kpA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:in-reply-to:references:date :message-id:mime-version; bh=OEko4Q1k2V9fZxblUwJN/ehB2KPRXcsUj+UxLIJ/99E=; b=rFkkhodD8ckRoNTYWKgXbxVcXW60tYocJhC8qMfstwmIUxxQue8k9rQSiyzH66v2+K Z/A5RzcaQ8YcI5hV4CZkL4DP/XVbzEcbZ1Cu7P5vyue1withGAEdmdyzlrrEyRb+StDh MHp5k/BFvzrQ/odqbJZzMzqAsQNomeZZo4RN++g3MHcfYGs1KlMWf7RwkYCsv6f9iA3P irqE28kf52ksFuEUXHTmFhB7UW/ev2rMQ/EQV/VmJ/WJ2FtYUd6gwOgT9EvZak7oApbS rmHxkE1MQ7hMhhK67GHOMuzn5FrdjH1sWqCIi3d9zdxksqcvf9+F/S8tZCMwJ7KPpsEv 0G9Q== X-Gm-Message-State: AJcUukcXJ/w0+cyO3hTJDAZYvaMYE5UF+fEbQt+F4Qm6SEV8ZUB9FxZA 8jceLYRqAhDYLOK885zLSLA2Yg== X-Received: by 2002:a17:902:9047:: with SMTP id w7mr16117360plz.270.1547236558983; Fri, 11 Jan 2019 11:55:58 -0800 (PST) Received: from localhost (c-71-197-186-152.hsd1.wa.comcast.net. [71.197.186.152]) by smtp.googlemail.com with ESMTPSA id c7sm110659515pfa.24.2019.01.11.11.55.58 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 11 Jan 2019 11:55:58 -0800 (PST) From: Kevin Hilman To: Martin Blumenstingl , Loys Ollivier Cc: 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: References: <1547134822-18498-1-git-send-email-lollivier@baylibre.com> Date: Fri, 11 Jan 2019 11:55:57 -0800 Message-ID: <7hy37rm0j6.fsf@baylibre.com> MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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! > > 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. > >> 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" > >> 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). > >> 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. Thanks, Kevin