]> git.baikalelectronics.ru Git - kernel.git/commit
rt2x00: rt2800usb: fix status register reread logic
authorStanislaw Gruszka <sgruszka@redhat.com>
Mon, 19 Mar 2012 14:59:41 +0000 (15:59 +0100)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 26 Mar 2012 19:07:28 +0000 (15:07 -0400)
commit58a6c2dd7919a677ee63216f615b266a32b506f7
tree495e82d14143904cc5f1c036bc1bda0be54928c1
parente756ac4504ae22911501ef1e3fb793b6f7e333eb
rt2x00: rt2800usb: fix status register reread logic

Another good catch from Jakub Kicinski. This patch fixes my
recent commit: c4c4afbf85d47017b7febd68241e1b60086777f7
"rt2x00: rt2800usb: rework txdone code"

We should reread status register only when nobody else start already
reading status i.e. test_and_set_bit(TX_STATUS_READING, flags) return 0.

Reported-by: Jakub Kicinski <moorray@wp.pl>
Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com>
Acked-by: Gertjan van Wingerde <gwingerde@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/rt2x00/rt2800usb.c