]> git.karo-electronics.de Git - karo-tx-linux.git/commit
MLK-10243 usb: chipidea: udc: enable and disable BSV irq only for ID change
authorLi Jun <jun.li@freescale.com>
Wed, 11 Feb 2015 10:32:33 +0000 (18:32 +0800)
committerPeter Chen <peter.chen@freescale.com>
Fri, 13 Feb 2015 02:03:43 +0000 (10:03 +0800)
commita95e6f53b8c4e24b34352555bda69d311358ecaa
tree6dc24a978e174d982178a97e1d5c809afb5d0cde
parent925e7db9d925fb64cb971b1de12353103b7374e1
MLK-10243 usb: chipidea: udc: enable and disable BSV irq only for ID change

Since BSV irq is only used for B-device, this patch correct the setting of
BSVIE of otgsc only for case of ID change, that is:
- In otg fsm mode, ID change from 0 to 1 means otg state from A_IDLE to
  B_IDLE; ID change from 1 to 0 means otg state from B_IDLE to A_IDLE, so
  only disable BSVIE if the current state is B_IDLE(to be update to A_IDLE),
  only enable BSVIE if the current state is A_IDLE(to be update to B_IDLE).
- In non-otg-fsm mode, it's already correct.

This fix the bug of MLK-10243.

Signed-off-by: Li Jun <jun.li@freescale.com>
Signed-off-by: Peter Chen <peter.chen@freescale.com>
(cherry picked from commit c6151e8cc4a01128cbab4b26c09f859cfcd7ff39)
drivers/usb/chipidea/udc.c