Patrick Delaunay
a4f2d83414
mtd: spi: nor: force mtd name to "nor%d"
...
Force the mtd name of spi-nor to "nor" + the driver sequence number:
"nor0", "nor1"... beginning after the existing nor devices.
This patch is coherent with existing "nand" and "spi-nand"
mtd device names.
When CFI MTD NOR device are supported, the spi-nor index is chosen after
the last CFI device defined by CONFIG_SYS_MAX_FLASH_BANKS.
When CONFIG_SYS_MAX_FLASH_BANKS_DETECT is activated, this config
is replaced by to cfi_flash_num_flash_banks in the include file
mtd/cfi_flash.h.
This generic name "nor%d" can be use to identify the mtd spi-nor device
without knowing the real device name or the DT path of the device,
used with API get_mtd_device_nm() and is used in mtdparts command.
This patch also avoids issue when the same NOR device is present 2 times,
for example on STM32MP15F-EV1:
STM32MP> mtd list
SF: Detected mx66l51235l with page size 256 Bytes, erase size 64 KiB, \
total 64 MiB
List of MTD devices:
* nand0
- type: NAND flash
- block size: 0x40000 bytes
- min I/O: 0x1000 bytes
- OOB size: 224 bytes
- OOB available: 118 bytes
- ECC strength: 8 bits
- ECC step size: 512 bytes
- bitflip threshold: 6 bits
- 0x000000000000-0x000040000000 : "nand0"
* mx66l51235l
- device: mx66l51235l@0
- parent: spi@58003000
- driver: jedec_spi_nor
- path: /soc/spi@58003000/mx66l51235l@0
- type: NOR flash
- block size: 0x10000 bytes
- min I/O: 0x1 bytes
- 0x000000000000-0x000004000000 : "mx66l51235l"
* mx66l51235l
- device: mx66l51235l@1
- parent: spi@58003000
- driver: jedec_spi_nor
- path: /soc/spi@58003000/mx66l51235l@1
- type: NOR flash
- block size: 0x10000 bytes
- min I/O: 0x1 bytes
- 0x000000000000-0x000004000000 : "mx66l51235l"
The same mtd name "mx66l51235l" identify the 2 instances
mx66l51235l@0 and mx66l51235l@1.
This patch fixes a ST32CubeProgrammer / stm32prog command issue
with nor0 target on STM32MP157C-EV1 board introduced by
commit b7f060565e ("mtd: spi-nor: allow registering multiple MTDs when
DM is enabled").
Fixes: b7f060565e ("mtd: spi-nor: allow registering multiple MTDs when DM is enabled")
Signed-off-by: Patrick Delaunay <patrick.delaunay@foss.st.com >
[trini: Add <dm/device.h> to <mtd.h> for DM_MAX_SEQ_STR]
Signed-off-by: Tom Rini <trini@konsulko.com >
2021-09-28 12:03:20 -04:00
..
2021-02-01 15:11:41 +08:00
2021-09-18 03:47:50 -06:00
2020-05-18 18:36:55 -04:00
2020-09-09 16:57:35 -04:00
2021-09-24 12:09:47 -04:00
2021-08-16 10:49:35 +02:00
2021-09-28 12:03:20 -04:00
2021-08-25 12:51:53 +08:00
2021-09-10 20:10:20 -04:00
2020-05-18 21:19:23 -04:00
2020-07-17 09:30:13 -04:00
2021-06-17 09:40:57 +08:00
2021-09-28 12:03:20 -04:00
2021-09-28 08:35:19 -04:00
2021-04-29 07:45:24 +02:00
2021-06-16 18:14:08 +05:30
2021-07-15 17:56:04 +05:30
2021-07-23 10:16:39 -04:00
2021-04-12 14:25:31 -04:00
2021-07-23 13:36:20 -04:00
2021-09-08 16:11:46 -04:00
2021-09-22 21:29:56 +02:00
2020-10-23 09:16:01 -04:00
2021-02-21 06:08:00 +01:00
2020-12-13 16:51:08 -07:00
2021-03-05 10:25:43 +05:30
2021-09-13 18:23:13 -04:00
2020-10-09 17:53:12 +08:00
2020-05-18 17:33:33 -04:00
2020-05-11 10:16:49 +05:30
2021-03-19 10:36:06 -04:00
2021-01-15 14:36:12 -05:00
2021-04-20 07:31:12 -04:00
2020-12-04 16:09:06 -05:00
2020-12-13 16:51:09 -07:00
2021-02-02 15:33:42 -05:00
2021-08-01 09:05:24 -06:00
2020-08-24 14:11:13 -04:00
2021-02-02 15:33:42 -05:00
2021-01-25 21:52:00 +00:00
2021-01-25 21:52:00 +00:00
2021-02-02 15:33:42 -05:00
2021-01-31 14:08:56 +01:00
2020-11-05 09:11:31 -07:00
2021-01-27 17:03:16 -05:00
2021-08-05 19:46:35 -04:00
2020-05-18 21:19:23 -04:00
2021-07-21 10:27:35 -06:00
2021-07-21 10:27:34 -06:00
2021-02-02 15:33:42 -05:00
2020-12-04 19:48:29 -05:00
2021-07-07 10:17:54 -04:00
2020-04-22 20:41:56 +08:00
2020-05-18 17:33:33 -04:00
2021-02-22 11:07:57 +01:00
2021-02-02 15:33:42 -05:00
2021-03-27 13:59:37 +13:00
2021-04-10 12:00:24 +02:00
2020-12-04 16:10:01 -05:00
2021-01-12 10:58:04 +05:30
2021-06-17 09:40:57 +08:00
2021-03-27 15:04:31 +13:00
2021-02-02 15:33:42 -05:00
2020-12-26 12:37:28 +01:00
2021-08-06 08:26:09 -04:00
2021-07-28 14:29:37 -04:00
2020-05-18 21:19:23 -04:00
2020-04-28 15:57:58 -04:00
2020-10-29 14:42:17 -06:00
2021-07-23 13:36:20 -04:00
2021-07-28 19:30:22 -04:00
2021-02-02 15:33:42 -05:00
2021-07-21 10:27:34 -06:00
2021-07-23 13:36:20 -04:00
2021-01-30 14:25:42 -07:00
2020-07-08 17:21:46 -04:00
2021-06-18 10:09:41 +02:00
2021-06-08 11:39:09 -04:00
2020-08-03 22:19:54 -04:00
2020-08-03 22:19:54 -04:00
2021-02-02 15:33:42 -05:00
2021-03-26 17:03:08 +13:00
2020-12-09 10:57:50 +01:00
2020-05-29 18:13:19 +08:00
2021-01-15 17:48:36 +08:00
2021-01-30 14:25:41 -07:00
2020-05-07 09:01:42 -04:00
2021-08-17 17:24:08 +02:00
2020-08-03 22:19:54 -04:00
2021-01-13 02:38:01 +01:00
2021-08-17 17:24:08 +02:00
2021-04-10 12:00:24 +02:00
2021-09-25 12:31:08 +02:00
2021-09-04 12:03:57 +02:00
2021-08-17 17:24:08 +02:00
2020-05-18 21:19:23 -04:00
2020-04-24 10:09:59 -04:00
2021-05-04 11:50:50 -04:00
2020-07-31 10:13:00 -04:00
2021-04-16 17:32:34 -04:00
2021-05-04 11:50:50 -04:00
2021-05-24 14:21:30 -04:00
2020-08-03 22:19:54 -04:00
2020-05-18 18:36:55 -04:00
2021-02-21 06:08:00 +01:00
2020-05-18 17:33:33 -04:00
2021-02-02 15:33:42 -05:00
2021-05-13 13:09:05 -04:00
2021-02-26 15:30:55 +01:00
2021-01-23 07:56:53 +01:00
2020-05-18 17:33:33 -04:00
2020-04-26 14:24:08 -06:00
2021-06-23 09:48:36 +02:00
2021-07-27 10:34:27 +09:00
2021-08-11 10:36:10 +02:00
2020-07-17 09:30:13 -04:00
2020-05-18 17:33:33 -04:00
2020-12-13 16:51:09 -07:00
2021-07-12 20:30:48 +02:00
2020-05-18 18:36:55 -04:00
2021-07-07 19:52:22 -04:00
2021-06-22 12:03:32 +08:00
2021-04-06 18:36:04 +08:00
2021-03-23 15:27:08 +05:30
2021-08-09 14:46:51 +02:00
2020-09-24 08:27:44 -04:00
2021-02-02 15:33:42 -05:00
2021-04-08 20:29:52 +02:00
2020-05-18 18:36:55 -04:00
2020-05-14 09:02:12 +02:00
2021-04-10 08:04:42 -04:00
2021-02-10 10:00:51 +01:00
2020-10-30 10:56:11 -04:00
2020-05-18 17:33:33 -04:00
2020-08-26 09:19:16 +02:00
2020-06-12 13:14:07 -04:00
2021-06-08 11:39:09 -04:00
2021-04-12 17:17:11 -04:00
2020-03-16 08:03:05 +01:00
2021-08-22 10:52:53 +02:00
2021-02-02 15:33:42 -05:00
2021-09-14 11:46:48 -04:00
2020-04-24 10:10:00 -04:00
2020-05-01 13:46:21 +02:00
2021-08-06 08:26:48 -04:00
2021-02-02 15:33:42 -05:00
2021-02-16 11:16:08 -05:00
2020-07-17 14:32:24 +08:00
2021-09-17 14:47:03 -04:00
2021-06-11 16:34:52 +05:30
2020-05-18 18:36:55 -04:00
2021-02-02 15:33:42 -05:00
2020-04-17 12:32:36 -04:00
2021-05-24 14:21:30 -04:00
2021-06-07 10:48:40 -04:00
2021-06-08 11:39:09 -04:00
2021-06-23 08:45:03 -04:00
2020-05-07 09:01:42 -04:00
2020-05-01 13:46:22 +02:00
2021-01-15 14:36:12 -05:00
2020-10-18 10:36:05 +02:00
2021-02-02 15:33:42 -05:00
2020-11-29 05:18:37 +01:00
2021-09-10 18:17:04 +08:00
2021-07-07 19:52:24 -04:00
2021-09-28 12:03:20 -04:00
2020-10-28 11:48:32 -04:00
2021-07-23 07:13:25 -04:00
2021-04-08 08:50:52 +02:00
2020-05-10 20:55:20 +02:00
2020-07-08 17:21:46 -04:00
2021-07-10 18:12:41 +02:00
2021-07-22 21:55:05 +03:00
2021-01-05 12:24:40 -07:00
2020-09-15 18:51:53 +05:30
2021-07-21 10:27:34 -06:00
2020-12-13 16:51:09 -07:00
2021-02-21 06:08:00 +01:00
2021-01-16 14:49:09 -05:00
2021-04-22 14:09:45 -04:00
2020-05-18 21:19:23 -04:00
2020-07-17 10:47:19 -04:00
2021-09-13 18:23:13 -04:00
2021-05-20 13:03:30 +02:00
2021-02-10 10:00:51 +01:00
2021-07-06 05:22:41 +03:00
2021-02-18 11:56:25 +01:00
2021-07-07 19:52:24 -04:00
2020-08-14 15:18:30 -04:00
2021-04-10 16:07:12 +02:00
2021-04-12 17:44:55 -04:00
2021-02-02 15:33:42 -05:00
2020-06-14 21:07:20 +02:00
2020-12-13 16:51:09 -07:00
2020-05-18 17:33:33 -04:00
2020-12-13 16:51:08 -07:00
2020-09-30 11:55:22 -04:00
2020-06-14 21:07:20 +02:00
2020-07-09 06:02:44 +02:00
2020-08-24 11:03:26 +02:00
2021-03-27 15:04:31 +13:00
2020-05-18 17:33:33 -04:00
2020-09-30 11:55:23 -04:00
2020-09-30 11:55:23 -04:00
2021-04-12 17:17:11 -04:00
2021-03-13 13:14:52 -05:00
2021-02-02 15:33:42 -05:00
2021-08-06 09:35:34 +02:00
2020-12-04 16:09:06 -05:00
2020-08-06 14:27:27 -04:00
2020-12-31 14:41:31 +01:00
2021-07-24 10:49:51 +02:00
2021-02-02 15:33:42 -05:00
2021-03-27 15:04:31 +13:00
2021-06-28 11:56:06 +05:30
2021-01-05 16:20:26 -05:00
2021-07-31 09:49:32 +02:00
2020-11-19 09:45:49 -05:00
2021-02-16 11:16:07 -05:00
2020-10-22 09:54:53 -04:00
2020-12-09 10:57:50 +01:00
2021-01-11 23:19:33 +00:00
2020-12-13 16:51:09 -07:00
2021-05-04 07:57:18 -04:00
2021-03-02 14:03:02 -05:00
2021-07-23 07:13:25 -04:00
2020-08-03 22:19:54 -04:00
2021-01-31 14:08:56 +01:00
2020-07-17 14:32:24 +08:00
2020-10-22 09:54:53 -04:00
2021-04-06 16:33:19 +12:00
2021-03-02 15:53:37 -05:00
2021-03-02 15:53:37 -05:00
2021-03-02 15:53:37 -05:00
2021-08-14 20:54:41 +02:00
2021-02-02 15:33:42 -05:00
2020-09-24 08:27:44 -04:00
2021-02-21 06:08:00 +01:00
2021-02-21 06:08:00 +01:00
2020-05-18 17:33:33 -04:00
2021-02-02 15:33:42 -05:00
2020-09-01 14:47:43 +02:00
2020-12-13 16:51:09 -07:00
2021-01-31 14:08:56 +01:00
2021-01-27 17:03:16 -05:00
2020-12-13 16:51:09 -07:00
2020-07-09 12:33:24 +08:00
2021-02-22 20:06:43 +01:00
2021-01-27 17:03:16 -05:00
2021-01-05 12:24:41 -07:00
2020-07-17 09:30:13 -04:00
2021-08-02 13:32:14 -04:00
2020-05-18 18:36:55 -04:00
2021-05-13 13:09:09 -04:00
2021-05-13 13:09:09 -04:00
2020-05-18 21:19:18 -04:00
2021-07-28 14:27:54 -04:00
2020-08-03 22:19:54 -04:00
2021-01-15 14:36:12 -05:00
2020-05-18 21:19:23 -04:00
2020-06-23 14:43:23 -04:00
2021-08-06 09:35:34 +02:00
2020-09-23 10:31:41 +02:00
2020-06-24 13:07:57 +02:00