Make irq-imx-irqsteer build without PM_SLEEP#15
Open
jo-so-nx wants to merge 2 commits intonxp-imx:lf-5.15.yfrom
Open
Make irq-imx-irqsteer build without PM_SLEEP#15jo-so-nx wants to merge 2 commits intonxp-imx:lf-5.15.yfrom
jo-so-nx wants to merge 2 commits intonxp-imx:lf-5.15.yfrom
Conversation
Signed-off-by: Jörg Sommer <joerg.sommer@navimatix.de>
The build of the module without `CONFIG_PM_SLEEP` fails, because the symbols `imx_irqsteer_runtime_suspend` and `imx_irqsteer_runtime_resume` are not defined. This fix defines `imx_irqsteer_pm_ops` only if `PM_SLEEP` is set, and uses *NULL* in `platform_driver->driver->pm` otherwise. This is valid according to *Documentation/power/runtime_pm.rst*: “the PM core will invoke the corresponding driver callback stored in dev->driver->pm directly (if present).” The idea was taken from *drivers/acpi/fan.c*. Signed-off-by: Jörg Sommer <joerg.sommer@navimatix.de>
Overdr0ne
pushed a commit
to Overdr0ne/linux-imx
that referenced
this pull request
Jul 28, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The current version fails to build, if PM_SLEEP is not defined: