]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
media: atmel: atmel-isc: move to staging
authorEugen Hristev <eugen.hristev@microchip.com>
Mon, 7 Nov 2022 14:18:18 +0000 (14:18 +0000)
committerMauro Carvalho Chehab <mchehab@kernel.org>
Fri, 25 Nov 2022 07:48:31 +0000 (07:48 +0000)
commit55927c98a2c88019e23353a87f44032107ca2854
tree9a20642ec249f7295976a75aa341fbc6eb211ac4
parent8a8f9cedcb36c6c707f1854e51e23fd0208b4687
media: atmel: atmel-isc: move to staging

The Atmel ISC driver is not compliant with media controller specification.
In order to evolve this driver, it has to move to media controller, to
support enhanced features and future products which embed it.
The move to media controller involves several changes which are
not backwards compatible with the current usability of the driver.

The best example is the way the format is propagated from the top video
driver /dev/videoX down to the sensor.

In a simple configuration sensor ==> isc , the isc just calls subdev s_fmt
and controls the sensor directly. This is achieved by having a lot of code
inside the driver that will query the subdev at probe time and make a list
of formats which are usable.
Basically the user has nothing to configure, as the isc will handle
everything at the top level. This is an easy way to capture, but also comes
with the drawback of lack of flexibility.
In a more complicated pipeline
sensor ==> controller 1 ==> controller 2 ==> isc
this will not be achievable, as controller 1 and controller 2 might be
media-controller configurable, and will not propagate the formats down to
the sensor.

After discussions with the media maintainers, the decision is to move
Atmel ISC to staging as-is, to keep the Kconfig symbols and the users
to the driver in staging. Thus, all the existing users of the non
media-controller paradigm will continue to be happy and use the old config
way.

The new driver was added in the media subsystem with a different
symbol, with the conversion to media controller done, and new users
of the driver will be able to use all the new features.

This patch is merely a file move to staging, not affecting any of the
users.

The exported symbols had to be renamed to atmel_* to avoid duplication with
the new Microchip ISC driver.

Signed-off-by: Eugen Hristev <eugen.hristev@microchip.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
20 files changed:
MAINTAINERS
drivers/media/platform/atmel/Kconfig
drivers/media/platform/atmel/Makefile
drivers/media/platform/atmel/atmel-isc-base.c [deleted file]
drivers/media/platform/atmel/atmel-isc-clk.c [deleted file]
drivers/media/platform/atmel/atmel-isc-regs.h [deleted file]
drivers/media/platform/atmel/atmel-isc.h [deleted file]
drivers/media/platform/atmel/atmel-sama5d2-isc.c [deleted file]
drivers/media/platform/atmel/atmel-sama7g5-isc.c [deleted file]
drivers/staging/media/Kconfig
drivers/staging/media/Makefile
drivers/staging/media/deprecated/atmel/Kconfig [new file with mode: 0644]
drivers/staging/media/deprecated/atmel/Makefile [new file with mode: 0644]
drivers/staging/media/deprecated/atmel/TODO [new file with mode: 0644]
drivers/staging/media/deprecated/atmel/atmel-isc-base.c [new file with mode: 0644]
drivers/staging/media/deprecated/atmel/atmel-isc-clk.c [new file with mode: 0644]
drivers/staging/media/deprecated/atmel/atmel-isc-regs.h [new file with mode: 0644]
drivers/staging/media/deprecated/atmel/atmel-isc.h [new file with mode: 0644]
drivers/staging/media/deprecated/atmel/atmel-sama5d2-isc.c [new file with mode: 0644]
drivers/staging/media/deprecated/atmel/atmel-sama7g5-isc.c [new file with mode: 0644]