Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp6026108rwp; Mon, 17 Jul 2023 13:33:44 -0700 (PDT) X-Google-Smtp-Source: APBJJlH4E+K8i7yl7RoXT67tNG+9aDcT9amSmxO8JhQLqfvQEZC+T9cfuG7JyLTznZZn1J1jq6E+ X-Received: by 2002:a17:907:7671:b0:992:be80:ab01 with SMTP id kk17-20020a170907767100b00992be80ab01mr346452ejc.58.1689626024131; Mon, 17 Jul 2023 13:33:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689626024; cv=none; d=google.com; s=arc-20160816; b=kI1/YkI+6rRpmIBnWUo4lo0E/KKYWpRVlZz6mwuNJjNTvSV7dHTH8gZPbvqfl1ETgX gf2CZk1Q5XHiWDXk8Ppt1SzhLgT4vmdUEFjxDhLv+SyP7mwbGQUkK6mQI81y2ONn5D7q Fnbt/fhwhqcXBPxnZomgea12tFLCcwvr2MYony1v6XpVHgzSsBhmSn1mc5oPTgT8HlqN Y+GrPiSDUcxCPr5UDVOA17LTvxT8ksZhWxJsUGj1tYAY3M3q18eU38tROf48VsFpVEiJ KkVul8T7SpY5HOeNJFjBtKAtk0CrPGzOVSY/pWGBdGU/Oon2U+nbUzTVi4MbXFvGE/BH m3zA== 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=YLbtiM3Mg2ozARpSTeCbg9ZzYZDLdqZM0J85vmoD7SM=; fh=7/kV83Ara2+7txn8ysFhXjAxbo5VMetMPtvKbZcaYQs=; b=Cxdo6lf+NVujAds1KaFNEffCYV2abU2ylBvAIh/fuUmqZ2fA9k/7MNGwc57Kc3bzGj /tB+oXgtDk+nN6BWN89zmZl9iA+16+IkAJq99iHFIiVRp2jXkXBq+yOPUFxXf+deOXDi hx6JnGYCLRvcAteAQT0n9McHn+8urIcZvktXhIXREv6jD7icaBiwyPuAIheQBqLShDnL FE1FeZz79crgl5pJjPENsk5w8gQ0UNB5EzZr0RJY5R5zoZ68ZrKf5MybwhBgQLz83H4t 6ZBicB5JOAcgh/whGcomtGbyeBmQjqCDMtpa8syZceaw8g1saV+SSHlN5fWn2nlpNbAo dhcA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@crapouillou.net header.s=mail header.b=wmzyKuhB; 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 j2-20020a17090686c200b0098d807ee793si95098ejy.1023.2023.07.17.13.33.18; Mon, 17 Jul 2023 13:33:44 -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=wmzyKuhB; 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 S231743AbjGQT5q (ORCPT + 99 others); Mon, 17 Jul 2023 15:57:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48210 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231684AbjGQT5a (ORCPT ); Mon, 17 Jul 2023 15:57:30 -0400 Received: from aposti.net (aposti.net [89.234.176.197]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5E5AF1B3; Mon, 17 Jul 2023 12:57:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=crapouillou.net; s=mail; t=1689623821; 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=YLbtiM3Mg2ozARpSTeCbg9ZzYZDLdqZM0J85vmoD7SM=; b=wmzyKuhBLBCQrGjJqR3U+7snGQXMWADygmSKRYXKPpLXpiIILjUaJXc/cQwu3akJM/sgMi G5fwAxKthEkfhTtNEYo0NUzyvKSLXQUjEHg6jPYQU5bjP9hMkUDEgzSgJcSMgcCe1h1Gsv B9WmHBgwcHLSP6I2XCpK/+VG0owAMf8= Message-ID: <7dc59ec83ceb6b7c101039570652fb9c8122d15a.camel@crapouillou.net> Subject: Re: [PATCH v2 07/10] pinctrl: mediatek: Switch to use DEFINE_NOIRQ_DEV_PM_OPS() helper From: Paul Cercueil To: Andy Shevchenko Cc: 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, 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:56:59 +0200 In-Reply-To: References: <20230717172821.62827-1-andriy.shevchenko@linux.intel.com> <20230717172821.62827-8-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 Le lundi 17 juillet 2023 =C3=A0 22:36 +0300, Andy Shevchenko a =C3=A9crit= =C2=A0: > On Mon, Jul 17, 2023 at 10:07=E2=80=AFPM Paul Cercueil > wrote: > > Le lundi 17 juillet 2023 =C3=A0 20:28 +0300, Andy Shevchenko a =C3=A9cr= it : >=20 > ... >=20 > > > +DEFINE_NOIRQ_DEV_PM_OPS(mtk_paris_pinctrl_pm_ops, > > > mtk_paris_suspend, > > > mtk_paris_resume); > >=20 > > It's a bit more work, but I think you should use > > EXPORT_GPL_DEV_PM_OPS > > (or even better, EXPORT_NS_GPL_DEV_PM_OPS) so that the dev_pm_ops > > is > > conditionally exported. All callers would have to be updated to use > > pm_ptr(). >=20 > Why pm_ptr()? What did I miss? > The rest is OK. >=20 Or pm_sleep_ptr(). As I said in my answer to the other patch, EXPORT_*_DEV_PM_OPS() currently only exports on CONFIG_PM, so it doesn't really matter which one you use. Cheers, -Paul