Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp2541412rwd; Fri, 9 Jun 2023 12:53:09 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5ml5NNa3zulwgK0T3nj2S6iCYRgHQteTxpr1WLjFkp6aQCKjDlOgJaGkPJHERznafu2AMM X-Received: by 2002:a17:902:e84c:b0:1b1:8aa1:3a48 with SMTP id t12-20020a170902e84c00b001b18aa13a48mr2050115plg.42.1686340389090; Fri, 09 Jun 2023 12:53:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686340389; cv=none; d=google.com; s=arc-20160816; b=iEzM1h7Tl0ANUSRQF6Yxr2F3gtYfDkPqZ8tautmPzRv2AgZhJIIjlVtwY9QKg0c0pA Au5DDSpxf+BV8q/+Vthr1RwD4sPxp7U8AABSe1ysH8gKJrVmU5FCVBR0uRgIdgKsXJn1 i6RU9O4YiwEOxpkx9nUCd1f08+9Ldo0xDEH+BS8qtua7qbSuaVk5/jCry18EV+DG0oJ9 MDBnxPLLDvQ6ziTKzovQ+F0XxgU+fFHtcJNu8LxMTsx7Bg05E8GHJ1F9qEkoEM0UPlaZ D6gGvu/t4jzj1CTLDVr/nNwCv1WQVYMIBdjXit0BwT91P1QmedjvvwMHcsyZ8F/gfXiM MJLQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=e+7TJ2Bz4PP84jI71k9rtSrZBuTihEfvjYh1C5ap+bM=; b=bIVtqepKY3MY04X2IviCpkocdlmSSxmoGwcc8euhgxo+p28vGnwQF4uXzh8x0VhwEz FdiVuF/888INRWJpR0xvwjJmWnhBcrFkexqgGXD2wm2sPj7Bo9CASg/+X2/tO0xY4upx EdrMBjRrnE0hE8BdLr1xNIUXHBk3vb51+fYERT6LRtg4fw5aSwcA8XeN44cVuCiybur2 w8UT7apjNZXPUS329DTp477eR0tojGnN4m6XwjB8glX/NMFjA6kcof8tjDClxpG9TUBT NYA7Lv3gHu3rd/wt3UxheSEhI22svZAcilWOCk2aTGYsvX9A1ds4NIxXrvPdNHf83uJB qWYg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=dwuJQ2Nf; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id d15-20020a170902cecf00b001a4f005d59dsi3203161plg.389.2023.06.09.12.52.54; Fri, 09 Jun 2023 12:53:09 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=dwuJQ2Nf; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S230049AbjFITc0 (ORCPT + 99 others); Fri, 9 Jun 2023 15:32:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42228 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229695AbjFITcY (ORCPT ); Fri, 9 Jun 2023 15:32:24 -0400 Received: from mail-ed1-x533.google.com (mail-ed1-x533.google.com [IPv6:2a00:1450:4864:20::533]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1C20830D2 for ; Fri, 9 Jun 2023 12:32:22 -0700 (PDT) Received: by mail-ed1-x533.google.com with SMTP id 4fb4d7f45d1cf-5147f7d045bso3238587a12.2 for ; Fri, 09 Jun 2023 12:32:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1686339140; x=1688931140; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=e+7TJ2Bz4PP84jI71k9rtSrZBuTihEfvjYh1C5ap+bM=; b=dwuJQ2Nfv3uoOXXnIfCtewKQKhPdrx1lMxuhEwkh/apP2l8A5U36iSzQ1LQ9Tp9ZIy iuuL7Ur1Fg6eeDqDI3KzMcpa9Dlob2NiJb/XZ1Rd4ziQGLYwA5yaMYCVzmbRhG8O0jzS IosOLT7eRJ89zYXtJ8hC7NyQueCE4kMBsunVLvb9aUyAWnFKrzivwQ3pWOQmq52O37Pp 0oRHuqlsG5dpYcjsqnX+fGDYPAjupfxNSVUWh0ZWHcqOTx9JC2QPW5uuIHdr2CRfeVzo CrtfePDBNwmmCWI6LerZWKFB0JYgDwGIOJPH78aFq+bDkQ8UMrmNO3vzDtcl43Jex/yD 0ngA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1686339140; x=1688931140; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=e+7TJ2Bz4PP84jI71k9rtSrZBuTihEfvjYh1C5ap+bM=; b=KIp7qk/wbBrLnDVs3goanvEhJPVyqUnHpuKwSZ0aDCS3mySGpWi/jxFUmv/x5S+hUM r3ag558W0OKyGegypWH8NMFUluo7+3lCPdwPF773wYgj0+cZvcMNptCgLtm2OKj7YLZr amR3rlhaAJTQVaT6PfqzOrn3+quaHCC6SIjL+qVOgoE12Uz1ewF50coXoVKd8jaqxQar Am/bjOBAe1L69iMuC0NIYYCus4xx8JaldLcuovU0zkjAJn6Yw6wYusMqRl41AJ/bjU9o lBlYavrpV8KVfr02k8hfXDfjT2W7Bais4y2As6r+2WjODjPkpTlbUjxm1ixznNVD6S7f uDGQ== X-Gm-Message-State: AC+VfDxsC+yyjT2McI9/HG1qZ3Aq2x42w/U5T9CMowWKR7OPccmjNjm0 DLug4UZKBkF6nfXVzL4/HX0S5w== X-Received: by 2002:aa7:d14c:0:b0:514:666b:1e04 with SMTP id r12-20020aa7d14c000000b00514666b1e04mr1775182edo.35.1686339140518; Fri, 09 Jun 2023 12:32:20 -0700 (PDT) Received: from [192.168.1.20] ([178.197.219.26]) by smtp.gmail.com with ESMTPSA id p4-20020aa7d304000000b005169ffc81absm2089208edq.51.2023.06.09.12.32.18 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 09 Jun 2023 12:32:20 -0700 (PDT) Message-ID: <4c37d4cd-cb8f-8c73-e09b-37e32cd79c30@linaro.org> Date: Fri, 9 Jun 2023 21:32:18 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.11.2 Subject: Re: [RESEND PATCH v3 2/2] NFC: nxp-nci: Add pad supply voltage pvdd-supply Content-Language: en-US To: Raymond Hackley , linux-kernel@vger.kernel.org Cc: "David S . Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Rob Herring , Liam Girdwood , Mark Brown , Michael Walle , =?UTF-8?Q?Uwe_Kleine-K=c3=b6nig?= , Jeremy Kerr , netdev@vger.kernel.org, devicetree@vger.kernel.org References: <20230609183639.85221-1-raymondhackley@protonmail.com> <20230609183639.85221-3-raymondhackley@protonmail.com> From: Krzysztof Kozlowski In-Reply-To: <20230609183639.85221-3-raymondhackley@protonmail.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 09/06/2023 20:37, Raymond Hackley wrote: > PN547/553, QN310/330 chips on some devices require a pad supply voltage > (PVDD). Otherwise, the NFC won't power up. > > Implement support for pad supply voltage pvdd-supply that is enabled by > the nxp-nci driver so that the regulator gets enabled when needed. > > Signed-off-by: Raymond Hackley > --- > drivers/nfc/nxp-nci/i2c.c | 34 ++++++++++++++++++++++++++++++++++ > 1 file changed, 34 insertions(+) > > diff --git a/drivers/nfc/nxp-nci/i2c.c b/drivers/nfc/nxp-nci/i2c.c > index d4c299be7949..6f01152d2c83 100644 > --- a/drivers/nfc/nxp-nci/i2c.c > +++ b/drivers/nfc/nxp-nci/i2c.c > @@ -35,6 +35,7 @@ struct nxp_nci_i2c_phy { > > struct gpio_desc *gpiod_en; > struct gpio_desc *gpiod_fw; > + struct regulator *pvdd; > > int hard_fault; /* > * < 0 if hardware error occurred (e.g. i2c err) > @@ -263,6 +264,20 @@ static const struct acpi_gpio_mapping acpi_nxp_nci_gpios[] = { > { } > }; > > +static void nxp_nci_i2c_poweroff(void *data) > +{ > + struct nxp_nci_i2c_phy *phy = data; > + struct device *dev = &phy->i2c_dev->dev; > + struct regulator *pvdd = phy->pvdd; > + int r; > + > + if (!IS_ERR(pvdd) && regulator_is_enabled(pvdd)) { > + r = regulator_disable(pvdd); > + if (r < 0) > + dev_warn(dev, "Failed to disable regulator pvdd: %d\n", r); Why resending? This should be explained. It's like third or fourth patchset today. You need to slow down. Unresolved comments from v2, so I still don't agree with this. I don't like that I have to write the same three times because you sent three patchsets... Best regards, Krzysztof