From: Kyungwoo Kang Date: Mon, 20 Aug 2018 05:36:09 +0000 (+0900) Subject: [ERD][NEUS7920-76] [COMMON] i2c: core: Add Debug Snapshot Feature for I2C X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=2b77901704dfcb4c2c304b335d29eb4a0a770e49;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git [ERD][NEUS7920-76] [COMMON] i2c: core: Add Debug Snapshot Feature for I2C Since 9820, a debugging feature has been changed from Exynos snapshot to Debug snapshot. This is a new porting of Debug snapshot Change-Id: I671485ed64629c2d00504b13058bcfa0a9282447 Signed-off-by: Kyungwoo Kang --- diff --git a/drivers/i2c/i2c-core-base.c b/drivers/i2c/i2c-core-base.c index be29328127a4..e1f44549ff1e 100644 --- a/drivers/i2c/i2c-core-base.c +++ b/drivers/i2c/i2c-core-base.c @@ -46,6 +46,7 @@ #include #include #include +#include #include "i2c-core.h" @@ -1951,7 +1952,9 @@ int i2c_transfer(struct i2c_adapter *adap, struct i2c_msg *msgs, int num) i2c_lock_bus(adap, I2C_LOCK_SEGMENT); } + dbg_snapshot_i2c(adap, msgs, num, DSS_FLAG_IN); ret = __i2c_transfer(adap, msgs, num); + dbg_snapshot_i2c(adap, msgs, num, DSS_FLAG_OUT); i2c_unlock_bus(adap, I2C_LOCK_SEGMENT); return ret;