[U-Boot] [PATCH v4 0/5] sf: Optimize spi_flash features code

Jagannadha Sutradharudu Teki jagannadha.sutradharudu-teki at xilinx.com
Tue Feb 4 17:06:12 CET 2014


Shrinked spi_slave and spi_flash code with respect to added
flash features.

V4:
- Use braces in bit fileds m << n becomes (m << n)
- Use mode instead of "mode_bits"
V3:
- Return -ENOMEM for calloc fails
V2: 
- Divide dual_flash code into two patches.

Jagannadha Sutradharudu Teki (5):
  sf: ops: Squash the malloc+memset combo
  sf: Optimize flash features code
  sf: Use slave mode for dual_flash connection
  doc: SPI: Update the dual_flash info
  sf: Update bank configuration

 doc/SPI/README.dual-flash     |   5 +-
 doc/SPI/README.sf-features    | 124 ++++++++++++++++++++++++++++++
 drivers/mtd/spi/sf.c          |   4 +-
 drivers/mtd/spi/sf_internal.h |   1 -
 drivers/mtd/spi/sf_ops.c      |  16 ++--
 drivers/mtd/spi/sf_params.c   | 172 +++++++++++++++++++++---------------------
 drivers/mtd/spi/sf_probe.c    | 101 ++++++++++++-------------
 include/spi.h                 |  42 ++++-------
 include/spi_flash.h           |  34 ++++-----
 9 files changed, 302 insertions(+), 197 deletions(-)
 create mode 100644 doc/SPI/README.sf-features

-- 
1.8.3




More information about the U-Boot mailing list