On 12/08/2019 15:46, Felipe Balbi wrote: > > Hi, > > Roger Quadros <rog...@ti.com> writes: >>> The sysfs file we expose from the class for the role switches is >>> primarily meant for supporting proprietary protocols that require us >>> to basically override the connector USB data role. The default role >>> should always be selected in the drivers. >> >> OK. Let's take this example >> - Port is dual-role port micro AB. >> - microAB to type-A adapter is connected which pulls ID low. port transitions >> to "host" role by the controller driver. >> - proprietary protocol want to switch role to device role so writes "device" >> to >> mode switch sysfs. port transitions to "device" role. >> >> Now, how does controller driver know to fall back to HW based role switching? > > Use a 'disconnect' or 'suspend' event to go reset it? But that should, > probably, be done at kernel space, no? > Yes that could be one option. So after a disconnect, sysfs role should reflect actual hardware role. correct? cheers, -roger -- Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki. Y-tunnus/Business ID: 0615521-4. Kotipaikka/Domicile: Helsinki
- Re: [PATCH v10 0/6] Introduced new C... Roger Quadros
- Re: [PATCH v10 0/6] Introduced new C... Felipe Balbi
- Re: [PATCH v10 0/6] Introduced new C... Pavel Machek
- Re: [PATCH v10 5/6] usb:cdns3 Add Cadence USB3 DRD Driver Roger Quadros
- RE: [PATCH v10 5/6] usb:cdns3 Add Cadence USB3 DRD Dr... Pawel Laszczak
- Re: [PATCH v10 5/6] usb:cdns3 Add Cadence USB3 DR... Roger Quadros
- RE: [PATCH v10 5/6] usb:cdns3 Add Cadence USB... Pawel Laszczak
- Re: [PATCH v10 5/6] usb:cdns3 Add Cadence... Heikki Krogerus
- Re: [PATCH v10 5/6] usb:cdns3 Add Ca... Roger Quadros
- Re: [PATCH v10 5/6] usb:cdns3 Add Ca... Felipe Balbi
- Re: [PATCH v10 5/6] usb:cdns3 Add Ca... Roger Quadros
- Re: [PATCH v10 5/6] usb:cdns3 Add Ca... Felipe Balbi
- Re: [PATCH v10 5/6] usb:cdns3 Add Ca... Chunfeng Yun
- Re: [PATCH v10 5/6] usb:cdns3 Add Ca... Roger Quadros
- Re: [PATCH v10 5/6] usb:cdns3 Add Ca... Chunfeng Yun
- Re: [PATCH v10 5/6] usb:cdns3 Add Cadence USB3 DR... Roger Quadros
- RE: [PATCH v10 5/6] usb:cdns3 Add Cadence USB... Pawel Laszczak
- Re: [PATCH v10 5/6] usb:cdns3 Add Cadence USB3 DRD Driver Roger Quadros
- Re: [PATCH v10 5/6] usb:cdns3 Add Cadence USB3 DRD Dr... Felipe Balbi
- RE: [PATCH v10 5/6] usb:cdns3 Add Cadence USB3 DRD Dr... Pawel Laszczak
- Re: [PATCH v10 5/6] usb:cdns3 Add Cadence USB3 DRD Driver Roger Quadros