]> git.karo-electronics.de Git - karo-tx-linux.git/commit
libata-zpodd: must use ata_tf_init()
authorSergei Shtylyov <sergei.shtylyov@cogentembedded.com>
Sun, 23 Jun 2013 19:25:04 +0000 (23:25 +0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 25 Jul 2013 21:07:27 +0000 (14:07 -0700)
commitfe1ebd057ddfb37a23cc37090d427fb0a68d3000
treee7f66e5e6593b73f1a5924be44517cb6b0bbb4b7
parentbde3f4bb512c34609becce11f23ed6f89e3f488f
libata-zpodd: must use ata_tf_init()

commit d0887c43f51c308b01605346e55d906ba858a6f9 upstream.

There are  some SATA controllers which have both devices 0 and 1 but this module
just zeroes out taskfile and sets then ATA_TFLAG_DEVICE (not sure that's needed)
which could  lead to a wrong device being selected just before issuing command.
Thus we should  call ata_tf_init()  which sets  up the device register value
properly, like  all other users of ata_exec_internal() do...

Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/ata/libata-zpodd.c