Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp1005413imu; Fri, 11 Jan 2019 13:08:05 -0800 (PST) X-Google-Smtp-Source: ALg8bN6snOVp6euFw/MpSKrPCAj2oXH+uvD8hAazXEwtbZKMEgddd7wnBY6HkaCLxC1s7xX1FELm X-Received: by 2002:a17:902:981:: with SMTP id 1mr15729357pln.142.1547240885089; Fri, 11 Jan 2019 13:08:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547240885; cv=none; d=google.com; s=arc-20160816; b=FKE1MjVu9NB73s/VUb1teFHAHe/6jBtxINMhN+Gtutuk/6Hl9zbIYMs3LDXmSIIF+g aQCPDu+P7MVhxSzeS4qh+0HN7nF3NiDAet5eqf6Jdw5yq9af+yTqSfDjuyYHhdRAhnw3 ucRKtAM2oNK1/CRub5Myvy+Trx5sda6mnsn95ocMsLyBvZiEvvSxQo8lPS0IRBFqGfB0 r0ylkCf5W+nGu5frUbhZzFDDlFzoK5+gVRBc86hCo1LJnhMq378VIMXZq9yXxCI0m6S0 ARxMMlwSA5auYPKZoCgqCmcXHqZofyuT5nuYFPXE6BDbAS7qzakGaWn0m41kXDXzqn28 +DDg== 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=EwTgfDXrGBWBRBGzaiJXo8VHk0775DRmtyXsq02SAvM=; b=wZ35TkuOLh8DQUXBqTloxInMRtlat1CML53q7LG50s1vbLmZykcUckC3m1ner69bKt 7yoM1Ir2/gElnwMikAs3+hLaTYTPgeUJcEQe1elgIkIjDEuKooPmrOMo+v4Ec8Cf8pvE c6Xl+BIlrhynrVvWjGrBDVp/sjYUIy3ga/G35tqWEiAhgQnOPhL/enzxBspvoiB6Iox0 qtr4HOhR87anpBj8NgOnrBwVZ3Vb0mOdoaxbBEwfT87bF1z2fCiLS+5PL0KgPQJ+VZVw PYfuNN9cKp0SAudYoJqT7FdD/DCeugB4alGM//PtAJKrfonC6d/xXFgcXxAgSqmgIljy SbIw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@googlemail.com header.s=20161025 header.b=bqaaOx3s; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=googlemail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p3si9970569plr.376.2019.01.11.13.07.50; Fri, 11 Jan 2019 13:08:05 -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=@googlemail.com header.s=20161025 header.b=bqaaOx3s; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=googlemail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389341AbfAKTq7 (ORCPT + 99 others); Fri, 11 Jan 2019 14:46:59 -0500 Received: from mail-ot1-f65.google.com ([209.85.210.65]:34596 "EHLO mail-ot1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731874AbfAKTq6 (ORCPT ); Fri, 11 Jan 2019 14:46:58 -0500 Received: by mail-ot1-f65.google.com with SMTP id t5so14180444otk.1; Fri, 11 Jan 2019 11:46:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=EwTgfDXrGBWBRBGzaiJXo8VHk0775DRmtyXsq02SAvM=; b=bqaaOx3sssmsTrQ3h7GuQyKeOcWKYkpbOSjvxdKeUQ1DJnlQ4qHQ/9A4ILpe1W5rQv E8GTyW759XNnfbcfdJhmUFGhLD+LPw8vkttUxQfCCLP4iuTZPuv1H7o+nr0ilGw4zgSB bufGrBdMn7rx3pl+wJiC8weSNEiEyZAxh8TfodqjZWaYyPmaVL8QBOghJLlBm4F9GWNo fQhDfnnNQgHa76oPSsX1ov3+wo9xqm7UMQwFQ53+IcUnhD5dcIklXdXPGOqBdVp9IEGX kEwru6EZqygU0npbrl5AE8vT+p9tmX12AnuPl5mwDiWLtSpLxlB/7bWhZ/Mf1FosKDRY ftbw== 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=EwTgfDXrGBWBRBGzaiJXo8VHk0775DRmtyXsq02SAvM=; b=lxoql4nUVXdhnZ1xIL52KCBBVAm1fZI5EV2r9c2+wa57uCm/eacXTATkI+FP7GzXS3 GkX3xRznOFRpF1zyWhZoooZTBVwBijL8KBolQTXtagVa81r0ZYF1VsjQk4R0+l+sesDK bjo58kp8S9n1boHcU6HXLyvROw5QVrLU3ptpNYNGjYNIUIdU6D4lyw8LgL7C1XaF8/zJ KtlfmwQ3P/jumv01+5xvMt2UTbKJvdLPKdsYvIc8Aghnm7RPHK4d5jWUBe5U7iAeKWnW 4B+YIlom4RQIpH4Mc+/pWF1EvlrT5LYt0NruT5Wvjc2nunc/NUnRphBxJq8ZIWEYQjLA xtqw== X-Gm-Message-State: AJcUukdzHxTK2jLpyzQY81MuSLESJbFUhDooWmDPFOEfxk4vO/YA3cO3 1j/rNsSakaQV5VGNrwNWj04A1UeeSowV5+arQVI= X-Received: by 2002:a9d:7749:: with SMTP id t9mr11061364otl.342.1547236017328; Fri, 11 Jan 2019 11:46:57 -0800 (PST) MIME-Version: 1.0 References: <1547134822-18498-1-git-send-email-lollivier@baylibre.com> In-Reply-To: <1547134822-18498-1-git-send-email-lollivier@baylibre.com> From: Martin Blumenstingl Date: Fri, 11 Jan 2019 20:46:46 +0100 Message-ID: Subject: Re: [PATCH v3] arm64: dts: meson: Fix mmc cd-gpios polarity To: Loys Ollivier Cc: devicetree@vger.kernel.org, Kevin Hilman , 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 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, 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 Regards Martin