diff options
author | Fabrice Gasnier | 2020-03-19 19:21:55 +0100 |
---|---|---|
committer | Wolfram Sang | 2020-04-15 12:58:19 +0200 |
commit | 79d48da381ca977c60e17bdebd2e6f7c4c390df8 (patch) | |
tree | 65afdbd7f3eb5c74dace9be079bc7d62690e3a91 /drivers | |
parent | be1b92c133cc91b2fb00b8c5f6b8a922fa8003da (diff) |
i2c: i2c-stm32f7: improve nack debug message
Add information on slave addr in the nack debug message.
Signed-off-by: Fabrice Gasnier <fabrice.gasnier@st.com>
Signed-off-by: Alain Volmat <alain.volmat@st.com>
Reviewed-by: Pierre-Yves MORDRET <pierre-yves.mordret@st.com>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/i2c/busses/i2c-stm32f7.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/i2c/busses/i2c-stm32f7.c b/drivers/i2c/busses/i2c-stm32f7.c index cf48f8df4423..8102e33a6753 100644 --- a/drivers/i2c/busses/i2c-stm32f7.c +++ b/drivers/i2c/busses/i2c-stm32f7.c @@ -1462,7 +1462,8 @@ static irqreturn_t stm32f7_i2c_isr_event(int irq, void *data) /* NACK received */ if (status & STM32F7_I2C_ISR_NACKF) { - dev_dbg(i2c_dev->dev, "<%s>: Receive NACK\n", __func__); + dev_dbg(i2c_dev->dev, "<%s>: Receive NACK (addr %x)\n", + __func__, f7_msg->addr); writel_relaxed(STM32F7_I2C_ICR_NACKCF, base + STM32F7_I2C_ICR); f7_msg->result = -ENXIO; } |