]> git.baikalelectronics.ru Git - kernel.git/commit
eeprom: at24: fix reading from 24MAC402/24MAC602
authorHeiner Kallweit <hkallweit1@gmail.com>
Mon, 27 Nov 2017 19:46:22 +0000 (20:46 +0100)
committerBartosz Golaszewski <brgl@bgdev.pl>
Wed, 29 Nov 2017 15:05:30 +0000 (16:05 +0100)
commitae785cb8c09bc939c5519b4829de9a87385252de
tree879537696164e55bcf6a98631adf3ecdb1d9e948
parent000d87dda8be396f0149390f0dcebed4bdc8fed8
eeprom: at24: fix reading from 24MAC402/24MAC602

Chip datasheet mentions that word addresses other than the actual
start position of the MAC delivers undefined results. So fix this.
Current implementation doesn't work due to this wrong offset.

Cc: stable@vger.kernel.org
Fixes: 508026b0bb4d ("eeprom: at24: add support for at24mac series")
Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Signed-off-by: Bartosz Golaszewski <brgl@bgdev.pl>
drivers/misc/eeprom/at24.c