Re: [PATCH v2] i2c: axxia: enable clock before calling clk_get_rate()

From: Wolfram Sang
Date: Tue May 08 2018 - 17:15:48 EST


On Mon, Apr 30, 2018 at 04:49:29PM +0200, Tobias Jordan wrote:
> axxia_i2c_init() uses clk_get_rate() for idev->i2c_clk. clk_get_rate()
> should only be called if the clock is enabled, so ensure that by moving
> the clk_prepare_enable() call before the call to axxia_i2c_init().
>
> Found by Linux Driver Verification project (linuxtesting.org).
>
> Fixes: 08678b850cd0 ("i2c: axxia: Add I2C driver for AXM55xx")
> Signed-off-by: Tobias Jordan <Tobias.Jordan@xxxxxxxxxxxxxx>

Applied to for-next, thanks!

Attachment: signature.asc
Description: PGP signature