mmc_spi: convert timeout handling to jiffies and avoid busy waiting
authorWolfgang Muees <wolfgang.mues@auerswald.de>
Tue, 7 Apr 2009 14:26:30 +0000 (15:26 +0100)
committerPierre Ossman <pierre@ossman.eu>
Wed, 8 Apr 2009 18:38:42 +0000 (20:38 +0200)
commit56e303ebeec7ef43dbd9d7998f8ad1a9f75d59bc
treefb673041c46307965f45fd0af50e5c06f728deda
parent9d9f25c036dd584db175552a7d162403d3ab54b3
mmc_spi: convert timeout handling to jiffies and avoid busy waiting

SD/MMC card timeouts can be very high. So avoid busy-waiting,
using the scheduler. Calculate all timeouts in jiffies units,
because this will give us the correct sign when to involve
the scheduler.

Signed-off-by: Wolfgang Muees <wolfgang.mues@auerswald.de>
Signed-off-by: Pierre Ossman <pierre@ossman.eu>
drivers/mmc/host/mmc_spi.c