]> git.kernelconcepts.de Git - karo-tx-linux.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)
commite7e26bc75ba58ab85f329787cb072cf67dd5407f
tree2cf8559e204c69f4b7507ccd20b02c7a2e2fb01f
parent65622ed40eef5ce2732365077b22416593fec4c8
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