Thread (4 messages) flat view 4 messages, 3 authors, 2016-08-19

Re: [PATCH] smc91c92_cs : add a spinlock to avoid race condition

From: David Miller <davem@davemloft.net>
Date: 2016-08-19 04:07:37
Also in: lkml

From: Pavel Andrianov <redacted>
Date: Tue, 16 Aug 2016 16:39:06 +0300
smc_reset may be executed in parallel with timer function media_check.
To avoid data race in smc_set_xcvr a spinlock was added.

Found by Linux Driver Verification project (linuxtesting.org).

Signed-off-by: Pavel Andrianov <redacted>
This is not sufficient.

You have to block basically the entire function, because both
smc_reset and media_check program the bank selection so could
corrupt eachother's register accesses.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help