aboutsummaryrefslogtreecommitdiff
path: root/net/lapb/lapb_subr.c
diff options
context:
space:
mode:
authorAnand Gadiyar <[email protected]>2008-08-21 20:21:00 +0530
committerGreg Kroah-Hartman <[email protected]>2008-08-21 10:26:34 -0700
commitfb85d991616046f1b640ed9c4eab9b44908dab74 (patch)
tree3af15b058a217f2411329711511870b736485386 /net/lapb/lapb_subr.c
parente8164f64caff68d4e878e1719d88d145faa75f1d (diff)
MUSB: Fix index register corruption seen with g_ether and Windows host
If Indexed Mode register accesses are enabled, the ep0_rxstate() function calls musb_g_ep0_giveback() before writing to the CSR register. When control returns to this ep0_rxstate, the index register contents are over-written. This causes the CSR register write to fail. Fixed by writing the correct value into the index register before writing to the CSR. This was observed only in ep0_rxstate() with g_ether loaded and the device connected to a MS Windows host PC. Anticipatively fixed ep0_txstate() as well. Signed-off-by: Anand Gadiyar <[email protected]> Acked-by: Felipe Balbi <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'net/lapb/lapb_subr.c')
0 files changed, 0 insertions, 0 deletions