[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20160825192631.GA1614@katana>
Date: Thu, 25 Aug 2016 21:26:31 +0200
From: Wolfram Sang <wsa@...-dreams.de>
To: Jon Hunter <jonathanh@...dia.com>
Cc: Laxman Dewangan <ldewangan@...dia.com>,
Stephen Warren <swarren@...dotorg.org>,
Thierry Reding <thierry.reding@...il.com>,
Alexandre Courbot <gnurou@...il.com>,
linux-i2c@...r.kernel.org, linux-tegra@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH 5/6] i2c: tegra: Add runtime power-management support
> @@ -407,32 +410,39 @@ static inline int tegra_i2c_clock_enable(struct tegra_i2c_dev *i2c_dev)
> return ret;
> }
> }
> +
> ret = clk_enable(i2c_dev->div_clk);
> if (ret < 0) {
> dev_err(i2c_dev->dev,
> "Enabling div clk failed, err %d\n", ret);
> clk_disable(i2c_dev->fast_clk);
> + return ret;
> }
> - return ret;
> +
> + return 0;
You could have left the original 'return' instead of the 2 new ones, but
you decide.
> - if (tegra_i2c_flush_fifos(i2c_dev))
> - err = -ETIMEDOUT;
> + err = tegra_i2c_flush_fifos(i2c_dev);
'err' is assigned but where is it checked?
I'll apply patches 1-4 meanwhile.
Download attachment "signature.asc" of type "application/pgp-signature" (820 bytes)
Powered by blists - more mailing lists