]> git.baikalelectronics.ru Git - kernel.git/commit
libata-core: auditting chk_status v check_status
authorAlan Cox <alan@lxorguk.ukuu.org.uk>
Tue, 23 Oct 2007 15:50:02 +0000 (16:50 +0100)
committerJeff Garzik <jeff@garzik.org>
Wed, 24 Oct 2007 01:20:02 +0000 (21:20 -0400)
commitd3f32c1ad953bab8089d5b6f93a4df0777d74ce6
treef1d76250c05026d742c2a75538977fc1a7dcf3b8
parent51213d405628e66c830a2ed2dd1aa9c55274e050
libata-core: auditting chk_status v check_status

Did a complete audit of these and found we have another error case.

ata_bus_softreset calls ata_check_status which means that it tries to do
an ioread8 on the port blindly and check versus 0xFF for an error.

It should of course be using the ap->ops method for this via chk_status,
and this bug causes a wrog status call on the NS87415 at least.

Signed-off-by: Alan Cox <alan@redhat.com>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
drivers/ata/libata-core.c