Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp6812353rwp; Tue, 18 Jul 2023 06:18:38 -0700 (PDT) X-Google-Smtp-Source: APBJJlGokYYtTYQJmkygItXV8b089Yrx4MHamnjsVgiMj16OketGbYw9bAYe3bkPMNr+DcJip4R3 X-Received: by 2002:a2e:91d8:0:b0:2b9:561e:a753 with SMTP id u24-20020a2e91d8000000b002b9561ea753mr888270ljg.24.1689686318332; Tue, 18 Jul 2023 06:18:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689686318; cv=none; d=google.com; s=arc-20160816; b=NeN1D4635WCXvcVRAZPAL/BvNtP0TVJKs+EQ9uhkXX7tH+siTo2ntm1eNyRpRQor2n Wih6bI2DggiMrBi6LqGfI260ZGxqgLfV2zb0g9Pum+wQCBSxiugPp7T3FUplp/QoizLN VyeVOgcp8c4QtfiAxUwMm/tibCn4GfOTqcw5ced9UvW2kJNqnRrr0+GAOVhYzZyxPIWZ awEBLLLv3W5oJS3hZQROeRp6WVL9/lOxf/ixEixmZffcOKqb9+NiVLRhP/KVXGYyIk6j FtDC6ec59Jah1SY/QCfCGNwd7PtNxz9TI+yJdDJ5Zt+cDlwyhaLJGYfnG7uzDb2oZSYD 8VBg== 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=rjafSjwhPYU7xqZqTIKooSTK5vgwuXrvEkZkgBS1tpQ=; fh=b9d2DVk/os5RrDH+SKOJnn1Jzj0tkDYL0Yn5KBtnk2c=; b=NQC5K/n4LlEEyreOITSjUdsOJ7v2edShjkK6xS+xmaJ8f/lvw/B3rpvSzWGzjUUBTD RCuDCrGREzLklKMtLhkMSadcdNCacR/9Cnchp3dASOql6J68iDAqynYTD2F4be+fXpPn IKPcw0+QCSQHJVHjYXabm7Fqlq8aXAFLZw5t6ffuNnH7BwaMrOaHmro3K20Hxl8c5OL4 BtUiJV3ek/Pg1KKUE6v1K8nwSJScH0/Ku4XjgsR7wcc9q9/m1hp1o8OD4ewR5Em7/T4x TPt34wb1mhXsprF9h6BnIiQNy2flMXU3VL95MBdb/zINrEiaCzPs5Kc2nvOu6tnR1DEF AStA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=svWBMpAz; 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 n7-20020a170906724700b00992ee6da875si1113808ejk.218.2023.07.18.06.18.13; Tue, 18 Jul 2023 06:18:38 -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=svWBMpAz; 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 S231365AbjGRMoT (ORCPT + 99 others); Tue, 18 Jul 2023 08:44:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58268 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231268AbjGRMoR (ORCPT ); Tue, 18 Jul 2023 08:44:17 -0400 Received: from mail-ej1-x635.google.com (mail-ej1-x635.google.com [IPv6:2a00:1450:4864:20::635]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A1CE8170E; Tue, 18 Jul 2023 05:44:13 -0700 (PDT) Received: by mail-ej1-x635.google.com with SMTP id a640c23a62f3a-9936b3d0286so801042066b.0; Tue, 18 Jul 2023 05:44:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1689684252; x=1692276252; 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=rjafSjwhPYU7xqZqTIKooSTK5vgwuXrvEkZkgBS1tpQ=; b=svWBMpAzUIcAKZFhbHmS1VForkB52Iwtil3hYos/NhMBLkdcnjFkQYfMA27oQkeQ0c J8gz0UU9uTFqvcyqYgZItHaSIGB9kZpwgzHISgERQJAXsUOB2kdPZJk2GEOJ7TvDhA91 oltJy+6JfEkrHkOzlR2nmE22d1ttxlNPAs+b7TUOyNW9gwl4anIMdjZab5YvdHSMHCAB rHEv6KI1D7LUHjErwNrACg0CbZeFJmTBkY6pdFswB7i1RrOuBU80ZlNb31wgTtpX+T8C 602eYVK4LPPZ+vyCtu0zQWz6sM4CVSq9dFS9vQjUaWIQYCzVmQUPT4HexvKIFyGUEqrM 3Prg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1689684252; x=1692276252; 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=rjafSjwhPYU7xqZqTIKooSTK5vgwuXrvEkZkgBS1tpQ=; b=g8dbbgtcUNI+9LXkfG2uyzjho9Omtf9UaMj+nL0/zvTOG6i6tsa+HvgdDnzPIWqKWI THk0FqlygpI5RUoUf9R+209HKqhzFO8yGAiQeBm4qfaUvBK3vIOYjl9KUgSyJ/u7zjpQ rSZsgDgNmK19Gzd6aWJl790DZOlPZk+MIhQNtfvcxhTB5qq9NtWejt8eARrVRIJsFmwh BfMIyVROPPJXBtmW3wFHz9L4TIVuVnxIc4SqA88fwFT4w+J8ppVfqVB8cemZavbvCVNt HIxWVOzGhVcbWLcqy/xAr+9mx2Le2etxPlobq7ch7SFk5IJJjMeYWhpG2JgZvzolF/Xs u5HA== X-Gm-Message-State: ABy/qLbwCkk3sYe7K8DTkbDDg5CsLUdNEC0LZiom8QlevOxCVemRAMlJ XgtKBhnrwXPCzfQEpG8UTjbmrJHfKThYMg29fEA= X-Received: by 2002:a17:906:1054:b0:994:569b:61b4 with SMTP id j20-20020a170906105400b00994569b61b4mr9894424ejj.28.1689684251957; Tue, 18 Jul 2023 05:44:11 -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: From: Andy Shevchenko Date: Tue, 18 Jul 2023 15:43:35 +0300 Message-ID: Subject: Re: [PATCH v2 09/10] pinctrl: renesas: Switch to use DEFINE_NOIRQ_DEV_PM_OPS() helper To: Geert Uytterhoeven Cc: Paul Cercueil , 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 Tue, Jul 18, 2023 at 1:12=E2=80=AFPM Geert Uytterhoeven wrote: > On Mon, Jul 17, 2023 at 9:12=E2=80=AFPM Paul Cercueil wrote: > > Le lundi 17 juillet 2023 =C3=A0 20:28 +0300, Andy Shevchenko a =C3=A9cr= it : ... > > 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. > > Unfortunately not, as the code refers to psci_ops.cpu_suspend. > > You could create a small wrapper for that, though. I think it's already too many wrappers mentioned and since you reviewed and acknowledged the change (thanks!) I will stick with my initial version. --=20 With Best Regards, Andy Shevchenko