aboutsummaryrefslogtreecommitdiff
path: root/drivers/misc/ibmasm/module.c
diff options
context:
space:
mode:
authorLoic Poulain <[email protected]>2021-06-21 21:46:10 +0530
committerGreg Kroah-Hartman <[email protected]>2021-06-24 15:51:49 +0200
commit44b1eba44dc537edf076f131f1eeee7544d0e04f (patch)
tree64d12ce0919b4207c331f3c40126227a00706025 /drivers/misc/ibmasm/module.c
parentab1afed701d2db7eb35c1a2526a29067a38e93d1 (diff)
bus: mhi: core: Fix power down latency
On graceful power-down/disable transition, when an MHI reset is performed, the MHI device loses its context, including interrupt configuration. However, the current implementation is waiting for event(irq) driven state change to confirm reset has been completed, which never happens, and causes reset timeout, leading to unexpected high latency of the mhi_power_down procedure (up to 45 seconds). Fix that by moving to the recently introduced poll_reg_field method, waiting for the reset bit to be cleared, in the same way as the power_on procedure. Cc: [email protected] Fixes: a6e2e3522f29 ("bus: mhi: core: Add support for PM state transitions") Signed-off-by: Loic Poulain <[email protected]> Reviewed-by: Bhaumik Bhatt <[email protected]> Reviewed-by: Manivannan Sadhasivam <[email protected]> Reviewed-by: Hemant Kumar <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Manivannan Sadhasivam <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'drivers/misc/ibmasm/module.c')
0 files changed, 0 insertions, 0 deletions