bus: mhi: host: pci_generic: Improve boot performance and cleanup#410
Open
ziyuezhang-123 wants to merge 2 commits intoqualcomm-linux:qcom-6.18.yfrom
Open
bus: mhi: host: pci_generic: Improve boot performance and cleanup#410ziyuezhang-123 wants to merge 2 commits intoqualcomm-linux:qcom-6.18.yfrom
ziyuezhang-123 wants to merge 2 commits intoqualcomm-linux:qcom-6.18.yfrom
Conversation
…oid boot delays Some modem devices can take significant time (up to 20 secs for sdx75) to enter mission mode during initialization. Currently, mhi_sync_power_up() waits for this entire process to complete, blocking other driver probes and delaying system boot. Switch to mhi_async_power_up() so probe can return immediately while MHI initialization continues in the background. This eliminates lengthy boot delays and allows other drivers to probe in parallel, improving overall system boot performance. Link: https://lore.kernel.org/all/20260303-b4-async_power_on-v2-1-d3db81eb457d@oss.qualcomm.com/ Fixes: 5571519 ("bus: mhi: host: pci_generic: Add SDX75 based modem support") Cc: stable@vger.kernel.org Signed-off-by: Qiang Yu <qiang.yu@oss.qualcomm.com>
…ove callback Add pm_runtime_forbid() to balance the pm_runtime_allow() call made during probe. Without this, the device remains in runtime PM allowed state after driver removal. Link: https://lore.kernel.org/all/20260303-b4-async_power_on-v2-2-d3db81eb457d@oss.qualcomm.com/ Fixes: 855a70c ("bus: mhi: Add MHI PCI support for WWAN modems") Signed-off-by: Qiang Yu <qiang.yu@oss.qualcomm.com>
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.
This series addresses boot performance issues with MHI PCI generic driver
and adds proper cleanup in the remove path.
Some modems like SDX75 take up to 20 seconds to initialize, which blocks
system boot while waiting for them to reach mission mode. The first patch
switches to async power up so the driver can return immediately and let
initialization happen in the background.
The second patch adds the missing pm_runtime_forbid() call in remove to
balance the pm_runtime_allow() from probe.