Skip to content

mtd: spi-nor-core: Track flash's internal address mode in s25hx-t

[email protected] u-boot 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4mtd: spi-nor-core: Default to addr_width of 3 for configurable widthsdrivers/mtd/spi/spi-nor-core.c+1 -00 replies
2/4mtd: spi-nor-core: Track flash's internal address modedrivers/mtd/spi/spi-nor-core.c include/linux/mtd/spi-nor.h+7 -00 replies
3/4mtd: spi-nor-core: Rework spansion_read/write_any_reg() to use addr_mode_nbytesdrivers/mtd/spi/spi-nor-core.c+8 -80 replies
4/4mtd: spi-nor-core: Rework s25hx_t_post_bfpt_fixup() for flash's internal address modedrivers/mtd/spi/spi-nor-core.c+19 -40 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/4] mtd: spi-nor-core: Track flash's internal address mode in s25hx-t

From: Takahiro Kuwano <[email protected]>

For S25hx-T support in Linux (single die package only), flash's internal address mode is not changed and it is assumed as factory default. Current implementation of u-boot forces to 4-byte address mode while some parts are 3-byte address mode by default. That will cause a problem when we use u-boot to load the Linux kernel. This series tries to avoid the problem, by porting two changes from linux [0][1] and additional rework.

[0] https://patchwork.ozlabs.org/project/linux-mtd/patch/[email protected]/
[1] https://patchwork.ozlabs.org/project/linux-mtd/patch/[email protected]/

Takahiro Kuwano (4):
mtd: spi-nor-core: Default to addr_width of 3 for configurable widths
mtd: spi-nor-core: Track flash's internal address mode
mtd: spi-nor-core: Rework spansion_read/write_any_reg() to use
addr_mode_nbytes
mtd: spi-nor-core: Rework s25hx_t_post_bfpt_fixup() for flash's
internal address mode

 drivers/mtd/spi/spi-nor-core.c | 42 ++++++++++++++++++++++++----------
 include/linux/mtd/spi-nor.h    |  5 ++++
 2 files changed, 35 insertions(+), 12 deletions(-)
Signature · 1 line
2.25.1