Pratyush Yadav
71025f013c
mtd: spi-nor-core: Rework hwcaps selection
...
The spi-mem layer provides a spi_mem_supports_op() function to check
whether a specific operation is supported by the controller or not.
This is much more accurate than the hwcaps selection logic based on
SPI_{RX,TX}_ flags.
Rework the hwcaps selection logic to use spi_mem_supports_op().
To make sure the build doesn't break for boards not using CONFIG_DM_SPI,
add a simple SPI_{RX,TX}_ based hwcaps selection logic in spi-mem-nodm
similar to spi_mem_default_supports_op(). This change is only
compile-tested.
To avoid SPL size problems on the x530 board, the old hwcaps selection
is still kept around. Leaving the code in-place was getting difficult to
read and understand, so the code is restructured to have it all in one
isolated function. As a result of this, the parameter hwcaps to
spi_nor_setup() is no longer needed. Remove it.
Based on the Linux commit c76f5089796a (mtd: spi-nor: Rework hwcaps
selection for the spi-mem case, 2019-08-06)
Signed-off-by: Pratyush Yadav <p.yadav@ti.com >
Reviewed-by: Jagan Teki <jagan@amarulasolutions.com >
2021-06-28 11:59:35 +05:30
..
2021-02-01 15:11:41 +08:00
2021-06-08 11:39:09 -04:00
2021-06-18 14:37:07 +08:00
2020-07-22 12:37:17 +02:00
2021-06-24 11:53:00 +05:30
2021-06-18 14:34:48 +08:00
2021-05-27 14:56:42 +05:30
2020-05-18 21:19:23 -04:00
2021-06-17 09:40:57 +08:00
2019-12-06 16:44:20 -05:00
2021-06-28 11:59:35 +05:30
2019-10-16 05:42:27 +02:00
2021-04-29 07:45:24 +02:00
2021-02-16 11:48:20 -05:00
2021-04-29 07:38:57 +02:00
2021-04-12 14:25:31 -04:00
2021-06-08 11:39:09 -04:00
2021-04-14 15:06:08 -04:00
2021-02-18 11:56:26 +01: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
2020-10-09 17:53:12 +08:00
2020-05-18 17:33:33 -04:00
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-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
2020-12-13 16:51:08 -07:00
2021-01-27 17:03:16 -05:00
2021-02-02 15:33:42 -05:00
2020-12-04 19:48:29 -05: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-01-20 08:09:34 +01:00
2021-02-21 06:08:00 +01:00
2020-10-29 14:42:17 -06:00
2021-06-08 11:39:09 -04:00
2021-03-02 14:03:02 -05:00
2021-02-02 15:33:42 -05:00
2021-04-10 16:08:39 +02:00
2021-01-30 14:25:42 -07:00
2021-06-18 10:09:41 +02:00
2021-06-08 11:39:09 -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
2021-01-15 17:48:36 +08:00
2021-01-30 14:25:41 -07:00
2021-03-25 20:19:19 +01:00
2021-01-13 02:38:01 +01:00
2021-05-28 16:17:01 +02:00
2021-04-10 12:00:24 +02:00
2021-05-28 16:17:01 +02:00
2021-01-20 08:17:17 +01:00
2021-04-10 12:00:24 +02:00
2021-05-04 11:50:50 -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
2021-02-21 06:08:00 +01: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
2021-05-13 07:19:34 -04:00
2021-04-29 03:23:39 -07:00
2021-04-06 08:55:53 +02:00
2020-12-13 16:51:09 -07:00
2021-04-08 23:44:40 +02:00
2021-04-06 18:36:04 +08:00
2021-03-23 15:27:08 +05:30
2021-02-02 15:33:42 -05:00
2021-04-08 20:29:52 +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
2019-02-20 15:27:09 +08:00
2021-06-08 11:39:09 -04:00
2021-04-12 17:17:11 -04:00
2021-03-26 17:03:08 +13:00
2021-02-02 15:33:42 -05:00
2021-06-11 16:34:52 +05:30
2021-02-15 10:16:45 -05:00
2021-02-02 15:33:42 -05:00
2021-02-16 11:16:08 -05:00
2021-06-11 16:34:52 +05:30
2021-06-11 16:34:52 +05:30
2021-02-02 15:33:42 -05: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-03-27 15:04:31 +13: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-02-19 15:10:41 +08:00
2021-06-24 11:54:07 +05:30
2020-10-28 11:48:32 -04:00
2020-10-28 11:48:55 -04:00
2021-04-08 08:50:52 +02:00
2021-02-16 11:48:20 -05:00
2021-04-20 07:31:12 -04:00
2021-01-05 12:24:40 -07:00
2021-04-06 16:33:19 +12: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
2021-05-02 12:46:54 +02:00
2021-05-20 13:03:30 +02:00
2021-02-10 10:00:51 +01:00
2021-02-16 11:48:20 -05:00
2021-02-18 11:56:25 +01:00
2021-01-15 14:36:11 -05: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-12-13 16:51:09 -07:00
2020-12-13 16:51:08 -07:00
2021-03-27 15:04:31 +13: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-02-04 20:37:57 +05:30
2020-12-04 16:09:06 -05:00
2020-12-31 14:41:31 +01:00
2021-03-27 13:59:37 +13: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-04-19 11:34:01 -04: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-02-02 15:33:42 -05:00
2021-01-31 14:08:56 +01: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-05-28 16:17:01 +02:00
2021-02-02 15:33:42 -05:00
2021-02-21 06:08:00 +01:00
2021-02-21 06:08:00 +01:00
2021-02-02 15:33:42 -05: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
2021-02-22 20:06:43 +01:00
2021-01-27 17:03:16 -05:00
2021-01-05 12:24:41 -07:00
2021-05-13 13:09:09 -04:00
2021-05-13 13:09:09 -04:00
2021-01-15 14:36:12 -05:00
2020-10-29 08:55:43 +01:00