Thread (59 messages) 59 messages, 12 authors, 2019-08-26

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

From: Pavel Machek <hidden>
Date: 2019-08-13 08:22:19
Also in: lkml

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

Attachments

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help