USB: chipidea: re-order irq handling to avoid unhandled irqs
authorRichard Zhao <richard.zhao@freescale.com>
Wed, 12 Sep 2012 11:58:11 +0000 (14:58 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 12 Sep 2012 18:20:38 +0000 (11:20 -0700)
commitb183c19f98f8afee799ee41e062810d6b1c7e123
treed1cd7920d4e434930d75ad2577c10ed249036f7e
parent388ed487234429652c1cdb797ad45cb0967b2343
USB: chipidea: re-order irq handling to avoid unhandled irqs

- let role driver handle irq before ID change check; this gives the
  role driver a chance to handle disconnect;
- disable irq during switch role; no role driver to handle irq in
  the period.

Tested-by: Michael Grzeschik <m.grzeschik@pengutronix.de>
Tested-by: Marc Kleine-Budde <mkl@pengutronix.de>
Signed-off-by: Richard Zhao <richard.zhao@freescale.com>
Signed-off-by: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/chipidea/core.c