i2c: ismt: dump registers at the end of transactions
authorRadu Rendec <radu.rendec@gmail.com>
Fri, 18 Aug 2017 16:01:28 +0000 (17:01 +0100)
committerWolfram Sang <wsa@the-dreams.de>
Mon, 15 Jan 2018 17:03:56 +0000 (18:03 +0100)
commitaad550f93fbc28d562a624700f9c12c9b9055a5e
tree7bcfb786af112106364466c1c9e98ab0df024cf3
parent6e318d9e3768b91707d8325068eeef88999aa8ae
i2c: ismt: dump registers at the end of transactions

This patch dumps general and master registers at the end of transactions
when debugging is enabled. Previously, registers were only dumped before
submitting new descriptors (at the beginning of transactions).

This helps debugging if some registers change as result of a failed
transaction (e.g. bits are set in the ERRSTS general register).

Signed-off-by: Radu Rendec <radu.rendec@gmail.com>
Acked-by: Neil Horman <nhorman@tuxdriver.com>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
drivers/i2c/busses/i2c-ismt.c