]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
usb: chipidea: need to mask INT_STATUS when write otgsc
authorPeter Chen <peter.chen@freescale.com>
Fri, 10 Jan 2014 05:51:31 +0000 (13:51 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 13 Jan 2014 23:55:19 +0000 (15:55 -0800)
commit5332ff1fb63c46588656e4208201bc131627c878
tree86a837b2162e2d23a718e565f1c92d47ca203c39
parentcd0b42c2a6d2a74244f0053f8960f5dad5842278
usb: chipidea: need to mask INT_STATUS when write otgsc

For otgsc, both enable bits and status bits are in it. So we need
to make sure the status bits are not be cleared when write enable
bits. It can fix one bug that we plug in/out Micro AB cable fast,
and sometimes, the IDIS will be cleared wrongly when handle last
ID interrupt (ID 0->1), so the current interrupt will not occur.

For stable tree: 3.12+

Cc: stable@vger.kernel.org
Signed-off-by: Peter Chen <peter.chen@freescale.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/chipidea/otg.h