Received: by 2002:ac0:a679:0:0:0:0:0 with SMTP id p54csp417843imp; Thu, 21 Feb 2019 04:10:53 -0800 (PST) X-Google-Smtp-Source: AHgI3IZppvC40DlkglbuSoxg1siU43egoOZpKu6gzN7xytknoS8RgLU9ORtSjNrgysgxqiDIEpjO X-Received: by 2002:a62:f20d:: with SMTP id m13mr2992337pfh.174.1550751053461; Thu, 21 Feb 2019 04:10:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550751053; cv=none; d=google.com; s=arc-20160816; b=KbOU2jebE2V2tuWlfA1Yr5/RIPg/cH0tRxUDci8MG/5e0iewQEEsTpAif7z/8xM4DX 0Sq+HpHZvF1hDAplKZEYedX6zLuyDX+Bxqgl4eVH75Ic02Pi7wCWd9THiuIVAznrRqzF 6Mxw/xYnRvGdg21jGuOg9BiNNojcnt84g+Dlba9eHTDFOs6lvaavn/RKoTmRdS4KzrXt hC88+YSMPTmkow6GlQZ6w3jCYu6miupYPsMaAkFtH/ghEgcuHZwKbDfYUuq4TErsVdUF Rf/Yzc8Utl3yjhS7vSE6uQyaEWnnNG1K7D/aPMGF+aflNZEfqelpGHx1d6ZqK5L0iTfx Pz7A== 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=A598ezMQLuGr+otd3hlG9eq3WyNrI3RkGoiZaXWZ7Bg=; b=INhVtKWIJUok8vUCWrOdNNVqjVe0+0ub0gMv7aY4FvQmPck9QemPrFSasjBHUo0TGS THk696xGRIv7v3s/fn4KZOnSW+J6IqxLCwCNNMqX6XNe7x3Opn3dZv6q1vJ8UgrB83Rg hgg91DD4wJf2ORZvu4diTPD6PaIYsa6ba+wIQbfcNm+x9dXQhIgvOzHnqAONMAgQB96K 0yYLNM9zIRbXnUSe8aRODa9hELtl3qm60AMiidDo88FIA4hZNrSCbF+TYphzlI/9Yubt qbE4yDai3Lo3PVe7Rl9YO2yxTKO8iUlSG6xUHGwgu0f8l+djw1AUHCQwolEsAnuhgmBS Q90w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=fjT7k9GL; 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 p126si20568972pgp.529.2019.02.21.04.10.37; Thu, 21 Feb 2019 04:10:53 -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=fjT7k9GL; 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 S1726466AbfBUMKM (ORCPT + 99 others); Thu, 21 Feb 2019 07:10:12 -0500 Received: from mail-qk1-f195.google.com ([209.85.222.195]:40411 "EHLO mail-qk1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725932AbfBUMKL (ORCPT ); Thu, 21 Feb 2019 07:10:11 -0500 Received: by mail-qk1-f195.google.com with SMTP id h28so4067413qkk.7 for ; Thu, 21 Feb 2019 04:10:10 -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=A598ezMQLuGr+otd3hlG9eq3WyNrI3RkGoiZaXWZ7Bg=; b=fjT7k9GLFoUncCpOr32/N3JUcmY6KLzl9SQle/oosQWRpLqoiSS8dO5tGHLda7OsHg UB9scIPapAxm5Tu2ObVbwFwCryFC3ly5MSztFeZg1IiqTNO6FPwkwuS55O6J5nUGZCyn 0YywWHiRG2kpsDwdXdS0t82d9U6C6Ns7o/Qmd+xSH+ZdDoNDgaHHYcky/AeaeOCVMJe4 FvWepVsjuD+yQCDT14kIwEr1B4sHya5xo39W92L0xnMBSjzxm1jczTOAVMwkImJrRWJU kZ8kizHiZkick+X2SgaeX2B04/acvEayBhvlW4XOsQEa3WbP5s24OP6946NmXutOU+Do 3XFQ== 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=A598ezMQLuGr+otd3hlG9eq3WyNrI3RkGoiZaXWZ7Bg=; b=Cn1RFvwGFhGOKH09ZK5ovS+kLAOjN0ol8Pa3HTnDhvQj8vLxM0P8WVgDLllj+3w4gg vNm51SGekgeV7FpCHzuIkFTB8ZcgVhKfrHcS6tFufK01uOR7CdOZkxACFF1DZQ2+cU2t ZEZaD0QDXqrpNZVGfSTMt2hMmyTpYwxJQpL47cBGsS8YQC5Gsdo8s87WjPr0bsLsQd6d 3DEgNFwGVJFs6OCoab0bLhilsuVjlNAyoZQo5ICuoYhNcnvpMotPFrhHhh2HoHaQAsS3 4959sHNXoVtI7Dnq7Bep5YBwbO0oVV6qh0q03U7BTiuogjczCyq2Q3YovQ3g5bsEbvf7 lc4g== X-Gm-Message-State: AHQUAuZBSAmn58gmVKyNOQ2HTQFjOyj0kMwwgG/OB4bw+Q6AGS3+5Wvl 8tpQFqWqhDSng81qD88cV9jnP8XPs8nwnI4av7+8LQ== X-Received: by 2002:a37:a556:: with SMTP id o83mr23441121qke.78.1550751009954; Thu, 21 Feb 2019 04:10:09 -0800 (PST) MIME-Version: 1.0 References: <20190220105214.26618-1-thierry.reding@gmail.com> In-Reply-To: <20190220105214.26618-1-thierry.reding@gmail.com> From: Linus Walleij Date: Thu, 21 Feb 2019 13:09:57 +0100 Message-ID: Subject: Re: [PATCH] gpio: of: Restrict enable-gpio quirk to regulator-gpio To: Thierry Reding Cc: Bartosz Golaszewski , Marek Vasut , "open list:GPIO SUBSYSTEM" , linux-tegra@vger.kernel.org, "linux-kernel@vger.kernel.org" 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 On Wed, Feb 20, 2019 at 11:52 AM Thierry Reding wrote: > From: Thierry Reding > > Commit 0e7d6f940164 ("gpio: of: Apply regulator-gpio quirk only to > enable-gpios") breaks the device tree ABI specified in the device tree > bindings for fixed regulators (compatible "regulator-fixed"). According > to these bindings the polarity of the GPIO is exclusively controlled by > the presence or absence of the enable-active-high property. As such the > polarity quirk implemented in of_gpio_flags_quirks() must be applied to > the GPIO specified for fixed regulators. > > However, commit 0e7d6f940164 ("gpio: of: Apply regulator-gpio quirk only > to enable-gpios") restricted the quirk to the enable-gpios property for > fixed regulators as well, whereas according to the commit message itself > it should only apply to "regulator-gpio" compatible device tree nodes. > > Fix this by actually implementing what the offending commit intended, > which is to ensure that the quirk is applied to the GPIO specified by > the "enable-gpio" property for the "regulator-gpio" bindings only. > > This fixes a regression on Jetson TX1 where the fixed regulator for the > HDMI +5V pin relies on the flags quirk for the proper polarity. > > Fixes: 0e7d6f940164 ("gpio: of: Apply regulator-gpio quirk only to enable-gpios") > Signed-off-by: Thierry Reding Patch applied with Marek's tested-by, thanks for thorough commit message and helping out in sorting out this mess we've built up over the years. Yours, Linus Walleij