Skip to content

mtd: intel-spi: split read/write modes

Mauro Lima linux-mtd 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 3 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4mtd: intel-spi: rename intel-spi to intel-spi-basedrivers/mtd/spi-nor/controllers/Makefile drivers/mtd/spi-nor/controllers/intel-spi-base.c drivers/mtd/spi-nor/controllers/intel-spi-base.h +2 more+4 -31 reply
2/4mtd: intel-spi: move chip internals into a defs.hdrivers/mtd/spi-nor/controllers/intel-spi-base.c drivers/mtd/spi-nor/controllers/intel-spi-base.h drivers/mtd/spi-nor/controllers/intel-spi-defs.h +1 more+161 -1500 replies
3/4mtd: intel-spi: moving write/erase functionsdrivers/mtd/spi-nor/controllers/Makefile drivers/mtd/spi-nor/controllers/intel-spi-base.c drivers/mtd/spi-nor/controllers/intel-spi-rw.h +1 more+345 -2600 replies
4/4mtd: intel-spi: add read only stubsdrivers/mtd/spi-nor/controllers/Kconfig drivers/mtd/spi-nor/controllers/Makefile drivers/mtd/spi-nor/controllers/intel-spi-ro.c +1 more+88 -171 reply

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: intel-spi: split read/write modes

The purpose of the following patchset is to split read/write functionality from the Intel PCH/PCU SPI flash driver. Being able to use the driver in read-only mode (harmless), the users can get important firmware information from userspace which also includes being able to perform firmware attestation to verify integrity.

Currently fwupd is accessing to firmware information but only with SecureBoot disabled. With this driver the fwupd project could get such information with SecureBoot enabled.

Mauro Lima (4):
mtd: intel-spi: rename intel-spi to intel-spi-base
mtd: intel-spi: move chip internals into a defs.h
mtd: intel-spi: moving write/erase functions
mtd: intel-spi: add read only stubs

 drivers/mtd/spi-nor/controllers/Kconfig       |  50 +-
 drivers/mtd/spi-nor/controllers/Makefile      |   3 +
 .../{intel-spi.c => intel-spi-base.c}         | 442 ++----------------
 .../{intel-spi.h => intel-spi-base.h}         |   1 +
 .../mtd/spi-nor/controllers/intel-spi-defs.h  | 157 +++++++
 .../mtd/spi-nor/controllers/intel-spi-pci.c   |   2 +-
 .../spi-nor/controllers/intel-spi-platform.c  |   2 +-
 .../mtd/spi-nor/controllers/intel-spi-ro.c    |  50 ++
 .../mtd/spi-nor/controllers/intel-spi-rw.h    |  24 +
 drivers/mtd/spi-nor/controllers/intel-spi-w.c | 289 ++++++++++++
 include/linux/platform_data/x86/intel-spi.h   |   2 +
 11 files changed, 595 insertions(+), 427 deletions(-)
 rename drivers/mtd/spi-nor/controllers/{intel-spi.c => intel-spi-base.c} (54%)
 rename drivers/mtd/spi-nor/controllers/{intel-spi.h => intel-spi-base.h} (97%)
 create mode 100644 drivers/mtd/spi-nor/controllers/intel-spi-defs.h
 create mode 100644 drivers/mtd/spi-nor/controllers/intel-spi-ro.c
 create mode 100644 drivers/mtd/spi-nor/controllers/intel-spi-rw.h
 create mode 100644 drivers/mtd/spi-nor/controllers/intel-spi-w.c
Signature · 30 lines
2.31.1


-- 


This e-mail and any attachments may contain information that is 
privileged, confidential,  and/or exempt from disclosure under applicable 
law.  If you are not the intended recipient, you are hereby notified that 
any disclosure, copying, distribution or use of any information contained 
herein is strictly prohibited. If you have received this transmission in 
error, please immediately notify the sender and destroy the original 
transmission and any attachments, whether in electronic or hard copy 
format, without reading or saving.













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