public inbox for linux-media@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH v3 1/1] media: v4l2-core: Replace the check for firmware registered I2C devices
@ 2025-03-13 11:30 Andy Shevchenko
  2025-03-14 17:16 ` Andy Shevchenko
  0 siblings, 1 reply; 4+ messages in thread
From: Andy Shevchenko @ 2025-03-13 11:30 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>
---

v3: Use ASCII in the Subject (Hans)
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] 4+ messages in thread

* Re: [PATCH v3 1/1] media: v4l2-core: Replace the check for firmware registered I2C devices
  2025-03-13 11:30 [PATCH v3 1/1] media: v4l2-core: Replace the check for firmware registered I2C devices Andy Shevchenko
@ 2025-03-14 17:16 ` Andy Shevchenko
  2025-04-08 12:17   ` Andy Shevchenko
  0 siblings, 1 reply; 4+ messages in thread
From: Andy Shevchenko @ 2025-03-14 17:16 UTC (permalink / raw)
  To: linux-media, linux-kernel; +Cc: Mauro Carvalho Chehab

On Thu, Mar 13, 2025 at 01:30:34PM +0200, Andy Shevchenko wrote:
> Replace the check for firmware registered I²C devices as the firmware node
> independently on type should be retrieved via dev_fwnode().

Hans, are you okay with this now? Can it be applied?

-- 
With Best Regards,
Andy Shevchenko



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH v3 1/1] media: v4l2-core: Replace the check for firmware registered I2C devices
  2025-03-14 17:16 ` Andy Shevchenko
@ 2025-04-08 12:17   ` Andy Shevchenko
  2025-05-02 14:14     ` Andy Shevchenko
  0 siblings, 1 reply; 4+ messages in thread
From: Andy Shevchenko @ 2025-04-08 12:17 UTC (permalink / raw)
  To: linux-media, linux-kernel; +Cc: Mauro Carvalho Chehab

On Fri, Mar 14, 2025 at 07:16:17PM +0200, Andy Shevchenko wrote:
> On Thu, Mar 13, 2025 at 01:30:34PM +0200, Andy Shevchenko wrote:
> > Replace the check for firmware registered I²C devices as the firmware node
> > independently on type should be retrieved via dev_fwnode().
> 
> Hans, are you okay with this now? Can it be applied?

Is this fell into cracks? Also, can somebody harvest those pretty much simple
one- or so liners that I have sent last week(s)? They all basically in a way
about fwnode.

-- 
With Best Regards,
Andy Shevchenko



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH v3 1/1] media: v4l2-core: Replace the check for firmware registered I2C devices
  2025-04-08 12:17   ` Andy Shevchenko
@ 2025-05-02 14:14     ` Andy Shevchenko
  0 siblings, 0 replies; 4+ messages in thread
From: Andy Shevchenko @ 2025-05-02 14:14 UTC (permalink / raw)
  To: linux-media, linux-kernel; +Cc: Mauro Carvalho Chehab

On Tue, Apr 08, 2025 at 03:17:54PM +0300, Andy Shevchenko wrote:
> On Fri, Mar 14, 2025 at 07:16:17PM +0200, Andy Shevchenko wrote:
> > On Thu, Mar 13, 2025 at 01:30:34PM +0200, Andy Shevchenko wrote:
> > > Replace the check for firmware registered I²C devices as the firmware node
> > > independently on type should be retrieved via dev_fwnode().
> > 
> > Hans, are you okay with this now? Can it be applied?
> 
> Is this fell into cracks? Also, can somebody harvest those pretty much simple
> one- or so liners that I have sent last week(s)? They all basically in a way
> about fwnode.

Any comments? Can it be applied?

-- 
With Best Regards,
Andy Shevchenko



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2025-05-02 14:14 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-03-13 11:30 [PATCH v3 1/1] media: v4l2-core: Replace the check for firmware registered I2C devices Andy Shevchenko
2025-03-14 17:16 ` Andy Shevchenko
2025-04-08 12:17   ` Andy Shevchenko
2025-05-02 14:14     ` Andy Shevchenko

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox