<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel.git/drivers/ata/libata-sff.c, branch linux-5.18.y</title>
<subtitle>Hosts the 0x221E linux distro kernel.
</subtitle>
<id>https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-5.18.y</id>
<link rel='self' href='https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-5.18.y'/>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/'/>
<updated>2022-04-04T00:49:42Z</updated>
<entry>
<title>ata: libata-sff: Fix compilation warning in ata_sff_lost_interrupt()</title>
<updated>2022-04-04T00:49:42Z</updated>
<author>
<name>Damien Le Moal</name>
</author>
<published>2022-03-22T07:01:37Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=76ed2f61ae3ee5ca6e3ef155a703ab3eee1eb295'/>
<id>urn:sha1:76ed2f61ae3ee5ca6e3ef155a703ab3eee1eb295</id>
<content type='text'>
When returning false, ata_sff_altstatus() does not return any status
value, resulting in a compilation warning in ata_sff_lost_interrupt()
("uninitialized symbol 'status'"). Fix this by initializing the local
variable "status" to 0.

Fixes: 03c0e84f9c1e ("ata: libata-sff: refactor ata_sff_altstatus()")
Cc: stable@vger.kernel.org
Signed-off-by: Damien Le Moal &lt;damien.lemoal@opensource.wdc.com&gt;
</content>
</entry>
<entry>
<title>ata: libata-sff: use *switch* statement in ata_sff_dev_classify()</title>
<updated>2022-02-20T00:06:05Z</updated>
<author>
<name>Sergey Shtylyov</name>
</author>
<published>2022-02-17T15:38:29Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=ffa92a7457555df6871cfb15c2fb3afcb02c4d2b'/>
<id>urn:sha1:ffa92a7457555df6871cfb15c2fb3afcb02c4d2b</id>
<content type='text'>
In ata_sff_dev_classify(), replace a string of the *if* statements checking
the device's class with the *switch* statement that fits better here...

While at it, fix the multi-line comment style in the vicinity...

Signed-off-by: Sergey Shtylyov &lt;s.shtylyov@omp.ru&gt;
Signed-off-by: Damien Le Moal &lt;damien.lemoal@opensource.wdc.com&gt;
</content>
</entry>
<entry>
<title>ata: add/use ata_taskfile::{error|status} fields</title>
<updated>2022-02-20T00:06:05Z</updated>
<author>
<name>Sergey Shtylyov</name>
</author>
<published>2022-02-15T18:49:26Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=efcef265fd83d9a68a68926abecb3e1dd3e260a8'/>
<id>urn:sha1:efcef265fd83d9a68a68926abecb3e1dd3e260a8</id>
<content type='text'>
Add the explicit error and status register fields to 'struct ata_taskfile'
using the anonymous *union*s ('struct ide_taskfile' had that for ages!) and
update the libata taskfile code accordingly. There should be no object code
changes resulting from that...

Signed-off-by: Sergey Shtylyov &lt;s.shtylyov@omp.ru&gt;
Signed-off-by: Damien Le Moal &lt;damien.lemoal@opensource.wdc.com&gt;
</content>
</entry>
<entry>
<title>ata: libata-sff: refactor ata_sff_altstatus()</title>
<updated>2022-02-20T00:03:17Z</updated>
<author>
<name>Sergey Shtylyov</name>
</author>
<published>2022-02-13T15:10:32Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=03c0e84f9c1e166d57d06b04497e11205f48e9a8'/>
<id>urn:sha1:03c0e84f9c1e166d57d06b04497e11205f48e9a8</id>
<content type='text'>
The driver's calls to ata_sff_altstatus() are mostly surrounded by some
clumsy checks. Refactor ata_sff_altstatus() to include the repetitive
checks and return a 'bool' result indicating if the alternate status
register exists or not.

While at it, further update the 'kernel-doc' comment -- the alternate
status register has never been a part of the taskfile, despite what
Jeff and co. think! :-)

In ata_sff_lost_interrupt(), wrap the ata_sff_altstatus() call in a
WARN_ON_ONCE() check to issue a warning if the device control register
does not exist. And while at it, fix the strange argument indentation
in the ata_port_warn() call following the call to ata_sff_altstatus().

Signed-off-by: Sergey Shtylyov &lt;s.shtylyov@omp.ru&gt;
Signed-off-by: Damien Le Moal &lt;damien.lemoal@opensource.wdc.com&gt;
</content>
</entry>
<entry>
<title>ata: libata-sff: refactor ata_sff_set_devctl()</title>
<updated>2022-02-19T02:18:49Z</updated>
<author>
<name>Sergey Shtylyov</name>
</author>
<published>2022-02-13T15:10:31Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=4fc5f0aa9712418dcb12c446a904a359e5568659'/>
<id>urn:sha1:4fc5f0aa9712418dcb12c446a904a359e5568659</id>
<content type='text'>
Commit 41dec29bcb05 ("libata: introduce sff_set_devctl() method") left some
clumsy checks surrounding calls to ata_sff_set_devctl() which Jeff Garzik
suggested to factor out...  and I never followed up. :-(

At last, refactor ata_sff_set_devctl() to include the repetitive checks and
return a 'bool' result indicating if the device control register exists or
not.

While at it, further update the 'kernel-doc' comment -- the device control
register has never been a part of the taskfile, despite what Jeff and co.
think! :-)

