]> Git Repo - J-u-boot.git/commit - drivers/spi/altera_spi.c
spi: altera: Zap endless loop
authorMarek Vasut <[email protected]>
Wed, 22 Oct 2014 19:56:01 +0000 (21:56 +0200)
committerJagannadha Sutradharudu Teki <[email protected]>
Mon, 27 Oct 2014 17:07:03 +0000 (22:37 +0530)
commit80d73338080c83e17fbf3f844052ec71d03ecd13
tree636e9c4eefe012c66d1072e1fc80f82e4115a978
parent37dcc130e0c804da6ad50bf273d0d737cfe9cf8f
spi: altera: Zap endless loop

The driver contained an endless loop when waiting for TX completion,
this is a bad idea since if the hardware fails, the loop might spin
forever. Add timeout and handle it.

Signed-off-by: Marek Vasut <[email protected]>
Cc: Chin Liang See <[email protected]>
Cc: Dinh Nguyen <[email protected]>
Cc: Albert Aribaud <[email protected]>
Cc: Pavel Machek <[email protected]>
Cc: Jagannadha Sutradharudu Teki <[email protected]>
Acked-by: Pavel Machek <[email protected]>
Reviewed-by: Jagannadha Sutradharudu Teki <[email protected]>
drivers/spi/altera_spi.c
This page took 0.031711 seconds and 4 git commands to generate.