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.
Showing the changes to include/linux (1 of 2 files). Show all
Unified · Split
| @@ -48,8 +48,6 @@ struct ds1685_priv { · 47 unmodified lines | |||
| 48 | u32 regstep; | 48 | u32 regstep; |
| 49 | resource_size_t baseaddr; | 49 | resource_size_t baseaddr; |
| 50 | size_t size; | 50 | size_t size; |
| 51 | spinlock_t lock; | ||
| 52 | struct work_struct work; | ||
| 53 | int irq_num; | 51 | int irq_num; |
| 54 | bool bcd_mode; | 52 | bool bcd_mode; |
| 55 | bool no_irq; | 53 | bool no_irq; |