]> git.baikalelectronics.ru Git - kernel.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)
committerTejun Heo <tj@kernel.org>
Mon, 24 Jun 2013 22:45:28 +0000 (15:45 -0700)
commit9cbd2dfc58e7c19eac3197c033252340cb2f97c9
tree3a8a73f1b10ef05984f55e09e6e9f0569eb80e97
parent544a986c38654b2f0b11171c1856ed467e0a485e
libata-zpodd: must use ata_tf_init()

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>
Cc: stable@vger.kernel.org
drivers/ata/libata-zpodd.c