]> git.baikalelectronics.ru Git - kernel.git/commit
serial: mrst_max3110: Fix race condition between spi transfers
authorBin Gao <bin.gao@intel.com>
Wed, 9 Oct 2013 02:39:17 +0000 (10:39 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 16 Oct 2013 20:08:16 +0000 (13:08 -0700)
commitd5432624839fd8c32a929e164f01d668fd8e28d6
tree326d50cf4fdbee33a3205424ea5d0b236f64aa27
parente7c040ca3436eeb38b9127ee8fe957aaea7e2b05
serial: mrst_max3110: Fix race condition between spi transfers

There is a race between termios configuration and xmit that can cause the
intel_mid_ssp_spi driver to stall.

Serializing spi transactions fixes the problem.

Signed-off-by: Bin Gao <bin.gao@intel.com>
Signed-off-by: Feng Tang <feng.tang@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/mrst_max3110.c