Re: [PATCH V0 4/7] usb: common: eud: Added the driver support for Embedded USB Debugger(EUD)

Randy Dunlap
2021-10-04T20:08:06Z

On 10/4/21 4:16 AM, Souradeep Chowdhury wrote:
> Add support for control peripheral of EUD (Embedded USB Debugger) to
> listen to events such as USB attach/detach, pet EUD to indicate software

I don't quite understand: what pets the EUD? how does it do that?

> is functional.Reusing the platform device kobj, sysfs entry 'enable' is

functional. Reusing

> 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<schowdhu@codeaurora.org>
> ---
> Documentation/ABI/testing/sysfs-driver-eud | 7 +
> drivers/usb/common/Kconfig | 9 +
> drivers/usb/common/Makefile | 1 +
> drivers/usb/common/qcom_eud.c | 256 +++++++++++++++++++++++++++++
> 4 files changed, 273 insertions(+)
> create mode 100644 Documentation/ABI/testing/sysfs-driver-eud
> create mode 100644 drivers/usb/common/qcom_eud.c
>
> diff --git a/Documentation/ABI/testing/sysfs-driver-eud b/Documentation/ABI/testing/sysfs-driver-eud
> new file mode 100644
> index 0000000..14a02da
> --- /dev/null
> +++ b/Documentation/ABI/testing/sysfs-driver-eud
> @@ -0,0 +1,7 @@
> +What: /sys/bus/platform/.../enable
> +Date: October 2021
> +Contact: Souradeep Chowdhury<schowdhu@codeaurora.org>
> +Description:
> + The Enable/Disable sysfs interface for Embedded
> + USB Debugger(EUD).This enables and disables the

Debugger (EUD). This enables

> + EUD based on a 1 or a 0 value.

--
~Randy