Skip to content

Commit ea3be86

Browse files
committed
Sending two consecutive spi transactions is nonsense, fixed
1 parent 95e54fa commit ea3be86

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

recipes-kernel/kernel-modules/x8h7/x8h7_gpio.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -376,20 +376,20 @@ static void x8h7_gpio_irq_bus_sync_unlock(struct irq_data *d)
376376
unsigned long irq;
377377

378378
DBG_PRINT("\n");
379+
379380
irq = irqd_to_hwirq(d);
380381

381382
// Send interrupt type
382383
data[0] = irq;
383384
data[1] = inf->irq_conf;
384385
x8h7_pkt_enq(X8H7_GPIO_PERIPH, X8H7_GPIO_OC_IRQ_TYPE, 2, data);
385-
x8h7_pkt_send();
386386

387387
// Send mask
388388
data[0] = irq;
389389
data[1] = inf->gpio_ien;
390390
x8h7_pkt_enq(X8H7_GPIO_PERIPH, X8H7_GPIO_OC_IEN, 2, data);
391-
x8h7_pkt_send();
392391

392+
x8h7_pkt_send();
393393
mutex_unlock(&inf->lock);
394394
}
395395

0 commit comments

Comments
 (0)