kernel-fxtec-pro1x/drivers/media/v4l2-core
Rob Herring 12f92866f1 media: Revert "[media] v4l: async: make v4l2 coexist with devicetree nodes in a dt overlay"
This reverts commit d2180e0cf7.

The commit was flawed in that if the device_node pointers are different,
then in fact a different device is present and the device node could be
different in ways other than full_name.

As Frank Rowand explained:

"When an overlay (1) is removed, all uses and references to the nodes and
properties in that overlay are no longer valid.  Any driver that uses any
information from the overlay _must_ stop using any data from the overlay.
Any driver that is bound to a new node in the overlay _must_ unbind.  Any
driver that became bound to a pre-existing node that was modified by the
overlay (became bound after the overlay was applied) _must_ adjust itself
to account for any changes to that node when the overlay is removed.  One
way to do this is to unbind when notified that the overlay is about to
be removed, then to re-bind after the overlay is completely removed.

If an overlay (2) is subsequently applied, a node with the same
full_name as from overlay (1) may exist.  There is no guarantee
that overlay (1) and overlay (2) are the same overlay, even if
that node has the same full_name in both cases."

Also, there's not sufficient overlay support in mainline to actually
remove and re-apply an overlay to hit this condition as overlays can
only be applied from in kernel APIs.

Fixes: d2180e0cf7 ("[media] v4l: async: make v4l2 coexist with devicetree nodes in a dt overlay")

Cc: Javier Martinez Canillas <javier@osg.samsung.com>
Cc: Sylwester Nawrocki <s.nawrocki@samsung.com>
Cc: Frank Rowand <frowand.list@gmail.com>
Signed-off-by: Rob Herring <robh@kernel.org>
Acked-by: Javi Merino <javi.merino@kernel.org>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
2017-09-05 07:30:34 -04:00
..
Kconfig
Makefile
tuner-core.c
v4l2-async.c media: Revert "[media] v4l: async: make v4l2 coexist with devicetree nodes in a dt overlay" 2017-09-05 07:30:34 -04:00
v4l2-clk.c media: Convert to using %pOF instead of full_name 2017-08-20 08:20:20 -04:00
v4l2-common.c
v4l2-compat-ioctl32.c media: v4l2-compat-ioctl32.c: add capabilities field to, v4l2_input32 2017-08-20 08:11:55 -04:00
v4l2-ctrls.c
v4l2-dev.c
v4l2-device.c
v4l2-dv-timings.c
v4l2-event.c
v4l2-fh.c
v4l2-flash-led-class.c media: v4l2-flash-led-class: Create separate sub-devices for indicators 2017-08-26 20:26:35 -04:00
v4l2-fwnode.c media: v4l: fwnode: Use a less clash-prone name for MAX_DATA_LANES macro 2017-08-26 13:52:28 -04:00
v4l2-ioctl.c media: v4l: Add packed Bayer raw12 pixel formats 2017-08-26 14:45:24 -04:00
v4l2-mc.c
v4l2-mem2mem.c
v4l2-subdev.c
v4l2-trace.c
vb2-trace.c
videobuf-core.c
videobuf-dma-contig.c
videobuf-dma-sg.c
videobuf-dvb.c
videobuf-vmalloc.c
videobuf2-core.c media: vb2: add bidirectional flag in vb2_queue 2017-08-26 14:15:54 -04:00
videobuf2-dma-contig.c media: vb2: add bidirectional flag in vb2_queue 2017-08-26 14:15:54 -04:00
videobuf2-dma-sg.c media: vb2: add bidirectional flag in vb2_queue 2017-08-26 14:15:54 -04:00
videobuf2-dvb.c
videobuf2-memops.c
videobuf2-v4l2.c
videobuf2-vmalloc.c media: vb2: add bidirectional flag in vb2_queue 2017-08-26 14:15:54 -04:00