[9610] wlbt: Add memory barrier in BT IRQ handler
authorSoren Andersen <s.andersen@samsung.com>
Thu, 29 Nov 2018 12:45:06 +0000 (13:45 +0100)
committerKim Gunho <gunho.kim@samsung.com>
Fri, 28 Jun 2019 14:45:53 +0000 (23:45 +0900)
Added a memory barrier in the IRQ handler for BT,
to ensure that the irq bit is cleared before starting
to read the shared mailbox indexes.

Change-Id: I9b3979695bc23dd09c3a46a2f3130aa81e949ec4
SCSC-Bug-Id: SSB-46925
Signed-off-by: Soren Andersen <s.andersen@samsung.com>
drivers/misc/samsung/scsc_bt/scsc_shm.c

index 12e0903dfd33a27c38b0b7dd61c3d5e0e2f648f1..e1786b37aaabf9717d8daabbfad8c28e6c57d2a5 100755 (executable)
@@ -51,6 +51,8 @@ static void scsc_bt_shm_irq_handler(int irqbit, void *data)
 {
        /* Clear interrupt */
        scsc_service_mifintrbit_bit_clear(bt_service.service, irqbit);
+
+       /* Ensure irq bit is cleared before reading the mailbox indexes */
        mb();
 
        bt_service.interrupt_count++;