Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp167622rwd; Wed, 7 Jun 2023 21:45:39 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4LfDxeGIJYx2irGMo8dJWbKbV1XDxkN77CVRn26xSMEcK4OctG2CQAMoqoTM3NP0khBc7o X-Received: by 2002:a05:6a00:348d:b0:663:50bb:feaa with SMTP id cp13-20020a056a00348d00b0066350bbfeaamr598309pfb.13.1686199539157; Wed, 07 Jun 2023 21:45:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686199539; cv=none; d=google.com; s=arc-20160816; b=ohZ9sfDX0GfU4KsrJODdNbOnHXya6djenqCwsuQ/ikOoIqPWLzWt8peMuJE413aB7/ wbBBEwvDVIXuh1cOJGPaVBBQeWIA2Z8A0hV8hczAxoGkTjnZh4HShlCPMytSnwuy5u4M i2XaHp4cqDM62QGgVSzWkR6e+AarkyXsyjYMuAEipdhnUuHVTtVkhllxG9l3s/igl21l QW7ziuHq99HeY89Y/jEs2ugrkGGkD/GGgT8OVD7BcaWGUmb9IEvWz23rAqdwMKyAOUxU qUcBUdPkWXgeVD6EN9tDShj76ynZNUeiFeVqIjzstcjA05MCbRG9kSlyIt0IlIkfvLha DYTg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=hMBMU4wMLLGLOGu0IymcWvll+7sMY3cuG3cNHhOc87Q=; b=WeKGRuIyPLx0KyP3Pa4tOlet+gHThWvwhlu6XKsqgUdcTmkAU/93ydCM1R1uS29t0W 98UglOKmgz3Uhy2Kzyi7mQcTInMh/ODFWQCvmYHN0Zew8c9K6wA5onI6l+roXt3oLFA3 +28/55nwmbgtZ/YEZFBDadEbspAzniavLvFhtUF+XI6trEfEPBnUEYGE3gvIX9dgbLdC FH5w3hG7oGPBgQMGgoJf9nR8whWM4NPBeI8x2Ka5an+mLjudgAQKfGO3aBXJtF+bCjtn 8+uAOXGxB35G08PlywZ/gujjn2M2zImfpduXtr+Z49uuhkITwfWi95foBI/5tz4yDsL/ Y2Rw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="CjZ2FR/N"; 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=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id h17-20020aa796d1000000b0064f46404b78si240889pfq.130.2023.06.07.21.45.24; Wed, 07 Jun 2023 21:45:39 -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=@kernel.org header.s=k20201202 header.b="CjZ2FR/N"; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233876AbjFHEg0 (ORCPT + 99 others); Thu, 8 Jun 2023 00:36:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50872 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232528AbjFHEgX (ORCPT ); Thu, 8 Jun 2023 00:36:23 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 166B91988; Wed, 7 Jun 2023 21:36:23 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 951326478D; 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> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham 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 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