cbus-tahvo: Add tahvo_write_reg locking
authorMichael Büsch <m@bues.ch>
Sat, 5 Nov 2011 16:19:54 +0000 (17:19 +0100)
committerTony Lindgren <tony@atomide.com>
Fri, 18 Nov 2011 23:58:10 +0000 (15:58 -0800)
tahvo_write_reg() needs to take the mutex to avoid a race
condition with tahvo_set_clear_reg_bits:

tahvo_set_clear_reg_bits():   |  tahvo_write_reg():
    __tahvo_read_reg()        |
                              |      __tahvo_write_reg() <-- race here
    __tahvo_write_reg()       |

Signed-off-by: Michael Buesch <m@bues.ch>
Acked-by: Felipe Balbi <balbi@ti.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>

No differences found