<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel.git/drivers/platform/x86/surface3_power.c, branch linux-5.10.y</title>
<subtitle>Hosts the 0x221E linux distro kernel.
</subtitle>
<id>https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-5.10.y</id>
<link rel='self' href='https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-5.10.y'/>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/'/>
<updated>2022-03-02T10:42:51Z</updated>
<entry>
<title>surface: surface3_power: Fix battery readings on batteries without a serial number</title>
<updated>2022-03-02T10:42:51Z</updated>
<author>
<name>Hans de Goede</name>
</author>
<published>2022-02-24T10:18:48Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=a184f4dd9b330d57b997ee7b4b20e05ef22ef0cc'/>
<id>urn:sha1:a184f4dd9b330d57b997ee7b4b20e05ef22ef0cc</id>
<content type='text'>
commit 21d90aaee8d5c2a097ef41f1430d97661233ecc6 upstream.

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 &lt;benjamin.tissoires@redhat.com&gt;
Reviewed-by: Maximilian Luz &lt;luzmaximilian@gmail.com&gt;
Signed-off-by: Hans de Goede &lt;hdegoede@redhat.com&gt;
Link: https://lore.kernel.org/r/20220224101848.7219-1-hdegoede@redhat.com
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>platform/x86: surface3_power: Fix a NULL vs IS_ERR() check in probe</title>
<updated>2020-04-17T13:47:26Z</updated>
<author>
<name>Dan Carpenter</name>
</author>
<published>2020-04-07T09:30:52Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=4dbccb873f2b35ad1b26419ff88c80509e2d4cbb'/>
<id>urn:sha1:4dbccb873f2b35ad1b26419ff88c80509e2d4cbb</id>
<content type='text'>
The i2c_acpi_new_device() function never returns NULL, it returns error
pointers.

Fixes: b1f81b496b0d ("platform/x86: surface3_power: MSHW0011 rev-eng implementation")
Signed-off-by: Dan Carpenter &lt;dan.carpenter@oracle.com&gt;
Signed-off-by: Andy Shevchenko &lt;andriy.shevchenko@linux.intel.com&gt;
</content>
</entry>
<entry>
<title>platform/x86: surface3_power: Fix always true condition in mshw0011_space_handler()</title>
<updated>2020-03-30T10:26:50Z</updated>
<author>
<name>Andy Shevchenko</name>
</author>
<published>2020-03-30T10:26:50Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=d878bdfba8ffda64265c921cf7497934a607f83a'/>
<id>urn:sha1:d878bdfba8ffda64265c921cf7497934a607f83a</id>
<content type='text'>
smatch warnings:
.../surface3_power.c:417 mshw0011_space_handler() warn: always true condition '(ret &gt;= 0) =&gt; +(0-u32max &gt;= 0)'

Refactor error handling returned by mshw0011_adp_psr() to avoid always
true condition.

Reported-by: kbuild test robot &lt;lkp@intel.com&gt;
Signed-off-by: Andy Shevchenko &lt;andriy.shevchenko@linux.intel.com&gt;
</content>
</entry>
<entry>
<title>platform/x86: surface3_power: Add missed headers</title>
<updated>2020-03-28T20:37:30Z</updated>
<author>
<name>Andy Shevchenko</name>
</author>
<published>2020-03-26T12:28:25Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=dd4a93569bd3656ec9fac364a28a61dde9f162a9'/>
<id>urn:sha1:dd4a93569bd3656ec9fac364a28a61dde9f162a9</id>
<content type='text'>
We obviously are users of bits.h and types.h. Add them to the list.

