Re: [PATCH] cbus-tahvo: Add tahvo_write_reg locking

2011-11-07 Thread Michael Büsch
On Mon, 7 Nov 2011 08:10:45 +0200 Felipe Balbi ba...@ti.com wrote: Hi, On Sat, Nov 05, 2011 at 05:19:54PM +0100, Michael Büsch wrote: 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():

Re: [PATCH] cbus-tahvo: Add tahvo_write_reg locking

2011-11-07 Thread Felipe Balbi
Hi, On Mon, Nov 07, 2011 at 09:18:36AM +, Michael Büsch wrote: On Sat, Nov 05, 2011 at 05:19:54PM +0100, Michael Büsch wrote: 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():

Re: [PATCH] cbus-tahvo: Add tahvo_write_reg locking

2011-11-06 Thread Felipe Balbi
Hi, On Sat, Nov 05, 2011 at 05:19:54PM +0100, Michael Büsch wrote: 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()| |

[PATCH] cbus-tahvo: Add tahvo_write_reg locking

2011-11-05 Thread Michael Büsch
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() |