Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

i2c: sh_mobile: improve success message

No user needs magic hex values, makes this debug output. Add DMA info.

Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>

authored by

Wolfram Sang and committed by
Wolfram Sang
7ca01864 2d09581b

+3 -3
+3 -3
drivers/i2c/busses/i2c-sh_mobile.c
··· 289 289 else 290 290 pd->icic &= ~ICIC_ICCHB8; 291 291 292 + dev_dbg(pd->dev, "timing values: L/H=0x%x/0x%x\n", pd->iccl, pd->icch); 292 293 return 0; 293 294 } 294 295 ··· 936 935 return ret; 937 936 } 938 937 939 - dev_info(&dev->dev, 940 - "I2C adapter %d with bus speed %lu Hz (L/H=0x%x/0x%x)\n", 941 - adap->nr, pd->bus_speed, pd->iccl, pd->icch); 938 + dev_info(&dev->dev, "I2C adapter %d, bus speed %lu Hz, DMA=%c\n", 939 + adap->nr, pd->bus_speed, (pd->dma_rx || pd->dma_tx) ? 'y' : 'n'); 942 940 943 941 return 0; 944 942 }