summaryrefslogtreecommitdiff
path: root/nuttx/drivers/mtd
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2010-09-12 14:35:25 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2010-09-12 14:35:25 +0000
commitbcce5d2a1a51cafc0dad764e0f84781eee930a5d (patch)
treee8f9c17f81dbae0c016e49ac3ffd658b07df3475 /nuttx/drivers/mtd
parentb5ad58b9561b9ec0528425f31dc4e1a49e2e365b (diff)
downloadpx4-nuttx-bcce5d2a1a51cafc0dad764e0f84781eee930a5d.tar.gz
px4-nuttx-bcce5d2a1a51cafc0dad764e0f84781eee930a5d.tar.bz2
px4-nuttx-bcce5d2a1a51cafc0dad764e0f84781eee930a5d.zip
Early AT45DB debug fixes
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@2943 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/drivers/mtd')
-rw-r--r--nuttx/drivers/mtd/at45db.c6
1 files changed, 3 insertions, 3 deletions
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);