[PATCH v2 0/2] reset/usb: Add reset status

Ley Foon Tan ley.foon.tan at intel.com
Tue Dec 24 09:23:43 CET 2019


In Cyclone 5 SoC platform, the first USB probing is failed but second
probing is success. DWC2 driver read gsnpsid register right after de-assert
reset, but controller is not ready yet and it returns gsnpsid 0.
Polling reset status after de-assert reset to solve the issue.

This patchset also add .rst_status callback function to reset-socfpga driver
to support this get reset status feature.

v1->v2:
- Change from constant delay to poll for reset status;
- Add reset status callback function.

History:
v1: https://patchwork.ozlabs.org/patch/1214841/

Ley Foon Tan (2):
  reset: socfpga: Add reset status callback function
  usb: dwc2: Add polling for reset status

 drivers/reset/reset-socfpga.c | 12 ++++++++++++
 drivers/usb/host/dwc2.c       | 10 +++++++++-
 2 files changed, 21 insertions(+), 1 deletion(-)

-- 
2.19.0



More information about the U-Boot mailing list