spi/dw_spi: Fix too short timeout in spi polling loop
commitebf45b7d029eb065819bfede8b30455630d76c68
authorFeng Tang <feng.tang@intel.com>
Fri, 24 Dec 2010 05:59:09 +0000 (24 13:59 +0800)
committerGrant Likely <grant.likely@secretlab.ca>
Fri, 24 Dec 2010 08:08:42 +0000 (24 01:08 -0700)
treef42bcb8575af3477b1d9293bed7de3f21734236f
parent5e8b821de333f472d33e3052a8dd1c43bf3ce433
spi/dw_spi: Fix too short timeout in spi polling loop

The SPI polling loop timeout only works with HZ=100 as the loop was
actually too short.

Also add appropriate cpu_relax() in the busy wait loops...

Signed-off-by: Arjan van de Ven <arjan@linux.intel.com>
Signed-off-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: Feng Tang <feng.tang@intel.com>
Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
drivers/spi/dw_spi.c