mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Claudiu Beznea <claudiu.beznea@kernel.org>
To: Wolfram Sang <wsa@sang-engineering.com>
Cc: chris.brandt@renesas.com, andi.shyti@kernel.org,
	claudiu.beznea@tuxon.dev, linux-renesas-soc@vger.kernel.org,
	linux-i2c@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH 1/4] i2c: riic: Abort the transfer on completion timeout
Date: Thu, 28 May 2026 19:57:59 +0300	[thread overview]
Message-ID: <88d1db83-1127-462f-9b1a-7c18a7087960@kernel.org> (raw)
In-Reply-To: <ahhJtz7QG3IxQA0G@shikoro>

Hi, Wolfram,

On 5/28/26 16:57, Wolfram Sang wrote:
> On Wed, May 20, 2026 at 04:12:03PM +0300, Claudiu Beznea wrote:
>> From: Claudiu Beznea <claudiu.beznea.uj@bp.renesas.com>
>>
>> riic_xfer() configures a transfer and waits for the interrupt handler to
>> signal its completion. If the completion times out, the device may be
>> powered off through runtime PM. However, the transfer interrupt may still
>> fire after the timeout.
>>
>> To avoid cases where riic_xfer() powers off the device (via runtime PM)
>> while the interrupt handler is still running, disable and synchronize the
>> interrupts after the completion times out.
>>
>> Fixes: 310c18a41450 ("i2c: riic: add driver")
>> Cc: stable@vger.kernel.org
>> Signed-off-by: Claudiu Beznea <claudiu.beznea.uj@bp.renesas.com>
> 
> How did you test this?

I haven't managed to reproduce it on i2c. I reproduced a similar behavior while 
working on renesas-i3c driver and decided to implement this on this i2c driver 
as well.

-- 
Thank you,
Claudiu


  reply	other threads:[~2026-05-28 16:58 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-05-20 13:12 [PATCH 0/4] i2c: riic: Fixes and cleanups Claudiu Beznea
2026-05-20 13:12 ` [PATCH 1/4] i2c: riic: Abort the transfer on completion timeout Claudiu Beznea
2026-05-28 13:57   ` Wolfram Sang
2026-05-28 16:57     ` Claudiu Beznea [this message]
2026-05-28 21:52       ` Wolfram Sang
2026-05-20 13:12 ` [PATCH 2/4] i2c: riic: Use the "dev_name:irq_name" format for the interrupt name Claudiu Beznea
2026-05-28 14:03   ` Wolfram Sang
2026-05-20 13:12 ` [PATCH 3/4] i2c: riic: Drop the space in front of the "out" goto label Claudiu Beznea
2026-05-28 14:08   ` Wolfram Sang
2026-05-28 17:00     ` Claudiu Beznea
2026-05-28 21:52       ` Wolfram Sang
2026-05-20 13:12 ` [PATCH 4/4] i2c: riic: Drop empty line Claudiu Beznea
2026-05-28 14:09   ` Wolfram Sang

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=88d1db83-1127-462f-9b1a-7c18a7087960@kernel.org \
    --to=claudiu.beznea@kernel.org \
    --cc=andi.shyti@kernel.org \
    --cc=chris.brandt@renesas.com \
    --cc=claudiu.beznea@tuxon.dev \
    --cc=linux-i2c@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-renesas-soc@vger.kernel.org \
    --cc=wsa@sang-engineering.com \
    /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

Powered by JetHome