From: Kyungwoo Kang Date: Tue, 27 Mar 2018 05:51:53 +0000 (+0900) Subject: [COMMON] spi: core: Add snapshot function to SPI X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=832a89aac8c83e8d662d8af8c9c49d27d850d873;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git [COMMON] spi: core: Add snapshot function to SPI This patch adds exynos_ss_spi to get debugging information of SPI through exynos snapshot Change-Id: I8938b508a51ff9a4a3523a9a9d602cf243f044f9 Signed-off-by: Kyungwoo Kang --- diff --git a/drivers/spi/spi.c b/drivers/spi/spi.c index b8623db3a7ba..fec1419144d1 100644 --- a/drivers/spi/spi.c +++ b/drivers/spi/spi.c @@ -1265,7 +1265,10 @@ static void __spi_pump_messages(struct spi_controller *ctlr, bool in_kthread) goto out; } + dbg_snapshot_spi(ctlr, ctlr->cur_msg, DSS_FLAG_IN); ret = ctlr->transfer_one_message(ctlr, ctlr->cur_msg); + dbg_snapshot_spi(ctlr, ctlr->cur_msg, DSS_FLAG_OUT); + if (ret) { dev_err(&ctlr->dev, "failed to transfer one message from queue\n");