mbox series

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

Message ID 1712805329-46158-1-git-send-email-quic_qianyu@quicinc.com (mailing list archive)
Headers show
Series Add sysfs entry to EDL mode | expand

Message

Qiang Yu April 11, 2024, 3:15 a.m. UTC
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(+)