Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp6010489rwp; Mon, 17 Jul 2023 13:14:55 -0700 (PDT) X-Google-Smtp-Source: APBJJlFXsZt3URjfhI3JdMl1KB/90xE2OMHu5YJV71kTYftl7PvATPR5bbiBaE8KA7o8IENlBlmG X-Received: by 2002:a17:90a:bb16:b0:25b:fbdc:434e with SMTP id u22-20020a17090abb1600b0025bfbdc434emr130979pjr.32.1689624895133; Mon, 17 Jul 2023 13:14:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689624895; cv=none; d=google.com; s=arc-20160816; b=X755bFQEvVGLLyBlrywd3LZ/EpjJekg4tsYte7v9C8R+dtz+wqskRNcUxknEUmE6+V hRpNA41yVCSjVpqV+d6LXlOoPdpLNqsUdkMIa88nUeBYLuSIXALwGgDqQdeTTNFgyw6f Qxa+Hc8SYUo0kQH7qeHyhzsa/8miGMjAs1rIeg9zDXmb8AduLc/WrSmjqzrvtFXHYH5E +pZxAvVSTrddBGwo7yPTTug5hwoPvECub0wNsJ+9Yc79jrUt5KzT/5+KdpEbIe4pygRn eozVVNYDRY45YBF6n1jX2v0xNu0EgAOOps4QYYZ58fdXjzhtc5/Mef5wqjv1DTOKxdMs UmSg== 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=bJG8CKg5RsX9ZJHlhcpEkkjn9nE0Nq+cmtnZoKDZkDU=; fh=7/kV83Ara2+7txn8ysFhXjAxbo5VMetMPtvKbZcaYQs=; b=pI8q7gLCfkHGCgmuVSkhZgbXh8nRr/j0+7FMaCRyx/URpprMxN+1WSMumkaKLwfKws AD40395va5bY4jzH2LSSAAZZ9SglJB2WWYAF/exLH5OLJVs2Iil9hJvaAuWWk3ZgFbry UqHCvYpIpog2YtwkSMkMUJsAd8i0SVKACfeYS0MczWFNgf+AmTrvlA/d+jKqYw3mVZ91 imipKlrdk4f1NLXonHVcB+YtOV8Ut6Pq0w1ybOsSEI5HuEHlb6wSS7tXKmpoEYX2zpZC 65n5YlPBy/YxPVpkq3zkaf8zx5lKWy1QplgoP/qYa9UY1+NfnCw62HeVfj9aVRdag7ls Gogg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@crapouillou.net header.s=mail header.b=FBGREnId; 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 s23-20020a17090aad9700b00263f59430fasi398167pjq.95.2023.07.17.13.14.42; Mon, 17 Jul 2023 13:14:55 -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=FBGREnId; 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 S231713AbjGQT6J (ORCPT + 99 others); Mon, 17 Jul 2023 15:58:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48412 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231881AbjGQT6D (ORCPT ); Mon, 17 Jul 2023 15:58:03 -0400 Received: from aposti.net (aposti.net [89.234.176.197]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6F0111FD8; Mon, 17 Jul 2023 12:57:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=crapouillou.net; s=mail; t=1689623855; 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=bJG8CKg5RsX9ZJHlhcpEkkjn9nE0Nq+cmtnZoKDZkDU=; b=FBGREnIdCWQho1a6phhQNfoJXlzN7h2e4HUCIz3VoIJ5kf25agL+cnSxm0BC3JI07TuUyu kTCb0WDz6ha1JrdvqbU5OV6cx0Qesx9W78p8Jmyu+tQNwZESkqF327E+C2zTAlmbbI6nvX TwzMQtIgrr/nWUa1lGlu9+FhjJykyQ4= Message-ID: <5e24b9afd2677454b21a93de872582788a327935.camel@crapouillou.net> Subject: Re: [PATCH v2 09/10] pinctrl: renesas: 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:57:32 +0200 In-Reply-To: References: <20230717172821.62827-1-andriy.shevchenko@linux.intel.com> <20230717172821.62827-10-andriy.shevchenko@linux.intel.com> <03592cf5d6854dd5e534e0416de946fd38e4380c.camel@crapouillou.net> 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:38 +0300, Andy Shevchenko a =C3=A9crit= =C2=A0: > On Mon, Jul 17, 2023 at 10:12=E2=80=AFPM Paul Cercueil > wrote: > > Le lundi 17 juillet 2023 =C3=A0 20:28 +0300, Andy Shevchenko a =C3=A9cr= it : >=20 > ... >=20 > > I think you could do: > >=20 > > .pm =3D IF_PTR(IS_ENABLED(CONFIG_ARM_PSCI_FW), > > pm_sleep_ptr(&sh_pfc_pm)), > >=20 > > Then you wouldn't need the #if defined(CONFIG_ARM_PSCI_FW) guard > > either > > (as long as the code still compiles fine when that config option is > > disabled), and you wouldn't need those dummy callbacks. >=20 > Thanks for the hint, but it's ugly looking code. > If we go this direction, we would need local arm_psci_fw_ptr() macro > or so. >=20 Sure, a small macro works too. -Paul