]> git.baikalelectronics.ru Git - kernel.git/commit
can: c_can: Add timeout to c_can_hw_raminit_ti()
authorRoger Quadros <rogerq@ti.com>
Fri, 7 Nov 2014 14:49:15 +0000 (16:49 +0200)
committerMarc Kleine-Budde <mkl@pengutronix.de>
Mon, 17 Nov 2014 11:19:26 +0000 (12:19 +0100)
commitccbf189d847c12d99b0e6c6ec1f107a65bf926f1
tree2cf8559e204c69f4b7507ccd20b02c7a2e2fb01f
parent923cef5db8f8c583ed2553132cd62954e361552e
can: c_can: Add timeout to c_can_hw_raminit_ti()

TI's RAMINIT DONE mechanism is buggy on AM43xx SoC and may not always
be set after the START bit is set. Although it seems to work fine even
in that case. So add a timeout mechanism to c_can_hw_raminit_wait_ti().
Don't bail out in that failure case but just print an error message.

Signed-off-by: Roger Quadros <rogerq@ti.com>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
drivers/net/can/c_can/c_can_platform.c