From: Ard Biesheuvel <ardb@kernel.org>
To: Andi Shyti <andi.shyti@kernel.org>
Cc: Christophe JAILLET <christophe.jaillet@wanadoo.fr>,
Andy Shevchenko <andy.shevchenko@gmail.com>,
Wolfram Sang <wsa@kernel.org>,
linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org,
linux-i2c@vger.kernel.org
Subject: Re: [PATCH 1/2] i2c: synquacer: Fix an error handling path in synquacer_i2c_probe()
Date: Thu, 12 Sep 2024 12:22:51 +0200 [thread overview]
Message-ID: <CAMj1kXFH+zB_YuUS+vaEpguhuVGLYbQw55VNDCxnBfSPe6b-nw@mail.gmail.com> (raw)
In-Reply-To: <z5qdyk2onwohenaclbflb7jlfn3wadafjpxsxzpvkmax75mpvg@vhhasuuutjzh>
On Mon, 6 May 2024 at 11:03, Andi Shyti <andi.shyti@kernel.org> wrote:
>
> Hi Christophe,
>
> On Sat, Jan 06, 2024 at 01:48:24PM +0100, Christophe JAILLET wrote:
> > If an error occurs after the clk_prepare_enable() call, it should be undone
> > by a corresponding clk_disable_unprepare() call, as already done in the
> > remove() function.
> >
> > As devm_clk_get() is used, we can switch to devm_clk_get_enabled() to
> > handle it automatically and fix the probe.
> >
> > Update the remove() function accordingly and remove the now useless
> > clk_disable_unprepare() call.
> >
> > Fixes: 0d676a6c4390 ("i2c: add support for Socionext SynQuacer I2C controller")
> > Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
>
> Applied to i2c/i2c-host-fixes.
>
These patches should be reverted: ACPI boot on SynQuacer based systems
now fails with
[ 6.206022] synquacer_i2c SCX0003:00: error -ENOENT: failed to get
and enable clock
[ 6.235762] synquacer_i2c SCX0003:00: probe with driver
synquacer_i2c failed with error -2
as in this case, there is no clock to enable, and the clock rate is
specified in the PRP0001 device node.
next prev parent reply other threads:[~2024-09-12 10:23 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-01-06 12:48 [PATCH 1/2] i2c: synquacer: Fix an error handling path in synquacer_i2c_probe() Christophe JAILLET
2024-01-06 12:48 ` [PATCH 2/2] i2c: synquacer: Remove a clk reference from struct synquacer_i2c Christophe JAILLET
2024-01-12 17:50 ` Ard Biesheuvel
2024-05-06 9:04 ` Andi Shyti
2024-01-12 17:50 ` [PATCH 1/2] i2c: synquacer: Fix an error handling path in synquacer_i2c_probe() Ard Biesheuvel
2024-05-06 9:03 ` Andi Shyti
2024-09-12 10:22 ` Ard Biesheuvel [this message]
2024-09-12 14:31 ` Andy Shevchenko
2024-09-12 14:41 ` Andy Shevchenko
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CAMj1kXFH+zB_YuUS+vaEpguhuVGLYbQw55VNDCxnBfSPe6b-nw@mail.gmail.com \
--to=ardb@kernel.org \
--cc=andi.shyti@kernel.org \
--cc=andy.shevchenko@gmail.com \
--cc=christophe.jaillet@wanadoo.fr \
--cc=kernel-janitors@vger.kernel.org \
--cc=linux-i2c@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=wsa@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).