]> 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)
commited1d5aba118c9b83cd72e459a841b176b2dce273
tree2cf8559e204c69f4b7507ccd20b02c7a2e2fb01f
parent1033ad2fc3c3a8afc81baf34664b589d175fccbf
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