[PATCH v1 00/10] Bug fixes and improvements for MHI power operations

From: Bhaumik Bhatt
Date: Fri Sep 18 2020 - 22:02:48 EST


Bug fixes and improvements for MHI powerup and shutdown handling.
Firmware load function names are updated to accurately reflect their purpose.
Closed certain design gaps where the host (MHI bus) would allow clients to
operate after a power down or error detection.
Move to an error state sooner based on different scenarios.

These patches were tested on arm64 and X86_64 architectures.

Bhaumik Bhatt (10):
bus: mhi: core: Use appropriate names for firmware load functions
bus: mhi: core: Move to using high priority workqueue
bus: mhi: core: Skip device wake in error or shutdown states
bus: mhi: core: Use the IRQF_ONESHOT flag for the BHI interrupt line
bus: mhi: core: Disable IRQs when powering down
bus: mhi: core: Improve shutdown handling after link down detection
bus: mhi: core: Move to SYS_ERROR regardless of RDDM capability
bus: mhi: core: Move to an error state on any firmware load failure
bus: mhi: core: Move to an error state on mission mode failure
bus: mhi: core: Mark device inactive soon after host issues a shutdown

drivers/bus/mhi/core/boot.c | 59 ++++++++++++++++++++++-----------------
drivers/bus/mhi/core/init.c | 10 ++++++-
drivers/bus/mhi/core/internal.h | 1 +
drivers/bus/mhi/core/main.c | 28 +++++++++++++------
drivers/bus/mhi/core/pm.c | 62 ++++++++++++++++++++++++++++-------------
include/linux/mhi.h | 2 ++
6 files changed, 108 insertions(+), 54 deletions(-)

--
The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum,
a Linux Foundation Collaborative Project