usb: misc: eud: Add driver support for Embedded USB Debugger(EUD)
authorSouradeep Chowdhury <quic_schowdhu@quicinc.com>
Tue, 8 Feb 2022 17:54:26 +0000 (23:24 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 11 Feb 2022 11:01:02 +0000 (12:01 +0100)
commit9a1bf58ccd4432688cee28a8e77726d7962fed13
treea6ea52ec98e481c77f8a481f6ed28071e5fc5f7d
parent306a20df822d5a6522aa4aa2029a858ed5fbd517
usb: misc: eud: Add driver support for Embedded USB Debugger(EUD)

Add support for control peripheral of EUD (Embedded USB Debugger) to
listen to events such as USB attach/detach, pet EUD to indicate software
is functional.Reusing the platform device kobj, sysfs entry 'enable' is
created to enable or disable EUD.

To enable the eud the following needs to be done
echo 1 > /sys/bus/platform/.../enable

To disable eud, following is the command
echo 0 > /sys/bus/platform/.../enable

Signed-off-by: Souradeep Chowdhury <quic_schowdhu@quicinc.com>
Link: https://lore.kernel.org/r/0ac5c2b2c8e4ce4f4f342a08b48cfc61aeaf7ee8.1644339918.git.quic_schowdhu@quicinc.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Documentation/ABI/testing/sysfs-driver-eud [new file with mode: 0644]
drivers/usb/misc/Kconfig
drivers/usb/misc/Makefile
drivers/usb/misc/qcom_eud.c [new file with mode: 0644]