eeprom: ee1004: Deal with nack on page selection
authorJean Delvare <jdelvare@suse.de>
Mon, 6 May 2019 13:16:56 +0000 (15:16 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 24 May 2019 18:42:50 +0000 (20:42 +0200)
commit31641e34e8a3da5735d3cc901fb986bf6df28b6f
tree4318a4207e2407a7223936d054ed6ac61f2ed91a
parent5d458751749abda241b7d0a16136c3d49080cf07
eeprom: ee1004: Deal with nack on page selection

Some EE1004 implementations will not properly ack page selection
commands. They still set the page correctly, so there is no actual
error. Deal with this case gracefully by checking the currently
selected page after we receive a nack. If the page is set right then
we can continue.

Signed-off-by: Jean Delvare <jdelvare@suse.de>
Tested-by: Jarkko Nikula <jarkko.nikula@linux.intel.com>
Cc: Arnd Bergmann <arnd@arndb.de>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/misc/eeprom/ee1004.c