On Fri, Jan 21, 2022 at 07:23:48PM +0530, Souradeep Chowdhury wrote:Ack. Will move this to drivers/usb.
Add support for control peripheral of EUD (Embedded USB Debugger) toThis should go under drivers/usb/ as it's creating a USB generic
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@xxxxxxxxxxx>
---
Documentation/ABI/testing/sysfs-driver-eud | 9 ++
drivers/soc/qcom/Kconfig | 10 ++
drivers/soc/qcom/Makefile | 1 +
drivers/soc/qcom/qcom_eud.c | 250 +++++++++++++++++++++++++++++
user/kernel api that all future devices of this type must follow.
thanks,
greg k-h