mdm6600: Enable the wake irq when ttyUSB4 is suspended
authorBenoit Goby <benoit@android.com>
Sat, 20 Nov 2010 02:10:58 +0000 (18:10 -0800)
committerBenoit Goby <benoit@android.com>
Sat, 20 Nov 2010 02:24:38 +0000 (18:24 -0800)
commit5f6df08acda147b4d6f7bd6cf84fd963e03a88fc
tree8eaef05b1ad51ecdd38c8c203aed2a86f6e25dde
parente757da91b50ede8730344d76f26f34fe08209aa1
mdm6600: Enable the wake irq when ttyUSB4 is suspended

Instead of enabling it when the first opened port is suspended. It is
working because the modem only triggers this interrupt when all ttys are
suspended and the bus is suspended.

This fixes an issue when mdm6600_suspended_ports is not reset to 0 after
a disconnect/attach and the irq is never enabled.

Change-Id: I2a1a020ccd510b8c57c9f0b56988cb6de8aaff15
Signed-off-by: Benoit Goby <benoit@android.com>
drivers/usb/serial/mdm6600.c