From: Sanjay Chitroda <sanjayembeddedse@gmail.com>
To: hansg@kernel.org, sakari.ailus@linux.intel.com, mchehab@kernel.org
Cc: hverkuil+cisco@kernel.org, linux-media@vger.kernel.org,
linux-kernel@vger.kernel.org
Subject: [PATCH 0/3] media: i2c: gc0310: cleanups and sensor clock handling improvements
Date: Wed, 1 Apr 2026 23:46:54 +0530 [thread overview]
Message-ID: <20260401181657.654055-1-sanjayembedded@gmail.com> (raw)
From: Sanjay Chitroda <sanjayembeddedse@gmail.com>
Hi all,
This patch series improves resource cleanup, error handling, and clock
management in the gc0310 camera sensor driver.
The changes focus on making the probe path more robust and easier to
reason about by fixing error unwind paths, reducing repeated access to
core structures, and adopting the common V4L2 sensor clock helper to
avoid manual clock handling in the driver.
Key highlights of this series:
- Fix probe error handling to ensure resources are properly released on
failure paths.
- Use cached I2C client and device pointers consistently across the
driver for improved readability and maintainability.
- Switch to devm_v4l2_sensor_clk_get() to standardise external clock
handling and align with modern V4L2 sensor driver expectations.
No functional behavior changes are intended.
Testing:
- Compiled with W=1
- Build-tested on QEMU x86_64
Based on:
<linux-v7.0-rc5>
Feedback and reviews are very welcome.
Thanks,
Sanjay Chitroda
Sanjay Chitroda (3):
media: i2c: gc0310: fix probe error handling and unwind resources
properly
media: i2c: gc0310: use cached client and device pointers
media: i2c: gc0310: Use devm_v4l2_sensor_clk_get()
drivers/media/i2c/gc0310.c | 128 +++++++++++++++++++++----------------
1 file changed, 73 insertions(+), 55 deletions(-)
--
2.34.1
next reply other threads:[~2026-04-01 18:17 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-04-01 18:16 Sanjay Chitroda [this message]
2026-04-01 18:16 ` [PATCH 1/3] media: i2c: gc0310: fix probe error handling and unwind resources properly Sanjay Chitroda
2026-04-01 19:06 ` Hans de Goede
2026-04-05 10:16 ` Sanjay Chitroda
2026-04-06 16:09 ` Hans de Goede
2026-04-01 18:16 ` [PATCH 2/3] media: i2c: gc0310: use cached client and device pointers Sanjay Chitroda
2026-04-01 19:08 ` Hans de Goede
2026-04-05 11:01 ` Sanjay Chitroda
2026-04-01 18:16 ` [PATCH 3/3] media: i2c: gc0310: Use devm_v4l2_sensor_clk_get() Sanjay Chitroda
2026-04-01 19:20 ` Hans de Goede
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=20260401181657.654055-1-sanjayembedded@gmail.com \
--to=sanjayembeddedse@gmail.com \
--cc=hansg@kernel.org \
--cc=hverkuil+cisco@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-media@vger.kernel.org \
--cc=mchehab@kernel.org \
--cc=sakari.ailus@linux.intel.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