]> git.ipfire.org Git - thirdparty/kernel/stable.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 9 Dec 2015 19:34:38 +0000 (14:34 -0500)
commit0330a1fbe51c995b5e75c3ea1440b2e4ab68ee8c
treef1040b2e1f4945a0a6c702e0f7b8b79e8e7caa47
parenta46143c2744f7a35554b030295f928b4efdceb33
usb: chipidea: debug: disable usb irq while role switch

commit 251b3c8b57481bcecd3f753108e36e7389ce12ac upstream.

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.

Signed-off-by: Li Jun <jun.li@freescale.com>
Signed-off-by: Peter Chen <peter.chen@freescale.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/chipidea/debug.c