Revision 85de7fac3990cf0c0736edc83856add2e648c76a authored by Marek Vasut on 21 November 2012, 05:19:06 UTC, committed by Wolfram Sang on 21 January 2013, 15:26:29 UTC
The init_completion() call does reinit not only the variable carrying the flag that the completion finished, but also initialized the waitqueue associated with the completion. On the contrary, the INIT_COMPLETION() call only reinits the flag. In case there was anything still stuck in the waitqueue, subsequent call to init_completion() would be able to create possible race condition. This patch uses the proper function and moves init_completion() into .probe() call of the driver, to be issued only once. Note that such scenario is impossible, since two threads can never enter the mxs_i2c_xfer_msg(), since whole this section is protected by mutex in I2C core. This by no means allows this issue to exit though. Signed-off-by: Marek Vasut <marex@denx.de> Signed-off-by: Wolfram Sang <w.sang@pengutronix.de>
1 parent 7d1f9ae
File | Mode | Size |
---|---|---|
drivers | ||
include | ||
kernel | ||
os-Linux | ||
scripts | ||
sys-ia64 | ||
sys-ppc | ||
.gitignore | -rw-r--r-- | 53 bytes |
Kconfig.char | -rw-r--r-- | 4.5 KB |
Kconfig.common | -rw-r--r-- | 720 bytes |
Kconfig.debug | -rw-r--r-- | 997 bytes |
Kconfig.net | -rw-r--r-- | 8.5 KB |
Kconfig.rest | -rw-r--r-- | 291 bytes |
Kconfig.um | -rw-r--r-- | 5.2 KB |
Makefile | -rw-r--r-- | 4.8 KB |
Makefile-ia64 | -rw-r--r-- | 32 bytes |
Makefile-os-Linux | -rw-r--r-- | 235 bytes |
Makefile-ppc | -rw-r--r-- | 203 bytes |
Makefile-skas | -rw-r--r-- | 290 bytes |
defconfig | -rw-r--r-- | 21.2 KB |
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...