[PATCH v2 0/2] Add sysfs entry to EDL mode

From: Qiang Yu
Date: Wed Apr 10 2024 - 23:15:49 EST


Add EDL sysfs entry for mhi controller that provides edl_trigger callback.
Add mhi_pci_generic_edl_trigger for qualcomm sdx55,sdx65 and sdx75 as
edl_trigger callback.

v1->v2:
1. Move all process needed by qualcomm sdx55,sdx65,sdx75 to enter EDL into
mhi_pci_generic_edl_trigger() as the callback to edl_trigger.

2. MHI stack creates EDL sysfs entry to invoke edl_trigger callback so
that devices need different mechanism to enter EDL can provide its own
edl_trigger callabck .

Qiang Yu (2):
bus: mhi: host: Add sysfs entry to force device to enter EDL
bus: mhi: host: pci_generic: Add edl callback to enter EDL

drivers/bus/mhi/host/init.c | 35 ++++++++++++++++++++++++++
drivers/bus/mhi/host/pci_generic.c | 50 ++++++++++++++++++++++++++++++++++++++
include/linux/mhi.h | 1 +
3 files changed, 86 insertions(+)

--
2.7.4