]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
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)
- 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>

No differences found