mbox series

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

Message ID 1577175825-6424-1-git-send-email-ley.foon.tan@intel.com
Headers show
Series reset/usb: Add reset status | expand

Message

Ley Foon Tan Dec. 24, 2019, 8:23 a.m. UTC
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(-)