summaryrefslogtreecommitdiffstats
path: root/scripts/mod/file2alias.c
diff options
context:
space:
mode:
authorThomas Gleixner <tglx@linutronix.de>2014-03-18 17:19:08 +0000
committerMarc Kleine-Budde <mkl@pengutronix.de>2014-04-01 11:54:57 +0200
commit5bb9cbaa622a2bbde8e307d4e0528dd2c8212a6a (patch)
treeafab304c5344009f73aa931cd1f4ec19382105d4 /scripts/mod/file2alias.c
parent9fac1d1ab8e66816c40a235a238357b1f1fc4dee (diff)
can: c_can: Fix hardware raminit function
The function is broken in several ways: - The function does not wait for the init to complete. That can take quite some microseconds. - No protection against being called for two chips at the same time. SMP is such a new thing, right? Clear the start and the init done bit unconditionally and wait for both bits to be clear. In the enable path set the init bit and wait for the init done bit. Add proper locking. Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Diffstat (limited to 'scripts/mod/file2alias.c')
0 files changed, 0 insertions, 0 deletions