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>
Thu, 6 Feb 2014 19:22:14 +0000 (11:22 -0800)
commit92083ad956978ee6a79e8a14b38dce6f3e278db2
tree0bd54474a7c6083389a4e1bfbe28bdeb4acb5377
parentcdde9f60ed6516f020926863a765a3cb624b1854
usb: chipidea: need to mask INT_STATUS when write otgsc

commit 5332ff1fb63c46588656e4208201bc131627c878 upstream.

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+

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