spi: hspi: fixup long delay time
Current HSPI driver is using msleep(20) on hspi_status_check_timeout(), but it was too long delay for SPI device. Bock-W board SPI access was too slow without this patch. This patch uses udelay(10) for it. Tested-by: Yusuke Goda <yusuke.goda.sx@renesas.com> Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
This commit is contained in:
parent
f722406faa
commit
bc2bfffc38
@ -89,7 +89,7 @@ static int hspi_status_check_timeout(struct hspi_priv *hspi, u32 mask, u32 val)
|
||||
if ((mask & hspi_read(hspi, SPSR)) == val)
|
||||
return 0;
|
||||
|
||||
msleep(20);
|
||||
udelay(10);
|
||||
}
|
||||
|
||||
dev_err(hspi->dev, "timeout\n");
|
||||
|
Loading…
Reference in New Issue
Block a user