Re: [PATCH V2 14/16] WIP: usb: dwc2: Implement recovery after PM domain off

2024-08-16 Thread Stefan Wahren
Hi Doug, Am 15.08.24 um 21:37 schrieb Doug Anderson: Hi, On Wed, Aug 14, 2024 at 2:48 PM Stefan Wahren wrote: You're saying that your registers get saved _unless_ the power domain gets turned off, right? On BCM2835 there is no need to store the registers because there is no power management

Re: [PATCH V2 14/16] WIP: usb: dwc2: Implement recovery after PM domain off

2024-08-15 Thread Doug Anderson
Hi, On Wed, Aug 14, 2024 at 2:48 PM Stefan Wahren wrote: > > >> You're saying that your > >> registers get saved _unless_ the power domain gets turned off, right? > On BCM2835 there is no need to store the registers because there is no > power management supported by USB core except of the power

Re: [PATCH V2 14/16] WIP: usb: dwc2: Implement recovery after PM domain off

2024-08-14 Thread Stefan Wahren
Am 14.08.24 um 14:01 schrieb Ulf Hansson: On Tue, 13 Aug 2024 at 21:57, Doug Anderson wrote: Hi, On Mon, Aug 12, 2024 at 4:48 PM Stefan Wahren wrote: Hi Doug, Am 28.07.24 um 15:00 schrieb Stefan Wahren: DO NOT MERGE According to the dt-bindings there are some platforms, which have a dedic

Re: [PATCH V2 14/16] WIP: usb: dwc2: Implement recovery after PM domain off

2024-08-14 Thread Ulf Hansson
On Tue, 13 Aug 2024 at 21:57, Doug Anderson wrote: > > Hi, > > On Mon, Aug 12, 2024 at 4:48 PM Stefan Wahren wrote: > > > > Hi Doug, > > > > Am 28.07.24 um 15:00 schrieb Stefan Wahren: > > > DO NOT MERGE > > > > > > According to the dt-bindings there are some platforms, which have a > > > dedicat

Re: [PATCH V2 14/16] WIP: usb: dwc2: Implement recovery after PM domain off

2024-08-13 Thread Doug Anderson
Hi, On Mon, Aug 12, 2024 at 4:48 PM Stefan Wahren wrote: > > Hi Doug, > > Am 28.07.24 um 15:00 schrieb Stefan Wahren: > > DO NOT MERGE > > > > According to the dt-bindings there are some platforms, which have a > > dedicated USB power domain for DWC2 IP core supply. If the power domain > > is swi

Re: [PATCH V2 14/16] WIP: usb: dwc2: Implement recovery after PM domain off

2024-08-12 Thread Stefan Wahren
Hi Doug, Am 28.07.24 um 15:00 schrieb Stefan Wahren: DO NOT MERGE According to the dt-bindings there are some platforms, which have a dedicated USB power domain for DWC2 IP core supply. If the power domain is switched off during system suspend then all USB register will lose their settings. So

[PATCH V2 14/16] WIP: usb: dwc2: Implement recovery after PM domain off

2024-07-28 Thread Stefan Wahren
DO NOT MERGE According to the dt-bindings there are some platforms, which have a dedicated USB power domain for DWC2 IP core supply. If the power domain is switched off during system suspend then all USB register will lose their settings. So use the power on/off notifier in order to save & restor