commit | 83206a2903fd2ddb1761d906b2b3b3de17ef87f1 | [log] [tgz] |
---|---|---|
author | Tejun Heo <htejun@gmail.com> | Fri Mar 24 15:25:31 2006 +0900 |
committer | Jeff Garzik <jeff@garzik.org> | Fri Mar 24 09:39:57 2006 -0500 |
tree | 405de7b43809146ae27a52cad00a897369644f61 | |
parent | fcef978f9d4bd6ec43f89031442ee205987a912a [diff] |
[PATCH] libata: make ata_set_mode() responsible for failure handling Make ata_set_mode() responsible for determining whether to take port or device offline on failure. ata_dev_set_xfermode() and ata_dev_set_mode() indicate error to the caller instead of disabling port directly on failure. Also, for consistency, ata_dev_present() check is done in ata_set_mode() instead of ata_dev_set_mode(). Signed-off-by: Tejun Heo <htejun@gmail.com> Signed-off-by: Jeff Garzik <jeff@garzik.org>