[U-Boot] [PATCH 2/4] sf: unify status polling for ready bit

Wolfgang Denk wd at denx.de
Mon Apr 11 21:01:22 CEST 2011


Dear Mike Frysinger,

In message <1294644014-7560-3-git-send-email-vapier at gentoo.org> you wrote:
> All of the spi flash drivers implement the status register polling for
> detecting the device ready state, so unify them all in a new helper
> function -- spi_flash_wait_ready.
> 
> Signed-off-by: Mike Frysinger <vapier at gentoo.org>
> ---
>  drivers/mtd/spi/atmel.c              |   31 +-------------------
>  drivers/mtd/spi/eon.c                |   48 ++-----------------------------
>  drivers/mtd/spi/macronix.c           |   48 ++-----------------------------
>  drivers/mtd/spi/spansion.c           |   41 ++------------------------
>  drivers/mtd/spi/spi_flash.c          |   41 +++++++++++++++++++++++++++
>  drivers/mtd/spi/spi_flash_internal.h |   15 ++++++++++
>  drivers/mtd/spi/sst.c                |   41 ++-------------------------
>  drivers/mtd/spi/stmicro.c            |   48 ++-----------------------------
>  drivers/mtd/spi/winbond.c            |   51 ++-------------------------------
>  9 files changed, 81 insertions(+), 283 deletions(-)

Applied, thanks.

Best regards,

Wolfgang Denk

-- 
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
Niklaus Wirth has lamented that, whereas Europeans pronounce his name
correctly (Ni-klows Virt), Americans invariably mangle it into (Nick-
les Worth). Which is to say that Europeans  call  him  by  name,  but
Americans call him by value.


More information about the U-Boot mailing list