Files
linux/drivers
Bartosz Golaszewski d3da2efa6d eeprom: at24: correctly set the size for at24mac402
commit 5478e478ee upstream.

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.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2017-12-05 11:24:33 +01:00
..
2016-12-05 14:53:46 -05:00
2017-11-24 08:33:42 +01:00
2017-11-30 08:39:13 +00:00
2017-10-18 09:35:38 +02:00
2017-10-12 11:51:24 +02:00
2017-11-08 10:08:34 +01:00
2017-11-30 08:39:13 +00:00
2017-09-09 17:39:41 +02:00
2016-09-20 20:57:12 +10:00
2017-11-21 09:23:25 +01:00