linux-mtd.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] mtd: spi-nor: manufacturers: Replace hardcoded values for addr_nbytes/addr_mode_nbytes
@ 2022-07-28  4:14 Tudor Ambarus
  2022-07-28  4:14 ` [PATCH 1/2] mtd: spi-nor: spansion: " Tudor Ambarus
                   ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: Tudor Ambarus @ 2022-07-28  4:14 UTC (permalink / raw)
  To: p.yadav, michael, Takahiro.Kuwano, tkuw584924
  Cc: miquel.raynal, richard, vigneshr, Bacem.Daassi, linux-mtd, Tudor Ambarus

We track in the core the internal address mode of the flash. Stop using
hardcoded values for the number of bytes of address and use
nor->addr_nbytes and nor->params->addr_mode_nbytes instead.

I don't have those flashes to test the changes, so I'll need some
Tested-by tags.

Tudor Ambarus (2):
  mtd: spi-nor: spansion: Replace hardcoded values for
    addr_nbytes/addr_mode_nbytes
  mtd: spi-nor: micron-st.c: Replace hardcoded values for
    addr_nbytes/addr_mode_nbytes

 drivers/mtd/spi-nor/micron-st.c | 10 +++++++---
 drivers/mtd/spi-nor/spansion.c  | 16 +++++++++++-----
 2 files changed, 18 insertions(+), 8 deletions(-)

-- 
2.25.1


______________________________________________________
Linux MTD discussion mailing list
http://lists.infradead.org/mailman/listinfo/linux-mtd/

^ permalink raw reply	[flat|nested] 8+ messages in thread
* [PATCH 0/2] mtd: spi-nor: manufacturers: Replace hardcoded values for addr_nbytes/addr_mode_nbytes
@ 2022-07-28  4:13 Tudor Ambarus
  0 siblings, 0 replies; 8+ messages in thread
From: Tudor Ambarus @ 2022-07-28  4:13 UTC (permalink / raw)
  To: p.yadav, michael, Takahiro.Kuwano, tkuw584924
  Cc: miquel.raynal, richard, vigneshr, Bacem.Daassi, linux-mtd, Tudor Ambarus

We track in the core the internal address mode of the flash. Stop using
hardcoded values for the number of bytes of address and use
nor->addr_nbytes and nor->params->addr_mode_nbytes instead.

I don't have those flashes to test the changes, so I'll need some
Tested-by tags.

Tudor Ambarus (2):
  mtd: spi-nor: spansion: Replace hardcoded values for
    addr_nbytes/addr_mode_nbytes
  mtd: spi-nor: micron-st.c: Replace hardcoded values for
    addr_nbytes/addr_mode_nbytes

 drivers/mtd/spi-nor/micron-st.c | 10 +++++++---
 drivers/mtd/spi-nor/spansion.c  | 16 +++++++++++-----
 2 files changed, 18 insertions(+), 8 deletions(-)

-- 
2.25.1


______________________________________________________
Linux MTD discussion mailing list
http://lists.infradead.org/mailman/listinfo/linux-mtd/

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2022-10-25  2:33 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-07-28  4:14 [PATCH 0/2] mtd: spi-nor: manufacturers: Replace hardcoded values for addr_nbytes/addr_mode_nbytes Tudor Ambarus
2022-07-28  4:14 ` [PATCH 1/2] mtd: spi-nor: spansion: " Tudor Ambarus
2022-07-28  4:27   ` Tudor.Ambarus
2022-07-29  2:35     ` Takahiro Kuwano
2022-07-29  5:32       ` Tudor.Ambarus
2022-07-28  4:14 ` [PATCH 2/2] mtd: spi-nor: micron-st.c: " Tudor Ambarus
2022-10-25  2:33 ` [PATCH 0/2] mtd: spi-nor: manufacturers: " Tudor Ambarus
  -- strict thread matches above, loose matches on Subject: below --
2022-07-28  4:13 Tudor Ambarus

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).