mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 11:41:38 -04:00
i2c: designware: Print clock freq on invalid clock freq error
When we refuse to probe due to an invalid clock frequency, log the frequency which is causing this error. Signed-off-by: Hans de Goede <[email protected]> Reviewed-by: Andy Shevchenko <[email protected]> Signed-off-by: Wolfram Sang <[email protected]>
This commit is contained in:
parent
c64ffff7a9
commit
22acc37b86
1 changed files with 2 additions and 1 deletions
|
|
@ -319,7 +319,8 @@ static int dw_i2c_plat_probe(struct platform_device *pdev)
|
|||
if (dev->clk_freq != 100000 && dev->clk_freq != 400000
|
||||
&& dev->clk_freq != 1000000 && dev->clk_freq != 3400000) {
|
||||
dev_err(&pdev->dev,
|
||||
"Only 100kHz, 400kHz, 1MHz and 3.4MHz supported");
|
||||
"%d Hz is unsupported, only 100kHz, 400kHz, 1MHz and 3.4MHz are supported\n",
|
||||
dev->clk_freq);
|
||||
ret = -EINVAL;
|
||||
goto exit_reset;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue