Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp5974751rwp; Mon, 17 Jul 2023 12:34:43 -0700 (PDT) X-Google-Smtp-Source: APBJJlHX5xFeoUi0u97AR0aP0aAP2tgRs/TV02kClXLWJZLuSxlSmo+rK5E/ymJiTcTe7yULRkn4 X-Received: by 2002:a05:6a21:6da9:b0:133:38cb:2b93 with SMTP id wl41-20020a056a216da900b0013338cb2b93mr14472777pzb.9.1689622483152; Mon, 17 Jul 2023 12:34:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689622483; cv=none; d=google.com; s=arc-20160816; b=uep8RFq/wM8m4KZjSZD61ILsitHrvcZNJFTBGJ1gyKCRZirPGNRN6itNlmYmPIxj4o Z5MSiDCGKytO/NMi9eBLPgOcoWXDn36q9geDG5GOeYnXobnv7ggtxpNMP1lBevT4kqiU 8pmwHOj02cZVW0QMJLiLyDcnshQSLU/tfxCFiWHJsV9wb1IXdpTQGiGN4WMC5etneMFF WVM7Q/frbZmSuU5Uo2RoOO9p3GRB36mEfyaXttezXKhdKk/6IQIVklxKzwK9av8s4hyj Bdcaxb729JAiXOL/K/fFAV2jBvx6RX+HpaNZUje2icKKxc1pN7CFTMhW7kl1AWJXdRi/ p8ow== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :references:in-reply-to:date:cc:to:from:subject:message-id :dkim-signature; bh=WPytza0FzLurbgMNNTIgRyVfzPQAcL6r2G/Kltyw3k0=; fh=r0pW40tkm/jD9RjXabFgSoNafui7KeGC/E7yCAT/cFU=; b=a7gYYKUaxN6z4dlP6aceWvGp+gxrD4lYYg+OgcVmloobl53XgvhWTxkdVJ/9wLb4um vLnxj6PMoyD+DRhfT41Uxm5WY5/t0dY5UL7ZOlFWP8h9FzSl/HKmpFpd3xKs7zceOVHc 3LKJQU1Rf+kyyMIt3PwVFWQ/mliV1Q/ips+GNkuxs4Ug4S1GE/QODCkNwXzGgFbdo6qD cI83+kG8rT2eJVtyCMmKAALS+Cf9MBcnd8fQSIvcTq+VvhZJ4KTl6MCfXOJz+egD9Bpc jAngjxjUcjz2DOX9c0A1bW2x+FUrYSYjEUdhl4oND7pCzG4qmnjc55iETiVCXNXh8Pgc IWOQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@crapouillou.net header.s=mail header.b=WDrNej2k; 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=crapouillou.net Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ct22-20020a056a000f9600b00670db3b5032si257482pfb.333.2023.07.17.12.34.30; Mon, 17 Jul 2023 12:34:43 -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=@crapouillou.net header.s=mail header.b=WDrNej2k; 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=crapouillou.net Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230375AbjGQTOS (ORCPT + 99 others); Mon, 17 Jul 2023 15:14:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54302 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229601AbjGQTOQ (ORCPT ); Mon, 17 Jul 2023 15:14:16 -0400 Received: from aposti.net (aposti.net [89.234.176.197]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1D34F116; Mon, 17 Jul 2023 12:14:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=crapouillou.net; s=mail; t=1689621254; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=WPytza0FzLurbgMNNTIgRyVfzPQAcL6r2G/Kltyw3k0=; b=WDrNej2khKT49u/ZfzL6yobm0Zeq0Qp0TNdRO4GnsqipcI1U4g3vs8VJvik7jgqPbb+x/K wI4DNWpNCRBaUxv2JjYJputr6VXkICPXLO+fYZFLN7mHFvzTlCvE7+z96AuKoK9PuM1tOU ep6N1O1jqullaYEUkUSlrwzlhPyQY/M= Message-ID: <13f7153786cfcdc3c6185a3a674686f7fbf480dc.camel@crapouillou.net> Subject: Re: [PATCH v2 10/10] pinctrl: tegra: Switch to use DEFINE_NOIRQ_DEV_PM_OPS() helper From: Paul Cercueil To: Andy Shevchenko , Mika Westerberg , Linus Walleij , Balsam CHIHI , Claudiu Beznea , Geert Uytterhoeven , Wolfram Sang , Thierry Reding , linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mediatek@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-renesas-soc@vger.kernel.org, linux-tegra@vger.kernel.org, linux-pm@vger.kernel.org Cc: Andy Shevchenko , Sean Wang , Matthias Brugger , AngeloGioacchino Del Regno , Andrew Lunn , Gregory Clement , Sebastian Hesselbarth , Ludovic Desroches , Nicolas Ferre , Alexandre Belloni , Jonathan Hunter , "Rafael J. Wysocki" , Len Brown , Pavel Machek Date: Mon, 17 Jul 2023 21:14:12 +0200 In-Reply-To: <20230717172821.62827-11-andriy.shevchenko@linux.intel.com> References: <20230717172821.62827-1-andriy.shevchenko@linux.intel.com> <20230717172821.62827-11-andriy.shevchenko@linux.intel.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_PASS,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 Hi Andy, Le lundi 17 juillet 2023 =C3=A0 20:28 +0300, Andy Shevchenko a =C3=A9crit= =C2=A0: > Since pm.h provides a helper for system no-IRQ PM callbacks, > switch the driver to use it instead of open coded variant. >=20 > Signed-off-by: Andy Shevchenko > --- > =C2=A0drivers/pinctrl/tegra/pinctrl-tegra.c | 5 +---- > =C2=A01 file changed, 1 insertion(+), 4 deletions(-) >=20 > diff --git a/drivers/pinctrl/tegra/pinctrl-tegra.c > b/drivers/pinctrl/tegra/pinctrl-tegra.c > index 4547cf66d03b..734c71ef005b 100644 > --- a/drivers/pinctrl/tegra/pinctrl-tegra.c > +++ b/drivers/pinctrl/tegra/pinctrl-tegra.c > @@ -747,10 +747,7 @@ static int tegra_pinctrl_resume(struct device > *dev) > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0return 0; > =C2=A0} > =C2=A0 > -const struct dev_pm_ops tegra_pinctrl_pm =3D { > -=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0.suspend_noirq =3D &tegra_pinc= trl_suspend, > -=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0.resume_noirq =3D &tegra_pinct= rl_resume > -}; > +DEFINE_NOIRQ_DEV_PM_OPS(tegra_pinctrl_pm, tegra_pinctrl_suspend, > tegra_pinctrl_resume); > =C2=A0 > =C2=A0static bool tegra_pinctrl_gpio_node_has_range(struct tegra_pmx *pmx= ) > =C2=A0{ Another driver where using EXPORT_GPL_DEV_PM_OPS() would make more sense. Cheers, -Paul