Re: [PATCH] usb: dwc2: update reset method for host and device mode

2024-04-22 Thread Marek Vasut
On 4/22/24 7:31 AM, Kongyang Liu wrote: [...] @@ -167,9 +168,20 @@ static void dwc_otg_core_reset(struct udevice *dev, dev_info(dev, "%s: Timeout!\n", __func__); /* Core Soft Reset */ + snpsid = readl(>gsnpsid); writel(DWC2_GRSTCTL_CSFTRST, >grstctl); -

Re: [PATCH] usb: dwc2: update reset method for host and device mode

2024-04-22 Thread Kongyang Liu
Marek Vasut 于2024年4月22日周一 04:45写道: > > On 3/28/24 2:14 PM, Kongyang Liu wrote: > > [...] > > > @@ -464,12 +464,26 @@ static void reconfig_usbd(struct dwc2_udc *dev) > > { > > /* 2. Soft-reset OTG Core and then unreset again. */ > > int i; > > - unsigned int uTemp =

Re: [PATCH] usb: dwc2: update reset method for host and device mode

2024-04-21 Thread Marek Vasut
On 3/28/24 2:14 PM, Kongyang Liu wrote: [...] @@ -464,12 +464,26 @@ static void reconfig_usbd(struct dwc2_udc *dev) { /* 2. Soft-reset OTG Core and then unreset again. */ int i; - unsigned int uTemp = writel(CORE_SOFT_RESET, >grstctl); + unsigned int uTemp;

Re: [PATCH] usb: dwc2: update reset method for host and device mode

2024-04-16 Thread Mattijs Korpershoek
On mar., avril 16, 2024 at 10:50, Mattijs Korpershoek wrote: > Hi Kongyang, > > Thank you for the patch. > > On jeu., mars 28, 2024 at 21:14, Kongyang Liu > wrote: > >> Starting from version 4.20a, there has been a change in the reset method. >> A new bit, GRSTCTL_CSFTRST_DONE, has been

Re: [PATCH] usb: dwc2: update reset method for host and device mode

2024-04-16 Thread Mattijs Korpershoek
Hi Kongyang, Thank you for the patch. On jeu., mars 28, 2024 at 21:14, Kongyang Liu wrote: > Starting from version 4.20a, there has been a change in the reset method. > A new bit, GRSTCTL_CSFTRST_DONE, has been introduced in the GRSTCTL > register to indicate whether the reset has been

[PATCH] usb: dwc2: update reset method for host and device mode

2024-03-28 Thread Kongyang Liu
Starting from version 4.20a, there has been a change in the reset method. A new bit, GRSTCTL_CSFTRST_DONE, has been introduced in the GRSTCTL register to indicate whether the reset has been completed. Signed-off-by: Kongyang Liu --- drivers/usb/gadget/dwc2_udc_otg.c | 18