From: "André Apitzsch" <git@apitzsch.eu>
To: Sakari Ailus <sakari.ailus@linux.intel.com>
Cc: Ricardo Ribalda <ribalda@kernel.org>,
Mauro Carvalho Chehab <mchehab@kernel.org>,
~postmarketos/upstreaming@lists.sr.ht,
phone-devel@vger.kernel.org, linux-media@vger.kernel.org,
linux-kernel@vger.kernel.org,
Dave Stevenson <dave.stevenson@raspberrypi.com>,
Vincent Knecht <vincent.knecht@mailoo.org>,
Ricardo Ribalda <ribalda@chromium.org>
Subject: Re: [PATCH v6 12/13] media: i2c: imx214: Fix clock handling on probe error or remove
Date: Thu, 09 Jan 2025 19:56:14 +0100 [thread overview]
Message-ID: <40ee8a0b289c19a5420dc38cf7dfdf1756ecffb0.camel@apitzsch.eu> (raw)
In-Reply-To: <Z3-P__hmxn2uCd_t@kekkonen.localdomain>
Hi Sakari,
Am Donnerstag, dem 09.01.2025 um 08:59 +0000 schrieb Sakari Ailus:
> Hi André,
>
> On Wed, Jan 08, 2025 at 10:46:51PM +0100, André Apitzsch wrote:
> > Hi Sakari,
> >
> > Am Mittwoch, dem 08.01.2025 um 11:51 +0000 schrieb Sakari Ailus:
> > > Hi André,
> > >
> > > Thanks for the update.
> > >
> > > On Fri, Dec 20, 2024 at 02:26:11PM +0100, André Apitzsch via B4
> > > Relay
> > > wrote:
> > > > From: André Apitzsch <git@apitzsch.eu>
> > > >
> > > > The driver should disable or unprepare the clock on probe error
> > > > and
> > > > on
> > > > removing the module.
> > > >
> > > > Remove regulator_bulk_disable(), because it is called by
> > > > imx214_power_off().
> > > >
> > > > Acked-by: Ricardo Ribalda <ribalda@chromium.org>
> > > > Signed-off-by: André Apitzsch <git@apitzsch.eu>
> > >
> > > This and the next one appear to be bugfixes. I think it'd be
> > > reasonable to backport them. Any idea where this got broken, for
> > > the
> > > Fixes: tag?
> > > The bug fixed by the last patch was probably introduced with the
> > > driver?
> > >
> >
> > I think both, the missing imx214_power_off() and the wrong link
> > frequency where introduced with
> > > 436190596241 ("media: imx214: Add imx214 camera sensor driver")
> >
> > The first one could also be considered as a fix for the incomplete
> > > 9bc92332cc3f ("media: imx214: Fix the error handling in
> > > imx214_probe()")
>
> This one seems to have missed review. :-(
>
> >
> > Shall I submit a new version with the Fixes: tag?
>
> I checked the fix again and it seems the problem isn't as simple:
> pm_runtime_idle() call leads to powering the device off. It needs to
> either be resumed first or the call to imx214_power_off() be omitted.
>
> I tried to find a good example but the few I found are buggy. :-(
> Getting runtime PM right is just hard. I'll drop the last patch and
> post another to address the problem (plus the intended example
> drivers) if you're fine with that.
>
Fine by me. Go ahead.
Regards,
André
next prev parent reply other threads:[~2025-01-09 18:56 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-12-20 13:25 [PATCH v6 00/13] media: i2c: imx214: Miscellaneous cleanups and improvements André Apitzsch via B4 Relay
2024-12-20 13:26 ` [PATCH v6 01/13] media: i2c: imx214: Use subdev active state André Apitzsch via B4 Relay
2024-12-20 13:26 ` [PATCH v6 02/13] media: i2c: imx214: Simplify with dev_err_probe() André Apitzsch via B4 Relay
2024-12-20 13:26 ` [PATCH v6 03/13] media: i2c: imx214: Convert to CCI register access helpers André Apitzsch via B4 Relay
2024-12-20 13:26 ` [PATCH v6 04/13] media: i2c: imx214: Replace register addresses with macros André Apitzsch via B4 Relay
2024-12-20 13:26 ` [PATCH v6 05/13] media: i2c: imx214: Drop IMX214_REG_EXPOSURE from mode reg arrays André Apitzsch via B4 Relay
2024-12-20 13:26 ` [PATCH v6 06/13] media: i2c: imx214: Check number of lanes from device tree André Apitzsch via B4 Relay
2024-12-20 13:26 ` [PATCH v6 07/13] media: i2c: imx214: Add vblank and hblank controls André Apitzsch via B4 Relay
2024-12-20 13:26 ` [PATCH v6 08/13] media: i2c: imx214: Implement vflip/hflip controls André Apitzsch via B4 Relay
2024-12-20 13:26 ` [PATCH v6 09/13] media: i2c: imx214: Add analogue/digital gain control André Apitzsch via B4 Relay
2024-12-20 13:26 ` [PATCH v6 10/13] media: i2c: imx214: Verify chip ID André Apitzsch via B4 Relay
2024-12-20 13:26 ` [PATCH v6 11/13] media: i2c: imx214: Add test pattern control André Apitzsch via B4 Relay
2024-12-20 13:26 ` [PATCH v6 12/13] media: i2c: imx214: Fix clock handling on probe error or remove André Apitzsch via B4 Relay
2025-01-08 11:51 ` Sakari Ailus
2025-01-08 21:46 ` André Apitzsch
2025-01-09 8:59 ` Sakari Ailus
2025-01-09 9:00 ` Sakari Ailus
2025-01-09 18:56 ` André Apitzsch [this message]
2024-12-20 13:26 ` [PATCH v6 13/13] media: i2c: imx214: Fix link frequency validation André Apitzsch via B4 Relay
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=40ee8a0b289c19a5420dc38cf7dfdf1756ecffb0.camel@apitzsch.eu \
--to=git@apitzsch.eu \
--cc=dave.stevenson@raspberrypi.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-media@vger.kernel.org \
--cc=mchehab@kernel.org \
--cc=phone-devel@vger.kernel.org \
--cc=ribalda@chromium.org \
--cc=ribalda@kernel.org \
--cc=sakari.ailus@linux.intel.com \
--cc=vincent.knecht@mailoo.org \
--cc=~postmarketos/upstreaming@lists.sr.ht \
/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
all inboxes | Powered by JetHome®