1. 20 10月, 2014 1 次提交
  2. 25 9月, 2014 2 次提交
  3. 20 9月, 2014 7 次提交
  4. 15 9月, 2014 2 次提交
  5. 12 9月, 2014 3 次提交
  6. 10 9月, 2014 6 次提交
  7. 09 9月, 2014 5 次提交
  8. 26 8月, 2014 1 次提交
  9. 20 8月, 2014 1 次提交
  10. 10 7月, 2014 3 次提交
  11. 28 5月, 2014 3 次提交
  12. 26 4月, 2014 1 次提交
  13. 25 4月, 2014 3 次提交
  14. 16 2月, 2014 1 次提交
  15. 08 2月, 2014 1 次提交
    • D
      usb: dwc2: handle the Host Port Interrupt when it occurs in device mode · 93571adb
      Dinh Nguyen 提交于
      According to the spec for the DWC2 controller, when the PRTINT interrupt fires,
      the application must clear the appropriate status bit in the Host Port Control
      and Status register to clear this bit.
      
      When disconnecting an A-cable when the dwc2 host driver, the PRTINT fires, but
      only the GINTSTS_PRTINT status is cleared, no action is done with the HPRT0
      register. The HPRT0_ENACHG bit in the HPRT0 must also be poked to correctly
      clear the GINTSTS_PRTINT interrupt.
      
      I am seeing this behavoir on v2.93 of the DWC2 IP. When I disconnect an OTG
      A-cable adapter, the PRTINT interrupt fires when the DWC2 is in device mode
      and is never cleared.
      
      This patch adds the function to read the HPRT0 register when the PRTINT fires
      and the dwc2 IP has already transitioned to device mode. This function is only
      clearing the HPRT0_ENACHG bit for now, but can be modified to handle more.
      Signed-off-by: NDinh Nguyen <dinguyen@altera.com>
      [ paulz: modified patch to preserve HPRT0_ENA bit ]
      Signed-off-by: NPaul Zimmerman <paulz@synopsys.com>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      93571adb