Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp6017043rwp; Mon, 17 Jul 2023 13:22:17 -0700 (PDT) X-Google-Smtp-Source: APBJJlF5kb+oM93H6Q+IDBDs0//qiqcBkkTIEL5miqcGlVlHTWz9Fn217mAT/Yw/7JZJLPHisyrH X-Received: by 2002:a17:906:9746:b0:98e:3dac:6260 with SMTP id o6-20020a170906974600b0098e3dac6260mr12158918ejy.13.1689625337136; Mon, 17 Jul 2023 13:22:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689625337; cv=none; d=google.com; s=arc-20160816; b=Vnv2G7vPUniGCChsMAmSYJpHSzkQvigl05quGfY0F0Ax5aQf65/g8644J30GXxWnAG qbxfuHOtH65AY2W0e8RlkySSwLZyoKQ77b4sjJ2sP1fMeaeTfZ7khbzLv+1Jl1Euurk9 ZjJYZd3/Bd1YYsS0PAQpDkdGRZr3qzBmCPZ2DzlCVr2etkk5CyU52LVh/ozBX1MVStk9 Tjv3F1SEvfSAgOkg9NBiWcj0IsFb9d7kJ86utAu45GRh3sLJ6k+6/OsW5xRVgFjOnocM 3utQsU8hivYs8nzMIZT/MYiUacDZgFCPyV7Mbv0gciLJ8cQ5w9y5OPrJn15zRov49C9h KZHg== 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=pzvnaxwBwwORvQbS7D5g0+aYIhp8HhzVz5H7C8pRFBw=; fh=L9EiziJgSO5pr/FZ/c0Y8ag3gsUqVyxA5siqfsOkXYw=; b=pHH2Cgm4i0APIZlIxWsXAf74I04koQZ5IVsUuQiqs7PkoMqieQVmPdWjAQkYsLE3XO 3iOLmWXUIJHLE5U44lGSPTSc/HtauNvmmWZCPzv1lNj4xtQqgJ3rhy/VCWN70Dx1UhTI hbrdJZGuIf6ir+lwDwnPGxpKbwAad9AZHxu0fE/+GOqjfoWxPadOoOaNObFM5ft2/RzI BE144K4H/1LO+6Di1aSNmgKAZJRsNhQuVNPVSnkYLmaxA3A18DXfWKnSYjIyVKHtUH1b oaZu34Iw2DEM6Hd4Z2MVAuWvYCZHGA8HWtC4v4cgmp2hk+55ouPv5O6LU8mwDAuj+XtX ucHw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=FiRiQHHw; 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 r26-20020a1709067fda00b00992bfe24e47si90202ejs.978.2023.07.17.13.21.52; Mon, 17 Jul 2023 13:22:17 -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=FiRiQHHw; 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 S231623AbjGQTjA (ORCPT + 99 others); Mon, 17 Jul 2023 15:39:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39182 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231646AbjGQTi4 (ORCPT ); Mon, 17 Jul 2023 15:38:56 -0400 Received: from mail-ej1-x62e.google.com (mail-ej1-x62e.google.com [IPv6:2a00:1450:4864:20::62e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4B71A170F; Mon, 17 Jul 2023 12:38:45 -0700 (PDT) Received: by mail-ej1-x62e.google.com with SMTP id a640c23a62f3a-9891c73e0fbso1007621866b.1; Mon, 17 Jul 2023 12:38:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1689622723; x=1692214723; 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=pzvnaxwBwwORvQbS7D5g0+aYIhp8HhzVz5H7C8pRFBw=; b=FiRiQHHwJkvt69aqh+jOHbOkpeDUm9bJCZzo/bIzNvXv33+g8pfIgIF2ZYvKOkquae /ffDOMzSAn/cmRXkDPeGd/FpoyNgYPuqE9K5CPWtlDQjOTZX3L0ghvt4T1I47WnD+ci4 33PQkxXqiUurlTLVNfjrY0BaTMm9DB+40F00udddUtlL2ohyESp4gm9yAgKrHmUyNVlU LAH38/mclJRvw7bS9aeaWHbk7IpokVI242eiBf2MSoiGouOzivPeFx5B3hbcrh61WKD0 FuqnDHgfqqGpbH3D/09tfpPwr6Sb6kFh2fjf29ddMPLPC/b3StAf1LsqPjoFysvEB/xB k12Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1689622723; x=1692214723; 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=pzvnaxwBwwORvQbS7D5g0+aYIhp8HhzVz5H7C8pRFBw=; b=b18QQAscBdu2AOsJW7LyuL9SzR/ZAtnVy+/5BO9J9gKVrcSgXsP2m6I2ry8Hc01Hi+ YKq0s2FqjzTfwxkOmpk0XPqR5y88ynv7g3ViLbKLgM2laxZGhmpTIF95H4OrSMQV+dR9 bRCg8XIyIwpkplWt1o+E0Wt5tx4nVJ51EOpQhOUdpdY7kgaB+mYj0fkxu12a9CHnc3q0 9pEEXWaug4wOJX03WBwwiyBGH7A14uHxiTOZCGA2ekYVeBu90Fwm1b78guplyFZxSP/Q WcAh4jF4n0TlJlxAwHhu9X0HH0DToGf865i+NJEp9+4kaX7DscY9If1z2zCCkYeiC1vK 26tw== X-Gm-Message-State: ABy/qLYqtzba7tvxLGTtPpQ8B3o1e2AumeJu6ZNlU0vagj1Sih8X83Z+ DZ57KVuPEfXPMksrcpMFWt151z6MTB0NyiEPuGk= X-Received: by 2002:a17:907:7f88:b0:992:103c:43fa with SMTP id qk8-20020a1709077f8800b00992103c43famr15701919ejc.30.1689622723578; Mon, 17 Jul 2023 12:38:43 -0700 (PDT) MIME-Version: 1.0 References: <20230717172821.62827-1-andriy.shevchenko@linux.intel.com> <20230717172821.62827-10-andriy.shevchenko@linux.intel.com> <03592cf5d6854dd5e534e0416de946fd38e4380c.camel@crapouillou.net> In-Reply-To: <03592cf5d6854dd5e534e0416de946fd38e4380c.camel@crapouillou.net> From: Andy Shevchenko Date: Mon, 17 Jul 2023 22:38:07 +0300 Message-ID: Subject: Re: [PATCH v2 09/10] pinctrl: renesas: 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:12=E2=80=AFPM Paul Cercueil wrote: > Le lundi 17 juillet 2023 =C3=A0 20:28 +0300, Andy Shevchenko a =C3=A9crit= : ... > I think you could do: > > .pm =3D IF_PTR(IS_ENABLED(CONFIG_ARM_PSCI_FW), pm_sleep_ptr(&sh_pfc_pm)), > > 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. 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 With Best Regards, Andy Shevchenko