Re: [PATCH v2 2/2] i2c: designware: Add support for a bus clock

From: Wolfram Sang
Date: Tue Feb 19 2019 - 15:25:32 EST



> - if (prepare)
> + if (prepare) {
> + /* Optional bus clock */
> + ret = clk_prepare_enable(dev->busclk);
> + if (ret)
> + return ret;
> +
> return clk_prepare_enable(dev->clk);

This leaves 'busclk' enabled when the other clock fails.

Attachment: signature.asc
Description: PGP signature