]> asedeno.scripts.mit.edu Git - linux.git/commit
i2c: designware: Add debug print for bus speed
authorJarkko Nikula <jarkko.nikula@linux.intel.com>
Tue, 19 Jun 2018 11:23:25 +0000 (14:23 +0300)
committerWolfram Sang <wsa@the-dreams.de>
Tue, 3 Jul 2018 21:06:19 +0000 (23:06 +0200)
commitd07bdbc02cdf9930da5f4b8b502c8b33a6d29fcf
treea339a95fa298a17fdbabba5d88d4a33211588fb3
parent1706a96b30d6011e3f6829b365ace2030a306fe3
i2c: designware: Add debug print for bus speed

Trivial added debug print for dev->clk_freq doesn't necessarily tell the
actual bus speed or mode the controller is operating. For instance it
may indicate 1 MHz Fast Mode Plus or 3.4 MHz High Speed but driver ends up
using 400 kHz Fast Mode due missing timing parameters or missing support
from HW.

Add a debug print that prints the bus speed based on the validated speed
that gets programmed into a HW.

Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Jarkko Nikula <jarkko.nikula@linux.intel.com>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
drivers/i2c/busses/i2c-designware-master.c