Commits

Li Jun committed bf5b0c58a0b
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 8153cb550a007e1cd62dd4f043330c694cf62f23)