i2c: sh_mobile: improve success message
authorWolfram Sang <wsa+renesas@sang-engineering.com>
Fri, 7 Nov 2014 10:11:42 +0000 (11:11 +0100)
committerWolfram Sang <wsa@the-dreams.de>
Wed, 12 Nov 2014 16:09:06 +0000 (17:09 +0100)
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>
drivers/i2c/busses/i2c-sh_mobile.c

index d9a5622b89c8424cbb1fdbc4be39829f1bfa4ce0..92c7f7b56bdf8689552329db9894f6c3f662836c 100644 (file)
@@ -289,6 +289,7 @@ static int sh_mobile_i2c_init(struct sh_mobile_i2c_data *pd)
        else
                pd->icic &= ~ICIC_ICCHB8;
 
+       dev_dbg(pd->dev, "timing values: L/H=0x%x/0x%x\n", pd->iccl, pd->icch);
        return 0;
 }
 
@@ -935,9 +936,8 @@ static int sh_mobile_i2c_probe(struct platform_device *dev)
                return ret;
        }
 
-       dev_info(&dev->dev,
-                "I2C adapter %d with bus speed %lu Hz (L/H=0x%x/0x%x)\n",
-                adap->nr, pd->bus_speed, pd->iccl, pd->icch);
+       dev_info(&dev->dev, "I2C adapter %d, bus speed %lu Hz, DMA=%c\n",
+                adap->nr, pd->bus_speed, (pd->dma_rx || pd->dma_tx) ? 'y' : 'n');
 
        return 0;
 }