drivers/usbhost/usbhost_max3421e.c: Fix unmatched SPI lock/unlock.

This commit is contained in:
Gregory Nutt 2018-07-31 12:55:19 -06:00
parent d543937a19
commit 221bbad682
2 changed files with 4 additions and 1 deletions

View File

@ -30,6 +30,9 @@ STATUS
configuration options still need to be verified. Unverified SERCOM
USART, SPI, I2C, Port configuration, and DMA support have been added.
I still have no hardware in hand to test.
2018-07-20: Brought in the USB driver from the SAML21. It is the same
USB IP with only small differences. There a a few, small open issues
still to be resolved.
Serial Console
==============

View File

@ -3065,7 +3065,7 @@ static void max3421e_irqwork(FAR void *arg)
/* Get exclusive access to the SPI bus */
max3421e_unlock(priv);
max3421e_lock(priv);
/* Loop while there are pending interrupts to process. This loop may save a
* little interrupt handling overhead.