summaryrefslogtreecommitdiff
path: root/Documentation/userspace-api
diff options
context:
space:
mode:
authorHans de Goede <hdegoede@redhat.com>2022-02-24 13:18:48 +0300
committerHans de Goede <hdegoede@redhat.com>2022-03-02 13:42:36 +0300
commitf094399fae9cde11c3f98565eb150522aa7c15ab (patch)
tree58ed6aa919d30cddeb065f000d062b666afb367c /Documentation/userspace-api
parent32370191c0851da069d242f581cbe2fdb80040cb (diff)
downloadlinux-f094399fae9cde11c3f98565eb150522aa7c15ab.tar.xz
surface: surface3_power: Fix battery readings on batteries without a serial number
The battery on the 2nd hand Surface 3 which I recently bought appears to not have a serial number programmed in. This results in any I2C reads from the registers containing the serial number failing with an I2C NACK. This was causing mshw0011_bix() to fail causing the battery readings to not work at all. Ignore EREMOTEIO (I2C NACK) errors when retrieving the serial number and continue with an empty serial number to fix this. Fixes: b1f81b496b0d ("platform/x86: surface3_power: MSHW0011 rev-eng implementation") BugLink: https://github.com/linux-surface/linux-surface/issues/608 Reviewed-by: Benjamin Tissoires <benjamin.tissoires@redhat.com> Reviewed-by: Maximilian Luz <luzmaximilian@gmail.com> Signed-off-by: Hans de Goede <hdegoede@redhat.com> Link: https://lore.kernel.org/r/20220224101848.7219-1-hdegoede@redhat.com
Diffstat (limited to 'Documentation/userspace-api')
0 files changed, 0 insertions, 0 deletions