提交 aad550f9 编写于 作者: R Radu Rendec 提交者: Wolfram Sang

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: NRadu Rendec <radu.rendec@gmail.com>
Acked-by: NNeil Horman <nhorman@tuxdriver.com>
Signed-off-by: NWolfram Sang <wsa@the-dreams.de>
上级 6e318d9e
...@@ -324,6 +324,8 @@ static int ismt_process_desc(const struct ismt_desc *desc, ...@@ -324,6 +324,8 @@ static int ismt_process_desc(const struct ismt_desc *desc,
dev_dbg(&priv->pci_dev->dev, "Processing completed descriptor\n"); dev_dbg(&priv->pci_dev->dev, "Processing completed descriptor\n");
__ismt_desc_dump(&priv->pci_dev->dev, desc); __ismt_desc_dump(&priv->pci_dev->dev, desc);
ismt_gen_reg_dump(priv);
ismt_mstr_reg_dump(priv);
if (desc->status & ISMT_DESC_SCS) { if (desc->status & ISMT_DESC_SCS) {
if (read_write == I2C_SMBUS_WRITE && if (read_write == I2C_SMBUS_WRITE &&
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册