History

Merge tag 'mtd/fixes-for-6.16-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/mtd/linux

Pull mtd fixes from Miquel Raynal: "The main fix that really needs to get in is the revert of the patch adding the new mtd_master class, because it entirely fails the partitioning if a specific Kconfig option is set. We need to think how to handle that differently, so let's revert it as we need to get back to the pen and paper situation again. Otherwise the definition of some Winbond SPI NAND chips are receiving some fixes (geometry and maximum frequency, mostly). And finally a small memory leak gets also fixed" * tag 'mtd/fixes-for-6.16-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/mtd/linux: mtd: spinand: fix memory leak of ECC engine conf mtd: spinand: winbond: Prevent unsupported frequencies on dual/quad I/O variants mtd: spinand: winbond: Increase maximum frequency on an octal operation mtd: spinand: winbond: Fix W35N number of planes/LUN Revert "mtd: core: always create master device"

Linus Torvalds committed 1 year ago

Commit 3f75bff2 parents a765b9e 6463cbe8 files · +63 −132Browse files

Showing the changes to include/linux (2 of 8 files). Show all

Unified · Split

2 files
  1. include/linux/mtd/partitions.h +1 −1
  2. include/linux/mtd/spinand.h +6 −4
include/linux/mtd/partitions.h+1−1
@@ -108,7 +108,7 @@ extern void deregister_mtd_parser(struct mtd_part_parser *parser); · 107 unmodified lines
108108 deregister_mtd_parser)
109109
110110 int mtd_add_partition(struct mtd_info *master, const char *name,
111− long long offset, long long length, struct mtd_info **part);
111+ long long offset, long long length);
112112 int mtd_del_partition(struct mtd_info *master, int partno);
113113 uint64_t mtd_get_device_size(const struct mtd_info *mtd);
114114
include/linux/mtd/spinand.h+6−4
@@ -113,11 +113,12 @@ · 112 unmodified lines
113113 SPI_MEM_DTR_OP_DATA_IN(len, buf, 2), \
114114 SPI_MEM_OP_MAX_FREQ(freq))
115115
116−#define SPINAND_PAGE_READ_FROM_CACHE_1S_2S_2S_OP(addr, ndummy, buf, len) \
116+#define SPINAND_PAGE_READ_FROM_CACHE_1S_2S_2S_OP(addr, ndummy, buf, len, ...) \
117117 SPI_MEM_OP(SPI_MEM_OP_CMD(0xbb, 1), \
118118 SPI_MEM_OP_ADDR(2, addr, 2), \
119119 SPI_MEM_OP_DUMMY(ndummy, 2), \
120− SPI_MEM_OP_DATA_IN(len, buf, 2))
120+ SPI_MEM_OP_DATA_IN(len, buf, 2), \
121+ SPI_MEM_OP_MAX_FREQ(__VA_ARGS__ + 0))
121122
122123 #define SPINAND_PAGE_READ_FROM_CACHE_3A_1S_2S_2S_OP(addr, ndummy, buf, len) \
123124 SPI_MEM_OP(SPI_MEM_OP_CMD(0xbb, 1), \
@@ -151,11 +152,12 @@ · 27 unmodified lines
151152 SPI_MEM_DTR_OP_DATA_IN(len, buf, 4), \
152153 SPI_MEM_OP_MAX_FREQ(freq))
153154
154−#define SPINAND_PAGE_READ_FROM_CACHE_1S_4S_4S_OP(addr, ndummy, buf, len) \
155+#define SPINAND_PAGE_READ_FROM_CACHE_1S_4S_4S_OP(addr, ndummy, buf, len, ...) \
155156 SPI_MEM_OP(SPI_MEM_OP_CMD(0xeb, 1), \
156157 SPI_MEM_OP_ADDR(2, addr, 4), \
157158 SPI_MEM_OP_DUMMY(ndummy, 4), \
158− SPI_MEM_OP_DATA_IN(len, buf, 4))
159+ SPI_MEM_OP_DATA_IN(len, buf, 4), \
160+ SPI_MEM_OP_MAX_FREQ(__VA_ARGS__ + 0))
159161
160162 #define SPINAND_PAGE_READ_FROM_CACHE_3A_1S_4S_4S_OP(addr, ndummy, buf, len) \
161163 SPI_MEM_OP(SPI_MEM_OP_CMD(0xeb, 1), \

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t