[PATCH] libata: don't disable devices from ata_set_mode()
authorTejun Heo <htejun@gmail.com>
Fri, 31 Mar 2006 16:38:18 +0000 (01:38 +0900)
committerJeff Garzik <jeff@garzik.org>
Sat, 1 Apr 2006 19:46:09 +0000 (14:46 -0500)
commite82cbdb9a3791f781462c9d00e3486e8fb7e58a8
tree70c08be45f82a44e86a2889a16841ea58c89fa84
parente8e0619f68bff8f39d98c46aac85ed1d4557ccfd
[PATCH] libata: don't disable devices from ata_set_mode()

When ata_set_mode() fails on a device, make ata_set_mode() return
error code and pointer to the device instead of disabling it directly.
This gives more control to higher level driving logic.

This patch does not change the end result (configured transfer mode)
although it may make libata repeat mode configuration to the peer of a
failing device.  Later ata_bus_probe() rewrite will make full use of
this change.

Signed-off-by: Tejun Heo <htejun@gmail.com>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
drivers/scsi/libata-core.c