]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commit - drivers/cbus/retu-headset.c
CBUS: Fix reentrant issues in retu-headset driver
authorJarkko Nikula <jarkko.nikula@nokia.com>
Wed, 31 Oct 2007 12:04:42 +0000 (14:04 +0200)
committerTony Lindgren <tony@atomide.com>
Thu, 1 Nov 2007 09:03:28 +0000 (02:03 -0700)
commit074e3419440ba83e659be554f827e928826b512d
tree0a8b2add29bc7549ffffca22bedbd30507e06c80
parent9afd4b705891e8afd505ecabec25539b22416d7a
CBUS: Fix reentrant issues in retu-headset driver

- Make headset bias and headset button detection enable/disable functions
  reentrant. Protect also suspend/resume callbacks since they call
  retu_headset_set_bias directly.
- Don't define flag variables as bit fields since bit operations may not be
  atomic and we access one of them from interrupt. Now other flags don't
  need any additional locking since they are not accessed from interrupt
  context.

Signed-off-by: Jarkko Nikula <jarkko.nikula@nokia.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
drivers/cbus/retu-headset.c