Signed-off-by: Andy Shevchenko &lt;andriy.shevchenko@linux.intel.com&gt;
</content>
</entry>
<entry>
<title>platform/x86: surface3_power: Reformat GUID assignment</title>
<updated>2020-03-28T20:37:29Z</updated>
<author>
<name>Andy Shevchenko</name>
</author>
<published>2020-03-26T12:21:15Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=3d8fc115a3493ef782a2864c6a42b165cefb9871'/>
<id>urn:sha1:3d8fc115a3493ef782a2864c6a42b165cefb9871</id>
<content type='text'>
For better readability reformat GUID assignment.
While here, add the comment how this GUID looks in a string representation.

Signed-off-by: Andy Shevchenko &lt;andriy.shevchenko@linux.intel.com&gt;
</content>
</entry>
<entry>
<title>platform/x86: surface3_power: Drop useless macro ACPI_PTR()</title>
<updated>2020-03-28T20:37:29Z</updated>
<author>
<name>Andy Shevchenko</name>
</author>
<published>2020-03-26T12:13:19Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=f1f25fc89a28863766a9827907189ea75ef9215c'/>
<id>urn:sha1:f1f25fc89a28863766a9827907189ea75ef9215c</id>
<content type='text'>
Driver depends to ACPI, this marco always is evaluated to the parameter,
thus useless. Drop it for good.

Signed-off-by: Andy Shevchenko &lt;andriy.shevchenko@linux.intel.com&gt;
</content>
</entry>
<entry>
<title>platform/x86: surface3_power: Prefix POLL_INTERVAL with SURFACE_3</title>
<updated>2020-03-28T20:37:29Z</updated>
<author>
<name>Andy Shevchenko</name>
</author>
<published>2020-03-27T10:48:47Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=fcbb1142fea32fed1d944992f57033cf90d0fb4a'/>
<id>urn:sha1:fcbb1142fea32fed1d944992f57033cf90d0fb4a</id>
<content type='text'>
For better namespace maintenance prefix POLL_INTERVAL macro with SURFACE_3.

Signed-off-by: Andy Shevchenko &lt;andriy.shevchenko@linux.intel.com&gt;
</content>
</entry>
<entry>
<title>platform/x86: surface3_power: Simplify mshw0011_adp_psr() to one liner</title>
<updated>2020-03-28T20:37:29Z</updated>
<author>
<name>Andy Shevchenko</name>
</author>
<published>2020-03-26T14:05:56Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=48978995950b2ebbebdc47623fe55c75f1633e40'/>
<id>urn:sha1:48978995950b2ebbebdc47623fe55c75f1633e40</id>
<content type='text'>
Refactor mshw0011_adp_psr() to be one liner.

Signed-off-by: Andy Shevchenko &lt;andriy.shevchenko@linux.intel.com&gt;
</content>
</entry>
<entry>
<title>platform/x86: surface3_power: Use dev_err() instead of pr_err()</title>
<updated>2020-03-28T20:37:29Z</updated>
<author>
<name>Andy Shevchenko</name>
</author>
<published>2020-03-26T12:19:45Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=74bef188eac103ecfeaf9cd48b86e12f2a2492af'/>
<id>urn:sha1:74bef188eac103ecfeaf9cd48b86e12f2a2492af</id>
<content type='text'>
We have device and we may use it to print messages.

Signed-off-by: Andy Shevchenko &lt;andriy.shevchenko@linux.intel.com&gt;
</content>
</entry>
<entry>
<title>platform/x86: surface3_power: Drop unused structure definition</title>
<updated>2020-03-28T20:37:29Z</updated>
<author>
<name>Andy Shevchenko</name>
</author>
<published>2020-03-27T10:45:34Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=c9c10913ea00111b7ce3304634e8131ec073495e'/>
<id>urn:sha1:c9c10913ea00111b7ce3304634e8131ec073495e</id>
<content type='text'>
As reported by kbuild bot the struct mshw0011_lookup in never used.
Drop its definition for good.

Reported-by: kbuild test robot &lt;lkp@intel.com&gt;
Signed-off-by: Andy Shevchenko &lt;andriy.shevchenko@linux.intel.com&gt;
</content>
</entry>
</feed>
