summaryrefslogtreecommitdiff
path: root/lib/string.c
diff options
context:
space:
mode:
authorTejun Heo <htejun@gmail.com>2006-12-12 22:58:48 -0500
committerChris Wright <chrisw@sous-sol.org>2007-01-10 11:05:18 -0800
commita1803540413ea466bca67803cf71d9339e48bfb6 (patch)
treea163b878052f42713a111c0376aa86d4954733f5 /lib/string.c
parenta151f5843d0a34013d9c5ebffd7f9be838699c24 (diff)
[PATCH] libata: handle 0xff status properly
libata waits for !BSY even when the status register reports 0xff. This causes long boot delays when D8 isn't pulled down properly. This patch does the followings. * don't wait if status register is 0xff in all wait functions * make ata_busy_sleep() return 0 on success and -errno on failure. -ENODEV is returned on 0xff status and -EBUSY on other failures. * make ata_bus_softreset() succeed on 0xff status. 0xff status is not reset failure. It indicates no device. This removes unnecessary retries on such ports. Note that the code change assumes unoccupied port reporting 0xff status does not produce valid device signature. Signed-off-by: Tejun Heo <htejun@gmail.com> Cc: Joe Jin <lkmaillist@gmail.com> Signed-off-by: Jeff Garzik <jeff@garzik.org> Signed-off-by: Chris Wright <chrisw@sous-sol.org>
Diffstat (limited to 'lib/string.c')
0 files changed, 0 insertions, 0 deletions