Re: [PATCH] usb: chipidea: fix ci_irq for role-switching use-case

2020-07-01 Thread Philippe Schenker
On Wed, 2020-07-01 at 09:02 +, Peter Chen wrote: > On 20-07-01 08:32:22, Philippe Schenker wrote: > > On Wed, 2020-07-01 at 02:52 +, Peter Chen wrote: > > > On 20-06-30 11:59:49, Philippe Schenker wrote: > > > > On Tue, 2020-06-30 at 00:43 +, Peter Chen wrote: > > > > > On 20-06-29 10:0

Re: [PATCH] usb: chipidea: fix ci_irq for role-switching use-case

2020-07-01 Thread Peter Chen
On 20-07-01 08:32:22, Philippe Schenker wrote: > On Wed, 2020-07-01 at 02:52 +, Peter Chen wrote: > > On 20-06-30 11:59:49, Philippe Schenker wrote: > > > On Tue, 2020-06-30 at 00:43 +, Peter Chen wrote: > > > > On 20-06-29 10:04:13, Philippe Schenker wrote: > > > > > On Mon, 2020-06-29 at

Re: [PATCH] usb: chipidea: fix ci_irq for role-switching use-case

2020-07-01 Thread Philippe Schenker
On Wed, 2020-07-01 at 02:52 +, Peter Chen wrote: > On 20-06-30 11:59:49, Philippe Schenker wrote: > > On Tue, 2020-06-30 at 00:43 +, Peter Chen wrote: > > > On 20-06-29 10:04:13, Philippe Schenker wrote: > > > > On Mon, 2020-06-29 at 07:26 +, Peter Chen wrote: > > > > > On 20-06-26 13:0

Re: [PATCH] usb: chipidea: fix ci_irq for role-switching use-case

2020-06-30 Thread Peter Chen
On 20-06-30 11:59:49, Philippe Schenker wrote: > On Tue, 2020-06-30 at 00:43 +, Peter Chen wrote: > > On 20-06-29 10:04:13, Philippe Schenker wrote: > > > On Mon, 2020-06-29 at 07:26 +, Peter Chen wrote: > > > > On 20-06-26 13:03:11, Philippe Schenker wrote: > > > > > If the hardware is in

Re: [PATCH] usb: chipidea: fix ci_irq for role-switching use-case

2020-06-30 Thread Philippe Schenker
On Tue, 2020-06-30 at 00:43 +, Peter Chen wrote: > On 20-06-29 10:04:13, Philippe Schenker wrote: > > On Mon, 2020-06-29 at 07:26 +, Peter Chen wrote: > > > On 20-06-26 13:03:11, Philippe Schenker wrote: > > > > If the hardware is in low-power-mode and one plugs in device or > > > > host >

Re: [PATCH] usb: chipidea: fix ci_irq for role-switching use-case

2020-06-29 Thread Peter Chen
On 20-06-29 10:04:13, Philippe Schenker wrote: > On Mon, 2020-06-29 at 07:26 +, Peter Chen wrote: > > On 20-06-26 13:03:11, Philippe Schenker wrote: > > > If the hardware is in low-power-mode and one plugs in device or host > > > it did not switch the mode due to the early exit out of the > > >

Re: [PATCH] usb: chipidea: fix ci_irq for role-switching use-case

2020-06-29 Thread Peter Chen
On 20-06-26 13:03:11, Philippe Schenker wrote: > If the hardware is in low-power-mode and one plugs in device or host > it did not switch the mode due to the early exit out of the interrupt. Do you mean there is no coming call for role-switch? Could you please share your dts changes? Try below pat

Re: [PATCH] usb: chipidea: fix ci_irq for role-switching use-case

2020-06-29 Thread Philippe Schenker
On Mon, 2020-06-29 at 07:26 +, Peter Chen wrote: > On 20-06-26 13:03:11, Philippe Schenker wrote: > > If the hardware is in low-power-mode and one plugs in device or host > > it did not switch the mode due to the early exit out of the > > interrupt. > > Do you mean there is no coming call for

[PATCH] usb: chipidea: fix ci_irq for role-switching use-case

2020-06-26 Thread Philippe Schenker
If the hardware is in low-power-mode and one plugs in device or host it did not switch the mode due to the early exit out of the interrupt. This patch fixes that behaviour and lets the rest of the code check if something has to be done. If nothing has to be done the same return value gets returned