]> git.sur5r.net Git - u-boot/commit
sf: stmicro: dont send 4 bytes when reading status register
authorMike Frysinger <vapier@gentoo.org>
Thu, 2 Apr 2009 16:51:28 +0000 (12:51 -0400)
committerMike Frysinger <vapier@gentoo.org>
Thu, 2 Apr 2009 16:51:28 +0000 (12:51 -0400)
commitd9596ffbdc79cea285010b67dd20a4618303f624
tree7ff278dd3468fb85ba484cc641c6c75ac00b7584
parent1abe365ffcfc29c061e8fd8b45551be5ad1428dd
sf: stmicro: dont send 4 bytes when reading status register

I can't find anywhere in the datasheet that says the status register needs
3 dummy bytes sent to it before being able to read back the first real
result.  Tests on a Blackfin board show that after writing the opcode, the
status register starts coming back immediately.  So only write out the
read status register opcode before polling the result.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
CC: Jason McMullan <mcmullan@netapp.com>
CC: TsiChung Liew <Tsi-Chung.Liew@freescale.com>
drivers/mtd/spi/stmicro.c