]> git.dujemihanovic.xyz Git - u-boot.git/commit
atcspi200: Add timeout mechanism in spi_xfer()
authorDylan Jhong <dylan@andestech.com>
Thu, 1 Apr 2021 08:48:51 +0000 (16:48 +0800)
committerLeo Yu-Chi Liang <ycliang@andestech.com>
Wed, 5 May 2021 08:12:14 +0000 (16:12 +0800)
commit1412b8d48a920f1a4f5eac256814d25c320fb9b6
tree70d2148b4993b94c8de913c5ec5ebc326b5cd3eb
parentbc8bbb77f74f21582b3bfd790334397757f88575
atcspi200: Add timeout mechanism in spi_xfer()

Adding timeout mechanism to avoid spi driver from stucking
in the while loop in __atcspi200_spi_xfer().

Signed-off-by: Dylan Jhong <dylan@andestech.com>
Reviewed-by: Leo Yu-Chi Liang <ycliang@andestech.com>
Reviewed-by: Rick Chen <rick@andestech.com>
drivers/spi/atcspi200_spi.c