Bartosz Golaszewski
5478e478ee
eeprom: at24: correctly set the size for at24mac402
...
There's an ilog2() expansion in AT24_DEVICE_MAGIC() which rounds down
the actual size of EUI-48 byte array in at24mac402 eeproms to 4 from 6,
making it impossible to read it all.
Fix it by manually adjusting the value in probe().
This patch contains a temporary fix that is suitable for stable
branches. Eventually we'll probably remove the call to ilog2() while
converting the magic values to actual structs.
Cc: stable@vger.kernel.org
Fixes: 0b813658c1 ("eeprom: at24: add support for at24mac series")
Signed-off-by: Bartosz Golaszewski <brgl@bgdev.pl >
Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com >
2017-11-29 15:22:24 +01:00
..
2017-11-17 14:51:24 -08:00
2017-11-14 16:54:12 -08:00
2017-11-16 09:10:59 -08:00
2017-11-15 14:11:41 -08:00
2017-11-21 15:57:07 -08:00
2017-11-13 17:56:58 -08:00
2017-11-21 16:35:54 -08:00
2017-11-15 11:56:19 -08:00
2017-11-21 16:35:54 -08:00
2017-11-16 16:05:01 -08:00
2017-11-14 15:32:19 -08:00
2017-11-26 14:11:54 -08:00
2017-11-17 20:04:24 -08:00
2017-11-23 16:29:05 +01:00
2017-11-13 19:43:50 -08:00
2017-11-16 12:47:46 -08:00
2017-11-16 12:47:46 -08:00
2017-11-17 09:51:57 -08:00
2017-11-13 01:41:39 +01:00
2017-11-14 16:49:31 -08:00
2017-11-17 14:58:01 -08:00
2017-11-15 13:46:33 -08:00
2017-11-13 21:14:07 -08:00
2017-11-13 17:56:58 -08:00
2017-11-21 15:46:44 -08:00
2017-11-16 09:10:59 -08:00
2017-11-16 10:57:11 -08:00
2017-11-25 08:37:16 -10:00
2017-11-21 15:57:07 -08:00
2017-11-15 13:35:43 -08:00
2017-11-16 09:10:59 -08:00
2017-11-16 01:03:19 -08:00
2017-11-17 20:16:20 -08:00
2017-11-16 09:10:59 -08:00
2017-11-17 11:54:55 -08:00
2017-11-19 08:04:41 -10:00
2017-11-13 01:34:14 +01:00
2017-11-21 15:57:07 -08:00
2017-11-21 16:35:54 -08:00
2017-11-21 16:35:54 -08:00
2017-11-21 15:57:07 -08:00
2017-11-26 14:39:20 -08:00
2017-11-21 15:57:09 -08:00
2017-11-14 18:09:31 -08:00
2017-11-21 15:46:44 -08:00
2017-11-13 17:56:58 -08:00
2017-11-15 13:39:18 -08:00
2017-11-17 10:56:56 -08:00
2017-11-21 16:35:54 -08:00
2017-11-16 16:05:01 -08:00
2017-11-21 15:57:07 -08:00
2017-11-15 13:46:33 -08:00
2017-11-21 15:57:07 -08:00
2017-11-29 15:22:24 +01:00
2017-11-21 15:57:07 -08:00
2017-11-25 08:37:16 -10:00
2017-11-25 08:37:16 -10:00
2017-11-21 15:57:09 -08:00
2017-11-21 15:57:07 -08:00
2017-11-13 12:10:24 -08:00
2017-11-17 09:51:57 -08:00
2017-11-16 11:27:04 -07:00
2017-11-16 09:10:59 -08:00
2017-11-20 21:38:41 -10:00
2017-11-16 09:10:59 -08:00
2017-11-26 14:11:54 -08:00
2017-11-17 16:10:04 -08:00
2017-11-15 10:56:56 -08:00
2017-11-13 21:14:07 -08:00
2017-11-16 10:57:11 -08:00
2017-11-25 08:37:16 -10:00
2017-11-15 13:37:15 -08:00
2017-11-21 15:57:07 -08:00
2017-11-16 13:06:27 -08:00
2017-11-22 21:09:18 -10:00
2017-11-17 16:56:17 -08:00
2017-11-13 17:56:58 -08:00
2017-11-16 09:15:57 -08:00
2017-11-17 20:14:10 -08:00
2017-11-16 16:05:01 -08:00
2017-11-17 20:12:08 -08:00
2017-11-25 08:37:16 -10:00
2017-11-21 16:35:54 -08:00
2017-11-17 20:21:44 -08:00
2017-11-25 08:37:16 -10:00
2017-11-14 16:54:12 -08:00
2017-11-16 16:05:01 -08:00
2017-11-10 21:33:51 +00:00
2017-11-21 16:35:54 -08:00
2017-11-25 08:37:16 -10:00
2017-11-17 14:31:27 -08:00
2017-11-16 09:10:59 -08:00
2017-11-21 16:35:54 -08:00
2017-11-21 15:57:07 -08:00
2017-11-21 15:57:07 -08:00
2017-11-14 16:47:47 -08:00
2017-11-17 12:08:18 -08:00
2017-11-20 21:50:24 -10:00
2017-11-14 23:57:38 +02:00
2017-11-16 09:10:59 -08:00
2017-11-16 09:10:59 -08:00
2017-11-21 15:57:07 -08:00
2017-11-21 15:57:05 -08:00
2017-11-13 01:40:52 +01:00
2017-11-13 01:40:52 +01:00