linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* question about v4l2_i2c_new_subdev_board
@ 2018-08-14  6:00 Zhang, Ning A
  0 siblings, 0 replies; only message in thread
From: Zhang, Ning A @ 2018-08-14  6:00 UTC (permalink / raw)
  To: mchehab, hverkuil; +Cc: linux-kernel, linux-media

Hello, Hans, Mauro

I find in source code: v4l2-common.c: v4l2_i2c_new_subdev_board(),
there is a comment:

	/* Note: by loading the module first we are certain that c-
>driver
	   will be set if the driver was found. If the module was not
loaded
	   first, then the i2c core tries to delay-load the module for
us,
	   and then c->driver is still NULL until the module is finally
	   loaded. This delay-load mechanism doesn't work if other
drivers
	   want to use the i2c device, so explicitly loading the module
	   is the best alternative. */

I find it added by commit: f0222c7d860f09a61bec5e500539f28db0184b38 

it was added at year 2009, is this still an issue in newer kernel, like
4.14?

BR.
Ning.

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2018-08-14  6:02 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-08-14  6:00 question about v4l2_i2c_new_subdev_board Zhang, Ning A

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).