Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp6015124rwp; Mon, 17 Jul 2023 13:19:57 -0700 (PDT) X-Google-Smtp-Source: APBJJlHtQYmqB5Wk5B80KmyBvxdLJWmH7n6aMAB0uhBFPjwxrn+HyECf8uTQsKqPgMQNYlX6i+w3 X-Received: by 2002:a17:907:3a86:b0:992:4250:545b with SMTP id fh6-20020a1709073a8600b009924250545bmr9877174ejc.47.1689625196780; Mon, 17 Jul 2023 13:19:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689625196; cv=none; d=google.com; s=arc-20160816; b=WTJC5EoiclYSza8kX+nidnVfLEgS9bklqRUtQUg/mkZrlwY0O2p8G3OkTubknutBKA D/YgAtb9hBd87FjnByaJupRk2UsI4YCkjIhtq8nDo4EI8joX18ePNajvraA3yB23Sw6E qlGJgkPR0E9ChNOMbRZpgrCJxVRzvtCBpyJEczabV2ZcDQVovZU1RXJLlKlFKyl9O/hu gNGzlnrpCboEI8/n9dQ6rlgPINaY0zoIgK2sgqWvXW9YbYTv2seu6wpLeBB365i+75tK 1DUMmxUQCk7JJcHfaQHwY45qpZZyIjRBMmsa+7ZA5W27FpN4ZyLZZqoxZCVjqrCzoM27 65UA== 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=7I8tWuOCSAKoVEcr3ABsrBviosGy8IVjZCqtWlU4uYU=; fh=L9EiziJgSO5pr/FZ/c0Y8ag3gsUqVyxA5siqfsOkXYw=; b=rjxlFpiwJ7eMqx8xthqrgMPL1rsiIbFVSrycFDF6D9DdUU9rgdQb4y3MUhH3yCmcSL UdOWzv9EyV+WyF/xSv6bOmQ0CBqZAtXdg84Wx0/8mJzfBVQpW4Po0ECUb9A/30q4Ch6g 7IjJX+xu5j/enfcQuNjNogQX7apdya5qaIuwX1zMDl56PpeNcXIZImFbkDeavj51f9Ka tFnScvIK+oE1NgtjWnxUO1ah6nxSAuTu69t/JzeNpV8eEaoOtVGE239RGIZH34527qjf zcOUbiLmacmWolMJzWDUS/5Y+YpjuoovyJx5LsCJK0HZTSs4yvmRB2k3bHzGOn0L5zSb +vXQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b="Xn8/9u6u"; 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 lh17-20020a170906f8d100b0099301d21540si99577ejb.859.2023.07.17.13.19.31; Mon, 17 Jul 2023 13:19:56 -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="Xn8/9u6u"; 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 S230296AbjGQThO (ORCPT + 99 others); Mon, 17 Jul 2023 15:37:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37884 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229863AbjGQThN (ORCPT ); Mon, 17 Jul 2023 15:37:13 -0400 Received: from mail-ej1-x62a.google.com (mail-ej1-x62a.google.com [IPv6:2a00:1450:4864:20::62a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0F83A9D; Mon, 17 Jul 2023 12:37:12 -0700 (PDT) Received: by mail-ej1-x62a.google.com with SMTP id a640c23a62f3a-991c786369cso641204066b.1; Mon, 17 Jul 2023 12:37:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1689622630; x=1692214630; 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=7I8tWuOCSAKoVEcr3ABsrBviosGy8IVjZCqtWlU4uYU=; b=Xn8/9u6umMxdhgyMQrkVzTfwZbVc3CSoo01rUE0MOFuZoIqDsjCe35rMOqsc7u/U8d NgZ/n//yzSKJwZYlQauLDrzecOJpB+a2wLgqD7B5FU1EKRQhzucEFmSjIs4nAHGqREW0 h4VYQ/1Mtq86XhqjxCqWBQrdZoeE5Gm7kVnZ48vJViIi6zgBhcxXbika88j9GZjxVDiP x9zH4ECmS8gWniDjEp2Xyomj9lyBEQ6q1xY/m8CzhsMrmzmMTgZMDg2jWnO1udo1/blr KQHhAFB8ZoCE9oS0c4M7xQaZLYfHNhCH9ulj2RCcRz5KJQV3TP0EKRRMUfw0uw0OZJKG dlFA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1689622630; x=1692214630; 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=7I8tWuOCSAKoVEcr3ABsrBviosGy8IVjZCqtWlU4uYU=; b=Z8c05kUYBshFXjp8Ry35X9vRH53rYJweNb6TFmbYjVPeMBC0O9wAuDArxVLAAUSHMn cR8vUmR9MJE9gvTVMbDkBsvRGzgBnes4fhbAaAJK8MZDEl5isHAI+oQ9Kjw/1ibvRhCY XLThz+hcNJaTRa2W/Hln+e/MGMU4+U5Sp6L6KzuYCA8I4oeOA/1U/Pf7tBRnBChRXL5o IsGsse4jVYgvGnz7xDjDEm8WfOJQkZvIhBSp6T0225/xNMDUWulXrzLDpSFna/qNdj41 HL3RDDanlBKPBjTMgZmevHSP9ZaYeSSw4H3Jpraw+HRS97/bGblOmikpys80w/78qOzL 5rHA== X-Gm-Message-State: ABy/qLZTmho+/67lopHdgWFb5CkwjZsocXMDsH6SkpdeGNI2Zdx48cvA OS4HklrtydoOmvnqN80vluLd6A5CeVkswXDA0vM= X-Received: by 2002:a17:907:3c1e:b0:993:d6e8:2381 with SMTP id gh30-20020a1709073c1e00b00993d6e82381mr10091030ejc.23.1689622630101; Mon, 17 Jul 2023 12:37:10 -0700 (PDT) MIME-Version: 1.0 References: <20230717172821.62827-1-andriy.shevchenko@linux.intel.com> <20230717172821.62827-8-andriy.shevchenko@linux.intel.com> In-Reply-To: From: Andy Shevchenko Date: Mon, 17 Jul 2023 22:36:33 +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_BLOCKED,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:07=E2=80=AFPM Paul Cercueil wrote: > Le lundi 17 juillet 2023 =C3=A0 20:28 +0300, Andy Shevchenko a =C3=A9crit= : ... > > +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. --=20 With Best Regards, Andy Shevchenko