Details

[Home]

Issue of the Implementation # L0339

Brief

i2c: axxia: clock should be enabled before calling clk_get_rate

Detailed Description

axxia_i2c_init() uses clk_get_rate() for idev->i2c_clk. clk_get_rate() should only be called if the clock is enabled, for example, by moving the clk_prepare_enable() call before the call to axxia_i2c_init().

Component

linux-kernel 4.17

Accepted

https://lkml.org/lkml/2018/4/30/433
commit

Status

Fixed in kernel v4.18-rc1

[Home]