Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp6817959rwp; Tue, 18 Jul 2023 06:22:47 -0700 (PDT) X-Google-Smtp-Source: APBJJlF+//ITW48Oz5t1a3IMzDE3C17yGKaYbOTkjeDdr5a76JvfNcbsmMt8CrgbVjG8ZmECVBPl X-Received: by 2002:a17:906:253:b0:993:eb4b:ed51 with SMTP id 19-20020a170906025300b00993eb4bed51mr2164314ejl.27.1689686567446; Tue, 18 Jul 2023 06:22:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689686567; cv=none; d=google.com; s=arc-20160816; b=M7dehxDIVZDJwWDNcMeAWwDRnjW3qAlerGHlGCvcXzJl15ecZNUjgCqnw1dyNYYfbm ub11IJVY3fAvG3j8mhLrEymykRDrIthm7yGw0SViHFIjdmtxBqcS0uiJ1sDNDxIXmTzZ o2Tkt9OHzlcLbji+uoOc45F6XuLkE0/VteUoZ67N7hb+S1/1cf6EhyRyAL1HFHG/veZ0 PC+nAHOj/U1xZgFzNKEiC4d1kEtyH4aZ76cDIX7TYIyABuBMmIvJw04+QdFuUBJTrnyK wes6LESOXAdOc53mY/PUslggKZ+wyoc1o/3Zvh8q8+oHMrFsY8hOhLYP+oFrE7lRJKne QpVw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=wxhlaudfrVWECFV1Jg1vpXKt16R6kpyS29S9patDTO4=; fh=L9EiziJgSO5pr/FZ/c0Y8ag3gsUqVyxA5siqfsOkXYw=; b=jZ+Si4fn73fiiCwDJq8TS+cYbExKtWOr+pM0aQWCp904PtpVIcNn080kfoE6FBRcw2 eSGfYAjBx0+HtpRH4v499INvsxgHYsLcGXGlBJ5DONm6QGSYMm3/w1Y3CJiGVyhJ5ylG SenBfdqChjKiyt5ewT1sR3raMsmlq2q6daXoqfkcmYr/2zRYQYgs9ZZQKu8XXs94j2+F Ab6f2bEWUBv7wLwB4J7YLkXxasaAqtqXWI4bQnTB8EdjD88K7LKG4XZWrk4dIHGEh7yg QXW1HcT9sgw+X+w5148xoo8GJAPBhCim+ffqtlqYfb0vKxTpMb1ZjzqNG1Y+56Bn3dDW dYUQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b="fVSpB/MP"; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id t27-20020a1709063e5b00b00992acfe04b8si1193006eji.150.2023.07.18.06.22.23; Tue, 18 Jul 2023 06:22:47 -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=@gmail.com header.s=20221208 header.b="fVSpB/MP"; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231441AbjGRMso (ORCPT + 99 others); Tue, 18 Jul 2023 08:48:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:32942 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231435AbjGRMsm (ORCPT ); Tue, 18 Jul 2023 08:48:42 -0400 Received: from mail-ed1-x534.google.com (mail-ed1-x534.google.com [IPv6:2a00:1450:4864:20::534]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7905E1701; Tue, 18 Jul 2023 05:48:38 -0700 (PDT) Received: by mail-ed1-x534.google.com with SMTP id 4fb4d7f45d1cf-52176fdad9dso5353305a12.0; Tue, 18 Jul 2023 05:48:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1689684517; x=1692276517; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=wxhlaudfrVWECFV1Jg1vpXKt16R6kpyS29S9patDTO4=; b=fVSpB/MPdEPpD5mWKQe0IChxg2s3WZfPkNpBCHhqpZjj648drB+NvNhNdLf85e3P+t 0s63bmVRtfumS6L0d/MRmrwu86sA2uLxAKLyz9QRrK5/s49KBSJWYnmLYhpCXbqBCZvk RrP4iHQjDESXl09EiBVtu0DemVK/sav+ATktJDcFoPczdqpBsmXHqkwZGwlxhnFDTXSH bF/cPlbGrlKDRBayoydjMjGSuheaUtq9JXeABTLysP33Gm3Lvjc5E47bBTCAZ4AF9xgV IlAjyPE2P37RsWLGpAqO92h+UeQcyhh4GVGl0aAMp7GeO05y+zo1ltv4mE6txeUEiIhI CXAQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1689684517; x=1692276517; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=wxhlaudfrVWECFV1Jg1vpXKt16R6kpyS29S9patDTO4=; b=Fr/x4wxBMVbvOe5dh7/EOrGSOHxSSVbNbynk8juMhgd4tUg219HLjUBHJ2ZYcp9QK/ dCXlGAAkIN0R/IU19Q0xloN8B3TCex9ZBB0eHTD8D991HetZ0BeB2Jo9qlyY5zTRJow4 BTEjFTSX+ZYOfU0KkuyLlnBGGYyxvXY1yu+SIuB0H09MiipqRW/Ngjkr9NUEgpyf1HDV RePALCE5SWgsJHgY5cYGNMNXX0rU+IoH7dWInlQti8WXbJqCoJvnevwsVZ/soxlG7PsQ X/hc/tzLd61RhiXlDXB7e0cqo2A+uWej1I74ZX0xsGyh/PO8bc6LM8JPv9Pk8SGfcJQN IppQ== X-Gm-Message-State: ABy/qLavzmxZZ5WxYAvqwcRqhMk1P4Fff01vKZEbwzV9A358O3VmGlmJ bYCBh3EvYSmIjIzWBk8ddg6Gs+tdEN0QHkdGbIw= X-Received: by 2002:a17:907:e92:b0:975:63f4:4b with SMTP id ho18-20020a1709070e9200b0097563f4004bmr2250208ejc.36.1689684516758; Tue, 18 Jul 2023 05:48:36 -0700 (PDT) MIME-Version: 1.0 References: <20230717172821.62827-1-andriy.shevchenko@linux.intel.com> <20230717172821.62827-8-andriy.shevchenko@linux.intel.com> <7dc59ec83ceb6b7c101039570652fb9c8122d15a.camel@crapouillou.net> In-Reply-To: <7dc59ec83ceb6b7c101039570652fb9c8122d15a.camel@crapouillou.net> From: Andy Shevchenko Date: Tue, 18 Jul 2023 15:48:00 +0300 Message-ID: Subject: Re: [PATCH v2 07/10] pinctrl: mediatek: Switch to use DEFINE_NOIRQ_DEV_PM_OPS() helper To: Paul Cercueil 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 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,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 Mon, Jul 17, 2023 at 10:57=E2=80=AFPM Paul Cercueil wrote: > Le lundi 17 juillet 2023 =C3=A0 22:36 +0300, Andy Shevchenko a =C3=A9crit= : > > 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=A9= crit : ... > > > > +DEFINE_NOIRQ_DEV_PM_OPS(mtk_paris_pinctrl_pm_ops, > > > > mtk_paris_suspend, > > > > mtk_paris_resume); > > > > > > 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(). > > > > Why pm_ptr()? What did I miss? > > The rest is OK. > > 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. Yes, I need to think about it. I don't like the inconsistency the EXPORT*PM_OPS() brings in this case. --=20 With Best Regards, Andy Shevchenko