libata: update atapi disable handling
authorTejun Heo <tj@kernel.org>
Wed, 30 Jul 2008 22:52:40 +0000 (07:52 +0900)
committerJeff Garzik <jgarzik@redhat.com>
Thu, 31 Jul 2008 05:47:05 +0000 (01:47 -0400)
commit2486fa561a3192bbbec39c7feef87a1e07bd6342
tree4241264273c63714e4c2021e7de69aee8bb2b20c
parentbfce5e0179ad059035df28558724ff60af708e09
libata: update atapi disable handling

Global and per-LLD ATAPI disable checks were done in the command issue
path probably because it was left out during EH conversion.  On
affected machines, this can cause lots of warning messages.  Move them
to where they belong - the probing path.

Reported by Chunbo Luo.

Signed-off-by: Tejun Heo <tj@kernel.org>
Cc: Chunbo Luo <chunbo.luo@windriver.com>
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
drivers/ata/libata-core.c
drivers/ata/libata-scsi.c
drivers/ata/libata.h