* [PATCH v2 1/1] media: v4l2-core: Replace the check for firmware registered I²C devices
@ 2025-03-12 19:24 Andy Shevchenko
[not found] ` <67d1f748.050a0220.353790.339b@mx.google.com>
0 siblings, 1 reply; 5+ messages in thread
From: Andy Shevchenko @ 2025-03-12 19:24 UTC (permalink / raw)
To: linux-media, linux-kernel; +Cc: Mauro Carvalho Chehab, Andy Shevchenko
Replace the check for firmware registered I²C devices as the firmware node
independently on type should be retrieved via dev_fwnode().
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
---
v2: fixed obvious typo (media CI)
drivers/media/v4l2-core/v4l2-i2c.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/drivers/media/v4l2-core/v4l2-i2c.c b/drivers/media/v4l2-core/v4l2-i2c.c
index 586c46544255..ffc64e10fcae 100644
--- a/drivers/media/v4l2-core/v4l2-i2c.c
+++ b/drivers/media/v4l2-core/v4l2-i2c.c
@@ -5,6 +5,7 @@
#include <linux/i2c.h>
#include <linux/module.h>
+#include <linux/property.h>
#include <media/v4l2-common.h>
#include <media/v4l2-device.h>
@@ -24,7 +25,7 @@ void v4l2_i2c_subdev_unregister(struct v4l2_subdev *sd)
* registered by us, and would not be
* re-created by just probing the V4L2 driver.
*/
- if (client && !client->dev.of_node && !client->dev.fwnode)
+ if (client && !dev_fwnode(&client->dev))
i2c_unregister_device(client);
}
--
2.47.2
^ permalink raw reply related [flat|nested] 5+ messages in thread[parent not found: <67d1f748.050a0220.353790.339b@mx.google.com>]
* Re: [v2,1/1] media: v4l2-core: Replace the check for firmware registered I²C devices [not found] ` <67d1f748.050a0220.353790.339b@mx.google.com> @ 2025-03-13 9:05 ` Andy Shevchenko 2025-03-13 9:52 ` Hans Verkuil 0 siblings, 1 reply; 5+ messages in thread From: Andy Shevchenko @ 2025-03-13 9:05 UTC (permalink / raw) To: linux-media; +Cc: linux-kernel, Mauro Carvalho Chehab On Wed, Mar 12, 2025 at 02:06:16PM -0700, Patchwork Integration wrote: > Dear Andy Shevchenko: > > Thanks for your patches! Unfortunately the Media CI robot detected some > issues: > > # Test media-patchstyle:./0001-media-v4l2-core-Replace-the-check-for-firmware-regis.patch media style > ERROR: ./0001-media-v4l2-core-Replace-the-check-for-firmware-regis.patch: Missing 'media:' prefix in Subject LOL, what? > Please fix your series, and upload a new version. If you have a patchwork > account, do not forget to mark the current series as Superseded. > > For more details, check the full report at: > https://linux-media.pages.freedesktop.org/-/users/patchwork/-/jobs/72774130/artifacts/report.htm . -- With Best Regards, Andy Shevchenko ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [v2,1/1] media: v4l2-core: Replace the check for firmware registered I²C devices 2025-03-13 9:05 ` [v2,1/1] " Andy Shevchenko @ 2025-03-13 9:52 ` Hans Verkuil 2025-03-13 10:29 ` Ricardo Ribalda 2025-03-13 11:15 ` Andy Shevchenko 0 siblings, 2 replies; 5+ messages in thread From: Hans Verkuil @ 2025-03-13 9:52 UTC (permalink / raw) To: Andy Shevchenko, Ricardo Ribalda Cc: linux-kernel, Mauro Carvalho Chehab, linux-media On 13/03/2025 10:05, Andy Shevchenko wrote: > On Wed, Mar 12, 2025 at 02:06:16PM -0700, Patchwork Integration wrote: >> Dear Andy Shevchenko: >> >> Thanks for your patches! Unfortunately the Media CI robot detected some >> issues: >> >> # Test media-patchstyle:./0001-media-v4l2-core-Replace-the-check-for-firmware-regis.patch media style >> ERROR: ./0001-media-v4l2-core-Replace-the-check-for-firmware-regis.patch: Missing 'media:' prefix in Subject > > LOL, what? Hmm, the 'I²C' bit in the Subject header causes it to be UTF-8. The Subject line in patchwork (1) is now: Subject: [PATCH v2 1/1] =?utf-8?q?media=3A_v4l2-core=3A_Replace_the_check_fo?= =?utf-8?q?r_firmware_registered_I=C2=B2C_devices?= so the check for the 'media:' prefix in the Subject line fails. Interestingly, if I commit the patch (git am) to a test branch, then run 'git format-patch -n1' the Subject line now reads: Subject: [PATCH 1/1] =?UTF-8?q?media:=20v4l2-core:=20Replace=20the=20check?= =?UTF-8?q?=20for=20firmware=20registered=20I=C2=B2C=20devices?= and that restored the ':'. Ricardo, can you look at this? I also noticed that the v1 and v2 patches ended up in my spam folder. Whether that is related to UTF-8 in the Subject is not clear (my provider marks way too many legit posts as spam). Andy, can you post a v3 with just 'I2C' in the subject instead of 'I²C'? If nothing else, I'd like to know if that's the reason it ended up in my spam folder. Regards, Hans (1) https://patchwork.linuxtv.org/project/linux-media/patch/20250312192528.95838-1-andriy.shevchenko@linux.intel.com/ > >> Please fix your series, and upload a new version. If you have a patchwork >> account, do not forget to mark the current series as Superseded. >> >> For more details, check the full report at: >> https://linux-media.pages.freedesktop.org/-/users/patchwork/-/jobs/72774130/artifacts/report.htm . > ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [v2,1/1] media: v4l2-core: Replace the check for firmware registered I²C devices 2025-03-13 9:52 ` Hans Verkuil @ 2025-03-13 10:29 ` Ricardo Ribalda 2025-03-13 11:15 ` Andy Shevchenko 1 sibling, 0 replies; 5+ messages in thread From: Ricardo Ribalda @ 2025-03-13 10:29 UTC (permalink / raw) To: Hans Verkuil Cc: Andy Shevchenko, linux-kernel, Mauro Carvalho Chehab, linux-media On Thu, 13 Mar 2025 at 10:52, Hans Verkuil <hverkuil@xs4all.nl> wrote: > > On 13/03/2025 10:05, Andy Shevchenko wrote: > > On Wed, Mar 12, 2025 at 02:06:16PM -0700, Patchwork Integration wrote: > >> Dear Andy Shevchenko: > >> > >> Thanks for your patches! Unfortunately the Media CI robot detected some > >> issues: > >> > >> # Test media-patchstyle:./0001-media-v4l2-core-Replace-the-check-for-firmware-regis.patch media style > >> ERROR: ./0001-media-v4l2-core-Replace-the-check-for-firmware-regis.patch: Missing 'media:' prefix in Subject > > > > LOL, what? > > Hmm, the 'I²C' bit in the Subject header causes it to be UTF-8. The Subject line in > patchwork (1) is now: > > Subject: [PATCH v2 1/1] =?utf-8?q?media=3A_v4l2-core=3A_Replace_the_check_fo?= > =?utf-8?q?r_firmware_registered_I=C2=B2C_devices?= > > so the check for the 'media:' prefix in the Subject line fails. > > Interestingly, if I commit the patch (git am) to a test branch, then run > 'git format-patch -n1' the Subject line now reads: > > Subject: [PATCH 1/1] =?UTF-8?q?media:=20v4l2-core:=20Replace=20the=20check?= > =?UTF-8?q?=20for=20firmware=20registered=20I=C2=B2C=20devices?= > > and that restored the ':'. > > Ricardo, can you look at this? STOP breaking media-ci :P [1] Thanks for the report. We were not ready to handle that encoding. I am now leveraging "git log" and it seems to work fine. https://gitlab.freedesktop.org/linux-media/media-ci/-/merge_requests/246 Regards > > I also noticed that the v1 and v2 patches ended up in my spam folder. Whether that > is related to UTF-8 in the Subject is not clear (my provider marks way too many > legit posts as spam). > > Andy, can you post a v3 with just 'I2C' in the subject instead of 'I²C'? If nothing > else, I'd like to know if that's the reason it ended up in my spam folder. > > Regards, > > Hans > > (1) https://patchwork.linuxtv.org/project/linux-media/patch/20250312192528.95838-1-andriy.shevchenko@linux.intel.com/ > > > > >> Please fix your series, and upload a new version. If you have a patchwork > >> account, do not forget to mark the current series as Superseded. > >> > >> For more details, check the full report at: > >> https://linux-media.pages.freedesktop.org/-/users/patchwork/-/jobs/72774130/artifacts/report.htm . > > > [1] No, seriously, thanks for taking the time to report back, it really helps! -- Ricardo Ribalda ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [v2,1/1] media: v4l2-core: Replace the check for firmware registered I²C devices 2025-03-13 9:52 ` Hans Verkuil 2025-03-13 10:29 ` Ricardo Ribalda @ 2025-03-13 11:15 ` Andy Shevchenko 1 sibling, 0 replies; 5+ messages in thread From: Andy Shevchenko @ 2025-03-13 11:15 UTC (permalink / raw) To: Hans Verkuil Cc: Ricardo Ribalda, linux-kernel, Mauro Carvalho Chehab, linux-media On Thu, Mar 13, 2025 at 10:52:25AM +0100, Hans Verkuil wrote: > On 13/03/2025 10:05, Andy Shevchenko wrote: > > On Wed, Mar 12, 2025 at 02:06:16PM -0700, Patchwork Integration wrote: > >> Dear Andy Shevchenko: > >> > >> Thanks for your patches! Unfortunately the Media CI robot detected some > >> issues: > >> > >> # Test media-patchstyle:./0001-media-v4l2-core-Replace-the-check-for-firmware-regis.patch media style > >> ERROR: ./0001-media-v4l2-core-Replace-the-check-for-firmware-regis.patch: Missing 'media:' prefix in Subject > > > > LOL, what? > > Hmm, the 'I²C' bit in the Subject header causes it to be UTF-8. The Subject line in > patchwork (1) is now: > > Subject: [PATCH v2 1/1] =?utf-8?q?media=3A_v4l2-core=3A_Replace_the_check_fo?= > =?utf-8?q?r_firmware_registered_I=C2=B2C_devices?= > > so the check for the 'media:' prefix in the Subject line fails. > > Interestingly, if I commit the patch (git am) to a test branch, then run > 'git format-patch -n1' the Subject line now reads: > > Subject: [PATCH 1/1] =?UTF-8?q?media:=20v4l2-core:=20Replace=20the=20check?= > =?UTF-8?q?=20for=20firmware=20registered=20I=C2=B2C=20devices?= > > and that restored the ':'. > > Ricardo, can you look at this? > > I also noticed that the v1 and v2 patches ended up in my spam folder. Whether that > is related to UTF-8 in the Subject is not clear (my provider marks way too many > legit posts as spam). > > Andy, can you post a v3 with just 'I2C' in the subject instead of 'I²C'? If nothing > else, I'd like to know if that's the reason it ended up in my spam folder. Sure. Will do ASAP. -- With Best Regards, Andy Shevchenko ^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2025-03-13 11:16 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-03-12 19:24 [PATCH v2 1/1] media: v4l2-core: Replace the check for firmware registered I²C devices Andy Shevchenko
[not found] ` <67d1f748.050a0220.353790.339b@mx.google.com>
2025-03-13 9:05 ` [v2,1/1] " Andy Shevchenko
2025-03-13 9:52 ` Hans Verkuil
2025-03-13 10:29 ` Ricardo Ribalda
2025-03-13 11:15 ` Andy Shevchenko
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.