From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 853F4628 for ; Thu, 8 Jun 2023 04:36:22 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5A0E3C433D2; Thu, 8 Jun 2023 04:36:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1686198981; bh=L/74qyYmuC5m/lS+AJK+0bRD2NenVahTw3pHvJavynU=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=CjZ2FR/NVSEAmxfxC6it73ZkPHCC0KNq7ODRXgfwkeQnYARfnvcFfnZDHEz4j7iKQ N43RK9KGXoYn1ZYCQL4T3jAQS1hUZKZ1+cJEjI1BO2QjXGtR5L2nQQAa3faFE7WHyp q6Z+wKRF0odV0nvZzqvl+OkJyHMLTmPblr6uZzBL3+XCEtfn7ara+V3ld95F2Ftyjy 3nzVsFs72rddqA5Rsn4YQkyUzgSH69OcWbv+Z5mHBaZaildab4JBAZKr4C1JzTJK6F G5pPo+j7me2d+h7ODJEwq5pR6eY7hUb9ZI51KZYTyVL7EhXUsb3fZFE4GpJtWVALGJ 8CzPRrjsZTeTw== Date: Wed, 7 Jun 2023 21:36:20 -0700 From: Jakub Kicinski To: Raymond Hackley Cc: linux-kernel@vger.kernel.org, Krzysztof Kozlowski , "David S . Miller" , Eric Dumazet , Paolo Abeni , Rob Herring , Liam Girdwood , Mark Brown , Michael Walle , Uwe =?UTF-8?B?S2xlaW5lLUvDtm5pZw==?= , Jeremy Kerr , netdev@vger.kernel.org, devicetree@vger.kernel.org Subject: Re: [PATCH 2/2] NFC: nxp-nci: Add pad supply voltage pvdd-supply Message-ID: <20230607213620.4087b0e2@kernel.org> In-Reply-To: <20230606072454.145106-1-raymondhackley@protonmail.com> References: <20230606071824.144990-1-raymondhackley@protonmail.com> <20230606072454.145106-1-raymondhackley@protonmail.com> Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit On Tue, 06 Jun 2023 07:25:55 +0000 Raymond Hackley wrote: > + if (r != -EPROBE_DEFER) > + dev_err(dev, > + "Failed to get regulator pvdd: %d\n", > + r); > + return r; dev_err_probe() ? > + r = devm_add_action_or_reset(dev, nxp_nci_i2c_poweroff, phy); > + if (r < 0) { > + nfc_err(dev, "Failed to install poweroff handler: %d\n", > + r); > + nxp_nci_i2c_poweroff(phy); The _or_reset() stands for "we'll call the action for you if we can't add it". Don't call poweroff again. -- pw-bot: cr