Re: [PATCH v1 1/2] usb: chipidea: use of extcon framework to work for non OTG case

2019-10-23 Thread Peter Chen
On 19-10-22 16:54:30, Igor Opaniuk wrote: > Hi Peter, > > On Tue, Oct 22, 2019 at 5:11 AM Peter Chen wrote: > > > > On 19-10-21 19:16:53, Igor Opaniuk wrote: > > > From: Stefan Agner > > > > > > The existing usage of extcon in chipidea driver freezes the kernel > > > presumably due to OTGSC

Re: [PATCH v1 1/2] usb: chipidea: use of extcon framework to work for non OTG case

2019-10-22 Thread Igor Opaniuk
Hi Peter, On Tue, Oct 22, 2019 at 5:11 AM Peter Chen wrote: > > On 19-10-21 19:16:53, Igor Opaniuk wrote: > > From: Stefan Agner > > > > The existing usage of extcon in chipidea driver freezes the kernel > > presumably due to OTGSC register access. > > > > Prevent accessing any OTG registers

Re: [PATCH v1 1/2] usb: chipidea: use of extcon framework to work for non OTG case

2019-10-21 Thread Peter Chen
On 19-10-21 19:16:53, Igor Opaniuk wrote: > From: Stefan Agner > > The existing usage of extcon in chipidea driver freezes the kernel > presumably due to OTGSC register access. > > Prevent accessing any OTG registers for SoC with dual role devices > but no true OTG support. Use the flag

[PATCH v1 1/2] usb: chipidea: use of extcon framework to work for non OTG case

2019-10-21 Thread Igor Opaniuk
From: Stefan Agner The existing usage of extcon in chipidea driver freezes the kernel presumably due to OTGSC register access. Prevent accessing any OTG registers for SoC with dual role devices but no true OTG support. Use the flag CI_HDRC_DUAL_ROLE_NOT_OTG for those devices and in case extcon