Skip to content

Commit

Permalink
i2c: stm32f7: remove noisy and imprecise log messages
Browse files Browse the repository at this point in the history
The log messages talk about 'bus recovery' while it is not a bus
recovery with 9 pulses but merely a controller reset. Controller resets
are not worth log messages. The 'bus busy' message should be emitted by
upper layers, a busy bus may be expected in some cases.

Signed-off-by: Wolfram Sang <[email protected]>
Reviewed-by: Alain Volmat <[email protected]>
  • Loading branch information
wsakernel committed Dec 1, 2021
1 parent 0590765 commit 15f0ae7
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions drivers/i2c/busses/i2c-stm32f7.c
Original file line number Diff line number Diff line change
Expand Up @@ -832,8 +832,6 @@ static void stm32f7_i2c_release_bus(struct i2c_adapter *i2c_adap)
{
struct stm32f7_i2c_dev *i2c_dev = i2c_get_adapdata(i2c_adap);

dev_info(i2c_dev->dev, "Trying to recover bus\n");

stm32f7_i2c_clr_bits(i2c_dev->base + STM32F7_I2C_CR1,
STM32F7_I2C_CR1_PE);

Expand All @@ -852,8 +850,6 @@ static int stm32f7_i2c_wait_free_bus(struct stm32f7_i2c_dev *i2c_dev)
if (!ret)
return 0;

dev_info(i2c_dev->dev, "bus busy\n");

stm32f7_i2c_release_bus(&i2c_dev->adap);

return -EBUSY;
Expand Down

0 comments on commit 15f0ae7

Please sign in to comment.