Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp577978imm; Mon, 1 Oct 2018 14:57:56 -0700 (PDT) X-Google-Smtp-Source: ACcGV63tLtxf+kyE1zsKuKBIC/FMO3X2ekdCyY0yNfblhOcQMiePzLAy3+7HhbzOSIIs1CytOKI8 X-Received: by 2002:a65:5347:: with SMTP id w7-v6mr12140022pgr.17.1538431076662; Mon, 01 Oct 2018 14:57:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1538431076; cv=none; d=google.com; s=arc-20160816; b=GVJybcDqTiRy0cpLzVHOffawqOJecG/JY9hk5lsfwe6D0k/TMPQz6pRrV/V/J9w2cS gsJYy1C7fFic4PLcQ1f2bzsIbUZsjE7PXg6tgjlgIzOPyozU4zzsPwbJ63CYxwZXLJe6 8HQIaba5C5br16L+zDqEyoU9ghHqhe2Lvi+tijs+Sq1EE4DMFi90+LVqu5vNtZzMgyum Zs5SQkGC9FH4fqgkZqUwlcKbbVruJodYMdH8VB8vaxPww5AhMRDxIkMmDxpye2seZ6pI SbnAblWZ7fkvqVtYiSY/jkpxWUFWnxEtEF9fYnInJdzJ9fzS8f86YVmlmnWSP/gepaER 1EDQ== 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 :references:in-reply-to:mime-version:dkim-signature; bh=lSbAEg7edB3ftvs5ar7mtviM21y9zFXQ6/fKwokXkFA=; b=zNkK1+Iwja3hghJLic/U4uQjVmMQiwBVMX+hnE9ZdcTsEZLshtefhm6vHzZftj5hRv 4NSqMntwr4tRkDuOUOU2ttAvWW9tlfZKfl3jcjGJBB5q9oj1dUycd2nzbdndtO3IVmaz SZN2yKFxsxhC0Z7eMooogwG3vY6DYwiNz5MsnPltvJSsIPcZWM0/NkEA+nbIw4Tm2PDQ TG0I9TfI8i/1ekkR8tZYIUyYEGlfA0ebeh/nWGXMT4apeZUYWXHZtin5UIsgB5wSTlUz W9+tbmIwMZSJkLMDvmKNEQDuoqoLv8FuAdgU63GubHVbehRInf0WHB+DSpnQUBUURzOZ 2OEQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=OljXZJnP; 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 d4-v6si13273133pgl.147.2018.10.01.14.57.42; Mon, 01 Oct 2018 14:57:56 -0700 (PDT) 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=OljXZJnP; 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 S1726460AbeJBEgG (ORCPT + 99 others); Tue, 2 Oct 2018 00:36:06 -0400 Received: from mail-wm1-f68.google.com ([209.85.128.68]:52393 "EHLO mail-wm1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726117AbeJBEgG (ORCPT ); Tue, 2 Oct 2018 00:36:06 -0400 Received: by mail-wm1-f68.google.com with SMTP id 189-v6so268421wmw.2 for ; Mon, 01 Oct 2018 14:56:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=lSbAEg7edB3ftvs5ar7mtviM21y9zFXQ6/fKwokXkFA=; b=OljXZJnPFCfvmQMo+1JuJsOjRkNC8II91LHPZy41z02aiWPQKAsxwlx0MX2hkxEA5R svASjoPEoBfs76UkKvhCqflH3l6HVq5YY/OIiTEqBRqMlpHgYxTtBFCjF/nd9LMjWVCv 4mHGPeeENw+soQLR6YKnZQvvGnOMecCSqISkY= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=lSbAEg7edB3ftvs5ar7mtviM21y9zFXQ6/fKwokXkFA=; b=RjvFasWc1+G19Bq2KuVnZTUIbOW4KDdwvFxnE2hyAdT69gizM6Fwsz6oPkeeRiMj/+ MI837WNjHwWT7MjOOcjRUCOhb4pboNJJe76A59S8MVCxQVOJC3Usp+ISUoLRSAtoYiPX Lb3QIQ9Gg4kPcHWZNhJjoVcbtOwnhGTYrbiu2L9Cadl5+8Hv6v8rWYoOcocs1ATh4oxX skJRii3l64ib8NU8m3X2Yck+zQ8q3GP4SnaQyMiwoLq/rzX8BCnEc7O3IKBQB/GhCg8V LUsQNKmt8jr41xK/apALVeeBJI17Ijfsh3mnBg2CvtwArRpokte7GjUXlCm1Am6wcR7F cMug== X-Gm-Message-State: ABuFfogbRTfCRDlXf9U9fWe84G/J/Y8cJfk8JPQqHuygIo8pPv05ik4w TANYCAqIFF6kLph7a47OJkrT8/57qDcJF6/Dc+vsjQ== X-Received: by 2002:a1c:1452:: with SMTP id 79-v6mr2420544wmu.31.1538430971204; Mon, 01 Oct 2018 14:56:11 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a1c:b485:0:0:0:0:0 with HTTP; Mon, 1 Oct 2018 14:56:10 -0700 (PDT) In-Reply-To: <20181001204346.4655-1-linus.walleij@linaro.org> References: <20181001204346.4655-1-linus.walleij@linaro.org> From: John Stultz Date: Mon, 1 Oct 2018 14:56:10 -0700 Message-ID: Subject: Re: [PATCH] regulator: fixed: Default enable high on DT regulators To: Linus Walleij Cc: Liam Girdwood , Mark Brown , lkml , Leonard Crestez , Fabio Estevam , Anders Roxell 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 Mon, Oct 1, 2018 at 1:43 PM, Linus Walleij wrote: > commit efdfeb079cc3 > ("regulator: fixed: Convert to use GPIO descriptor only") > switched to use gpiod_get() to look up the regulator from the > gpiolib core whether that is device tree or boardfile. > > This meant that we activate the code in > a603a2b8d86e ("gpio: of: Add special quirk to parse regulator flags") > which means the descriptors coming from the device tree already > have the right inversion and open drain semantics set up from > the gpiolib core. > > As the fixed regulator was inspected again we got the > inverted inversion and things broke. > > Fix it by ignoring the config in the device tree for now: the > later patches in the series will push all inversion handling > over to the gpiolib core and set it up properly in the > boardfiles for legacy devices, but I did not finish that > for this kernel cycle. > > Fixes: commit efdfeb079cc3 ("regulator: fixed: Convert to use GPIO descriptor only") > Reported-by: Leonard Crestez > Reported-by: Fabio Estevam > Reported-by: John Stultz > Reported-by: Anders Roxell > Signed-off-by: Linus Walleij This seems to solve it! Tested-by: John Stultz