linux-i2c.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Andy Shevchenko <andy.shevchenko@gmail.com>
To: Ard Biesheuvel <ardb@kernel.org>
Cc: Andi Shyti <andi.shyti@kernel.org>,
	 Christophe JAILLET <christophe.jaillet@wanadoo.fr>,
	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 17:41:58 +0300	[thread overview]
Message-ID: <CAHp75Ve7ZfiT-apRwSS8Cjh7n4CptC2h8AWxfGh346mNhPL1tg@mail.gmail.com> (raw)
In-Reply-To: <CAMj1kXFH+zB_YuUS+vaEpguhuVGLYbQw55VNDCxnBfSPe6b-nw@mail.gmail.com>

On Thu, Sep 12, 2024 at 1:23 PM Ard Biesheuvel <ardb@kernel.org> wrote:
> On Mon, 6 May 2024 at 11:03, Andi Shyti <andi.shyti@kernel.org> wrote:
> > 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.

I have just sent a fix, please test.

-- 
With Best Regards,
Andy Shevchenko

      parent reply	other threads:[~2024-09-12 14:42 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
2024-09-12 14:31     ` Andy Shevchenko
2024-09-12 14:41     ` Andy Shevchenko [this message]

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=CAHp75Ve7ZfiT-apRwSS8Cjh7n4CptC2h8AWxfGh346mNhPL1tg@mail.gmail.com \
    --to=andy.shevchenko@gmail.com \
    --cc=andi.shyti@kernel.org \
    --cc=ardb@kernel.org \
    --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).