[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <016ea54b7474b71f2995e4c3a10fe2d3efc2b641.camel@mediatek.com>
Date: Thu, 26 May 2022 19:31:01 +0800
From: Qii Wang <qii.wang@...iatek.com>
To: Christophe JAILLET <christophe.jaillet@...adoo.fr>,
<dan.carpenter@...cle.com>,
Matthias Brugger <matthias.bgg@...il.com>,
AngeloGioacchino Del Regno
<angelogioacchino.delregno@...labora.com>,
Wolfram Sang <wsa@...nel.org>
CC: <linux-kernel@...r.kernel.org>, <kernel-janitors@...r.kernel.org>,
<linux-i2c@...r.kernel.org>,
<linux-arm-kernel@...ts.infradead.org>,
<linux-mediatek@...ts.infradead.org>
Subject: Re: [PATCH] i2c: mediatek: Fix an error handling path in
mtk_i2c_probe()
On Sun, 2022-05-22 at 14:22 +0200, Christophe JAILLET wrote:
> The clsk are prepared, enabled, then disabled. So if an error occurs
> after
> the disable step, they are still prepared.
>
> Add an error handling path to unprepare the clks in such a case, as
> already
> done in the .remove function.
>
> Fixes: 8b4fc246c3ff ("i2c: mediatek: Optimize master_xfer() and avoid
> circular locking")
> Signed-off-by: Christophe JAILLET <christophe.jaillet@...adoo.fr>
Reviewed-by: Qii Wang <qii.wang@...iatek.com>
> ---
> drivers/i2c/busses/i2c-mt65xx.c | 9 +++++++--
> 1 file changed, 7 insertions(+), 2 deletions(-)
>
Powered by blists - more mailing lists