mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Takashi Sakamoto <o-takashi@sakamocchi.jp>
To: Triet Hoang <triet.hoang.dev@gmail.com>
Cc: linux1394-devel@lists.sourceforge.net, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] firewire: ohci: Convert to DEFINE_SIMPLE_DEV_PM_OPS()
Date: Sat, 22 Aug 2026 08:31:27 +0900	[thread overview]
Message-ID: <20260821233127.GA243355@sakamocchi.jp> (raw)
In-Reply-To: <20260820083034.2087217-1-triet.hoang.dev@gmail.com>

Hi,

Thanks for the patch, however we are currently in the middle of merge
window, while the change is not for the urgent issue. I'll postpone
applying it until the merge window closes. This means it will go into the
post-v7.3 kernel.

On Thu, Aug 20, 2026 at 03:30:34PM +0700, Triet Hoang wrote:
> Convert the deprecated SIMPLE_DEV_PM_OPS
> to DEFINE_SIMPLE_DEV_PM_OPS and pm_sleep_ptr().
> 
> This lets us drop the __maybe_unused annotations from the suspend and
> resume callbacks, and reduces kernel size in case CONFIG_PM or
> CONFIG_PM_SLEEP is disabled.
> 
> Signed-off-by: Triet Hoang <triet.hoang.dev@gmail.com>
> ---
>  drivers/firewire/ohci.c | 8 ++++----
>  1 file changed, 4 insertions(+), 4 deletions(-)
> 
> diff --git a/drivers/firewire/ohci.c b/drivers/firewire/ohci.c
> index 46dd53ecedc7..b7df280bec51 100644
> --- a/drivers/firewire/ohci.c
> +++ b/drivers/firewire/ohci.c
> @@ -3761,7 +3761,7 @@ static void pci_remove(struct pci_dev *dev)
>  	dev_notice(&dev->dev, "removing fw-ohci device\n");
>  }
>  
> -static int __maybe_unused pci_suspend(struct device *dev)
> +static int pci_suspend(struct device *dev)
>  {
>  	struct pci_dev *pdev = to_pci_dev(dev);
>  	struct fw_ohci *ohci = pci_get_drvdata(pdev);
> @@ -3773,7 +3773,7 @@ static int __maybe_unused pci_suspend(struct device *dev)
>  }
>  
>  
> -static int __maybe_unused pci_resume(struct device *dev)
> +static int pci_resume(struct device *dev)
>  {
>  	struct pci_dev *pdev = to_pci_dev(dev);
>  	struct fw_ohci *ohci = pci_get_drvdata(pdev);
> @@ -3804,14 +3804,14 @@ static const struct pci_device_id pci_table[] = {
>  
>  MODULE_DEVICE_TABLE(pci, pci_table);
>  
> -static SIMPLE_DEV_PM_OPS(pci_pm_ops, pci_suspend, pci_resume);
> +static DEFINE_SIMPLE_DEV_PM_OPS(pci_pm_ops, pci_suspend, pci_resume);
>  
>  static struct pci_driver fw_ohci_pci_driver = {
>  	.name		= ohci_driver_name,
>  	.id_table	= pci_table,
>  	.probe		= pci_probe,
>  	.remove		= pci_remove,
> -	.driver.pm	= &pci_pm_ops,
> +	.driver.pm	= pm_sleep_ptr(&pci_pm_ops),
>  };
>  
>  static int __init fw_ohci_init(void)
> -- 
> 2.53.0


Thanks

Takashi Sakamoto

  reply	other threads:[~2026-08-21 23:31 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-08-20  8:30 Triet Hoang
2026-08-21 23:31 ` Takashi Sakamoto [this message]
2026-08-31  9:41 ` Takashi Sakamoto

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20260821233127.GA243355@sakamocchi.jp \
    --to=o-takashi@sakamocchi.jp \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux1394-devel@lists.sourceforge.net \
    --cc=triet.hoang.dev@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®