summaryrefslogtreecommitdiff
path: root/lookup.h
AgeCommit message (Expand)AuthorFilesLines
2015-11-16lookup: Return const char * from all lookup functionsTobias Klauser1-4/+4
2015-11-16lookup: Use lookup module for OUI lookup as wellTobias Klauser1-0/+7
2015-11-15lookup: Make lookup type and function names more genericTobias Klauser1-8/+8
2014-06-13lookup: Move UDP/TCP port and Ethernet type lookup into own moduleTobias Klauser1-0/+25
lass='oid'>0f76f9bf5155d91db6074abfe08599dc53ba5f04 parent7c113f7df710df2aed63709815e518608dbd338c (diff)
usb: renesas_usbhs: fix clearing the {BRDY,BEMP}STS condition
The previous driver is possible to stop the transfer wrongly. For example: 1) An interrupt happens, but not BRDY interruption. 2) Read INTSTS0. And than state->intsts0 is not set to BRDY. 3) BRDY is set to 1 here. 4) Read BRDYSTS. 5) Clear the BRDYSTS. And then. the BRDY is cleared wrongly. Remarks: - The INTSTS0.BRDY is read only. - If any bits of BRDYSTS are set to 1, the BRDY is set to 1. - If BRDYSTS is 0, the BRDY is set to 0. So, this patch adds condition to avoid such situation. (And about NRDYSTS, this is not used for now. But, avoiding any side effects, this patch doesn't touch it.) Fixes: d5c6a1e024dd ("usb: renesas_usbhs: fixup interrupt status clear method") Cc: <stable@vger.kernel.org> # v3.8+ Signed-off-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com> Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
Diffstat