]> git.baikalelectronics.ru Git - kernel.git/commit
HSI: omap_ssi_port: replace wkin_cken with atomic bitmap operations
authorSebastian Reichel <sre@kernel.org>
Sat, 30 Apr 2016 15:11:54 +0000 (17:11 +0200)
committerSebastian Reichel <sre@kernel.org>
Mon, 27 Jun 2016 22:38:47 +0000 (00:38 +0200)
commit07f5ae87889fb46c7d6e0f6f7a280ac0ffbaefea
tree92608f1337e83e95c3ae3c60145e24b253d2b57f
parent207a30dcf5677fb3bf36fae255e05ce0d6ef4838
HSI: omap_ssi_port: replace wkin_cken with atomic bitmap operations

This simplifies the code and avoids holding a spin_lock when
runtime pm calls are made. Once the irq_safe flag is removed
for omap_ssi's runtime pm, pm_runtime_get/put_sync can sleep,
which is a no-go while holding a spin_lock.

Signed-off-by: Sebastian Reichel <sre@kernel.org>
Tested-by: Pavel Machek <pavel@ucw.cz>
drivers/hsi/controllers/omap_ssi.h
drivers/hsi/controllers/omap_ssi_port.c