rtc: ds1685: use threaded interrupt
Handling of extended interrupts (kickstart, wake-up, ram-clear) was
moved off to a work queue, but the interrupts aren't acknowledged
in the interrupt handler. This leads to a deadlock, if driver
is used with interrupts. To fix this we use a threaded interrupt, get rid
of the work queue and do locking with just the rtc mutex lock.
Fixes: aaaf5fbf56
("rtc: add driver for DS1685 family of real time clocks")
Signed-off-by: Thomas Bogendoerfer <tbogendoerfer@suse.de>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
This commit is contained in:

committed by
Alexandre Belloni

parent
e330c3d547
commit
3b6bddda2f
@@ -48,8 +48,6 @@ struct ds1685_priv {
|
||||
u32 regstep;
|
||||
resource_size_t baseaddr;
|
||||
size_t size;
|
||||
spinlock_t lock;
|
||||
struct work_struct work;
|
||||
int irq_num;
|
||||
bool bcd_mode;
|
||||
bool no_irq;
|
||||
|
Reference in New Issue
Block a user