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=4237967cf6d65a76948da668c98d1f948349f1e6;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 37197a764f62..9b3907b89705 100644 --- a/drivers/i2c/i2c-core-base.c +++ b/drivers/i2c/i2c-core-base.c @@ -45,6 +45,7 @@ #include #include #include +#include #include "i2c-core.h" @@ -1947,7 +1948,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;