Skip to contentSkip to conversation

Patch "irqchip: Convert all platform MSI users to the new API" has been added to the 6.6-stable tree

DISCUSSION Thomas Gleixner 1 participant 1 message Dec 11, 2024 1 message not in the archive Stable branch

lore
Share & tools
lore
#1 lore raw
In reply to a message not in the archive
Quoted 29 lines · Sasha Levin

This is a note to let you know that I've just added the patch titled

irqchip: Convert all platform MSI users to the new API

to the 6.6-stable tree which can be found at:
http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
irqchip-convert-all-platform-msi-users-to-the-new-ap.patch
and it can be found in the queue-6.6 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree, please let <[email protected]> know about it.

commit 5df23ec861a0208ef524a27e44c694ca2decb7ea

Author: Thomas Gleixner <[email protected]>
Date:   Sat Jan 27 21:47:34 2024 +0530

irqchip: Convert all platform MSI users to the new API

[ Upstream commit 14fd06c776b5289a43c91cdc64bac3bdbc7b397e ]

Switch all the users of the platform MSI domain over to invoke the new interfaces which branch to the original platform MSI functions when the irqdomain associated to the caller device does not yet provide MSI parent functionality.

Quoted 7 lines

No functional change.

Stable-dep-of: 64506b3d23a3 ("scsi: ufs: qcom: Only free platform MSIs when ESI is enabled")

This commit makes the invocation of

	platform_msi_domain_free_irqs_all(hba->dev);

conditional on

        if (host->esi_enabled)

The original code before 5df23ec861a0208ef524a27e44c694ca2decb7ea was:

        platform_msi_domain_free_irqs(hba->dev);

Review static void ufs_qcom_remove(struct platform_device *pdev) · line 1930

Quoted 7 lines
(quoted diff) +1 -1
@@ -1926,7 +1926,7 @@ static void ufs_qcom_remove(struct platform_device *pdev)
 
 	pm_runtime_get_sync(&(pdev)->dev);
 	ufshcd_remove(hba);
-	platform_msi_domain_free_irqs(hba->dev);
+	platform_device_msi_free_irqs_all(hba->dev);
 }

which means the whole backport is not required and just commit 64506b3d23a3 needs to be adjusted for pre 5df23ec861:

- platform_msi_domain_free_irqs(hba->dev);
+ if (host->esi_enabled)
+ platform_msi_domain_free_irqs(hba->dev);

Thanks,

tglx