From bcce5d2a1a51cafc0dad764e0f84781eee930a5d Mon Sep 17 00:00:00 2001 From: patacongo Date: Sun, 12 Sep 2010 14:35:25 +0000 Subject: Early AT45DB debug fixes git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@2943 42af7a65-404d-4744-a932-0658087f49c3 --- nuttx/drivers/mtd/at45db.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'nuttx/drivers/mtd') diff --git a/nuttx/drivers/mtd/at45db.c b/nuttx/drivers/mtd/at45db.c index 314978e32..d090a1b85 100644 --- a/nuttx/drivers/mtd/at45db.c +++ b/nuttx/drivers/mtd/at45db.c @@ -312,9 +312,10 @@ static inline int at45db_rdid(struct at45db_dev_s *priv) fvdbg("priv: %p\n", priv); - /* Lock the SPI bus, configure the bus, and select this FLASH part. */ + /* Configure the bus, and select this FLASH part. (The caller should alread have + * loced the bus for exclusive access) + */ - at45db_lock(priv); SPI_SELECT(priv->spi, SPIDEV_FLASH, true); /* Send the " Manufacturer and Device ID Read" command and read the first three @@ -329,7 +330,6 @@ static inline int at45db_rdid(struct at45db_dev_s *priv) /* Deselect the FLASH and unlock the bus */ SPI_SELECT(priv->spi, SPIDEV_FLASH, false); - at45db_unlock(priv); fvdbg("manufacturer: %02x devid1: %02x devid2: %02x\n", manufacturer, devid1, devid2); -- cgit v1.2.3