]> git.baikalelectronics.ru Git - kernel.git/commit
usb: chipidea: debug: disable usb irq while role switch
authorLi Jun <jun.li@freescale.com>
Tue, 13 Oct 2015 10:23:31 +0000 (18:23 +0800)
committerPeter Chen <peter.chen@freescale.com>
Wed, 18 Nov 2015 06:07:54 +0000 (14:07 +0800)
commitc96fb612631f7e5261917436ab9e6f4d1f846e39
tree031e8c73808e5b50e87b5e180c426703a3c8038c
parenta1c54ac95205c7effb67d74d1c9a43c166dc6b25
usb: chipidea: debug: disable usb irq while role switch

Since the ci->role will be set after the host role start is complete, there
will be nobody cared irq during start host if usb irq enabled. This error
can be reproduced on i.mx6 sololite EVK board by:
1. disable otg id irq(IDIE) and disable all real otg properties of usbotg1
   in dts.
2. boot up the board with ID cable and usb device connected.
3. echo gadget > /sys/kernel/debug/ci_hdrc.0/role
4. echo host > /sys/kernel/debug/ci_hdrc.0/role
5. irq 212: nobody cared.

Cc: <stable@vger.kernel.org> # v3.10+
Signed-off-by: Li Jun <jun.li@freescale.com>
Signed-off-by: Peter Chen <peter.chen@freescale.com>
drivers/usb/chipidea/debug.c