提交 1234e839 编写于 作者: F Frode Isaksen 提交者: Mark Brown

spi: davinci: add comment about dummy tx buffer usage

Add explanation about using the the rx buffer as the
dummy tx buffer.
Signed-off-by: NFrode Isaksen <fisaksen@baylibre.com>
Signed-off-by: NMark Brown <broonie@kernel.org>
上级 4dd9becb
......@@ -660,7 +660,11 @@ static int davinci_spi_bufs(struct spi_device *spi, struct spi_transfer *t)
goto err_desc;
if (!t->tx_buf) {
/* use rx buffer as dummy tx buffer */
/* To avoid errors when doing rx-only transfers with
* many SG entries (> 20), use the rx buffer as the
* dummy tx buffer so that dma reloads are done at the
* same time for rx and tx.
*/
t->tx_sg.sgl = t->rx_sg.sgl;
t->tx_sg.nents = t->rx_sg.nents;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册