Commit 0777721c authored by Alan's avatar Alan Committed by Jeff Garzik
Browse files

libata: Fix ata_busy_wait() kernel docs



> Looks like you should use ata_busy_wait() here, rather than reproducing
> the same code again.

It waits in 10uS chunks while 1uS chunks were used in the workaround.
Could indeed do that once I know the fix is right. While I'm at it the
ata_busy_wait kerneldoc is borked so here's a fix
Signed-off-by: default avatarAlan Cox <alan@redhat.com>
Signed-off-by: default avatarJeff Garzik <jeff@garzik.org>
parent 05c39e50
...@@ -1054,6 +1054,8 @@ static inline void ata_pause(struct ata_port *ap) ...@@ -1054,6 +1054,8 @@ static inline void ata_pause(struct ata_port *ap)
/** /**
* ata_busy_wait - Wait for a port status register * ata_busy_wait - Wait for a port status register
* @ap: Port to wait for. * @ap: Port to wait for.
* @bits: bits that must be clear
* @max: number of 10uS waits to perform
* *
* Waits up to max*10 microseconds for the selected bits in the port's * Waits up to max*10 microseconds for the selected bits in the port's
* status register to be cleared. * status register to be cleared.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment