[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <87y0m7ss8r.ffs@tglx>
Date: Thu, 08 Jan 2026 22:35:00 +0100
From: Thomas Gleixner <tglx@...nel.org>
To: "Rafael J. Wysocki" <rafael@...nel.org>, Linux PM
<linux-pm@...r.kernel.org>
Cc: LKML <linux-kernel@...r.kernel.org>, Ulf Hansson
<ulf.hansson@...aro.org>, Brian Norris <briannorris@...omium.org>
Subject: Re: [PATCH v1 01/23] genirq/chip: Change irq_chip_pm_put() return
type to void
On Mon, Dec 22 2025 at 20:50, Rafael J. Wysocki wrote:
> From: Rafael J. Wysocki <rafael.j.wysocki@...el.com>
>
> The irq_chip_pm_put() return value is only used in __irq_do_set_handler()
> to trigger a WARN_ON() if it is negative, but doing so is not useful
> because irq_chip_pm_put() simply passes the pm_runtime_put() return value
> to its callers.
>
> Returning an error code from pm_runtime_put() merely means that it has
> not queued up a work item to check whether or not the device can be
> suspended and there are many perfectly valid situations in which that
> can happen, like after writing "on" to the devices' runtime PM "control"
> attribute in sysfs for one example.
>
> For this reason, modify irq_chip_pm_put() to discard the pm_runtime_put()
> return value, change its return type to void, and drop the WARN_ON()
> around the irq_chip_pm_put() invocation from __irq_do_set_handler().
> Also update the irq_chip_pm_put() kerneldoc comment to be more accurate.
>
> This will facilitate a planned change of the pm_runtime_put() return
> type to void in the future.
>
> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@...el.com>
Reviewed-by: Thomas Gleixner <tglx@...nel.org>
Powered by blists - more mailing lists