Thread (26 messages) flat view 26 messages, 3 authors, 2012-04-05
STALE5271d

[PATCH v2 1/3] PATA host controller driver for ep93xx

From: arnd@arndb.de (Arnd Bergmann)
Date: 2012-04-04 15:23:50
Also in: linux-ide

On Wednesday 04 April 2012, Rafal Prylowski wrote:
quoted
According to ATA specification, maximum IORDY pulse width is 1250ns,
so I'll set timeout to 2ms (I should check this before posting the driver..).
2ms is far too big value... Should be 2us.
Ok, in this case, don't use jiffies. I guess it was already flawed because
jiffies doesn't get updated while you are in an interrupt handler.

You could use ktime_get to get a high-resolution time stamp to compare to,
but it depends on how accurate your clocksource is.

	Arnd
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help