From: Matthieu CASTET Date: Wed, 19 Feb 2014 05:46:31 +0000 (+0800) Subject: usb: chipidea: need to mask when writting endptflush and endptprime X-Git-Tag: v3.14-rc4~6^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5bf5dbeda2454296f1984adfbfc8e6f5965ac389;p=pandora-kernel.git usb: chipidea: need to mask when writting endptflush and endptprime ENDPTFLUSH and ENDPTPRIME registers are set by software and clear by hardware. There is a bit for each endpoint. When we are setting a bit for an endpoint we should make sure we do not touch other endpoint bit. There is a race condition if the hardware clear the bit between the read and the write in hw_write. Cc: stable # 3.11+ Signed-off-by: Peter Chen Signed-off-by: Matthieu CASTET Tested-by: Michael Grzeschik Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed