Skip to content

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
ziyuezhang-123:mhi
Open

bus: mhi: host: pci_generic: Improve boot performance and cleanup#410
ziyuezhang-123 wants to merge 2 commits intoqualcomm-linux:qcom-6.18.yfrom
ziyuezhang-123:mhi

Conversation

@ziyuezhang-123
Copy link
Copy Markdown

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.

…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>
@ziyuezhang-123 ziyuezhang-123 requested a review from a team April 2, 2026 07:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants