From: "Zoie Lin (林禹妡)" <Zoie.Lin@mediatek.com>
To: "daniel@makrotopia.org" <daniel@makrotopia.org>,
"andi.shyti@kernel.org" <andi.shyti@kernel.org>
Cc: "john@phrozen.org" <john@phrozen.org>,
"Leilk Liu (刘磊)" <Leilk.Liu@mediatek.com>,
"Teddy Chen (陳乾元)" <Teddy.Chen@mediatek.com>,
Project_Global_Chrome_Upstream_Group
<Project_Global_Chrome_Upstream_Group@mediatek.com>,
"AngeloGioacchino Del Regno"
<angelogioacchino.delregno@collabora.com>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
"linux-arm-kernel@lists.infradead.org"
<linux-arm-kernel@lists.infradead.org>,
"Qii Wang (王琪)" <Qii.Wang@mediatek.com>,
"linux-mediatek@lists.infradead.org"
<linux-mediatek@lists.infradead.org>,
"matthias.bgg@gmail.com" <matthias.bgg@gmail.com>,
"Joseph-CC Chang (張欽洲)" <Joseph-CC.Chang@mediatek.com>,
"linux-i2c@vger.kernel.org" <linux-i2c@vger.kernel.org>
Subject: Re: [PATCH v5 1/1] i2c: mediatek: add runtime PM operations and bus regulator control
Date: Mon, 19 May 2025 13:26:36 +0000 [thread overview]
Message-ID: <8874a29ba42eb828d70deb73d4b84a59126b84c8.camel@mediatek.com> (raw)
In-Reply-To: <em2y3tkiwlxc45f4sjtzdd3oy4v5zpqgdpqfppyzah2ilzidg2@wn6cnrezygpl>
Hi Andi,
Hi Daniel,
1. The i2c_transfer function uses a completion mechanism
for interrupt handling, so i2c_transfer cannot be used in
interrupt context.
2. From the crash log, it was found that rt5190a_probe -->
irqreturn_t rt5190a_irq_handler (in interrupt context) -->
regmap_raw_read --> i2c_transfer, which indicates that i2c_transfer is
being used in interrupt context. This usage is incorrect.
Based on the reason above, it appears that the issue is related to
the rt5190a calling context rather than this patch.
Could you please review and consider to merge this patch again?
Thanks,
Zoie
On Fri, 2025-03-21 at 01:34 +0100, Andi Shyti wrote:
>
> External email : Please do not click links or open attachments until
> you have verified the sender or the content.
>
>
> Hi Daniel,
>
> On Thu, Mar 20, 2025 at 10:08:42PM +0000, Daniel Golle wrote:
> > On Wed, Mar 19, 2025 at 12:34:53AM +0100, Andi Shyti wrote:
> > > On Fri, Mar 14, 2025 at 10:53:43PM +0800, Zoie Lin wrote:
> > > > Introduce support for runtime PM operations in
> > > > the I2C driver, enabling runtime suspend and resume
> > > > functionality.
> > > >
> > > > Although in most platforms, the bus power of i2c is always
> > > > on, some platforms disable the i2c bus power in order to meet
> > > > low power request.
> > > >
> > > > This implementation includes bus regulator control to
> > > > facilitate
> > > > proper handling of the bus power based on platform
> > > > requirements.
> > > >
> > > > Signed-off-by: Zoie Lin <zoie.lin@mediatek.com>
> > >
> > > merged to i2c/i2c-host.
> >
> > the change causes a crash during boot on MT7988 which typically
> > uses
> > one of its I2C busses to connect a Richtek RT5190A PMIC.
>
> Thanks a lot for testing it. I removed the commit.
>
> Andi
next prev parent reply other threads:[~2025-05-19 13:26 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-03-14 14:53 [PATCH v5 1/1] i2c: mediatek: add runtime PM operations and bus regulator control Zoie Lin
2025-03-18 23:34 ` Andi Shyti
2025-03-20 22:08 ` Daniel Golle
2025-03-21 0:34 ` Andi Shyti
2025-05-19 13:26 ` Zoie Lin (林禹妡) [this message]
2025-08-19 14:33 ` Zoie Lin (林禹妡)
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=8874a29ba42eb828d70deb73d4b84a59126b84c8.camel@mediatek.com \
--to=zoie.lin@mediatek.com \
--cc=Joseph-CC.Chang@mediatek.com \
--cc=Leilk.Liu@mediatek.com \
--cc=Project_Global_Chrome_Upstream_Group@mediatek.com \
--cc=Qii.Wang@mediatek.com \
--cc=Teddy.Chen@mediatek.com \
--cc=andi.shyti@kernel.org \
--cc=angelogioacchino.delregno@collabora.com \
--cc=daniel@makrotopia.org \
--cc=john@phrozen.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-i2c@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mediatek@lists.infradead.org \
--cc=matthias.bgg@gmail.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