Oleksij Rempel
392ff7a84c
net: dsa: microchip: ksz8863_smi: fix bulk access
...
Current regmap bulk access is broken, resulting to wrong reads/writes
if ksz_read64/ksz_write64 functions are used.
Mostly this issue was visible by using ksz8_fdb_dump(), which returned
corrupt MAC address.
The reason is that regmap was configured to have max_raw_read/write,
even if ksz8863_mdio_read/write functions are able to handle unlimited
read/write accesses. On ksz_read64 function we are using multiple 32bit
accesses by incrementing each access by 1 instead of 4. Resulting buffer
had 01234567.12345678 instead of 01234567.89abcdef.
We have multiple ways to fix it:
- enable 4 byte alignment for 32bit accesses. Since the HW do not have
this requirement. It will break driver.
- disable max_raw_* limit.
This patch is removing max_raw_* limit for regmap accesses in ksz8863_smi.
Fixes: 60a3647600 ("net: dsa: microchip: Add Microchip KSZ8863 SMI based driver support")
Signed-off-by: Oleksij Rempel <o.rempel@pengutronix.de >
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com >
Signed-off-by: David S. Miller <davem@davemloft.net >
2023-03-25 11:17:32 +00:00
..
2023-03-13 12:44:53 +01:00
2023-01-22 08:37:23 +01:00
2023-03-17 16:44:41 +01:00
2023-01-27 13:45:52 +01:00
2023-02-24 12:47:33 -08:00
2023-03-16 16:54:38 +09:00
2023-03-21 20:19:28 -07:00
2023-03-05 11:19:16 -08:00
2023-01-27 13:45:52 +01:00
2023-03-15 08:48:58 -06:00
2023-03-23 13:09:38 -07:00
2023-02-27 10:04:49 -08:00
2023-03-12 23:28:10 +02:00
2023-03-06 14:41:20 -08:00
2023-02-21 09:45:13 -08:00
2023-01-22 08:37:23 +01:00
2023-03-03 10:30:58 -08:00
2023-03-07 14:04:13 +01:00
2023-03-05 11:32:30 -08:00
2023-02-25 09:19:23 -08:00
2023-02-25 09:19:23 -08:00
2023-02-24 17:18:54 -08:00
2023-02-17 09:16:34 +01:00
2023-02-21 08:10:03 -08:00
2023-01-27 13:45:52 +01:00
2023-02-04 13:05:42 +00:00
2023-02-24 12:58:55 -08:00
2023-03-09 18:00:31 +01:00
2023-02-24 12:58:55 -08:00
2023-01-27 13:45:38 +01:00
2023-03-07 14:15:10 +01:00
2023-03-20 11:12:37 -07:00
2023-01-27 13:45:52 +01:00
2023-03-09 10:17:23 -08:00
2023-02-24 12:58:55 -08:00
2023-02-24 12:58:55 -08:00
2023-03-15 19:15:00 -07:00
2023-02-24 12:58:55 -08:00
2023-03-09 22:07:52 +01:00
2023-02-28 16:05:01 -08:00
2023-02-21 12:13:58 -08:00
2023-02-24 12:47:33 -08:00
2023-02-24 15:11:03 -08:00
2023-02-27 10:04:49 -08:00
2023-03-13 21:13:48 +02:00
2023-02-27 10:04:49 -08:00
2023-02-24 12:58:55 -08:00
2023-02-25 11:30:21 -08:00
2023-02-23 15:09:31 -08:00
2023-02-25 11:00:06 -08:00
2023-02-23 14:47:13 -06:00
2023-01-27 13:45:52 +01:00
2023-03-15 12:18:07 -06:00
2023-03-18 11:07:15 -07:00
2023-03-13 21:13:49 +02:00
2023-02-27 09:47:26 -08:00
2023-02-27 14:05:08 -08:00
2023-03-09 21:58:45 +01:00
2023-03-09 15:33:51 +01:00
2023-03-11 09:24:05 -08:00
2023-03-25 11:17:32 +00:00
2023-03-15 00:28:23 -07:00
2023-02-25 11:48:02 -08:00
2023-03-16 07:01:48 -06:00
2023-03-10 10:55:49 +01:00
2023-02-24 13:40:13 -08:00
2023-02-16 13:48:53 +01:00
2023-02-24 12:47:33 -08:00
2023-03-13 09:15:11 +01:00
2023-02-24 12:58:55 -08:00
2023-03-03 09:32:51 -08:00
2023-02-27 10:04:49 -08:00
2023-02-27 10:04:49 -08:00
2023-03-07 12:08:30 +01:00
2023-03-03 16:33:28 -08:00
2023-03-03 10:30:58 -08:00
2023-03-24 19:17:22 -07:00
2023-02-20 12:26:35 +01:00
2023-01-27 13:45:52 +01:00
2023-03-02 09:21:25 -08:00
2023-02-27 10:04:49 -08:00
2023-02-26 12:10:28 -08:00
2023-03-03 09:15:50 -08:00
2023-03-03 14:41:50 -08:00
2023-02-09 16:51:39 -08:00
2023-03-24 08:27:13 -07:00
2023-03-01 09:44:22 -08:00
2023-01-27 13:45:52 +01:00
2023-02-27 10:04:49 -08:00
2023-02-24 17:29:52 -08:00
2023-03-02 09:25:38 -08:00
2023-01-27 13:45:52 +01:00
2023-01-27 13:45:52 +01:00
2023-03-09 10:06:28 +01:00
2023-03-06 16:50:42 -05:00
2023-02-24 12:58:55 -08:00
2023-03-03 20:34:49 +01:00
2023-02-24 12:58:55 -08:00
2023-03-19 10:09:58 -07:00
2023-03-09 21:09:28 -05:00
2023-02-23 17:09:35 -08:00
2023-02-24 17:22:11 -08:00
2023-03-13 02:29:12 -04:00
2023-03-13 12:50:59 -06:00
2023-03-13 02:29:11 -04:00
2023-03-18 16:01:34 -07:00
2023-03-13 13:29:27 +01:00
2023-02-25 11:48:02 -08:00
2023-03-09 21:58:57 +01:00
2023-03-02 11:12:01 -08:00
2023-03-17 10:45:49 -07:00
2023-01-27 13:45:52 +01:00
2023-02-26 11:53:25 -08:00