Re: [PATCH v10 0/6] Introduced new Cadence USBSS DRD Driver.

From: Pavel Machek
Date: Tue Aug 13 2019 - 04:22:19 EST


Hi!

> I think that I understand your concerns. My idea was not to expand the supported
> dr_mode. Rather I wanted to have possibility to limit this (only for testing).
>
> Eg.
> If cdns->dr_mode = USB_DR_MODE_OTG
> then we can limit mode to HOST or DEVICE or DRD
> if cdns->dr_mode == USB_DR_MODE_HOST ||
> cdns->dr_mode == USB_DR_MODE_PERIPHERAL)
> then driver can't change anything
>
> It allows me for testing some functionality using only single board
> and even with lacking right cable for proper otg detection.

Yes, and it looks like people need this functionality in production,
too, so it should be in sysfs (and not debugfs).

If it means sysfs interface need to be extended to cover all the
cases, so be it.

Best regards,
Pavel
--
DENX Software Engineering GmbH, Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany

Attachment: signature.asc
Description: Digital signature