]> git.dujemihanovic.xyz Git - u-boot.git/commit
spi, spi_mxc: do not hang in spi_xchg_single
authorHeiko Schocher <hs@denx.de>
Mon, 14 Jul 2014 08:22:11 +0000 (10:22 +0200)
committerJagannadha Sutradharudu Teki <jaganna@xilinx.com>
Tue, 5 Aug 2014 18:48:01 +0000 (00:18 +0530)
commitf659b57361c4a351ef2a5fc23b9197428e2e67f0
tree0e4464c9db8aeebe4ecac9ec2d82344783b82a3c
parent22052c6236cbebc446ffd51ac69271fe063c654a
spi, spi_mxc: do not hang in spi_xchg_single

if status register do never set MXC_CSPICTRL_TC, spi_xchg_single
endless loops. Add a timeout here to prevent endless hang.

Signed-off-by: Heiko Schocher <hs@denx.de>
Cc: Dirk Behme <dirk.behme@gmail.com>
Reviewed-by: Jagannadha Sutradharudu Teki <jaganna@xilinx.com>
README
drivers/spi/mxc_spi.c