Signed-off-by: Sergey Shtylyov &lt;s.shtylyov@omp.ru&gt;
Signed-off-by: Damien Le Moal &lt;damien.lemoal@opensource.wdc.com&gt;
</content>
</entry>
<entry>
<title>ata: libata-sff: make ata_resources_present() return 'bool'</title>
<updated>2022-02-19T02:18:49Z</updated>
<author>
<name>Sergey Shtylyov</name>
</author>
<published>2022-02-13T11:50:00Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=b51aa532e105722d0dfb21718f0b32780c9e8e8d'/>
<id>urn:sha1:b51aa532e105722d0dfb21718f0b32780c9e8e8d</id>
<content type='text'>
ata_resources_present() returns 1 if the primary/secondary channel's PCI
resources are present,  0 if not -- the 'bool' type fits somewhat better
here than 'int'...

Use the *= operator, while at it...

Signed-off-by: Sergey Shtylyov &lt;s.shtylyov@omp.ru&gt;
Signed-off-by: Damien Le Moal &lt;damien.lemoal@opensource.wdc.com&gt;
</content>
</entry>
<entry>
<title>ata: libata-sff: make ata_devchk() return 'bool'</title>
<updated>2022-02-19T02:18:43Z</updated>
<author>
<name>Sergey Shtylyov</name>
</author>
<published>2022-02-09T21:46:28Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=1336aa88d8553292604878c53538297fbc65bf0a'/>
<id>urn:sha1:1336aa88d8553292604878c53538297fbc65bf0a</id>
<content type='text'>
ata_devchk() returns 1 if a device is present, 0 if not -- the 'bool' type
clearly fits better here than 'unsigned int'...

Signed-off-by: Sergey Shtylyov &lt;s.shtylyov@omp.ru&gt;
Signed-off-by: Damien Le Moal &lt;damien.lemoal@opensource.wdc.com&gt;
</content>
</entry>
<entry>
<title>ata: libata: ata_{sff|std}_prereset() always return 0</title>
<updated>2022-02-03T00:04:33Z</updated>
<author>
<name>Sergey Shtylyov</name>
</author>
<published>2022-02-02T20:07:45Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=ac1eb6655be440b6c0199f6bc9d20d610fc29d0d'/>
<id>urn:sha1:ac1eb6655be440b6c0199f6bc9d20d610fc29d0d</id>
<content type='text'>
ata_std_prereset() always returns 0, hence the check in ata_sff_prereset()
is pointless and thus it also can return only 0 (however, we cannot change
the prototypes of ata_{sff|std}_prereset() as they implement the driver's
prereset() method).

Found by Linux Verification Center (linuxtesting.org) with the SVACE static
analysis tool.

Signed-off-by: Sergey Shtylyov &lt;s.shtylyov@omp.ru&gt;
Signed-off-by: Damien Le Moal &lt;damien.lemoal@opensource.wdc.com&gt;
</content>
</entry>
<entry>
<title>ata: libata: remove debug compilation switches</title>
<updated>2022-01-05T10:33:02Z</updated>
<author>
<name>Hannes Reinecke</name>
</author>
<published>2021-12-21T07:21:09Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=870bb833c0acb29d8471eac5c2d2e6274826dbb6'/>
<id>urn:sha1:870bb833c0acb29d8471eac5c2d2e6274826dbb6</id>
<content type='text'>
Unused now, so remove and drop any references to them.

Signed-off-by: Hannes Reinecke &lt;hare@suse.de&gt;
Signed-off-by: Damien Le Moal &lt;damien.lemoal@opensource.wdc.com&gt;
</content>
</entry>
<entry>
<title>ata: libata: drop ata_msg_probe()</title>
<updated>2022-01-05T10:33:02Z</updated>
<author>
<name>Hannes Reinecke</name>
</author>
<published>2021-12-21T07:21:05Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=17a1e1be2fc7dc99945b41df0485037dcb6044d0'/>
<id>urn:sha1:17a1e1be2fc7dc99945b41df0485037dcb6044d0</id>
<content type='text'>
All callsites have been converted to dynamic debugging.

Signed-off-by: Hannes Reinecke &lt;hare@suse.de&gt;
Signed-off-by: Damien Le Moal &lt;damien.lemoal@opensource.wdc.com&gt;
</content>
</entry>
</feed>
