mirror of https://github.com/hak5/openwrt.git
lantiq: fix xway spi driver timeout issues
Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 47767lede-17.01
parent
ae10274239
commit
b963cec01c
|
@ -803,7 +803,7 @@ Signed-off-by: John Crispin <blogic@openwrt.org>
|
||||||
+
|
+
|
||||||
+ /* Enable TX or RX interrupts */
|
+ /* Enable TX or RX interrupts */
|
||||||
+ ltq_spi_reg_setbit(hw, irq_flags, LTQ_SPI_IRNEN);
|
+ ltq_spi_reg_setbit(hw, irq_flags, LTQ_SPI_IRNEN);
|
||||||
+ wait_for_completion_interruptible(&hw->done);
|
+ wait_for_completion(&hw->done);
|
||||||
+
|
+
|
||||||
+ /* Disable all interrupts */
|
+ /* Disable all interrupts */
|
||||||
+ ltq_spi_reg_clearbit(hw, LTQ_SPI_IRNEN_ALL, LTQ_SPI_IRNEN);
|
+ ltq_spi_reg_clearbit(hw, LTQ_SPI_IRNEN_ALL, LTQ_SPI_IRNEN);
|
||||||
|
|
Loading…
Reference in New Issue