Files
OpenCellular/chip
Louis Yung-Chieh Lo 3becb4c5c3 stm32 spi: postpone the RX DMA setup if handler is still using buffer.
(cherry-pick back to ToT)

If the AP de-asserts the SPI NSS pin while host command handler is
still processing the command, we would delay the Rx DMA setup later.
If this case happens, the pending result of handler will be dropped.

BUG=chrome-os-partner:28979
BRANCH=tot,nyan
TEST=build and play around on big.

Signed-off-by: Louis Yung-Chieh Lo <yjlou@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/204427
Reviewed-by: Randall Spangler <rspangler@chromium.org>

(cherry picked from commit 4be73492817f3f6c24ece75fed33eb956c0038b8)

Change-Id: Ie2a6550696760eadad3b0d6e3a4e56a2b29abdda
Original-Change-Id: I371a2a0b96b1ee0602be91338bd53d13f6abbd2e
Reviewed-on: https://chromium-review.googlesource.com/206922
Reviewed-by: Randall Spangler <rspangler@chromium.org>
Commit-Queue: Yung-chieh Lo <yjlou@chromium.org>
Tested-by: Yung-chieh Lo <yjlou@chromium.org>
2014-07-08 04:28:40 +00:00
..