From 221bbad6821d5b1bb07153cba0579bfb7b9b414d Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Tue, 31 Jul 2018 12:55:19 -0600 Subject: [PATCH] drivers/usbhost/usbhost_max3421e.c: Fix unmatched SPI lock/unlock. --- configs/metro-m4/README.txt | 3 +++ drivers/usbhost/usbhost_max3421e.c | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/configs/metro-m4/README.txt b/configs/metro-m4/README.txt index a9e81cd70f..fa314231ed 100644 --- a/configs/metro-m4/README.txt +++ b/configs/metro-m4/README.txt @@ -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 ============== diff --git a/drivers/usbhost/usbhost_max3421e.c b/drivers/usbhost/usbhost_max3421e.c index c4f19efbdb..160185a206 100644 --- a/drivers/usbhost/usbhost_max3421e.c +++ b/drivers/usbhost/usbhost_max3421e.c @@ -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.