Skip to contentSkip to conversation

media: Kconfig/Makefile reorg

PATCH In review Mauro Carvalho Chehab 6 participants 81 messages Mar 14, 2022 – Mar 17, 2022 Page 2 of 2

Subsystems (104)
lore
Share & tools
lore
author maintainer
#73 lore raw

PATCH v2 61/67 media: platform: re-structure TI drivers

In reply to Mauro Carvalho Chehab

From: Pratyush Yadav <[email protected]>

The ti-vpe/ sub-directory does not only contain the VPE-specific things. It also contains the CAL driver, which is a completely different subsystem. This is also not a good place to add new drivers for other TI platforms since they will all get mixed up.

Separate the VPE and CAL parts into different sub-directories and rename the ti-vpe/ sub-directory to ti/. This is now the place where new TI platform drivers can be added.

[mchehab: rebased to apple on the top of media/platform/Kconfig series]

---

To avoid mailbombing on a large number of people, only mailing lists were C/C on the cover. See [PATCH v2 00/67] at: https://lore.kernel.org/all/[email protected]/

 MAINTAINERS                                              | 3 ++-
 drivers/media/platform/Makefile                          | 6 +-----
 drivers/media/platform/ti/Makefile                       | 3 +++
 drivers/media/platform/ti/cal/Makefile                   | 3 +++
 drivers/media/platform/{ti-vpe => ti/cal}/cal-camerarx.c | 0
 drivers/media/platform/{ti-vpe => ti/cal}/cal-video.c    | 0
 drivers/media/platform/{ti-vpe => ti/cal}/cal.c          | 0
 drivers/media/platform/{ti-vpe => ti/cal}/cal.h          | 0
 drivers/media/platform/{ti-vpe => ti/cal}/cal_regs.h     | 0
 drivers/media/platform/{ti-vpe => ti/vpe}/Makefile       | 4 ----
 drivers/media/platform/{ti-vpe => ti/vpe}/csc.c          | 0
 drivers/media/platform/{ti-vpe => ti/vpe}/csc.h          | 0
 drivers/media/platform/{ti-vpe => ti/vpe}/sc.c           | 0
 drivers/media/platform/{ti-vpe => ti/vpe}/sc.h           | 0
 drivers/media/platform/{ti-vpe => ti/vpe}/sc_coeff.h     | 0
 drivers/media/platform/{ti-vpe => ti/vpe}/vpdma.c        | 0
 drivers/media/platform/{ti-vpe => ti/vpe}/vpdma.h        | 0
 drivers/media/platform/{ti-vpe => ti/vpe}/vpdma_priv.h   | 0
 drivers/media/platform/{ti-vpe => ti/vpe}/vpe.c          | 0
 drivers/media/platform/{ti-vpe => ti/vpe}/vpe_regs.h     | 0
 20 files changed, 9 insertions(+), 10 deletions(-)
 create mode 100644 drivers/media/platform/ti/Makefile
 create mode 100644 drivers/media/platform/ti/cal/Makefile
 rename drivers/media/platform/{ti-vpe => ti/cal}/cal-camerarx.c (100%)
 rename drivers/media/platform/{ti-vpe => ti/cal}/cal-video.c (100%)
 rename drivers/media/platform/{ti-vpe => ti/cal}/cal.c (100%)
 rename drivers/media/platform/{ti-vpe => ti/cal}/cal.h (100%)
 rename drivers/media/platform/{ti-vpe => ti/cal}/cal_regs.h (100%)
 rename drivers/media/platform/{ti-vpe => ti/vpe}/Makefile (78%)
 rename drivers/media/platform/{ti-vpe => ti/vpe}/csc.c (100%)
 rename drivers/media/platform/{ti-vpe => ti/vpe}/csc.h (100%)
 rename drivers/media/platform/{ti-vpe => ti/vpe}/sc.c (100%)
 rename drivers/media/platform/{ti-vpe => ti/vpe}/sc.h (100%)
 rename drivers/media/platform/{ti-vpe => ti/vpe}/sc_coeff.h (100%)
 rename drivers/media/platform/{ti-vpe => ti/vpe}/vpdma.c (100%)
 rename drivers/media/platform/{ti-vpe => ti/vpe}/vpdma.h (100%)
 rename drivers/media/platform/{ti-vpe => ti/vpe}/vpdma_priv.h (100%)
 rename drivers/media/platform/{ti-vpe => ti/vpe}/vpe.c (100%)
 rename drivers/media/platform/{ti-vpe => ti/vpe}/vpe_regs.h (100%)
MAINTAINERS +2 -1
index 6c892fc9595b..81ce7b4e2b2a 100644
@@ -19407,7 +19407,8 @@ W:	http://linuxtv.org/
 Q:	http://patchwork.linuxtv.org/project/linux-media/list/
 F:	Documentation/devicetree/bindings/media/ti,cal.yaml
 F:	Documentation/devicetree/bindings/media/ti,vpe.yaml
-F:	drivers/media/platform/ti-vpe/
+F:	drivers/media/platform/ti/cal/
+F:	drivers/media/platform/ti/vpe/
 
 TI WILINK WIRELESS DRIVERS
 L:	[email protected]
drivers/media/platform/Makefile +1 -5
index 39fa6aaad13b..2c5713ddac09 100644
@@ -37,11 +37,7 @@ obj-y += stm/sti/c8sectpfe/
 obj-y += stm/sti/delta/
 obj-y += stm/sti/hva/
 obj-y += stm/stm32/
-obj-y += ti-vpe/
-obj-y += ti/am437x/
-obj-y += ti/davinci/
-obj-y += ti/omap/
-obj-y += ti/omap3isp/
+obj-y += ti/
 obj-y += via/
 obj-y += xilinx/
 
drivers/media/platform/ti/Makefile new file +3 -0
new file mode 100644
index 000000000000..bbc737ccbbea
@@ -0,0 +1,3 @@
+# SPDX-License-Identifier: GPL-2.0
+obj-y += cal/
+obj-y += vpe/
drivers/media/platform/ti/cal/Makefile new file +3 -0
new file mode 100644
index 000000000000..45ac35585f0b
@@ -0,0 +1,3 @@
+# SPDX-License-Identifier: GPL-2.0
+obj-$(CONFIG_VIDEO_TI_CAL) += ti-cal.o
+ti-cal-y := cal.o cal-camerarx.o cal-video.o
drivers/media/platform/ti/cal/cal-camerarx.c renamed from drivers/media/platform/ti-vpe/cal-camerarx.c +0 -0
similarity index 100%
rename from drivers/media/platform/ti-vpe/cal-camerarx.c
rename to drivers/media/platform/ti/cal/cal-camerarx.c
drivers/media/platform/ti/cal/cal-video.c renamed from drivers/media/platform/ti-vpe/cal-video.c +0 -0
similarity index 100%
rename from drivers/media/platform/ti-vpe/cal-video.c
rename to drivers/media/platform/ti/cal/cal-video.c
drivers/media/platform/ti/cal/cal.c renamed from drivers/media/platform/ti-vpe/cal.c +0 -0
similarity index 100%
rename from drivers/media/platform/ti-vpe/cal.c
rename to drivers/media/platform/ti/cal/cal.c
drivers/media/platform/ti/cal/cal.h renamed from drivers/media/platform/ti-vpe/cal.h +0 -0
similarity index 100%
rename from drivers/media/platform/ti-vpe/cal.h
rename to drivers/media/platform/ti/cal/cal.h
drivers/media/platform/ti/cal/cal_regs.h renamed from drivers/media/platform/ti-vpe/cal_regs.h +0 -0
similarity index 100%
rename from drivers/media/platform/ti-vpe/cal_regs.h
rename to drivers/media/platform/ti/cal/cal_regs.h
drivers/media/platform/ti/vpe/Makefile renamed from drivers/media/platform/ti-vpe/Makefile +0 -4
similarity index 78%
rename from drivers/media/platform/ti-vpe/Makefile
rename to drivers/media/platform/ti/vpe/Makefile
index ad624056e039..3fadfe084f87 100644
@@ -10,7 +10,3 @@ ti-sc-y := sc.o
 ti-csc-y := csc.o
 
 ccflags-$(CONFIG_VIDEO_TI_VPE_DEBUG) += -DDEBUG
-
-obj-$(CONFIG_VIDEO_TI_CAL) += ti-cal.o
-
-ti-cal-y := cal.o cal-camerarx.o cal-video.o
drivers/media/platform/ti/vpe/csc.c renamed from drivers/media/platform/ti-vpe/csc.c +0 -0
similarity index 100%
rename from drivers/media/platform/ti-vpe/csc.c
rename to drivers/media/platform/ti/vpe/csc.c
drivers/media/platform/ti/vpe/csc.h renamed from drivers/media/platform/ti-vpe/csc.h +0 -0
similarity index 100%
rename from drivers/media/platform/ti-vpe/csc.h
rename to drivers/media/platform/ti/vpe/csc.h
drivers/media/platform/ti/vpe/sc.c renamed from drivers/media/platform/ti-vpe/sc.c +0 -0
similarity index 100%
rename from drivers/media/platform/ti-vpe/sc.c
rename to drivers/media/platform/ti/vpe/sc.c
drivers/media/platform/ti/vpe/sc.h renamed from drivers/media/platform/ti-vpe/sc.h +0 -0
similarity index 100%
rename from drivers/media/platform/ti-vpe/sc.h
rename to drivers/media/platform/ti/vpe/sc.h
drivers/media/platform/ti/vpe/sc_coeff.h renamed from drivers/media/platform/ti-vpe/sc_coeff.h +0 -0
similarity index 100%
rename from drivers/media/platform/ti-vpe/sc_coeff.h
rename to drivers/media/platform/ti/vpe/sc_coeff.h
drivers/media/platform/ti/vpe/vpdma.c renamed from drivers/media/platform/ti-vpe/vpdma.c +0 -0
similarity index 100%
rename from drivers/media/platform/ti-vpe/vpdma.c
rename to drivers/media/platform/ti/vpe/vpdma.c
drivers/media/platform/ti/vpe/vpdma.h renamed from drivers/media/platform/ti-vpe/vpdma.h +0 -0
similarity index 100%
rename from drivers/media/platform/ti-vpe/vpdma.h
rename to drivers/media/platform/ti/vpe/vpdma.h
drivers/media/platform/ti/vpe/vpdma_priv.h renamed from drivers/media/platform/ti-vpe/vpdma_priv.h +0 -0
similarity index 100%
rename from drivers/media/platform/ti-vpe/vpdma_priv.h
rename to drivers/media/platform/ti/vpe/vpdma_priv.h
drivers/media/platform/ti/vpe/vpe.c renamed from drivers/media/platform/ti-vpe/vpe.c +0 -0
similarity index 100%
rename from drivers/media/platform/ti-vpe/vpe.c
rename to drivers/media/platform/ti/vpe/vpe.c
drivers/media/platform/ti/vpe/vpe_regs.h renamed from drivers/media/platform/ti-vpe/vpe_regs.h +0 -0
similarity index 100%
rename from drivers/media/platform/ti-vpe/vpe_regs.h
rename to drivers/media/platform/ti/vpe/vpe_regs.h
Signature · 1 line
2.35.1
author maintainer
#80 lore raw

PATCH v2 67/67 media: platform: rename mediatek/mtk-jpeg/ to mediatek/jpeg/

In reply to Mauro Carvalho Chehab

As the end goal is to have platform drivers split by vendor, rename mediatek/mtk-jpeg/ to mediatek/jpeg/.

---

To avoid mailbombing on a large number of people, only mailing lists were C/C on the cover. See [PATCH v2 00/67] at: https://lore.kernel.org/all/[email protected]/

 MAINTAINERS                                            | 10 +++++-----
 drivers/media/platform/mediatek/Kconfig                |  8 ++++----
 drivers/media/platform/mediatek/Makefile               |  8 ++++----
 .../media/platform/mediatek/{mtk-jpeg => jpeg}/Kconfig |  0
 .../platform/mediatek/{mtk-jpeg => jpeg}/Makefile      |  0
 .../mediatek/{mtk-jpeg => jpeg}/mtk_jpeg_core.c        |  0
 .../mediatek/{mtk-jpeg => jpeg}/mtk_jpeg_core.h        |  0
 .../mediatek/{mtk-jpeg => jpeg}/mtk_jpeg_dec_hw.c      |  0
 .../mediatek/{mtk-jpeg => jpeg}/mtk_jpeg_dec_hw.h      |  0
 .../mediatek/{mtk-jpeg => jpeg}/mtk_jpeg_dec_parse.c   |  0
 .../mediatek/{mtk-jpeg => jpeg}/mtk_jpeg_dec_parse.h   |  0
 .../mediatek/{mtk-jpeg => jpeg}/mtk_jpeg_dec_reg.h     |  0
 .../mediatek/{mtk-jpeg => jpeg}/mtk_jpeg_enc_hw.c      |  0
 .../mediatek/{mtk-jpeg => jpeg}/mtk_jpeg_enc_hw.h      |  0
 .../media/platform/mediatek/{mtk-mdp => mdp}/Kconfig   |  0
 .../media/platform/mediatek/{mtk-mdp => mdp}/Makefile  |  2 +-
 .../platform/mediatek/{mtk-mdp => mdp}/mtk_mdp_comp.c  |  0
 .../platform/mediatek/{mtk-mdp => mdp}/mtk_mdp_comp.h  |  0
 .../platform/mediatek/{mtk-mdp => mdp}/mtk_mdp_core.c  |  0
 .../platform/mediatek/{mtk-mdp => mdp}/mtk_mdp_core.h  |  0
 .../platform/mediatek/{mtk-mdp => mdp}/mtk_mdp_ipi.h   |  0
 .../platform/mediatek/{mtk-mdp => mdp}/mtk_mdp_m2m.c   |  0
 .../platform/mediatek/{mtk-mdp => mdp}/mtk_mdp_m2m.h   |  0
 .../platform/mediatek/{mtk-mdp => mdp}/mtk_mdp_regs.c  |  0
 .../platform/mediatek/{mtk-mdp => mdp}/mtk_mdp_regs.h  |  0
 .../platform/mediatek/{mtk-mdp => mdp}/mtk_mdp_vpu.c   |  0
 .../platform/mediatek/{mtk-mdp => mdp}/mtk_mdp_vpu.h   |  0
 .../platform/mediatek/{mtk-vcodec => vcodec}/Kconfig   |  0
 .../platform/mediatek/{mtk-vcodec => vcodec}/Makefile  |  0
 .../mediatek/{mtk-vcodec => vcodec}/mtk_vcodec_dec.c   |  0
 .../mediatek/{mtk-vcodec => vcodec}/mtk_vcodec_dec.h   |  0
 .../{mtk-vcodec => vcodec}/mtk_vcodec_dec_drv.c        |  0
 .../{mtk-vcodec => vcodec}/mtk_vcodec_dec_hw.c         |  0
 .../{mtk-vcodec => vcodec}/mtk_vcodec_dec_hw.h         |  0
 .../{mtk-vcodec => vcodec}/mtk_vcodec_dec_pm.c         |  0
 .../{mtk-vcodec => vcodec}/mtk_vcodec_dec_pm.h         |  0
 .../{mtk-vcodec => vcodec}/mtk_vcodec_dec_stateful.c   |  0
 .../{mtk-vcodec => vcodec}/mtk_vcodec_dec_stateless.c  |  0
 .../mediatek/{mtk-vcodec => vcodec}/mtk_vcodec_drv.h   |  0
 .../mediatek/{mtk-vcodec => vcodec}/mtk_vcodec_enc.c   |  0
 .../mediatek/{mtk-vcodec => vcodec}/mtk_vcodec_enc.h   |  0
 .../{mtk-vcodec => vcodec}/mtk_vcodec_enc_drv.c        |  0
 .../{mtk-vcodec => vcodec}/mtk_vcodec_enc_pm.c         |  0
 .../{mtk-vcodec => vcodec}/mtk_vcodec_enc_pm.h         |  0
 .../mediatek/{mtk-vcodec => vcodec}/mtk_vcodec_fw.c    |  0
 .../mediatek/{mtk-vcodec => vcodec}/mtk_vcodec_fw.h    |  2 +-
 .../{mtk-vcodec => vcodec}/mtk_vcodec_fw_priv.h        |  0
 .../{mtk-vcodec => vcodec}/mtk_vcodec_fw_scp.c         |  0
 .../{mtk-vcodec => vcodec}/mtk_vcodec_fw_vpu.c         |  0
 .../mediatek/{mtk-vcodec => vcodec}/mtk_vcodec_intr.c  |  0
 .../mediatek/{mtk-vcodec => vcodec}/mtk_vcodec_intr.h  |  0
 .../mediatek/{mtk-vcodec => vcodec}/mtk_vcodec_util.c  |  0
 .../mediatek/{mtk-vcodec => vcodec}/mtk_vcodec_util.h  |  0
 .../{mtk-vcodec => vcodec}/vdec/vdec_h264_if.c         |  0
 .../{mtk-vcodec => vcodec}/vdec/vdec_h264_req_if.c     |  0
 .../mediatek/{mtk-vcodec => vcodec}/vdec/vdec_vp8_if.c |  0
 .../mediatek/{mtk-vcodec => vcodec}/vdec/vdec_vp9_if.c |  0
 .../mediatek/{mtk-vcodec => vcodec}/vdec_drv_base.h    |  0
 .../mediatek/{mtk-vcodec => vcodec}/vdec_drv_if.c      |  0
 .../mediatek/{mtk-vcodec => vcodec}/vdec_drv_if.h      |  0
 .../mediatek/{mtk-vcodec => vcodec}/vdec_ipi_msg.h     |  0
 .../mediatek/{mtk-vcodec => vcodec}/vdec_msg_queue.c   |  0
 .../mediatek/{mtk-vcodec => vcodec}/vdec_msg_queue.h   |  0
 .../mediatek/{mtk-vcodec => vcodec}/vdec_vpu_if.c      |  0
 .../mediatek/{mtk-vcodec => vcodec}/vdec_vpu_if.h      |  0
 .../{mtk-vcodec => vcodec}/venc/venc_h264_if.c         |  0
 .../mediatek/{mtk-vcodec => vcodec}/venc/venc_vp8_if.c |  0
 .../mediatek/{mtk-vcodec => vcodec}/venc_drv_base.h    |  0
 .../mediatek/{mtk-vcodec => vcodec}/venc_drv_if.c      |  0
 .../mediatek/{mtk-vcodec => vcodec}/venc_drv_if.h      |  0
 .../mediatek/{mtk-vcodec => vcodec}/venc_ipi_msg.h     |  0
 .../mediatek/{mtk-vcodec => vcodec}/venc_vpu_if.c      |  0
 .../mediatek/{mtk-vcodec => vcodec}/venc_vpu_if.h      |  0
 .../media/platform/mediatek/{mtk-vpu => vpu}/Kconfig   |  0
 .../media/platform/mediatek/{mtk-vpu => vpu}/Makefile  |  0
 .../media/platform/mediatek/{mtk-vpu => vpu}/mtk_vpu.c |  0
 .../media/platform/mediatek/{mtk-vpu => vpu}/mtk_vpu.h |  0
 77 files changed, 15 insertions(+), 15 deletions(-)
 rename drivers/media/platform/mediatek/{mtk-jpeg => jpeg}/Kconfig (100%)
 rename drivers/media/platform/mediatek/{mtk-jpeg => jpeg}/Makefile (100%)
 rename drivers/media/platform/mediatek/{mtk-jpeg => jpeg}/mtk_jpeg_core.c (100%)
 rename drivers/media/platform/mediatek/{mtk-jpeg => jpeg}/mtk_jpeg_core.h (100%)
 rename drivers/media/platform/mediatek/{mtk-jpeg => jpeg}/mtk_jpeg_dec_hw.c (100%)
 rename drivers/media/platform/mediatek/{mtk-jpeg => jpeg}/mtk_jpeg_dec_hw.h (100%)
 rename drivers/media/platform/mediatek/{mtk-jpeg => jpeg}/mtk_jpeg_dec_parse.c (100%)
 rename drivers/media/platform/mediatek/{mtk-jpeg => jpeg}/mtk_jpeg_dec_parse.h (100%)
 rename drivers/media/platform/mediatek/{mtk-jpeg => jpeg}/mtk_jpeg_dec_reg.h (100%)
 rename drivers/media/platform/mediatek/{mtk-jpeg => jpeg}/mtk_jpeg_enc_hw.c (100%)
 rename drivers/media/platform/mediatek/{mtk-jpeg => jpeg}/mtk_jpeg_enc_hw.h (100%)
 rename drivers/media/platform/mediatek/{mtk-mdp => mdp}/Kconfig (100%)
 rename drivers/media/platform/mediatek/{mtk-mdp => mdp}/Makefile (77%)
 rename drivers/media/platform/mediatek/{mtk-mdp => mdp}/mtk_mdp_comp.c (100%)
 rename drivers/media/platform/mediatek/{mtk-mdp => mdp}/mtk_mdp_comp.h (100%)
 rename drivers/media/platform/mediatek/{mtk-mdp => mdp}/mtk_mdp_core.c (100%)
 rename drivers/media/platform/mediatek/{mtk-mdp => mdp}/mtk_mdp_core.h (100%)
 rename drivers/media/platform/mediatek/{mtk-mdp => mdp}/mtk_mdp_ipi.h (100%)
 rename drivers/media/platform/mediatek/{mtk-mdp => mdp}/mtk_mdp_m2m.c (100%)
 rename drivers/media/platform/mediatek/{mtk-mdp => mdp}/mtk_mdp_m2m.h (100%)
 rename drivers/media/platform/mediatek/{mtk-mdp => mdp}/mtk_mdp_regs.c (100%)
 rename drivers/media/platform/mediatek/{mtk-mdp => mdp}/mtk_mdp_regs.h (100%)
 rename drivers/media/platform/mediatek/{mtk-mdp => mdp}/mtk_mdp_vpu.c (100%)
 rename drivers/media/platform/mediatek/{mtk-mdp => mdp}/mtk_mdp_vpu.h (100%)
 rename drivers/media/platform/mediatek/{mtk-vcodec => vcodec}/Kconfig (100%)
 rename drivers/media/platform/mediatek/{mtk-vcodec => vcodec}/Makefile (100%)
 rename drivers/media/platform/mediatek/{mtk-vcodec => vcodec}/mtk_vcodec_dec.c (100%)
 rename drivers/media/platform/mediatek/{mtk-vcodec => vcodec}/mtk_vcodec_dec.h (100%)
 rename drivers/media/platform/mediatek/{mtk-vcodec => vcodec}/mtk_vcodec_dec_drv.c (100%)
 rename drivers/media/platform/mediatek/{mtk-vcodec => vcodec}/mtk_vcodec_dec_hw.c (100%)
 rename drivers/media/platform/mediatek/{mtk-vcodec => vcodec}/mtk_vcodec_dec_hw.h (100%)
 rename drivers/media/platform/mediatek/{mtk-vcodec => vcodec}/mtk_vcodec_dec_pm.c (100%)
 rename drivers/media/platform/mediatek/{mtk-vcodec => vcodec}/mtk_vcodec_dec_pm.h (100%)
 rename drivers/media/platform/mediatek/{mtk-vcodec => vcodec}/mtk_vcodec_dec_stateful.c (100%)
 rename drivers/media/platform/mediatek/{mtk-vcodec => vcodec}/mtk_vcodec_dec_stateless.c (100%)
 rename drivers/media/platform/mediatek/{mtk-vcodec => vcodec}/mtk_vcodec_drv.h (100%)
 rename drivers/media/platform/mediatek/{mtk-vcodec => vcodec}/mtk_vcodec_enc.c (100%)
 rename drivers/media/platform/mediatek/{mtk-vcodec => vcodec}/mtk_vcodec_enc.h (100%)
 rename drivers/media/platform/mediatek/{mtk-vcodec => vcodec}/mtk_vcodec_enc_drv.c (100%)
 rename drivers/media/platform/mediatek/{mtk-vcodec => vcodec}/mtk_vcodec_enc_pm.c (100%)
 rename drivers/media/platform/mediatek/{mtk-vcodec => vcodec}/mtk_vcodec_enc_pm.h (100%)
 rename drivers/media/platform/mediatek/{mtk-vcodec => vcodec}/mtk_vcodec_fw.c (100%)
 rename drivers/media/platform/mediatek/{mtk-vcodec => vcodec}/mtk_vcodec_fw.h (97%)
 rename drivers/media/platform/mediatek/{mtk-vcodec => vcodec}/mtk_vcodec_fw_priv.h (100%)
 rename drivers/media/platform/mediatek/{mtk-vcodec => vcodec}/mtk_vcodec_fw_scp.c (100%)
 rename drivers/media/platform/mediatek/{mtk-vcodec => vcodec}/mtk_vcodec_fw_vpu.c (100%)
 rename drivers/media/platform/mediatek/{mtk-vcodec => vcodec}/mtk_vcodec_intr.c (100%)
 rename drivers/media/platform/mediatek/{mtk-vcodec => vcodec}/mtk_vcodec_intr.h (100%)
 rename drivers/media/platform/mediatek/{mtk-vcodec => vcodec}/mtk_vcodec_util.c (100%)
 rename drivers/media/platform/mediatek/{mtk-vcodec => vcodec}/mtk_vcodec_util.h (100%)
 rename drivers/media/platform/mediatek/{mtk-vcodec => vcodec}/vdec/vdec_h264_if.c (100%)
 rename drivers/media/platform/mediatek/{mtk-vcodec => vcodec}/vdec/vdec_h264_req_if.c (100%)
 rename drivers/media/platform/mediatek/{mtk-vcodec => vcodec}/vdec/vdec_vp8_if.c (100%)
 rename drivers/media/platform/mediatek/{mtk-vcodec => vcodec}/vdec/vdec_vp9_if.c (100%)
 rename drivers/media/platform/mediatek/{mtk-vcodec => vcodec}/vdec_drv_base.h (100%)
 rename drivers/media/platform/mediatek/{mtk-vcodec => vcodec}/vdec_drv_if.c (100%)
 rename drivers/media/platform/mediatek/{mtk-vcodec => vcodec}/vdec_drv_if.h (100%)
 rename drivers/media/platform/mediatek/{mtk-vcodec => vcodec}/vdec_ipi_msg.h (100%)
 rename drivers/media/platform/mediatek/{mtk-vcodec => vcodec}/vdec_msg_queue.c (100%)
 rename drivers/media/platform/mediatek/{mtk-vcodec => vcodec}/vdec_msg_queue.h (100%)
 rename drivers/media/platform/mediatek/{mtk-vcodec => vcodec}/vdec_vpu_if.c (100%)
 rename drivers/media/platform/mediatek/{mtk-vcodec => vcodec}/vdec_vpu_if.h (100%)
 rename drivers/media/platform/mediatek/{mtk-vcodec => vcodec}/venc/venc_h264_if.c (100%)
 rename drivers/media/platform/mediatek/{mtk-vcodec => vcodec}/venc/venc_vp8_if.c (100%)
 rename drivers/media/platform/mediatek/{mtk-vcodec => vcodec}/venc_drv_base.h (100%)
 rename drivers/media/platform/mediatek/{mtk-vcodec => vcodec}/venc_drv_if.c (100%)
 rename drivers/media/platform/mediatek/{mtk-vcodec => vcodec}/venc_drv_if.h (100%)
 rename drivers/media/platform/mediatek/{mtk-vcodec => vcodec}/venc_ipi_msg.h (100%)
 rename drivers/media/platform/mediatek/{mtk-vcodec => vcodec}/venc_vpu_if.c (100%)
 rename drivers/media/platform/mediatek/{mtk-vcodec => vcodec}/venc_vpu_if.h (100%)
 rename drivers/media/platform/mediatek/{mtk-vpu => vpu}/Kconfig (100%)
 rename drivers/media/platform/mediatek/{mtk-vpu => vpu}/Makefile (100%)
 rename drivers/media/platform/mediatek/{mtk-vpu => vpu}/mtk_vpu.c (100%)
 rename drivers/media/platform/mediatek/{mtk-vpu => vpu}/mtk_vpu.h (100%)
MAINTAINERS +5 -5
index 81ce7b4e2b2a..152fef3163e5 100644
@@ -12130,7 +12130,7 @@ M:	Rick Chang <[email protected]>
 M:	Bin Liu <[email protected]>
 S:	Supported
 F:	Documentation/devicetree/bindings/media/mediatek-jpeg-decoder.txt
-F:	drivers/media/platform/mediatek/mtk-jpeg/
+F:	drivers/media/platform/mediatek/jpeg/
 
 MEDIATEK MDP DRIVER
 M:	Minghsiu Tsai <[email protected]>
@@ -12138,8 +12138,8 @@ M:	Houlong Wei <[email protected]>
 M:	Andrew-CT Chen <[email protected]>
 S:	Supported
 F:	Documentation/devicetree/bindings/media/mediatek-mdp.txt
-F:	drivers/media/platform/mediatek/mtk-mdp/
-F:	drivers/media/platform/mediatek/mtk-vpu/
+F:	drivers/media/platform/mediatek/mdp/
+F:	drivers/media/platform/mediatek/vpu/
 
 MEDIATEK MEDIA DRIVER
 M:	Tiffany Lin <[email protected]>
@@ -12147,8 +12147,8 @@ M:	Andrew-CT Chen <[email protected]>
 S:	Supported
 F:	Documentation/devicetree/bindings/media/mediatek-vcodec.txt
 F:	Documentation/devicetree/bindings/media/mediatek-vpu.txt
-F:	drivers/media/platform/mediatek/mtk-vcodec/
-F:	drivers/media/platform/mediatek/mtk-vpu/
+F:	drivers/media/platform/mediatek/vcodec/
+F:	drivers/media/platform/mediatek/vpu/
 
 MEDIATEK MMC/SD/SDIO DRIVER
 M:	Chaotian Jing <[email protected]>
drivers/media/platform/mediatek/Kconfig +4 -4
index aa79626088ec..122eb94ed430 100644
@@ -2,7 +2,7 @@
 
 comment "Mediatek drivers"
 
-source "drivers/media/platform/mediatek/mtk-jpeg/Kconfig"
-source "drivers/media/platform/mediatek/mtk-mdp/Kconfig"
-source "drivers/media/platform/mediatek/mtk-vcodec/Kconfig"
-source "drivers/media/platform/mediatek/mtk-vpu/Kconfig"
+source "drivers/media/platform/mediatek/jpeg/Kconfig"
+source "drivers/media/platform/mediatek/mdp/Kconfig"
+source "drivers/media/platform/mediatek/vcodec/Kconfig"
+source "drivers/media/platform/mediatek/vpu/Kconfig"
drivers/media/platform/mediatek/Makefile +4 -4
index 403d5ecd2b10..d3850a13f128 100644
@@ -1,5 +1,5 @@
 # SPDX-License-Identifier: GPL-2.0-only
-obj-y += mtk-jpeg/
-obj-y += mtk-mdp/
-obj-y += mtk-vcodec/
-obj-y += mtk-vpu/
+obj-y += jpeg/
+obj-y += mdp/
+obj-y += vcodec/
+obj-y += vpu/
drivers/media/platform/mediatek/jpeg/Kconfig renamed from drivers/media/platform/mediatek/mtk-jpeg/Kconfig +0 -0
similarity index 100%
rename from drivers/media/platform/mediatek/mtk-jpeg/Kconfig
rename to drivers/media/platform/mediatek/jpeg/Kconfig
drivers/media/platform/mediatek/jpeg/Makefile renamed from drivers/media/platform/mediatek/mtk-jpeg/Makefile +0 -0
similarity index 100%
rename from drivers/media/platform/mediatek/mtk-jpeg/Makefile
rename to drivers/media/platform/mediatek/jpeg/Makefile
drivers/media/platform/mediatek/jpeg/mtk_jpeg_core.c renamed from drivers/media/platform/mediatek/mtk-jpeg/mtk_jpeg_core.c +0 -0
similarity index 100%
rename from drivers/media/platform/mediatek/mtk-jpeg/mtk_jpeg_core.c
rename to drivers/media/platform/mediatek/jpeg/mtk_jpeg_core.c
drivers/media/platform/mediatek/jpeg/mtk_jpeg_core.h renamed from drivers/media/platform/mediatek/mtk-jpeg/mtk_jpeg_core.h +0 -0
similarity index 100%
rename from drivers/media/platform/mediatek/mtk-jpeg/mtk_jpeg_core.h
rename to drivers/media/platform/mediatek/jpeg/mtk_jpeg_core.h
drivers/media/platform/mediatek/jpeg/mtk_jpeg_dec_hw.c renamed from drivers/media/platform/mediatek/mtk-jpeg/mtk_jpeg_dec_hw.c +0 -0
similarity index 100%
rename from drivers/media/platform/mediatek/mtk-jpeg/mtk_jpeg_dec_hw.c
rename to drivers/media/platform/mediatek/jpeg/mtk_jpeg_dec_hw.c
drivers/media/platform/mediatek/jpeg/mtk_jpeg_dec_hw.h renamed from drivers/media/platform/mediatek/mtk-jpeg/mtk_jpeg_dec_hw.h +0 -0
similarity index 100%
rename from drivers/media/platform/mediatek/mtk-jpeg/mtk_jpeg_dec_hw.h
rename to drivers/media/platform/mediatek/jpeg/mtk_jpeg_dec_hw.h
drivers/media/platform/mediatek/jpeg/mtk_jpeg_dec_parse.c renamed from drivers/media/platform/mediatek/mtk-jpeg/mtk_jpeg_dec_parse.c +0 -0
similarity index 100%
rename from drivers/media/platform/mediatek/mtk-jpeg/mtk_jpeg_dec_parse.c
rename to drivers/media/platform/mediatek/jpeg/mtk_jpeg_dec_parse.c
drivers/media/platform/mediatek/jpeg/mtk_jpeg_dec_parse.h renamed from drivers/media/platform/mediatek/mtk-jpeg/mtk_jpeg_dec_parse.h +0 -0
similarity index 100%
rename from drivers/media/platform/mediatek/mtk-jpeg/mtk_jpeg_dec_parse.h
rename to drivers/media/platform/mediatek/jpeg/mtk_jpeg_dec_parse.h
drivers/media/platform/mediatek/jpeg/mtk_jpeg_dec_reg.h renamed from drivers/media/platform/mediatek/mtk-jpeg/mtk_jpeg_dec_reg.h +0 -0
similarity index 100%
rename from drivers/media/platform/mediatek/mtk-jpeg/mtk_jpeg_dec_reg.h
rename to drivers/media/platform/mediatek/jpeg/mtk_jpeg_dec_reg.h
drivers/media/platform/mediatek/jpeg/mtk_jpeg_enc_hw.c renamed from drivers/media/platform/mediatek/mtk-jpeg/mtk_jpeg_enc_hw.c +0 -0
similarity index 100%
rename from drivers/media/platform/mediatek/mtk-jpeg/mtk_jpeg_enc_hw.c
rename to drivers/media/platform/mediatek/jpeg/mtk_jpeg_enc_hw.c
drivers/media/platform/mediatek/jpeg/mtk_jpeg_enc_hw.h renamed from drivers/media/platform/mediatek/mtk-jpeg/mtk_jpeg_enc_hw.h +0 -0
similarity index 100%
rename from drivers/media/platform/mediatek/mtk-jpeg/mtk_jpeg_enc_hw.h
rename to drivers/media/platform/mediatek/jpeg/mtk_jpeg_enc_hw.h
drivers/media/platform/mediatek/mdp/Kconfig renamed from drivers/media/platform/mediatek/mtk-mdp/Kconfig +0 -0
similarity index 100%
rename from drivers/media/platform/mediatek/mtk-mdp/Kconfig
rename to drivers/media/platform/mediatek/mdp/Kconfig
drivers/media/platform/mediatek/mdp/Makefile renamed from drivers/media/platform/mediatek/mtk-mdp/Makefile +1 -1
similarity index 77%
rename from drivers/media/platform/mediatek/mtk-mdp/Makefile
rename to drivers/media/platform/mediatek/mdp/Makefile
index eab6f984aeea..b7c16ebecc80 100644
@@ -7,4 +7,4 @@ mtk-mdp-y += mtk_mdp_vpu.o
 
 obj-$(CONFIG_VIDEO_MEDIATEK_MDP) += mtk-mdp.o
 
-ccflags-y += -I$(srctree)/drivers/media/platform/mediatek/mtk-vpu
+ccflags-y += -I$(srctree)/drivers/media/platform/mediatek/vpu
drivers/media/platform/mediatek/mdp/mtk_mdp_comp.c renamed from drivers/media/platform/mediatek/mtk-mdp/mtk_mdp_comp.c +0 -0
similarity index 100%
rename from drivers/media/platform/mediatek/mtk-mdp/mtk_mdp_comp.c
rename to drivers/media/platform/mediatek/mdp/mtk_mdp_comp.c
drivers/media/platform/mediatek/mdp/mtk_mdp_comp.h renamed from drivers/media/platform/mediatek/mtk-mdp/mtk_mdp_comp.h +0 -0
similarity index 100%
rename from drivers/media/platform/mediatek/mtk-mdp/mtk_mdp_comp.h
rename to drivers/media/platform/mediatek/mdp/mtk_mdp_comp.h
drivers/media/platform/mediatek/mdp/mtk_mdp_core.c renamed from drivers/media/platform/mediatek/mtk-mdp/mtk_mdp_core.c +0 -0
similarity index 100%
rename from drivers/media/platform/mediatek/mtk-mdp/mtk_mdp_core.c
rename to drivers/media/platform/mediatek/mdp/mtk_mdp_core.c
drivers/media/platform/mediatek/mdp/mtk_mdp_core.h renamed from drivers/media/platform/mediatek/mtk-mdp/mtk_mdp_core.h +0 -0
similarity index 100%
rename from drivers/media/platform/mediatek/mtk-mdp/mtk_mdp_core.h
rename to drivers/media/platform/mediatek/mdp/mtk_mdp_core.h
drivers/media/platform/mediatek/mdp/mtk_mdp_ipi.h renamed from drivers/media/platform/mediatek/mtk-mdp/mtk_mdp_ipi.h +0 -0
similarity index 100%
rename from drivers/media/platform/mediatek/mtk-mdp/mtk_mdp_ipi.h
rename to drivers/media/platform/mediatek/mdp/mtk_mdp_ipi.h
drivers/media/platform/mediatek/mdp/mtk_mdp_m2m.c renamed from drivers/media/platform/mediatek/mtk-mdp/mtk_mdp_m2m.c +0 -0
similarity index 100%
rename from drivers/media/platform/mediatek/mtk-mdp/mtk_mdp_m2m.c
rename to drivers/media/platform/mediatek/mdp/mtk_mdp_m2m.c
drivers/media/platform/mediatek/mdp/mtk_mdp_m2m.h renamed from drivers/media/platform/mediatek/mtk-mdp/mtk_mdp_m2m.h +0 -0
similarity index 100%
rename from drivers/media/platform/mediatek/mtk-mdp/mtk_mdp_m2m.h
rename to drivers/media/platform/mediatek/mdp/mtk_mdp_m2m.h
drivers/media/platform/mediatek/mdp/mtk_mdp_regs.c renamed from drivers/media/platform/mediatek/mtk-mdp/mtk_mdp_regs.c +0 -0
similarity index 100%
rename from drivers/media/platform/mediatek/mtk-mdp/mtk_mdp_regs.c
rename to drivers/media/platform/mediatek/mdp/mtk_mdp_regs.c
drivers/media/platform/mediatek/mdp/mtk_mdp_regs.h renamed from drivers/media/platform/mediatek/mtk-mdp/mtk_mdp_regs.h +0 -0
similarity index 100%
rename from drivers/media/platform/mediatek/mtk-mdp/mtk_mdp_regs.h
rename to drivers/media/platform/mediatek/mdp/mtk_mdp_regs.h
drivers/media/platform/mediatek/mdp/mtk_mdp_vpu.c renamed from drivers/media/platform/mediatek/mtk-mdp/mtk_mdp_vpu.c +0 -0
similarity index 100%
rename from drivers/media/platform/mediatek/mtk-mdp/mtk_mdp_vpu.c
rename to drivers/media/platform/mediatek/mdp/mtk_mdp_vpu.c
drivers/media/platform/mediatek/mdp/mtk_mdp_vpu.h renamed from drivers/media/platform/mediatek/mtk-mdp/mtk_mdp_vpu.h +0 -0
similarity index 100%
rename from drivers/media/platform/mediatek/mtk-mdp/mtk_mdp_vpu.h
rename to drivers/media/platform/mediatek/mdp/mtk_mdp_vpu.h
drivers/media/platform/mediatek/vcodec/Kconfig renamed from drivers/media/platform/mediatek/mtk-vcodec/Kconfig +0 -0
similarity index 100%
rename from drivers/media/platform/mediatek/mtk-vcodec/Kconfig
rename to drivers/media/platform/mediatek/vcodec/Kconfig
drivers/media/platform/mediatek/vcodec/Makefile renamed from drivers/media/platform/mediatek/mtk-vcodec/Makefile +0 -0
similarity index 100%
rename from drivers/media/platform/mediatek/mtk-vcodec/Makefile
rename to drivers/media/platform/mediatek/vcodec/Makefile
drivers/media/platform/mediatek/vcodec/mtk_vcodec_dec.c renamed from drivers/media/platform/mediatek/mtk-vcodec/mtk_vcodec_dec.c +0 -0
similarity index 100%
rename from drivers/media/platform/mediatek/mtk-vcodec/mtk_vcodec_dec.c
rename to drivers/media/platform/mediatek/vcodec/mtk_vcodec_dec.c
drivers/media/platform/mediatek/vcodec/mtk_vcodec_dec.h renamed from drivers/media/platform/mediatek/mtk-vcodec/mtk_vcodec_dec.h +0 -0
similarity index 100%
rename from drivers/media/platform/mediatek/mtk-vcodec/mtk_vcodec_dec.h
rename to drivers/media/platform/mediatek/vcodec/mtk_vcodec_dec.h
drivers/media/platform/mediatek/vcodec/mtk_vcodec_dec_drv.c renamed from drivers/media/platform/mediatek/mtk-vcodec/mtk_vcodec_dec_drv.c +0 -0
similarity index 100%
rename from drivers/media/platform/mediatek/mtk-vcodec/mtk_vcodec_dec_drv.c
rename to drivers/media/platform/mediatek/vcodec/mtk_vcodec_dec_drv.c
drivers/media/platform/mediatek/vcodec/mtk_vcodec_dec_hw.c renamed from drivers/media/platform/mediatek/mtk-vcodec/mtk_vcodec_dec_hw.c +0 -0
similarity index 100%
rename from drivers/media/platform/mediatek/mtk-vcodec/mtk_vcodec_dec_hw.c
rename to drivers/media/platform/mediatek/vcodec/mtk_vcodec_dec_hw.c
drivers/media/platform/mediatek/vcodec/mtk_vcodec_dec_hw.h renamed from drivers/media/platform/mediatek/mtk-vcodec/mtk_vcodec_dec_hw.h +0 -0
similarity index 100%
rename from drivers/media/platform/mediatek/mtk-vcodec/mtk_vcodec_dec_hw.h
rename to drivers/media/platform/mediatek/vcodec/mtk_vcodec_dec_hw.h
drivers/media/platform/mediatek/vcodec/mtk_vcodec_dec_pm.c renamed from drivers/media/platform/mediatek/mtk-vcodec/mtk_vcodec_dec_pm.c +0 -0
similarity index 100%
rename from drivers/media/platform/mediatek/mtk-vcodec/mtk_vcodec_dec_pm.c
rename to drivers/media/platform/mediatek/vcodec/mtk_vcodec_dec_pm.c
drivers/media/platform/mediatek/vcodec/mtk_vcodec_dec_pm.h renamed from drivers/media/platform/mediatek/mtk-vcodec/mtk_vcodec_dec_pm.h +0 -0
similarity index 100%
rename from drivers/media/platform/mediatek/mtk-vcodec/mtk_vcodec_dec_pm.h
rename to drivers/media/platform/mediatek/vcodec/mtk_vcodec_dec_pm.h
drivers/media/platform/mediatek/vcodec/mtk_vcodec_dec_stateful.c renamed from drivers/media/platform/mediatek/mtk-vcodec/mtk_vcodec_dec_stateful.c +0 -0
similarity index 100%
rename from drivers/media/platform/mediatek/mtk-vcodec/mtk_vcodec_dec_stateful.c
rename to drivers/media/platform/mediatek/vcodec/mtk_vcodec_dec_stateful.c
drivers/media/platform/mediatek/vcodec/mtk_vcodec_dec_stateless.c renamed from drivers/media/platform/mediatek/mtk-vcodec/mtk_vcodec_dec_stateless.c +0 -0
similarity index 100%
rename from drivers/media/platform/mediatek/mtk-vcodec/mtk_vcodec_dec_stateless.c
rename to drivers/media/platform/mediatek/vcodec/mtk_vcodec_dec_stateless.c
drivers/media/platform/mediatek/vcodec/mtk_vcodec_drv.h renamed from drivers/media/platform/mediatek/mtk-vcodec/mtk_vcodec_drv.h +0 -0
similarity index 100%
rename from drivers/media/platform/mediatek/mtk-vcodec/mtk_vcodec_drv.h
rename to drivers/media/platform/mediatek/vcodec/mtk_vcodec_drv.h
drivers/media/platform/mediatek/vcodec/mtk_vcodec_enc.c renamed from drivers/media/platform/mediatek/mtk-vcodec/mtk_vcodec_enc.c +0 -0
similarity index 100%
rename from drivers/media/platform/mediatek/mtk-vcodec/mtk_vcodec_enc.c
rename to drivers/media/platform/mediatek/vcodec/mtk_vcodec_enc.c
drivers/media/platform/mediatek/vcodec/mtk_vcodec_enc.h renamed from drivers/media/platform/mediatek/mtk-vcodec/mtk_vcodec_enc.h +0 -0
similarity index 100%
rename from drivers/media/platform/mediatek/mtk-vcodec/mtk_vcodec_enc.h
rename to drivers/media/platform/mediatek/vcodec/mtk_vcodec_enc.h
drivers/media/platform/mediatek/vcodec/mtk_vcodec_enc_drv.c renamed from drivers/media/platform/mediatek/mtk-vcodec/mtk_vcodec_enc_drv.c +0 -0
similarity index 100%
rename from drivers/media/platform/mediatek/mtk-vcodec/mtk_vcodec_enc_drv.c
rename to drivers/media/platform/mediatek/vcodec/mtk_vcodec_enc_drv.c
drivers/media/platform/mediatek/vcodec/mtk_vcodec_enc_pm.c renamed from drivers/media/platform/mediatek/mtk-vcodec/mtk_vcodec_enc_pm.c +0 -0
similarity index 100%
rename from drivers/media/platform/mediatek/mtk-vcodec/mtk_vcodec_enc_pm.c
rename to drivers/media/platform/mediatek/vcodec/mtk_vcodec_enc_pm.c
drivers/media/platform/mediatek/vcodec/mtk_vcodec_enc_pm.h renamed from drivers/media/platform/mediatek/mtk-vcodec/mtk_vcodec_enc_pm.h +0 -0
similarity index 100%
rename from drivers/media/platform/mediatek/mtk-vcodec/mtk_vcodec_enc_pm.h
rename to drivers/media/platform/mediatek/vcodec/mtk_vcodec_enc_pm.h
drivers/media/platform/mediatek/vcodec/mtk_vcodec_fw.c renamed from drivers/media/platform/mediatek/mtk-vcodec/mtk_vcodec_fw.c +0 -0
similarity index 100%
rename from drivers/media/platform/mediatek/mtk-vcodec/mtk_vcodec_fw.c
rename to drivers/media/platform/mediatek/vcodec/mtk_vcodec_fw.c
drivers/media/platform/mediatek/vcodec/mtk_vcodec_fw.h renamed from drivers/media/platform/mediatek/mtk-vcodec/mtk_vcodec_fw.h +1 -1
similarity index 97%
rename from drivers/media/platform/mediatek/mtk-vcodec/mtk_vcodec_fw.h
rename to drivers/media/platform/mediatek/vcodec/mtk_vcodec_fw.h
index 539bb626772c..15ab6b8e3ae2 100644
@@ -6,7 +6,7 @@
 #include <linux/remoteproc.h>
 #include <linux/remoteproc/mtk_scp.h>
 
-#include "../mtk-vpu/mtk_vpu.h"
+#include "../vpu/mtk_vpu.h"
 
 struct mtk_vcodec_dev;
 
drivers/media/platform/mediatek/vcodec/mtk_vcodec_fw_priv.h renamed from drivers/media/platform/mediatek/mtk-vcodec/mtk_vcodec_fw_priv.h +0 -0
similarity index 100%
rename from drivers/media/platform/mediatek/mtk-vcodec/mtk_vcodec_fw_priv.h
rename to drivers/media/platform/mediatek/vcodec/mtk_vcodec_fw_priv.h
drivers/media/platform/mediatek/vcodec/mtk_vcodec_fw_scp.c renamed from drivers/media/platform/mediatek/mtk-vcodec/mtk_vcodec_fw_scp.c +0 -0
similarity index 100%
rename from drivers/media/platform/mediatek/mtk-vcodec/mtk_vcodec_fw_scp.c
rename to drivers/media/platform/mediatek/vcodec/mtk_vcodec_fw_scp.c
drivers/media/platform/mediatek/vcodec/mtk_vcodec_fw_vpu.c renamed from drivers/media/platform/mediatek/mtk-vcodec/mtk_vcodec_fw_vpu.c +0 -0
similarity index 100%
rename from drivers/media/platform/mediatek/mtk-vcodec/mtk_vcodec_fw_vpu.c
rename to drivers/media/platform/mediatek/vcodec/mtk_vcodec_fw_vpu.c
drivers/media/platform/mediatek/vcodec/mtk_vcodec_intr.c renamed from drivers/media/platform/mediatek/mtk-vcodec/mtk_vcodec_intr.c +0 -0
similarity index 100%
rename from drivers/media/platform/mediatek/mtk-vcodec/mtk_vcodec_intr.c
rename to drivers/media/platform/mediatek/vcodec/mtk_vcodec_intr.c
drivers/media/platform/mediatek/vcodec/mtk_vcodec_intr.h renamed from drivers/media/platform/mediatek/mtk-vcodec/mtk_vcodec_intr.h +0 -0
similarity index 100%
rename from drivers/media/platform/mediatek/mtk-vcodec/mtk_vcodec_intr.h
rename to drivers/media/platform/mediatek/vcodec/mtk_vcodec_intr.h
drivers/media/platform/mediatek/vcodec/mtk_vcodec_util.c renamed from drivers/media/platform/mediatek/mtk-vcodec/mtk_vcodec_util.c +0 -0
similarity index 100%
rename from drivers/media/platform/mediatek/mtk-vcodec/mtk_vcodec_util.c
rename to drivers/media/platform/mediatek/vcodec/mtk_vcodec_util.c
drivers/media/platform/mediatek/vcodec/mtk_vcodec_util.h renamed from drivers/media/platform/mediatek/mtk-vcodec/mtk_vcodec_util.h +0 -0
similarity index 100%
rename from drivers/media/platform/mediatek/mtk-vcodec/mtk_vcodec_util.h
rename to drivers/media/platform/mediatek/vcodec/mtk_vcodec_util.h
drivers/media/platform/mediatek/vcodec/vdec/vdec_h264_if.c renamed from drivers/media/platform/mediatek/mtk-vcodec/vdec/vdec_h264_if.c +0 -0
similarity index 100%
rename from drivers/media/platform/mediatek/mtk-vcodec/vdec/vdec_h264_if.c
rename to drivers/media/platform/mediatek/vcodec/vdec/vdec_h264_if.c
drivers/media/platform/mediatek/vcodec/vdec/vdec_h264_req_if.c renamed from drivers/media/platform/mediatek/mtk-vcodec/vdec/vdec_h264_req_if.c +0 -0
similarity index 100%
rename from drivers/media/platform/mediatek/mtk-vcodec/vdec/vdec_h264_req_if.c
rename to drivers/media/platform/mediatek/vcodec/vdec/vdec_h264_req_if.c
drivers/media/platform/mediatek/vcodec/vdec/vdec_vp8_if.c renamed from drivers/media/platform/mediatek/mtk-vcodec/vdec/vdec_vp8_if.c +0 -0
similarity index 100%
rename from drivers/media/platform/mediatek/mtk-vcodec/vdec/vdec_vp8_if.c
rename to drivers/media/platform/mediatek/vcodec/vdec/vdec_vp8_if.c
drivers/media/platform/mediatek/vcodec/vdec/vdec_vp9_if.c renamed from drivers/media/platform/mediatek/mtk-vcodec/vdec/vdec_vp9_if.c +0 -0
similarity index 100%
rename from drivers/media/platform/mediatek/mtk-vcodec/vdec/vdec_vp9_if.c
rename to drivers/media/platform/mediatek/vcodec/vdec/vdec_vp9_if.c
drivers/media/platform/mediatek/vcodec/vdec_drv_base.h renamed from drivers/media/platform/mediatek/mtk-vcodec/vdec_drv_base.h +0 -0
similarity index 100%
rename from drivers/media/platform/mediatek/mtk-vcodec/vdec_drv_base.h
rename to drivers/media/platform/mediatek/vcodec/vdec_drv_base.h
drivers/media/platform/mediatek/vcodec/vdec_drv_if.c renamed from drivers/media/platform/mediatek/mtk-vcodec/vdec_drv_if.c +0 -0
similarity index 100%
rename from drivers/media/platform/mediatek/mtk-vcodec/vdec_drv_if.c
rename to drivers/media/platform/mediatek/vcodec/vdec_drv_if.c
drivers/media/platform/mediatek/vcodec/vdec_drv_if.h renamed from drivers/media/platform/mediatek/mtk-vcodec/vdec_drv_if.h +0 -0
similarity index 100%
rename from drivers/media/platform/mediatek/mtk-vcodec/vdec_drv_if.h
rename to drivers/media/platform/mediatek/vcodec/vdec_drv_if.h
drivers/media/platform/mediatek/vcodec/vdec_ipi_msg.h renamed from drivers/media/platform/mediatek/mtk-vcodec/vdec_ipi_msg.h +0 -0
similarity index 100%
rename from drivers/media/platform/mediatek/mtk-vcodec/vdec_ipi_msg.h
rename to drivers/media/platform/mediatek/vcodec/vdec_ipi_msg.h
drivers/media/platform/mediatek/vcodec/vdec_msg_queue.c renamed from drivers/media/platform/mediatek/mtk-vcodec/vdec_msg_queue.c +0 -0
similarity index 100%
rename from drivers/media/platform/mediatek/mtk-vcodec/vdec_msg_queue.c
rename to drivers/media/platform/mediatek/vcodec/vdec_msg_queue.c
drivers/media/platform/mediatek/vcodec/vdec_msg_queue.h renamed from drivers/media/platform/mediatek/mtk-vcodec/vdec_msg_queue.h +0 -0
similarity index 100%
rename from drivers/media/platform/mediatek/mtk-vcodec/vdec_msg_queue.h
rename to drivers/media/platform/mediatek/vcodec/vdec_msg_queue.h
drivers/media/platform/mediatek/vcodec/vdec_vpu_if.c renamed from drivers/media/platform/mediatek/mtk-vcodec/vdec_vpu_if.c +0 -0
similarity index 100%
rename from drivers/media/platform/mediatek/mtk-vcodec/vdec_vpu_if.c
rename to drivers/media/platform/mediatek/vcodec/vdec_vpu_if.c
drivers/media/platform/mediatek/vcodec/vdec_vpu_if.h renamed from drivers/media/platform/mediatek/mtk-vcodec/vdec_vpu_if.h +0 -0
similarity index 100%
rename from drivers/media/platform/mediatek/mtk-vcodec/vdec_vpu_if.h
rename to drivers/media/platform/mediatek/vcodec/vdec_vpu_if.h
drivers/media/platform/mediatek/vcodec/venc/venc_h264_if.c renamed from drivers/media/platform/mediatek/mtk-vcodec/venc/venc_h264_if.c +0 -0
similarity index 100%
rename from drivers/media/platform/mediatek/mtk-vcodec/venc/venc_h264_if.c
rename to drivers/media/platform/mediatek/vcodec/venc/venc_h264_if.c
drivers/media/platform/mediatek/vcodec/venc/venc_vp8_if.c renamed from drivers/media/platform/mediatek/mtk-vcodec/venc/venc_vp8_if.c +0 -0
similarity index 100%
rename from drivers/media/platform/mediatek/mtk-vcodec/venc/venc_vp8_if.c
rename to drivers/media/platform/mediatek/vcodec/venc/venc_vp8_if.c
drivers/media/platform/mediatek/vcodec/venc_drv_base.h renamed from drivers/media/platform/mediatek/mtk-vcodec/venc_drv_base.h +0 -0
similarity index 100%
rename from drivers/media/platform/mediatek/mtk-vcodec/venc_drv_base.h
rename to drivers/media/platform/mediatek/vcodec/venc_drv_base.h
drivers/media/platform/mediatek/vcodec/venc_drv_if.c renamed from drivers/media/platform/mediatek/mtk-vcodec/venc_drv_if.c +0 -0
similarity index 100%
rename from drivers/media/platform/mediatek/mtk-vcodec/venc_drv_if.c
rename to drivers/media/platform/mediatek/vcodec/venc_drv_if.c
drivers/media/platform/mediatek/vcodec/venc_drv_if.h renamed from drivers/media/platform/mediatek/mtk-vcodec/venc_drv_if.h +0 -0
similarity index 100%
rename from drivers/media/platform/mediatek/mtk-vcodec/venc_drv_if.h
rename to drivers/media/platform/mediatek/vcodec/venc_drv_if.h
drivers/media/platform/mediatek/vcodec/venc_ipi_msg.h renamed from drivers/media/platform/mediatek/mtk-vcodec/venc_ipi_msg.h +0 -0
similarity index 100%
rename from drivers/media/platform/mediatek/mtk-vcodec/venc_ipi_msg.h
rename to drivers/media/platform/mediatek/vcodec/venc_ipi_msg.h
drivers/media/platform/mediatek/vcodec/venc_vpu_if.c renamed from drivers/media/platform/mediatek/mtk-vcodec/venc_vpu_if.c +0 -0
similarity index 100%
rename from drivers/media/platform/mediatek/mtk-vcodec/venc_vpu_if.c
rename to drivers/media/platform/mediatek/vcodec/venc_vpu_if.c
drivers/media/platform/mediatek/vcodec/venc_vpu_if.h renamed from drivers/media/platform/mediatek/mtk-vcodec/venc_vpu_if.h +0 -0
similarity index 100%
rename from drivers/media/platform/mediatek/mtk-vcodec/venc_vpu_if.h
rename to drivers/media/platform/mediatek/vcodec/venc_vpu_if.h
drivers/media/platform/mediatek/vpu/Kconfig renamed from drivers/media/platform/mediatek/mtk-vpu/Kconfig +0 -0
similarity index 100%
rename from drivers/media/platform/mediatek/mtk-vpu/Kconfig
rename to drivers/media/platform/mediatek/vpu/Kconfig
drivers/media/platform/mediatek/vpu/Makefile renamed from drivers/media/platform/mediatek/mtk-vpu/Makefile +0 -0
similarity index 100%
rename from drivers/media/platform/mediatek/mtk-vpu/Makefile
rename to drivers/media/platform/mediatek/vpu/Makefile
drivers/media/platform/mediatek/vpu/mtk_vpu.c renamed from drivers/media/platform/mediatek/mtk-vpu/mtk_vpu.c +0 -0
similarity index 100%
rename from drivers/media/platform/mediatek/mtk-vpu/mtk_vpu.c
rename to drivers/media/platform/mediatek/vpu/mtk_vpu.c
drivers/media/platform/mediatek/vpu/mtk_vpu.h renamed from drivers/media/platform/mediatek/mtk-vpu/mtk_vpu.h +0 -0
similarity index 100%
rename from drivers/media/platform/mediatek/mtk-vpu/mtk_vpu.h
rename to drivers/media/platform/mediatek/vpu/mtk_vpu.h
Signature · 1 line
2.35.1
author maintainer
#37 lore raw

PATCH v2 37/67 media: platform: Kconfig: sort entries

In reply to Mauro Carvalho Chehab

Now that each non-generic driver has their own directory, sort the entries.

---

To avoid mailbombing on a large number of people, only mailing lists were C/C on the cover. See [PATCH v2 00/67] at: https://lore.kernel.org/all/[email protected]/

 drivers/media/platform/Kconfig | 98 +++++++++++++++-------------------
 1 file changed, 43 insertions(+), 55 deletions(-)
drivers/media/platform/Kconfig +43 -55
index d5aedc6b5ca3..b7c60969c974 100644
@@ -29,84 +29,72 @@ config V4L_MEM2MEM_DRIVERS
 	  to capture and output drivers, which use memory buffers for just
 	  one of those.
 
+# Ancillary drivers
+
+config VIDEO_MEM2MEM_DEINTERLACE
+	tristate "Deinterlace support"
+	depends on V4L_MEM2MEM_DRIVERS
+	depends on VIDEO_DEV && VIDEO_V4L2
+	depends on HAS_DMA
+	select VIDEOBUF2_DMA_CONTIG
+	select V4L2_MEM2MEM_DEV
+	help
+	    Generic deinterlacing V4L2 driver.
+
+config VIDEO_MUX
+	tristate "Video Multiplexer"
+	depends on V4L_PLATFORM_DRIVERS
+	select MULTIPLEXER
+	depends on VIDEO_V4L2 && OF
+	select MEDIA_CONTROLLER
+	select VIDEO_V4L2_SUBDEV_API
+	select REGMAP
+	select V4L2_FWNODE
+	help
+	  This driver provides support for N:1 video bus multiplexers.
+
+# Platform drivers - Please keep it alphabetically sorted
+
+# TODO: create per-manufacturer directories
+
 source "drivers/media/platform/allegro-dvt/Kconfig"
-source "drivers/media/platform/nxp/Kconfig"
-
-source "drivers/media/platform/renesas/Kconfig"
-
-# V4L platform drivers
-
-source "drivers/media/platform/marvell-ccic/Kconfig"
-
-source "drivers/media/platform/via/Kconfig"
-
+source "drivers/media/platform/am437x/Kconfig"
 source "drivers/media/platform/amphion/Kconfig"
+source "drivers/media/platform/aspeed/Kconfig"
+source "drivers/media/platform/atmel/Kconfig"
 source "drivers/media/platform/cadence/Kconfig"
-
 source "drivers/media/platform/coda/Kconfig"
 source "drivers/media/platform/davinci/Kconfig"
-
 source "drivers/media/platform/exynos-gsc/Kconfig"
+source "drivers/media/platform/exynos4-is/Kconfig"
+source "drivers/media/platform/intel/Kconfig"
+source "drivers/media/platform/marvell-ccic/Kconfig"
 source "drivers/media/platform/meson/ge2d/Kconfig"
 source "drivers/media/platform/mtk-jpeg/Kconfig"
 source "drivers/media/platform/mtk-mdp/Kconfig"
 source "drivers/media/platform/mtk-vcodec/Kconfig"
 source "drivers/media/platform/mtk-vpu/Kconfig"
-source "drivers/media/platform/omap3isp/Kconfig"
+source "drivers/media/platform/nxp/Kconfig"
 source "drivers/media/platform/omap/Kconfig"
+source "drivers/media/platform/omap3isp/Kconfig"
 source "drivers/media/platform/qcom/camss/Kconfig"
 source "drivers/media/platform/qcom/venus/Kconfig"
-
-source "drivers/media/platform/aspeed/Kconfig"
+source "drivers/media/platform/renesas/Kconfig"
 source "drivers/media/platform/rockchip/rga/Kconfig"
 source "drivers/media/platform/rockchip/rkisp1/Kconfig"
 source "drivers/media/platform/s3c-camif/Kconfig"
 source "drivers/media/platform/s5p-g2d/Kconfig"
 source "drivers/media/platform/s5p-jpeg/Kconfig"
+source "drivers/media/platform/s5p-mfc/Kconfig"
+source "drivers/media/platform/sti/bdisp/Kconfig"
+source "drivers/media/platform/sti/c8sectpfe/Kconfig"
+source "drivers/media/platform/sti/delta/Kconfig"
 source "drivers/media/platform/sti/hva/Kconfig"
 source "drivers/media/platform/stm32/Kconfig"
+source "drivers/media/platform/sunxi/Kconfig"
 source "drivers/media/platform/sunxi/sun8i-di/Kconfig"
 source "drivers/media/platform/sunxi/sun8i-rotate/Kconfig"
 source "drivers/media/platform/tegra/vde/Kconfig"
 source "drivers/media/platform/ti-vpe/Kconfig"
-
-config VIDEO_MUX
-	tristate "Video Multiplexer"
-	depends on V4L_PLATFORM_DRIVERS
-	select MULTIPLEXER
-	depends on VIDEO_V4L2 && OF
-	select MEDIA_CONTROLLER
-	select VIDEO_V4L2_SUBDEV_API
-	select REGMAP
-	select V4L2_FWNODE
-	help
-	  This driver provides support for N:1 video bus multiplexers.
-
-source "drivers/media/platform/intel/Kconfig"
-
-source "drivers/media/platform/exynos4-is/Kconfig"
-source "drivers/media/platform/am437x/Kconfig"
+source "drivers/media/platform/via/Kconfig"
 source "drivers/media/platform/xilinx/Kconfig"
-source "drivers/media/platform/atmel/Kconfig"
-source "drivers/media/platform/sunxi/Kconfig"
-
-# Mem2mem drivers
-
-config VIDEO_MEM2MEM_DEINTERLACE
-	tristate "Deinterlace support"
-	depends on V4L_MEM2MEM_DRIVERS
-	depends on VIDEO_DEV && VIDEO_V4L2
-	depends on HAS_DMA
-	select VIDEOBUF2_DMA_CONTIG
-	select V4L2_MEM2MEM_DEV
-	help
-	    Generic deinterlacing V4L2 driver.
-
-source "drivers/media/platform/s5p-mfc/Kconfig"
-
-source "drivers/media/platform/sti/bdisp/Kconfig"
-
-source "drivers/media/platform/sti/delta/Kconfig"
-
-# DVB platform drivers
-source "drivers/media/platform/sti/c8sectpfe/Kconfig"
Signature · 1 line
2.35.1
author maintainer
#47 lore raw

PATCH v2 46/67 media: platform: rename mtk-vpu/ to mediatek/mtk-vpu/

In reply to Mauro Carvalho Chehab

As the end goal is to have platform drivers split by vendor, rename mtk-vpu/ to mediatek/mtk-vpu/.

---

To avoid mailbombing on a large number of people, only mailing lists were C/C on the cover. See [PATCH v2 00/67] at: https://lore.kernel.org/all/[email protected]/

 MAINTAINERS                                             | 4 ++--
 drivers/media/platform/Kconfig                          | 2 +-
 drivers/media/platform/Makefile                         | 2 +-
 drivers/media/platform/mediatek/mtk-mdp/Makefile        | 2 +-
 drivers/media/platform/{ => mediatek}/mtk-vpu/Kconfig   | 0
 drivers/media/platform/{ => mediatek}/mtk-vpu/Makefile  | 0
 drivers/media/platform/{ => mediatek}/mtk-vpu/mtk_vpu.c | 0
 drivers/media/platform/{ => mediatek}/mtk-vpu/mtk_vpu.h | 0
 8 files changed, 5 insertions(+), 5 deletions(-)
 rename drivers/media/platform/{ => mediatek}/mtk-vpu/Kconfig (100%)
 rename drivers/media/platform/{ => mediatek}/mtk-vpu/Makefile (100%)
 rename drivers/media/platform/{ => mediatek}/mtk-vpu/mtk_vpu.c (100%)
 rename drivers/media/platform/{ => mediatek}/mtk-vpu/mtk_vpu.h (100%)
MAINTAINERS +2 -2
index bfe014870a77..58e0d42b1278 100644
@@ -12139,7 +12139,7 @@ M:	Andrew-CT Chen <[email protected]>
 S:	Supported
 F:	Documentation/devicetree/bindings/media/mediatek-mdp.txt
 F:	drivers/media/platform/mediatek/mtk-mdp/
-F:	drivers/media/platform/mtk-vpu/
+F:	drivers/media/platform/mediatek/mtk-vpu/
 
 MEDIATEK MEDIA DRIVER
 M:	Tiffany Lin <[email protected]>
@@ -12148,7 +12148,7 @@ S:	Supported
 F:	Documentation/devicetree/bindings/media/mediatek-vcodec.txt
 F:	Documentation/devicetree/bindings/media/mediatek-vpu.txt
 F:	drivers/media/platform/mediatek/mtk-vcodec/
-F:	drivers/media/platform/mtk-vpu/
+F:	drivers/media/platform/mediatek/mtk-vpu/
 
 MEDIATEK MMC/SD/SDIO DRIVER
 M:	Chaotian Jing <[email protected]>
drivers/media/platform/Kconfig +1 -1
index 10055af0c7f8..a9ad0c3bd0cc 100644
@@ -81,7 +81,7 @@ source "drivers/media/platform/marvell/Kconfig"
 source "drivers/media/platform/mediatek/mtk-jpeg/Kconfig"
 source "drivers/media/platform/mediatek/mtk-mdp/Kconfig"
 source "drivers/media/platform/mediatek/mtk-vcodec/Kconfig"
-source "drivers/media/platform/mtk-vpu/Kconfig"
+source "drivers/media/platform/mediatek/mtk-vpu/Kconfig"
 source "drivers/media/platform/nxp/Kconfig"
 source "drivers/media/platform/omap/Kconfig"
 source "drivers/media/platform/omap3isp/Kconfig"
drivers/media/platform/Makefile +1 -1
index 637a3a7ac036..954ad8f2cde1 100644
@@ -21,7 +21,7 @@ obj-y += marvell/
 obj-y += mediatek/mtk-jpeg/
 obj-y += mediatek/mtk-mdp/
 obj-y += mediatek/mtk-vcodec/
-obj-y += mtk-vpu/
+obj-y += mediatek/mtk-vpu/
 obj-y += nxp/
 obj-y += omap/
 obj-y += omap3isp/
drivers/media/platform/mediatek/mtk-mdp/Makefile +1 -1
index 5982d65c9971..eab6f984aeea 100644
@@ -7,4 +7,4 @@ mtk-mdp-y += mtk_mdp_vpu.o
 
 obj-$(CONFIG_VIDEO_MEDIATEK_MDP) += mtk-mdp.o
 
-ccflags-y += -I$(srctree)/drivers/media/platform/mtk-vpu
+ccflags-y += -I$(srctree)/drivers/media/platform/mediatek/mtk-vpu
drivers/media/platform/mediatek/mtk-vpu/Kconfig renamed from drivers/media/platform/mtk-vpu/Kconfig +0 -0
similarity index 100%
rename from drivers/media/platform/mtk-vpu/Kconfig
rename to drivers/media/platform/mediatek/mtk-vpu/Kconfig
drivers/media/platform/mediatek/mtk-vpu/Makefile renamed from drivers/media/platform/mtk-vpu/Makefile +0 -0
similarity index 100%
rename from drivers/media/platform/mtk-vpu/Makefile
rename to drivers/media/platform/mediatek/mtk-vpu/Makefile
drivers/media/platform/mediatek/mtk-vpu/mtk_vpu.c renamed from drivers/media/platform/mtk-vpu/mtk_vpu.c +0 -0
similarity index 100%
rename from drivers/media/platform/mtk-vpu/mtk_vpu.c
rename to drivers/media/platform/mediatek/mtk-vpu/mtk_vpu.c
drivers/media/platform/mediatek/mtk-vpu/mtk_vpu.h renamed from drivers/media/platform/mtk-vpu/mtk_vpu.h +0 -0
similarity index 100%
rename from drivers/media/platform/mtk-vpu/mtk_vpu.h
rename to drivers/media/platform/mediatek/mtk-vpu/mtk_vpu.h
Signature · 1 line
2.35.1
author maintainer
#61 lore raw

PATCH v2 52/67 media: platform: rename s5p-g2d/ to samsung/s5p-g2d/

In reply to Mauro Carvalho Chehab

As the end goal is to have platform drivers split by vendor, rename s5p-g2d/ to samsung/s5p-g2d/.

---

To avoid mailbombing on a large number of people, only mailing lists were C/C on the cover. See [PATCH v2 00/67] at: https://lore.kernel.org/all/[email protected]/

 MAINTAINERS                                             | 2 +-
 drivers/media/platform/Kconfig                          | 2 +-
 drivers/media/platform/Makefile                         | 2 +-
 drivers/media/platform/{ => samsung}/s5p-g2d/Kconfig    | 0
 drivers/media/platform/{ => samsung}/s5p-g2d/Makefile   | 0
 drivers/media/platform/{ => samsung}/s5p-g2d/g2d-hw.c   | 0
 drivers/media/platform/{ => samsung}/s5p-g2d/g2d-regs.h | 0
 drivers/media/platform/{ => samsung}/s5p-g2d/g2d.c      | 0
 drivers/media/platform/{ => samsung}/s5p-g2d/g2d.h      | 0
 9 files changed, 3 insertions(+), 3 deletions(-)
 rename drivers/media/platform/{ => samsung}/s5p-g2d/Kconfig (100%)
 rename drivers/media/platform/{ => samsung}/s5p-g2d/Makefile (100%)
 rename drivers/media/platform/{ => samsung}/s5p-g2d/g2d-hw.c (100%)
 rename drivers/media/platform/{ => samsung}/s5p-g2d/g2d-regs.h (100%)
 rename drivers/media/platform/{ => samsung}/s5p-g2d/g2d.c (100%)
 rename drivers/media/platform/{ => samsung}/s5p-g2d/g2d.h (100%)
MAINTAINERS +1 -1
index 80f2a0eea3f7..4b03db9ee31e 100644
@@ -2616,7 +2616,7 @@ M:	Łukasz Stelmach <[email protected]>
 L:	[email protected] (moderated for non-subscribers)
 L:	[email protected]
 S:	Maintained
-F:	drivers/media/platform/s5p-g2d/
+F:	drivers/media/platform/samsung/s5p-g2d/
 
 ARM/SAMSUNG S5P SERIES HDMI CEC SUBSYSTEM SUPPORT
 M:	Marek Szyprowski <[email protected]>
drivers/media/platform/Kconfig +1 -1
index aed4394ddd05..8dd178e1a359 100644
@@ -88,12 +88,12 @@ source "drivers/media/platform/omap3isp/Kconfig"
 source "drivers/media/platform/qcom/Kconfig"
 source "drivers/media/platform/renesas/Kconfig"
 source "drivers/media/platform/rockchip/Kconfig"
-source "drivers/media/platform/s5p-g2d/Kconfig"
 source "drivers/media/platform/s5p-jpeg/Kconfig"
 source "drivers/media/platform/s5p-mfc/Kconfig"
 source "drivers/media/platform/samsung/exynos-gsc/Kconfig"
 source "drivers/media/platform/samsung/exynos4-is/Kconfig"
 source "drivers/media/platform/samsung/s3c-camif/Kconfig"
+source "drivers/media/platform/samsung/s5p-g2d/Kconfig"
 source "drivers/media/platform/sti/Kconfig"
 source "drivers/media/platform/stm32/Kconfig"
 source "drivers/media/platform/ti-vpe/Kconfig"
drivers/media/platform/Makefile +1 -1
index cb5e6d1df248..aa822365d8d0 100644
@@ -30,12 +30,12 @@ obj-y += qcom/venus/
 obj-y += renesas/
 obj-y += rockchip/rga/
 obj-y += rockchip/rkisp1/
-obj-y += s5p-g2d/
 obj-y += s5p-jpeg/
 obj-y += s5p-mfc/
 obj-y += samsung/exynos-gsc/
 obj-y += samsung/exynos4-is/
 obj-y += samsung/s3c-camif/
+obj-y += samsung/s5p-g2d/
 obj-y += sti/bdisp/
 obj-y += sti/c8sectpfe/
 obj-y += sti/delta/
drivers/media/platform/samsung/s5p-g2d/Kconfig renamed from drivers/media/platform/s5p-g2d/Kconfig +0 -0
similarity index 100%
rename from drivers/media/platform/s5p-g2d/Kconfig
rename to drivers/media/platform/samsung/s5p-g2d/Kconfig
drivers/media/platform/samsung/s5p-g2d/Makefile renamed from drivers/media/platform/s5p-g2d/Makefile +0 -0
similarity index 100%
rename from drivers/media/platform/s5p-g2d/Makefile
rename to drivers/media/platform/samsung/s5p-g2d/Makefile
drivers/media/platform/samsung/s5p-g2d/g2d-hw.c renamed from drivers/media/platform/s5p-g2d/g2d-hw.c +0 -0
similarity index 100%
rename from drivers/media/platform/s5p-g2d/g2d-hw.c
rename to drivers/media/platform/samsung/s5p-g2d/g2d-hw.c
drivers/media/platform/samsung/s5p-g2d/g2d-regs.h renamed from drivers/media/platform/s5p-g2d/g2d-regs.h +0 -0
similarity index 100%
rename from drivers/media/platform/s5p-g2d/g2d-regs.h
rename to drivers/media/platform/samsung/s5p-g2d/g2d-regs.h
drivers/media/platform/samsung/s5p-g2d/g2d.c renamed from drivers/media/platform/s5p-g2d/g2d.c +0 -0
similarity index 100%
rename from drivers/media/platform/s5p-g2d/g2d.c
rename to drivers/media/platform/samsung/s5p-g2d/g2d.c
drivers/media/platform/samsung/s5p-g2d/g2d.h renamed from drivers/media/platform/s5p-g2d/g2d.h +0 -0
similarity index 100%
rename from drivers/media/platform/s5p-g2d/g2d.h
rename to drivers/media/platform/samsung/s5p-g2d/g2d.h
Signature · 1 line
2.35.1
author maintainer
#65 lore raw

PATCH v2 55/67 media: platform: rename stm32/ to stm/stm32/

In reply to Mauro Carvalho Chehab

As the end goal is to have platform drivers split by vendor, rename stm32/ to stm/stm32/.

---

To avoid mailbombing on a large number of people, only mailing lists were C/C on the cover. See [PATCH v2 00/67] at: https://lore.kernel.org/all/[email protected]/

 MAINTAINERS                                               | 2 +-
 drivers/media/platform/Kconfig                            | 2 +-
 drivers/media/platform/Makefile                           | 2 +-
 drivers/media/platform/{ => stm}/stm32/Kconfig            | 0
 drivers/media/platform/{ => stm}/stm32/Makefile           | 0
 drivers/media/platform/{ => stm}/stm32/dma2d/dma2d-hw.c   | 0
 drivers/media/platform/{ => stm}/stm32/dma2d/dma2d-regs.h | 0
 drivers/media/platform/{ => stm}/stm32/dma2d/dma2d.c      | 0
 drivers/media/platform/{ => stm}/stm32/dma2d/dma2d.h      | 0
 drivers/media/platform/{ => stm}/stm32/stm32-dcmi.c       | 0
 10 files changed, 3 insertions(+), 3 deletions(-)
 rename drivers/media/platform/{ => stm}/stm32/Kconfig (100%)
 rename drivers/media/platform/{ => stm}/stm32/Makefile (100%)
 rename drivers/media/platform/{ => stm}/stm32/dma2d/dma2d-hw.c (100%)
 rename drivers/media/platform/{ => stm}/stm32/dma2d/dma2d-regs.h (100%)
 rename drivers/media/platform/{ => stm}/stm32/dma2d/dma2d.c (100%)
 rename drivers/media/platform/{ => stm}/stm32/dma2d/dma2d.h (100%)
 rename drivers/media/platform/{ => stm}/stm32/stm32-dcmi.c (100%)
MAINTAINERS +1 -1
index a0cfe84b8192..4cf03d253bc8 100644
@@ -12046,7 +12046,7 @@ L:	[email protected]
 S:	Supported
 T:	git git://linuxtv.org/media_tree.git
 F:	Documentation/devicetree/bindings/media/st,stm32-dcmi.yaml
-F:	drivers/media/platform/stm32/stm32-dcmi.c
+F:	drivers/media/platform/stm/stm32/stm32-dcmi.c
 
 MEDIA INPUT INFRASTRUCTURE (V4L/DVB)
 M:	Mauro Carvalho Chehab <[email protected]>
drivers/media/platform/Kconfig +1 -1
index 6b05afa218b3..c308de1a42a4 100644
@@ -95,7 +95,7 @@ source "drivers/media/platform/samsung/s5p-g2d/Kconfig"
 source "drivers/media/platform/samsung/s5p-jpeg/Kconfig"
 source "drivers/media/platform/samsung/s5p-mfc/Kconfig"
 source "drivers/media/platform/sti/Kconfig"
-source "drivers/media/platform/stm32/Kconfig"
+source "drivers/media/platform/stm/stm32/Kconfig"
 source "drivers/media/platform/ti-vpe/Kconfig"
 source "drivers/media/platform/via/Kconfig"
 source "drivers/media/platform/xilinx/Kconfig"
drivers/media/platform/Makefile +1 -1
index 97aa99d8fac8..7f077c9a416d 100644
@@ -40,7 +40,7 @@ obj-y += sti/bdisp/
 obj-y += sti/c8sectpfe/
 obj-y += sti/delta/
 obj-y += sti/hva/
-obj-y += stm32/
+obj-y += stm/stm32/
 obj-y += ti-vpe/
 obj-y += via/
 obj-y += xilinx/
drivers/media/platform/stm/stm32/Kconfig renamed from drivers/media/platform/stm32/Kconfig +0 -0
similarity index 100%
rename from drivers/media/platform/stm32/Kconfig
rename to drivers/media/platform/stm/stm32/Kconfig
drivers/media/platform/stm/stm32/Makefile renamed from drivers/media/platform/stm32/Makefile +0 -0
similarity index 100%
rename from drivers/media/platform/stm32/Makefile
rename to drivers/media/platform/stm/stm32/Makefile
drivers/media/platform/stm/stm32/dma2d/dma2d-hw.c renamed from drivers/media/platform/stm32/dma2d/dma2d-hw.c +0 -0
similarity index 100%
rename from drivers/media/platform/stm32/dma2d/dma2d-hw.c
rename to drivers/media/platform/stm/stm32/dma2d/dma2d-hw.c
drivers/media/platform/stm/stm32/dma2d/dma2d-regs.h renamed from drivers/media/platform/stm32/dma2d/dma2d-regs.h +0 -0
similarity index 100%
rename from drivers/media/platform/stm32/dma2d/dma2d-regs.h
rename to drivers/media/platform/stm/stm32/dma2d/dma2d-regs.h
drivers/media/platform/stm/stm32/dma2d/dma2d.c renamed from drivers/media/platform/stm32/dma2d/dma2d.c +0 -0
similarity index 100%
rename from drivers/media/platform/stm32/dma2d/dma2d.c
rename to drivers/media/platform/stm/stm32/dma2d/dma2d.c
drivers/media/platform/stm/stm32/dma2d/dma2d.h renamed from drivers/media/platform/stm32/dma2d/dma2d.h +0 -0
similarity index 100%
rename from drivers/media/platform/stm32/dma2d/dma2d.h
rename to drivers/media/platform/stm/stm32/dma2d/dma2d.h
drivers/media/platform/stm/stm32/stm32-dcmi.c renamed from drivers/media/platform/stm32/stm32-dcmi.c +0 -0
similarity index 100%
rename from drivers/media/platform/stm32/stm32-dcmi.c
rename to drivers/media/platform/stm/stm32/stm32-dcmi.c
Signature · 1 line
2.35.1
author maintainer
#46 lore raw

PATCH v2 45/67 media: platform: rename mtk-vcodec/ to mediatek/mtk-vcodec/

In reply to Mauro Carvalho Chehab

As the end goal is to have platform drivers split by vendor, rename mtk-vcodec/ to mediatek/mtk-vcodec/.

---

To avoid mailbombing on a large number of people, only mailing lists were C/C on the cover. See [PATCH v2 00/67] at: https://lore.kernel.org/all/[email protected]/

 MAINTAINERS                                                     | 2 +-
 drivers/media/platform/Kconfig                                  | 2 +-
 drivers/media/platform/Makefile                                 | 2 +-
 drivers/media/platform/{ => mediatek}/mtk-vcodec/Kconfig        | 0
 drivers/media/platform/{ => mediatek}/mtk-vcodec/Makefile       | 0
 .../media/platform/{ => mediatek}/mtk-vcodec/mtk_vcodec_dec.c   | 0
 .../media/platform/{ => mediatek}/mtk-vcodec/mtk_vcodec_dec.h   | 0
 .../platform/{ => mediatek}/mtk-vcodec/mtk_vcodec_dec_drv.c     | 0
 .../platform/{ => mediatek}/mtk-vcodec/mtk_vcodec_dec_hw.c      | 0
 .../platform/{ => mediatek}/mtk-vcodec/mtk_vcodec_dec_hw.h      | 0
 .../platform/{ => mediatek}/mtk-vcodec/mtk_vcodec_dec_pm.c      | 0
 .../platform/{ => mediatek}/mtk-vcodec/mtk_vcodec_dec_pm.h      | 0
 .../{ => mediatek}/mtk-vcodec/mtk_vcodec_dec_stateful.c         | 0
 .../{ => mediatek}/mtk-vcodec/mtk_vcodec_dec_stateless.c        | 0
 .../media/platform/{ => mediatek}/mtk-vcodec/mtk_vcodec_drv.h   | 0
 .../media/platform/{ => mediatek}/mtk-vcodec/mtk_vcodec_enc.c   | 0
 .../media/platform/{ => mediatek}/mtk-vcodec/mtk_vcodec_enc.h   | 0
 .../platform/{ => mediatek}/mtk-vcodec/mtk_vcodec_enc_drv.c     | 0
 .../platform/{ => mediatek}/mtk-vcodec/mtk_vcodec_enc_pm.c      | 0
 .../platform/{ => mediatek}/mtk-vcodec/mtk_vcodec_enc_pm.h      | 0
 .../media/platform/{ => mediatek}/mtk-vcodec/mtk_vcodec_fw.c    | 0
 .../media/platform/{ => mediatek}/mtk-vcodec/mtk_vcodec_fw.h    | 0
 .../platform/{ => mediatek}/mtk-vcodec/mtk_vcodec_fw_priv.h     | 0
 .../platform/{ => mediatek}/mtk-vcodec/mtk_vcodec_fw_scp.c      | 0
 .../platform/{ => mediatek}/mtk-vcodec/mtk_vcodec_fw_vpu.c      | 0
 .../media/platform/{ => mediatek}/mtk-vcodec/mtk_vcodec_intr.c  | 0
 .../media/platform/{ => mediatek}/mtk-vcodec/mtk_vcodec_intr.h  | 0
 .../media/platform/{ => mediatek}/mtk-vcodec/mtk_vcodec_util.c  | 0
 .../media/platform/{ => mediatek}/mtk-vcodec/mtk_vcodec_util.h  | 0
 .../platform/{ => mediatek}/mtk-vcodec/vdec/vdec_h264_if.c      | 0
 .../platform/{ => mediatek}/mtk-vcodec/vdec/vdec_h264_req_if.c  | 0
 .../media/platform/{ => mediatek}/mtk-vcodec/vdec/vdec_vp8_if.c | 0
 .../media/platform/{ => mediatek}/mtk-vcodec/vdec/vdec_vp9_if.c | 0
 .../media/platform/{ => mediatek}/mtk-vcodec/vdec_drv_base.h    | 0
 drivers/media/platform/{ => mediatek}/mtk-vcodec/vdec_drv_if.c  | 0
 drivers/media/platform/{ => mediatek}/mtk-vcodec/vdec_drv_if.h  | 0
 drivers/media/platform/{ => mediatek}/mtk-vcodec/vdec_ipi_msg.h | 0
 .../media/platform/{ => mediatek}/mtk-vcodec/vdec_msg_queue.c   | 0
 .../media/platform/{ => mediatek}/mtk-vcodec/vdec_msg_queue.h   | 0
 drivers/media/platform/{ => mediatek}/mtk-vcodec/vdec_vpu_if.c  | 0
 drivers/media/platform/{ => mediatek}/mtk-vcodec/vdec_vpu_if.h  | 0
 .../platform/{ => mediatek}/mtk-vcodec/venc/venc_h264_if.c      | 0
 .../media/platform/{ => mediatek}/mtk-vcodec/venc/venc_vp8_if.c | 0
 .../media/platform/{ => mediatek}/mtk-vcodec/venc_drv_base.h    | 0
 drivers/media/platform/{ => mediatek}/mtk-vcodec/venc_drv_if.c  | 0
 drivers/media/platform/{ => mediatek}/mtk-vcodec/venc_drv_if.h  | 0
 drivers/media/platform/{ => mediatek}/mtk-vcodec/venc_ipi_msg.h | 0
 drivers/media/platform/{ => mediatek}/mtk-vcodec/venc_vpu_if.c  | 0
 drivers/media/platform/{ => mediatek}/mtk-vcodec/venc_vpu_if.h  | 0
 49 files changed, 3 insertions(+), 3 deletions(-)
 rename drivers/media/platform/{ => mediatek}/mtk-vcodec/Kconfig (100%)
 rename drivers/media/platform/{ => mediatek}/mtk-vcodec/Makefile (100%)
 rename drivers/media/platform/{ => mediatek}/mtk-vcodec/mtk_vcodec_dec.c (100%)
 rename drivers/media/platform/{ => mediatek}/mtk-vcodec/mtk_vcodec_dec.h (100%)
 rename drivers/media/platform/{ => mediatek}/mtk-vcodec/mtk_vcodec_dec_drv.c (100%)
 rename drivers/media/platform/{ => mediatek}/mtk-vcodec/mtk_vcodec_dec_hw.c (100%)
 rename drivers/media/platform/{ => mediatek}/mtk-vcodec/mtk_vcodec_dec_hw.h (100%)
 rename drivers/media/platform/{ => mediatek}/mtk-vcodec/mtk_vcodec_dec_pm.c (100%)
 rename drivers/media/platform/{ => mediatek}/mtk-vcodec/mtk_vcodec_dec_pm.h (100%)
 rename drivers/media/platform/{ => mediatek}/mtk-vcodec/mtk_vcodec_dec_stateful.c (100%)
 rename drivers/media/platform/{ => mediatek}/mtk-vcodec/mtk_vcodec_dec_stateless.c (100%)
 rename drivers/media/platform/{ => mediatek}/mtk-vcodec/mtk_vcodec_drv.h (100%)
 rename drivers/media/platform/{ => mediatek}/mtk-vcodec/mtk_vcodec_enc.c (100%)
 rename drivers/media/platform/{ => mediatek}/mtk-vcodec/mtk_vcodec_enc.h (100%)
 rename drivers/media/platform/{ => mediatek}/mtk-vcodec/mtk_vcodec_enc_drv.c (100%)
 rename drivers/media/platform/{ => mediatek}/mtk-vcodec/mtk_vcodec_enc_pm.c (100%)
 rename drivers/media/platform/{ => mediatek}/mtk-vcodec/mtk_vcodec_enc_pm.h (100%)
 rename drivers/media/platform/{ => mediatek}/mtk-vcodec/mtk_vcodec_fw.c (100%)
 rename drivers/media/platform/{ => mediatek}/mtk-vcodec/mtk_vcodec_fw.h (100%)
 rename drivers/media/platform/{ => mediatek}/mtk-vcodec/mtk_vcodec_fw_priv.h (100%)
 rename drivers/media/platform/{ => mediatek}/mtk-vcodec/mtk_vcodec_fw_scp.c (100%)
 rename drivers/media/platform/{ => mediatek}/mtk-vcodec/mtk_vcodec_fw_vpu.c (100%)
 rename drivers/media/platform/{ => mediatek}/mtk-vcodec/mtk_vcodec_intr.c (100%)
 rename drivers/media/platform/{ => mediatek}/mtk-vcodec/mtk_vcodec_intr.h (100%)
 rename drivers/media/platform/{ => mediatek}/mtk-vcodec/mtk_vcodec_util.c (100%)
 rename drivers/media/platform/{ => mediatek}/mtk-vcodec/mtk_vcodec_util.h (100%)
 rename drivers/media/platform/{ => mediatek}/mtk-vcodec/vdec/vdec_h264_if.c (100%)
 rename drivers/media/platform/{ => mediatek}/mtk-vcodec/vdec/vdec_h264_req_if.c (100%)
 rename drivers/media/platform/{ => mediatek}/mtk-vcodec/vdec/vdec_vp8_if.c (100%)
 rename drivers/media/platform/{ => mediatek}/mtk-vcodec/vdec/vdec_vp9_if.c (100%)
 rename drivers/media/platform/{ => mediatek}/mtk-vcodec/vdec_drv_base.h (100%)
 rename drivers/media/platform/{ => mediatek}/mtk-vcodec/vdec_drv_if.c (100%)
 rename drivers/media/platform/{ => mediatek}/mtk-vcodec/vdec_drv_if.h (100%)
 rename drivers/media/platform/{ => mediatek}/mtk-vcodec/vdec_ipi_msg.h (100%)
 rename drivers/media/platform/{ => mediatek}/mtk-vcodec/vdec_msg_queue.c (100%)
 rename drivers/media/platform/{ => mediatek}/mtk-vcodec/vdec_msg_queue.h (100%)
 rename drivers/media/platform/{ => mediatek}/mtk-vcodec/vdec_vpu_if.c (100%)
 rename drivers/media/platform/{ => mediatek}/mtk-vcodec/vdec_vpu_if.h (100%)
 rename drivers/media/platform/{ => mediatek}/mtk-vcodec/venc/venc_h264_if.c (100%)
 rename drivers/media/platform/{ => mediatek}/mtk-vcodec/venc/venc_vp8_if.c (100%)
 rename drivers/media/platform/{ => mediatek}/mtk-vcodec/venc_drv_base.h (100%)
 rename drivers/media/platform/{ => mediatek}/mtk-vcodec/venc_drv_if.c (100%)
 rename drivers/media/platform/{ => mediatek}/mtk-vcodec/venc_drv_if.h (100%)
 rename drivers/media/platform/{ => mediatek}/mtk-vcodec/venc_ipi_msg.h (100%)
 rename drivers/media/platform/{ => mediatek}/mtk-vcodec/venc_vpu_if.c (100%)
 rename drivers/media/platform/{ => mediatek}/mtk-vcodec/venc_vpu_if.h (100%)
MAINTAINERS +1 -1
index 2203d98bbcf1..bfe014870a77 100644
@@ -12147,7 +12147,7 @@ M:	Andrew-CT Chen <[email protected]>
 S:	Supported
 F:	Documentation/devicetree/bindings/media/mediatek-vcodec.txt
 F:	Documentation/devicetree/bindings/media/mediatek-vpu.txt
-F:	drivers/media/platform/mtk-vcodec/
+F:	drivers/media/platform/mediatek/mtk-vcodec/
 F:	drivers/media/platform/mtk-vpu/
 
 MEDIATEK MMC/SD/SDIO DRIVER
drivers/media/platform/Kconfig +1 -1
index 8a7ac0b8e09f..10055af0c7f8 100644
@@ -80,7 +80,7 @@ source "drivers/media/platform/intel/Kconfig"
 source "drivers/media/platform/marvell/Kconfig"
 source "drivers/media/platform/mediatek/mtk-jpeg/Kconfig"
 source "drivers/media/platform/mediatek/mtk-mdp/Kconfig"
-source "drivers/media/platform/mtk-vcodec/Kconfig"
+source "drivers/media/platform/mediatek/mtk-vcodec/Kconfig"
 source "drivers/media/platform/mtk-vpu/Kconfig"
 source "drivers/media/platform/nxp/Kconfig"
 source "drivers/media/platform/omap/Kconfig"
drivers/media/platform/Makefile +1 -1
index 6f5d09cd8f9b..637a3a7ac036 100644
@@ -20,7 +20,7 @@ obj-y += intel/
 obj-y += marvell/
 obj-y += mediatek/mtk-jpeg/
 obj-y += mediatek/mtk-mdp/
-obj-y += mtk-vcodec/
+obj-y += mediatek/mtk-vcodec/
 obj-y += mtk-vpu/
 obj-y += nxp/
 obj-y += omap/
drivers/media/platform/mediatek/mtk-vcodec/Kconfig renamed from drivers/media/platform/mtk-vcodec/Kconfig +0 -0
similarity index 100%
rename from drivers/media/platform/mtk-vcodec/Kconfig
rename to drivers/media/platform/mediatek/mtk-vcodec/Kconfig
drivers/media/platform/mediatek/mtk-vcodec/Makefile renamed from drivers/media/platform/mtk-vcodec/Makefile +0 -0
similarity index 100%
rename from drivers/media/platform/mtk-vcodec/Makefile
rename to drivers/media/platform/mediatek/mtk-vcodec/Makefile
drivers/media/platform/mediatek/mtk-vcodec/mtk_vcodec_dec.c renamed from drivers/media/platform/mtk-vcodec/mtk_vcodec_dec.c +0 -0
similarity index 100%
rename from drivers/media/platform/mtk-vcodec/mtk_vcodec_dec.c
rename to drivers/media/platform/mediatek/mtk-vcodec/mtk_vcodec_dec.c
drivers/media/platform/mediatek/mtk-vcodec/mtk_vcodec_dec.h renamed from drivers/media/platform/mtk-vcodec/mtk_vcodec_dec.h +0 -0
similarity index 100%
rename from drivers/media/platform/mtk-vcodec/mtk_vcodec_dec.h
rename to drivers/media/platform/mediatek/mtk-vcodec/mtk_vcodec_dec.h
drivers/media/platform/mediatek/mtk-vcodec/mtk_vcodec_dec_drv.c renamed from drivers/media/platform/mtk-vcodec/mtk_vcodec_dec_drv.c +0 -0
similarity index 100%
rename from drivers/media/platform/mtk-vcodec/mtk_vcodec_dec_drv.c
rename to drivers/media/platform/mediatek/mtk-vcodec/mtk_vcodec_dec_drv.c
drivers/media/platform/mediatek/mtk-vcodec/mtk_vcodec_dec_hw.c renamed from drivers/media/platform/mtk-vcodec/mtk_vcodec_dec_hw.c +0 -0
similarity index 100%
rename from drivers/media/platform/mtk-vcodec/mtk_vcodec_dec_hw.c
rename to drivers/media/platform/mediatek/mtk-vcodec/mtk_vcodec_dec_hw.c
drivers/media/platform/mediatek/mtk-vcodec/mtk_vcodec_dec_hw.h renamed from drivers/media/platform/mtk-vcodec/mtk_vcodec_dec_hw.h +0 -0
similarity index 100%
rename from drivers/media/platform/mtk-vcodec/mtk_vcodec_dec_hw.h
rename to drivers/media/platform/mediatek/mtk-vcodec/mtk_vcodec_dec_hw.h
drivers/media/platform/mediatek/mtk-vcodec/mtk_vcodec_dec_pm.c renamed from drivers/media/platform/mtk-vcodec/mtk_vcodec_dec_pm.c +0 -0
similarity index 100%
rename from drivers/media/platform/mtk-vcodec/mtk_vcodec_dec_pm.c
rename to drivers/media/platform/mediatek/mtk-vcodec/mtk_vcodec_dec_pm.c
drivers/media/platform/mediatek/mtk-vcodec/mtk_vcodec_dec_pm.h renamed from drivers/media/platform/mtk-vcodec/mtk_vcodec_dec_pm.h +0 -0
similarity index 100%
rename from drivers/media/platform/mtk-vcodec/mtk_vcodec_dec_pm.h
rename to drivers/media/platform/mediatek/mtk-vcodec/mtk_vcodec_dec_pm.h
drivers/media/platform/mediatek/mtk-vcodec/mtk_vcodec_dec_stateful.c renamed from drivers/media/platform/mtk-vcodec/mtk_vcodec_dec_stateful.c +0 -0
similarity index 100%
rename from drivers/media/platform/mtk-vcodec/mtk_vcodec_dec_stateful.c
rename to drivers/media/platform/mediatek/mtk-vcodec/mtk_vcodec_dec_stateful.c
drivers/media/platform/mediatek/mtk-vcodec/mtk_vcodec_dec_stateless.c renamed from drivers/media/platform/mtk-vcodec/mtk_vcodec_dec_stateless.c +0 -0
similarity index 100%
rename from drivers/media/platform/mtk-vcodec/mtk_vcodec_dec_stateless.c
rename to drivers/media/platform/mediatek/mtk-vcodec/mtk_vcodec_dec_stateless.c
drivers/media/platform/mediatek/mtk-vcodec/mtk_vcodec_drv.h renamed from drivers/media/platform/mtk-vcodec/mtk_vcodec_drv.h +0 -0
similarity index 100%
rename from drivers/media/platform/mtk-vcodec/mtk_vcodec_drv.h
rename to drivers/media/platform/mediatek/mtk-vcodec/mtk_vcodec_drv.h
drivers/media/platform/mediatek/mtk-vcodec/mtk_vcodec_enc.c renamed from drivers/media/platform/mtk-vcodec/mtk_vcodec_enc.c +0 -0
similarity index 100%
rename from drivers/media/platform/mtk-vcodec/mtk_vcodec_enc.c
rename to drivers/media/platform/mediatek/mtk-vcodec/mtk_vcodec_enc.c
drivers/media/platform/mediatek/mtk-vcodec/mtk_vcodec_enc.h renamed from drivers/media/platform/mtk-vcodec/mtk_vcodec_enc.h +0 -0
similarity index 100%
rename from drivers/media/platform/mtk-vcodec/mtk_vcodec_enc.h
rename to drivers/media/platform/mediatek/mtk-vcodec/mtk_vcodec_enc.h
drivers/media/platform/mediatek/mtk-vcodec/mtk_vcodec_enc_drv.c renamed from drivers/media/platform/mtk-vcodec/mtk_vcodec_enc_drv.c +0 -0
similarity index 100%
rename from drivers/media/platform/mtk-vcodec/mtk_vcodec_enc_drv.c
rename to drivers/media/platform/mediatek/mtk-vcodec/mtk_vcodec_enc_drv.c
drivers/media/platform/mediatek/mtk-vcodec/mtk_vcodec_enc_pm.c renamed from drivers/media/platform/mtk-vcodec/mtk_vcodec_enc_pm.c +0 -0
similarity index 100%
rename from drivers/media/platform/mtk-vcodec/mtk_vcodec_enc_pm.c
rename to drivers/media/platform/mediatek/mtk-vcodec/mtk_vcodec_enc_pm.c
drivers/media/platform/mediatek/mtk-vcodec/mtk_vcodec_enc_pm.h renamed from drivers/media/platform/mtk-vcodec/mtk_vcodec_enc_pm.h +0 -0
similarity index 100%
rename from drivers/media/platform/mtk-vcodec/mtk_vcodec_enc_pm.h
rename to drivers/media/platform/mediatek/mtk-vcodec/mtk_vcodec_enc_pm.h
drivers/media/platform/mediatek/mtk-vcodec/mtk_vcodec_fw.c renamed from drivers/media/platform/mtk-vcodec/mtk_vcodec_fw.c +0 -0
similarity index 100%
rename from drivers/media/platform/mtk-vcodec/mtk_vcodec_fw.c
rename to drivers/media/platform/mediatek/mtk-vcodec/mtk_vcodec_fw.c
drivers/media/platform/mediatek/mtk-vcodec/mtk_vcodec_fw.h renamed from drivers/media/platform/mtk-vcodec/mtk_vcodec_fw.h +0 -0
similarity index 100%
rename from drivers/media/platform/mtk-vcodec/mtk_vcodec_fw.h
rename to drivers/media/platform/mediatek/mtk-vcodec/mtk_vcodec_fw.h
drivers/media/platform/mediatek/mtk-vcodec/mtk_vcodec_fw_priv.h renamed from drivers/media/platform/mtk-vcodec/mtk_vcodec_fw_priv.h +0 -0
similarity index 100%
rename from drivers/media/platform/mtk-vcodec/mtk_vcodec_fw_priv.h
rename to drivers/media/platform/mediatek/mtk-vcodec/mtk_vcodec_fw_priv.h
drivers/media/platform/mediatek/mtk-vcodec/mtk_vcodec_fw_scp.c renamed from drivers/media/platform/mtk-vcodec/mtk_vcodec_fw_scp.c +0 -0
similarity index 100%
rename from drivers/media/platform/mtk-vcodec/mtk_vcodec_fw_scp.c
rename to drivers/media/platform/mediatek/mtk-vcodec/mtk_vcodec_fw_scp.c
drivers/media/platform/mediatek/mtk-vcodec/mtk_vcodec_fw_vpu.c renamed from drivers/media/platform/mtk-vcodec/mtk_vcodec_fw_vpu.c +0 -0
similarity index 100%
rename from drivers/media/platform/mtk-vcodec/mtk_vcodec_fw_vpu.c
rename to drivers/media/platform/mediatek/mtk-vcodec/mtk_vcodec_fw_vpu.c
drivers/media/platform/mediatek/mtk-vcodec/mtk_vcodec_intr.c renamed from drivers/media/platform/mtk-vcodec/mtk_vcodec_intr.c +0 -0
similarity index 100%
rename from drivers/media/platform/mtk-vcodec/mtk_vcodec_intr.c
rename to drivers/media/platform/mediatek/mtk-vcodec/mtk_vcodec_intr.c
drivers/media/platform/mediatek/mtk-vcodec/mtk_vcodec_intr.h renamed from drivers/media/platform/mtk-vcodec/mtk_vcodec_intr.h +0 -0
similarity index 100%
rename from drivers/media/platform/mtk-vcodec/mtk_vcodec_intr.h
rename to drivers/media/platform/mediatek/mtk-vcodec/mtk_vcodec_intr.h
drivers/media/platform/mediatek/mtk-vcodec/mtk_vcodec_util.c renamed from drivers/media/platform/mtk-vcodec/mtk_vcodec_util.c +0 -0
similarity index 100%
rename from drivers/media/platform/mtk-vcodec/mtk_vcodec_util.c
rename to drivers/media/platform/mediatek/mtk-vcodec/mtk_vcodec_util.c
drivers/media/platform/mediatek/mtk-vcodec/mtk_vcodec_util.h renamed from drivers/media/platform/mtk-vcodec/mtk_vcodec_util.h +0 -0
similarity index 100%
rename from drivers/media/platform/mtk-vcodec/mtk_vcodec_util.h
rename to drivers/media/platform/mediatek/mtk-vcodec/mtk_vcodec_util.h
drivers/media/platform/mediatek/mtk-vcodec/vdec/vdec_h264_if.c renamed from drivers/media/platform/mtk-vcodec/vdec/vdec_h264_if.c +0 -0
similarity index 100%
rename from drivers/media/platform/mtk-vcodec/vdec/vdec_h264_if.c
rename to drivers/media/platform/mediatek/mtk-vcodec/vdec/vdec_h264_if.c
drivers/media/platform/mediatek/mtk-vcodec/vdec/vdec_h264_req_if.c renamed from drivers/media/platform/mtk-vcodec/vdec/vdec_h264_req_if.c +0 -0
similarity index 100%
rename from drivers/media/platform/mtk-vcodec/vdec/vdec_h264_req_if.c
rename to drivers/media/platform/mediatek/mtk-vcodec/vdec/vdec_h264_req_if.c
drivers/media/platform/mediatek/mtk-vcodec/vdec/vdec_vp8_if.c renamed from drivers/media/platform/mtk-vcodec/vdec/vdec_vp8_if.c +0 -0
similarity index 100%
rename from drivers/media/platform/mtk-vcodec/vdec/vdec_vp8_if.c
rename to drivers/media/platform/mediatek/mtk-vcodec/vdec/vdec_vp8_if.c
drivers/media/platform/mediatek/mtk-vcodec/vdec/vdec_vp9_if.c renamed from drivers/media/platform/mtk-vcodec/vdec/vdec_vp9_if.c +0 -0
similarity index 100%
rename from drivers/media/platform/mtk-vcodec/vdec/vdec_vp9_if.c
rename to drivers/media/platform/mediatek/mtk-vcodec/vdec/vdec_vp9_if.c
drivers/media/platform/mediatek/mtk-vcodec/vdec_drv_base.h renamed from drivers/media/platform/mtk-vcodec/vdec_drv_base.h +0 -0
similarity index 100%
rename from drivers/media/platform/mtk-vcodec/vdec_drv_base.h
rename to drivers/media/platform/mediatek/mtk-vcodec/vdec_drv_base.h
drivers/media/platform/mediatek/mtk-vcodec/vdec_drv_if.c renamed from drivers/media/platform/mtk-vcodec/vdec_drv_if.c +0 -0
similarity index 100%
rename from drivers/media/platform/mtk-vcodec/vdec_drv_if.c
rename to drivers/media/platform/mediatek/mtk-vcodec/vdec_drv_if.c
drivers/media/platform/mediatek/mtk-vcodec/vdec_drv_if.h renamed from drivers/media/platform/mtk-vcodec/vdec_drv_if.h +0 -0
similarity index 100%
rename from drivers/media/platform/mtk-vcodec/vdec_drv_if.h
rename to drivers/media/platform/mediatek/mtk-vcodec/vdec_drv_if.h
drivers/media/platform/mediatek/mtk-vcodec/vdec_ipi_msg.h renamed from drivers/media/platform/mtk-vcodec/vdec_ipi_msg.h +0 -0
similarity index 100%
rename from drivers/media/platform/mtk-vcodec/vdec_ipi_msg.h
rename to drivers/media/platform/mediatek/mtk-vcodec/vdec_ipi_msg.h
drivers/media/platform/mediatek/mtk-vcodec/vdec_msg_queue.c renamed from drivers/media/platform/mtk-vcodec/vdec_msg_queue.c +0 -0
similarity index 100%
rename from drivers/media/platform/mtk-vcodec/vdec_msg_queue.c
rename to drivers/media/platform/mediatek/mtk-vcodec/vdec_msg_queue.c
drivers/media/platform/mediatek/mtk-vcodec/vdec_msg_queue.h renamed from drivers/media/platform/mtk-vcodec/vdec_msg_queue.h +0 -0
similarity index 100%
rename from drivers/media/platform/mtk-vcodec/vdec_msg_queue.h
rename to drivers/media/platform/mediatek/mtk-vcodec/vdec_msg_queue.h
drivers/media/platform/mediatek/mtk-vcodec/vdec_vpu_if.c renamed from drivers/media/platform/mtk-vcodec/vdec_vpu_if.c +0 -0
similarity index 100%
rename from drivers/media/platform/mtk-vcodec/vdec_vpu_if.c
rename to drivers/media/platform/mediatek/mtk-vcodec/vdec_vpu_if.c
drivers/media/platform/mediatek/mtk-vcodec/vdec_vpu_if.h renamed from drivers/media/platform/mtk-vcodec/vdec_vpu_if.h +0 -0
similarity index 100%
rename from drivers/media/platform/mtk-vcodec/vdec_vpu_if.h
rename to drivers/media/platform/mediatek/mtk-vcodec/vdec_vpu_if.h
drivers/media/platform/mediatek/mtk-vcodec/venc/venc_h264_if.c renamed from drivers/media/platform/mtk-vcodec/venc/venc_h264_if.c +0 -0
similarity index 100%
rename from drivers/media/platform/mtk-vcodec/venc/venc_h264_if.c
rename to drivers/media/platform/mediatek/mtk-vcodec/venc/venc_h264_if.c
drivers/media/platform/mediatek/mtk-vcodec/venc/venc_vp8_if.c renamed from drivers/media/platform/mtk-vcodec/venc/venc_vp8_if.c +0 -0
similarity index 100%
rename from drivers/media/platform/mtk-vcodec/venc/venc_vp8_if.c
rename to drivers/media/platform/mediatek/mtk-vcodec/venc/venc_vp8_if.c
drivers/media/platform/mediatek/mtk-vcodec/venc_drv_base.h renamed from drivers/media/platform/mtk-vcodec/venc_drv_base.h +0 -0
similarity index 100%
rename from drivers/media/platform/mtk-vcodec/venc_drv_base.h
rename to drivers/media/platform/mediatek/mtk-vcodec/venc_drv_base.h
drivers/media/platform/mediatek/mtk-vcodec/venc_drv_if.c renamed from drivers/media/platform/mtk-vcodec/venc_drv_if.c +0 -0
similarity index 100%
rename from drivers/media/platform/mtk-vcodec/venc_drv_if.c
rename to drivers/media/platform/mediatek/mtk-vcodec/venc_drv_if.c
drivers/media/platform/mediatek/mtk-vcodec/venc_drv_if.h renamed from drivers/media/platform/mtk-vcodec/venc_drv_if.h +0 -0
similarity index 100%
rename from drivers/media/platform/mtk-vcodec/venc_drv_if.h
rename to drivers/media/platform/mediatek/mtk-vcodec/venc_drv_if.h
drivers/media/platform/mediatek/mtk-vcodec/venc_ipi_msg.h renamed from drivers/media/platform/mtk-vcodec/venc_ipi_msg.h +0 -0
similarity index 100%
rename from drivers/media/platform/mtk-vcodec/venc_ipi_msg.h
rename to drivers/media/platform/mediatek/mtk-vcodec/venc_ipi_msg.h
drivers/media/platform/mediatek/mtk-vcodec/venc_vpu_if.c renamed from drivers/media/platform/mtk-vcodec/venc_vpu_if.c +0 -0
similarity index 100%
rename from drivers/media/platform/mtk-vcodec/venc_vpu_if.c
rename to drivers/media/platform/mediatek/mtk-vcodec/venc_vpu_if.c
drivers/media/platform/mediatek/mtk-vcodec/venc_vpu_if.h renamed from drivers/media/platform/mtk-vcodec/venc_vpu_if.h +0 -0
similarity index 100%
rename from drivers/media/platform/mtk-vcodec/venc_vpu_if.h
rename to drivers/media/platform/mediatek/mtk-vcodec/venc_vpu_if.h
Signature · 1 line
2.35.1
author maintainer
#67 lore raw

PATCH v2 57/67 media: platform: rename am437x/ to ti/am437x/

In reply to Mauro Carvalho Chehab

As the end goal is to have platform drivers split by vendor, rename am437x/ to ti/am437x/.

---

To avoid mailbombing on a large number of people, only mailing lists were C/C on the cover. See [PATCH v2 00/67] at: https://lore.kernel.org/all/[email protected]/

 MAINTAINERS                                               | 2 +-
 drivers/media/platform/Kconfig                            | 2 +-
 drivers/media/platform/Makefile                           | 2 +-
 drivers/media/platform/{ => ti}/am437x/Kconfig            | 0
 drivers/media/platform/{ => ti}/am437x/Makefile           | 0
 drivers/media/platform/{ => ti}/am437x/am437x-vpfe.c      | 0
 drivers/media/platform/{ => ti}/am437x/am437x-vpfe.h      | 0
 drivers/media/platform/{ => ti}/am437x/am437x-vpfe_regs.h | 0
 8 files changed, 3 insertions(+), 3 deletions(-)
 rename drivers/media/platform/{ => ti}/am437x/Kconfig (100%)
 rename drivers/media/platform/{ => ti}/am437x/Makefile (100%)
 rename drivers/media/platform/{ => ti}/am437x/am437x-vpfe.c (100%)
 rename drivers/media/platform/{ => ti}/am437x/am437x-vpfe.h (100%)
 rename drivers/media/platform/{ => ti}/am437x/am437x-vpfe_regs.h (100%)
MAINTAINERS +1 -1
index 6c1055c27c65..f0b262176a70 100644
@@ -19262,7 +19262,7 @@ S:	Maintained
 W:	https://linuxtv.org
 Q:	http://patchwork.linuxtv.org/project/linux-media/list/
 T:	git git://linuxtv.org/mhadli/v4l-dvb-davinci_devices.git
-F:	drivers/media/platform/am437x/
+F:	drivers/media/platform/ti/am437x/
 
 TI BANDGAP AND THERMAL DRIVER
 M:	Eduardo Valentin <[email protected]>
drivers/media/platform/Kconfig +1 -1
index 2ad5fde02543..5d56058fa397 100644
@@ -67,7 +67,6 @@ config VIDEO_MUX
 
 source "drivers/media/platform/allegro-dvt/Kconfig"
 source "drivers/media/platform/allwinner/Kconfig"
-source "drivers/media/platform/am437x/Kconfig"
 source "drivers/media/platform/amlogic/meson-ge2d/Kconfig"
 source "drivers/media/platform/amphion/Kconfig"
 source "drivers/media/platform/aspeed/Kconfig"
@@ -97,6 +96,7 @@ source "drivers/media/platform/samsung/s5p-mfc/Kconfig"
 source "drivers/media/platform/stm/sti/Kconfig"
 source "drivers/media/platform/stm/stm32/Kconfig"
 source "drivers/media/platform/ti-vpe/Kconfig"
+source "drivers/media/platform/ti/am437x/Kconfig"
 source "drivers/media/platform/via/Kconfig"
 source "drivers/media/platform/xilinx/Kconfig"
 
drivers/media/platform/Makefile +1 -1
index f20f1287c665..f8c4617da0ae 100644
@@ -7,7 +7,6 @@
 # (e. g. LC_ALL=C sort Makefile)
 obj-y += allegro-dvt/
 obj-y += allwinner/
-obj-y += am437x/
 obj-y += amlogic/meson-ge2d/
 obj-y += amphion/
 obj-y += aspeed/
@@ -42,6 +41,7 @@ obj-y += stm/sti/delta/
 obj-y += stm/sti/hva/
 obj-y += stm/stm32/
 obj-y += ti-vpe/
+obj-y += ti/am437x/
 obj-y += via/
 obj-y += xilinx/
 
drivers/media/platform/ti/am437x/Kconfig renamed from drivers/media/platform/am437x/Kconfig +0 -0
similarity index 100%
rename from drivers/media/platform/am437x/Kconfig
rename to drivers/media/platform/ti/am437x/Kconfig
drivers/media/platform/ti/am437x/Makefile renamed from drivers/media/platform/am437x/Makefile +0 -0
similarity index 100%
rename from drivers/media/platform/am437x/Makefile
rename to drivers/media/platform/ti/am437x/Makefile
drivers/media/platform/ti/am437x/am437x-vpfe.c renamed from drivers/media/platform/am437x/am437x-vpfe.c +0 -0
similarity index 100%
rename from drivers/media/platform/am437x/am437x-vpfe.c
rename to drivers/media/platform/ti/am437x/am437x-vpfe.c
drivers/media/platform/ti/am437x/am437x-vpfe.h renamed from drivers/media/platform/am437x/am437x-vpfe.h +0 -0
similarity index 100%
rename from drivers/media/platform/am437x/am437x-vpfe.h
rename to drivers/media/platform/ti/am437x/am437x-vpfe.h
drivers/media/platform/ti/am437x/am437x-vpfe_regs.h renamed from drivers/media/platform/am437x/am437x-vpfe_regs.h +0 -0
similarity index 100%
rename from drivers/media/platform/am437x/am437x-vpfe_regs.h
rename to drivers/media/platform/ti/am437x/am437x-vpfe_regs.h
Signature · 1 line
2.35.1
author maintainer
#69 lore raw

PATCH v2 58/67 media: platform: rename davinci/ to ti/davinci/

In reply to Mauro Carvalho Chehab

As the end goal is to have platform drivers split by vendor, rename davinci/ to ti/davinci/.

---

To avoid mailbombing on a large number of people, only mailing lists were C/C on the cover. See [PATCH v2 00/67] at: https://lore.kernel.org/all/[email protected]/

 .../media/drivers/davinci-vpbe-devel.rst      | 20 +++++++++----------
 MAINTAINERS                                   |  2 +-
 drivers/media/platform/Kconfig                |  2 +-
 drivers/media/platform/Makefile               |  2 +-
 .../media/platform/{ => ti}/davinci/Kconfig   |  0
 .../media/platform/{ => ti}/davinci/Makefile  |  0
 .../{ => ti}/davinci/ccdc_hw_device.h         |  0
 .../platform/{ => ti}/davinci/dm355_ccdc.c    |  0
 .../{ => ti}/davinci/dm355_ccdc_regs.h        |  0
 .../platform/{ => ti}/davinci/dm644x_ccdc.c   |  0
 .../{ => ti}/davinci/dm644x_ccdc_regs.h       |  0
 .../media/platform/{ => ti}/davinci/isif.c    |  0
 .../platform/{ => ti}/davinci/isif_regs.h     |  0
 .../media/platform/{ => ti}/davinci/vpbe.c    |  0
 .../platform/{ => ti}/davinci/vpbe_display.c  |  0
 .../platform/{ => ti}/davinci/vpbe_osd.c      |  0
 .../platform/{ => ti}/davinci/vpbe_osd_regs.h |  0
 .../platform/{ => ti}/davinci/vpbe_venc.c     |  0
 .../{ => ti}/davinci/vpbe_venc_regs.h         |  0
 .../platform/{ => ti}/davinci/vpfe_capture.c  |  0
 .../media/platform/{ => ti}/davinci/vpif.c    |  0
 .../media/platform/{ => ti}/davinci/vpif.h    |  0
 .../platform/{ => ti}/davinci/vpif_capture.c  |  0
 .../platform/{ => ti}/davinci/vpif_capture.h  |  0
 .../platform/{ => ti}/davinci/vpif_display.c  |  0
 .../platform/{ => ti}/davinci/vpif_display.h  |  0
 .../media/platform/{ => ti}/davinci/vpss.c    |  0
 27 files changed, 13 insertions(+), 13 deletions(-)
 rename drivers/media/platform/{ => ti}/davinci/Kconfig (100%)
 rename drivers/media/platform/{ => ti}/davinci/Makefile (100%)
 rename drivers/media/platform/{ => ti}/davinci/ccdc_hw_device.h (100%)
 rename drivers/media/platform/{ => ti}/davinci/dm355_ccdc.c (100%)
 rename drivers/media/platform/{ => ti}/davinci/dm355_ccdc_regs.h (100%)
 rename drivers/media/platform/{ => ti}/davinci/dm644x_ccdc.c (100%)
 rename drivers/media/platform/{ => ti}/davinci/dm644x_ccdc_regs.h (100%)
 rename drivers/media/platform/{ => ti}/davinci/isif.c (100%)
 rename drivers/media/platform/{ => ti}/davinci/isif_regs.h (100%)
 rename drivers/media/platform/{ => ti}/davinci/vpbe.c (100%)
 rename drivers/media/platform/{ => ti}/davinci/vpbe_display.c (100%)
 rename drivers/media/platform/{ => ti}/davinci/vpbe_osd.c (100%)
 rename drivers/media/platform/{ => ti}/davinci/vpbe_osd_regs.h (100%)
 rename drivers/media/platform/{ => ti}/davinci/vpbe_venc.c (100%)
 rename drivers/media/platform/{ => ti}/davinci/vpbe_venc_regs.h (100%)
 rename drivers/media/platform/{ => ti}/davinci/vpfe_capture.c (100%)
 rename drivers/media/platform/{ => ti}/davinci/vpif.c (100%)
 rename drivers/media/platform/{ => ti}/davinci/vpif.h (100%)
 rename drivers/media/platform/{ => ti}/davinci/vpif_capture.c (100%)
 rename drivers/media/platform/{ => ti}/davinci/vpif_capture.h (100%)
 rename drivers/media/platform/{ => ti}/davinci/vpif_display.c (100%)
 rename drivers/media/platform/{ => ti}/davinci/vpif_display.h (100%)
 rename drivers/media/platform/{ => ti}/davinci/vpss.c (100%)
Documentation/driver-api/media/drivers/davinci-vpbe-devel.rst +10 -10
index f0961672e6a3..4e87bdbc7ae4 100644
@@ -7,22 +7,22 @@ File partitioning
 -----------------
 
  V4L2 display device driver
-         drivers/media/platform/davinci/vpbe_display.c
-         drivers/media/platform/davinci/vpbe_display.h
+         drivers/media/platform/ti/davinci/vpbe_display.c
+         drivers/media/platform/ti/davinci/vpbe_display.h
 
  VPBE display controller
-         drivers/media/platform/davinci/vpbe.c
-         drivers/media/platform/davinci/vpbe.h
+         drivers/media/platform/ti/davinci/vpbe.c
+         drivers/media/platform/ti/davinci/vpbe.h
 
  VPBE venc sub device driver
-         drivers/media/platform/davinci/vpbe_venc.c
-         drivers/media/platform/davinci/vpbe_venc.h
-         drivers/media/platform/davinci/vpbe_venc_regs.h
+         drivers/media/platform/ti/davinci/vpbe_venc.c
+         drivers/media/platform/ti/davinci/vpbe_venc.h
+         drivers/media/platform/ti/davinci/vpbe_venc_regs.h
 
  VPBE osd driver
-         drivers/media/platform/davinci/vpbe_osd.c
-         drivers/media/platform/davinci/vpbe_osd.h
-         drivers/media/platform/davinci/vpbe_osd_regs.h
+         drivers/media/platform/ti/davinci/vpbe_osd.c
+         drivers/media/platform/ti/davinci/vpbe_osd.h
+         drivers/media/platform/ti/davinci/vpbe_osd_regs.h
 
 To be done
 ----------
MAINTAINERS +1 -1
index f0b262176a70..4674c70f8859 100644
@@ -19321,7 +19321,7 @@ S:	Maintained
 W:	https://linuxtv.org
 Q:	http://patchwork.linuxtv.org/project/linux-media/list/
 T:	git git://linuxtv.org/mhadli/v4l-dvb-davinci_devices.git
-F:	drivers/media/platform/davinci/
+F:	drivers/media/platform/ti/davinci/
 F:	include/media/davinci/
 
 TI ENHANCED QUADRATURE ENCODER PULSE (eQEP) DRIVER
drivers/media/platform/Kconfig +1 -1
index 5d56058fa397..9b1bccf9a621 100644
@@ -73,7 +73,6 @@ source "drivers/media/platform/aspeed/Kconfig"
 source "drivers/media/platform/atmel/Kconfig"
 source "drivers/media/platform/cadence/Kconfig"
 source "drivers/media/platform/chips-media/Kconfig"
-source "drivers/media/platform/davinci/Kconfig"
 source "drivers/media/platform/intel/Kconfig"
 source "drivers/media/platform/marvell/Kconfig"
 source "drivers/media/platform/mediatek/mtk-jpeg/Kconfig"
@@ -97,6 +96,7 @@ source "drivers/media/platform/stm/sti/Kconfig"
 source "drivers/media/platform/stm/stm32/Kconfig"
 source "drivers/media/platform/ti-vpe/Kconfig"
 source "drivers/media/platform/ti/am437x/Kconfig"
+source "drivers/media/platform/ti/davinci/Kconfig"
 source "drivers/media/platform/via/Kconfig"
 source "drivers/media/platform/xilinx/Kconfig"
 
drivers/media/platform/Makefile +1 -1
index f8c4617da0ae..70c87bd6468b 100644
@@ -13,7 +13,6 @@ obj-y += aspeed/
 obj-y += atmel/
 obj-y += cadence/
 obj-y += chips-media/
-obj-y += davinci/
 obj-y += intel/
 obj-y += marvell/
 obj-y += mediatek/mtk-jpeg/
@@ -42,6 +41,7 @@ obj-y += stm/sti/hva/
 obj-y += stm/stm32/
 obj-y += ti-vpe/
 obj-y += ti/am437x/
+obj-y += ti/davinci/
 obj-y += via/
 obj-y += xilinx/
 
drivers/media/platform/ti/davinci/Kconfig renamed from drivers/media/platform/davinci/Kconfig +0 -0
similarity index 100%
rename from drivers/media/platform/davinci/Kconfig
rename to drivers/media/platform/ti/davinci/Kconfig
drivers/media/platform/ti/davinci/Makefile renamed from drivers/media/platform/davinci/Makefile +0 -0
similarity index 100%
rename from drivers/media/platform/davinci/Makefile
rename to drivers/media/platform/ti/davinci/Makefile
drivers/media/platform/ti/davinci/ccdc_hw_device.h renamed from drivers/media/platform/davinci/ccdc_hw_device.h +0 -0
similarity index 100%
rename from drivers/media/platform/davinci/ccdc_hw_device.h
rename to drivers/media/platform/ti/davinci/ccdc_hw_device.h
drivers/media/platform/ti/davinci/dm355_ccdc.c renamed from drivers/media/platform/davinci/dm355_ccdc.c +0 -0
similarity index 100%
rename from drivers/media/platform/davinci/dm355_ccdc.c
rename to drivers/media/platform/ti/davinci/dm355_ccdc.c
drivers/media/platform/ti/davinci/dm355_ccdc_regs.h renamed from drivers/media/platform/davinci/dm355_ccdc_regs.h +0 -0
similarity index 100%
rename from drivers/media/platform/davinci/dm355_ccdc_regs.h
rename to drivers/media/platform/ti/davinci/dm355_ccdc_regs.h
drivers/media/platform/ti/davinci/dm644x_ccdc.c renamed from drivers/media/platform/davinci/dm644x_ccdc.c +0 -0
similarity index 100%
rename from drivers/media/platform/davinci/dm644x_ccdc.c
rename to drivers/media/platform/ti/davinci/dm644x_ccdc.c
drivers/media/platform/ti/davinci/dm644x_ccdc_regs.h renamed from drivers/media/platform/davinci/dm644x_ccdc_regs.h +0 -0
similarity index 100%
rename from drivers/media/platform/davinci/dm644x_ccdc_regs.h
rename to drivers/media/platform/ti/davinci/dm644x_ccdc_regs.h
drivers/media/platform/ti/davinci/isif.c renamed from drivers/media/platform/davinci/isif.c +0 -0
similarity index 100%
rename from drivers/media/platform/davinci/isif.c
rename to drivers/media/platform/ti/davinci/isif.c
drivers/media/platform/ti/davinci/isif_regs.h renamed from drivers/media/platform/davinci/isif_regs.h +0 -0
similarity index 100%
rename from drivers/media/platform/davinci/isif_regs.h
rename to drivers/media/platform/ti/davinci/isif_regs.h
drivers/media/platform/ti/davinci/vpbe.c renamed from drivers/media/platform/davinci/vpbe.c +0 -0
similarity index 100%
rename from drivers/media/platform/davinci/vpbe.c
rename to drivers/media/platform/ti/davinci/vpbe.c
drivers/media/platform/ti/davinci/vpbe_display.c renamed from drivers/media/platform/davinci/vpbe_display.c +0 -0
similarity index 100%
rename from drivers/media/platform/davinci/vpbe_display.c
rename to drivers/media/platform/ti/davinci/vpbe_display.c
drivers/media/platform/ti/davinci/vpbe_osd.c renamed from drivers/media/platform/davinci/vpbe_osd.c +0 -0
similarity index 100%
rename from drivers/media/platform/davinci/vpbe_osd.c
rename to drivers/media/platform/ti/davinci/vpbe_osd.c
drivers/media/platform/ti/davinci/vpbe_osd_regs.h renamed from drivers/media/platform/davinci/vpbe_osd_regs.h +0 -0
similarity index 100%
rename from drivers/media/platform/davinci/vpbe_osd_regs.h
rename to drivers/media/platform/ti/davinci/vpbe_osd_regs.h
drivers/media/platform/ti/davinci/vpbe_venc.c renamed from drivers/media/platform/davinci/vpbe_venc.c +0 -0
similarity index 100%
rename from drivers/media/platform/davinci/vpbe_venc.c
rename to drivers/media/platform/ti/davinci/vpbe_venc.c
drivers/media/platform/ti/davinci/vpbe_venc_regs.h renamed from drivers/media/platform/davinci/vpbe_venc_regs.h +0 -0
similarity index 100%
rename from drivers/media/platform/davinci/vpbe_venc_regs.h
rename to drivers/media/platform/ti/davinci/vpbe_venc_regs.h
drivers/media/platform/ti/davinci/vpfe_capture.c renamed from drivers/media/platform/davinci/vpfe_capture.c +0 -0
similarity index 100%
rename from drivers/media/platform/davinci/vpfe_capture.c
rename to drivers/media/platform/ti/davinci/vpfe_capture.c
drivers/media/platform/ti/davinci/vpif.c renamed from drivers/media/platform/davinci/vpif.c +0 -0
similarity index 100%
rename from drivers/media/platform/davinci/vpif.c
rename to drivers/media/platform/ti/davinci/vpif.c
drivers/media/platform/ti/davinci/vpif.h renamed from drivers/media/platform/davinci/vpif.h +0 -0
similarity index 100%
rename from drivers/media/platform/davinci/vpif.h
rename to drivers/media/platform/ti/davinci/vpif.h
drivers/media/platform/ti/davinci/vpif_capture.c renamed from drivers/media/platform/davinci/vpif_capture.c +0 -0
similarity index 100%
rename from drivers/media/platform/davinci/vpif_capture.c
rename to drivers/media/platform/ti/davinci/vpif_capture.c
drivers/media/platform/ti/davinci/vpif_capture.h renamed from drivers/media/platform/davinci/vpif_capture.h +0 -0
similarity index 100%
rename from drivers/media/platform/davinci/vpif_capture.h
rename to drivers/media/platform/ti/davinci/vpif_capture.h
drivers/media/platform/ti/davinci/vpif_display.c renamed from drivers/media/platform/davinci/vpif_display.c +0 -0
similarity index 100%
rename from drivers/media/platform/davinci/vpif_display.c
rename to drivers/media/platform/ti/davinci/vpif_display.c
drivers/media/platform/ti/davinci/vpif_display.h renamed from drivers/media/platform/davinci/vpif_display.h +0 -0
similarity index 100%
rename from drivers/media/platform/davinci/vpif_display.h
rename to drivers/media/platform/ti/davinci/vpif_display.h
drivers/media/platform/ti/davinci/vpss.c renamed from drivers/media/platform/davinci/vpss.c +0 -0
similarity index 100%
rename from drivers/media/platform/davinci/vpss.c
rename to drivers/media/platform/ti/davinci/vpss.c
Signature · 1 line
2.35.1
author maintainer
#70 lore raw

PATCH v2 59/67 media: platform: rename omap3isp/ to ti/omap3isp/

In reply to Mauro Carvalho Chehab

As the end goal is to have platform drivers split by vendor, rename omap3isp/ to ti/omap3isp/.

---

To avoid mailbombing on a large number of people, only mailing lists were C/C on the cover. See [PATCH v2 00/67] at: https://lore.kernel.org/all/[email protected]/

 Documentation/admin-guide/media/omap3isp.rst                  | 2 +-
 Documentation/admin-guide/media/omap4_camera.rst              | 2 +-
 Documentation/driver-api/media/v4l2-event.rst                 | 2 +-
 MAINTAINERS                                                   | 2 +-
 drivers/media/platform/Kconfig                                | 2 +-
 drivers/media/platform/Makefile                               | 2 +-
 drivers/media/platform/{ => ti}/omap3isp/Kconfig              | 0
 drivers/media/platform/{ => ti}/omap3isp/Makefile             | 0
 drivers/media/platform/{ => ti}/omap3isp/cfa_coef_table.h     | 0
 drivers/media/platform/{ => ti}/omap3isp/gamma_table.h        | 0
 drivers/media/platform/{ => ti}/omap3isp/isp.c                | 0
 drivers/media/platform/{ => ti}/omap3isp/isp.h                | 0
 drivers/media/platform/{ => ti}/omap3isp/ispccdc.c            | 0
 drivers/media/platform/{ => ti}/omap3isp/ispccdc.h            | 0
 drivers/media/platform/{ => ti}/omap3isp/ispccp2.c            | 0
 drivers/media/platform/{ => ti}/omap3isp/ispccp2.h            | 0
 drivers/media/platform/{ => ti}/omap3isp/ispcsi2.c            | 0
 drivers/media/platform/{ => ti}/omap3isp/ispcsi2.h            | 0
 drivers/media/platform/{ => ti}/omap3isp/ispcsiphy.c          | 0
 drivers/media/platform/{ => ti}/omap3isp/ispcsiphy.h          | 0
 drivers/media/platform/{ => ti}/omap3isp/isph3a.h             | 0
 drivers/media/platform/{ => ti}/omap3isp/isph3a_aewb.c        | 0
 drivers/media/platform/{ => ti}/omap3isp/isph3a_af.c          | 0
 drivers/media/platform/{ => ti}/omap3isp/isphist.c            | 0
 drivers/media/platform/{ => ti}/omap3isp/isphist.h            | 0
 drivers/media/platform/{ => ti}/omap3isp/isppreview.c         | 0
 drivers/media/platform/{ => ti}/omap3isp/isppreview.h         | 0
 drivers/media/platform/{ => ti}/omap3isp/ispreg.h             | 0
 drivers/media/platform/{ => ti}/omap3isp/ispresizer.c         | 0
 drivers/media/platform/{ => ti}/omap3isp/ispresizer.h         | 0
 drivers/media/platform/{ => ti}/omap3isp/ispstat.c            | 0
 drivers/media/platform/{ => ti}/omap3isp/ispstat.h            | 0
 drivers/media/platform/{ => ti}/omap3isp/ispvideo.c           | 0
 drivers/media/platform/{ => ti}/omap3isp/ispvideo.h           | 0
 drivers/media/platform/{ => ti}/omap3isp/luma_enhance_table.h | 0
 drivers/media/platform/{ => ti}/omap3isp/noise_filter_table.h | 0
 drivers/media/platform/{ => ti}/omap3isp/omap3isp.h           | 0
 37 files changed, 6 insertions(+), 6 deletions(-)
 rename drivers/media/platform/{ => ti}/omap3isp/Kconfig (100%)
 rename drivers/media/platform/{ => ti}/omap3isp/Makefile (100%)
 rename drivers/media/platform/{ => ti}/omap3isp/cfa_coef_table.h (100%)
 rename drivers/media/platform/{ => ti}/omap3isp/gamma_table.h (100%)
 rename drivers/media/platform/{ => ti}/omap3isp/isp.c (100%)
 rename drivers/media/platform/{ => ti}/omap3isp/isp.h (100%)
 rename drivers/media/platform/{ => ti}/omap3isp/ispccdc.c (100%)
 rename drivers/media/platform/{ => ti}/omap3isp/ispccdc.h (100%)
 rename drivers/media/platform/{ => ti}/omap3isp/ispccp2.c (100%)
 rename drivers/media/platform/{ => ti}/omap3isp/ispccp2.h (100%)
 rename drivers/media/platform/{ => ti}/omap3isp/ispcsi2.c (100%)
 rename drivers/media/platform/{ => ti}/omap3isp/ispcsi2.h (100%)
 rename drivers/media/platform/{ => ti}/omap3isp/ispcsiphy.c (100%)
 rename drivers/media/platform/{ => ti}/omap3isp/ispcsiphy.h (100%)
 rename drivers/media/platform/{ => ti}/omap3isp/isph3a.h (100%)
 rename drivers/media/platform/{ => ti}/omap3isp/isph3a_aewb.c (100%)
 rename drivers/media/platform/{ => ti}/omap3isp/isph3a_af.c (100%)
 rename drivers/media/platform/{ => ti}/omap3isp/isphist.c (100%)
 rename drivers/media/platform/{ => ti}/omap3isp/isphist.h (100%)
 rename drivers/media/platform/{ => ti}/omap3isp/isppreview.c (100%)
 rename drivers/media/platform/{ => ti}/omap3isp/isppreview.h (100%)
 rename drivers/media/platform/{ => ti}/omap3isp/ispreg.h (100%)
 rename drivers/media/platform/{ => ti}/omap3isp/ispresizer.c (100%)
 rename drivers/media/platform/{ => ti}/omap3isp/ispresizer.h (100%)
 rename drivers/media/platform/{ => ti}/omap3isp/ispstat.c (100%)
 rename drivers/media/platform/{ => ti}/omap3isp/ispstat.h (100%)
 rename drivers/media/platform/{ => ti}/omap3isp/ispvideo.c (100%)
 rename drivers/media/platform/{ => ti}/omap3isp/ispvideo.h (100%)
 rename drivers/media/platform/{ => ti}/omap3isp/luma_enhance_table.h (100%)
 rename drivers/media/platform/{ => ti}/omap3isp/noise_filter_table.h (100%)
 rename drivers/media/platform/{ => ti}/omap3isp/omap3isp.h (100%)
Documentation/admin-guide/media/omap3isp.rst +1 -1
index bc447bbec7ce..f32e7375a1a2 100644
@@ -17,7 +17,7 @@ Introduction
 ------------
 
 This file documents the Texas Instruments OMAP 3 Image Signal Processor (ISP)
-driver located under drivers/media/platform/omap3isp. The original driver was
+driver located under drivers/media/platform/ti/omap3isp. The original driver was
 written by Texas Instruments but since that it has been rewritten (twice) at
 Nokia.
 
Documentation/admin-guide/media/omap4_camera.rst +1 -1
index 24db4222d36d..2ada9b1e6897 100644
@@ -25,7 +25,7 @@ As of Revision AB, the ISS is described in detail in section 8.
 This driver is supporting **only** the CSI2-A/B interfaces for now.
 
 It makes use of the Media Controller framework [#f2]_, and inherited most of the
-code from OMAP3 ISP driver (found under drivers/media/platform/omap3isp/\*),
+code from OMAP3 ISP driver (found under drivers/media/platform/ti/omap3isp/\*),
 except that it doesn't need an IOMMU now for ISS buffers memory mapping.
 
 Supports usage of MMAP buffers only (for now).
Documentation/driver-api/media/v4l2-event.rst +1 -1
index 5b8254eba7da..52d4fbc5d819 100644
@@ -167,7 +167,7 @@ The first event type in the class is reserved for future use, so the first
 available event type is 'class base + 1'.
 
 An example on how the V4L2 events may be used can be found in the OMAP
-3 ISP driver (``drivers/media/platform/omap3isp``).
+3 ISP driver (``drivers/media/platform/ti/omap3isp``).
 
 A subdev can directly send an event to the :c:type:`v4l2_device` notify
 function with ``V4L2_DEVICE_NOTIFY_EVENT``. This allows the bridge to map
MAINTAINERS +1 -1
index 4674c70f8859..6c892fc9595b 100644
@@ -14094,7 +14094,7 @@ M:	Laurent Pinchart <[email protected]>
 L:	[email protected]
 S:	Maintained
 F:	Documentation/devicetree/bindings/media/ti,omap3isp.txt
-F:	drivers/media/platform/omap3isp/
+F:	drivers/media/platform/ti/omap3isp/
 F:	drivers/staging/media/omap4iss/
 
 OMAP MMC SUPPORT
drivers/media/platform/Kconfig +1 -1
index 9b1bccf9a621..4f95ea9b1221 100644
@@ -82,7 +82,6 @@ source "drivers/media/platform/mediatek/mtk-vpu/Kconfig"
 source "drivers/media/platform/nvidia/tegra-vde/Kconfig"
 source "drivers/media/platform/nxp/Kconfig"
 source "drivers/media/platform/omap/Kconfig"
-source "drivers/media/platform/omap3isp/Kconfig"
 source "drivers/media/platform/qcom/Kconfig"
 source "drivers/media/platform/renesas/Kconfig"
 source "drivers/media/platform/rockchip/Kconfig"
@@ -97,6 +96,7 @@ source "drivers/media/platform/stm/stm32/Kconfig"
 source "drivers/media/platform/ti-vpe/Kconfig"
 source "drivers/media/platform/ti/am437x/Kconfig"
 source "drivers/media/platform/ti/davinci/Kconfig"
+source "drivers/media/platform/ti/omap3isp/Kconfig"
 source "drivers/media/platform/via/Kconfig"
 source "drivers/media/platform/xilinx/Kconfig"
 
drivers/media/platform/Makefile +1 -1
index 70c87bd6468b..c2bab3ba9ef6 100644
@@ -22,7 +22,6 @@ obj-y += mediatek/mtk-vpu/
 obj-y += nvidia/tegra-vde/
 obj-y += nxp/
 obj-y += omap/
-obj-y += omap3isp/
 obj-y += qcom/camss/
 obj-y += qcom/venus/
 obj-y += renesas/
@@ -42,6 +41,7 @@ obj-y += stm/stm32/
 obj-y += ti-vpe/
 obj-y += ti/am437x/
 obj-y += ti/davinci/
+obj-y += ti/omap3isp/
 obj-y += via/
 obj-y += xilinx/
 
drivers/media/platform/ti/omap3isp/Kconfig renamed from drivers/media/platform/omap3isp/Kconfig +0 -0
similarity index 100%
rename from drivers/media/platform/omap3isp/Kconfig
rename to drivers/media/platform/ti/omap3isp/Kconfig
drivers/media/platform/ti/omap3isp/Makefile renamed from drivers/media/platform/omap3isp/Makefile +0 -0
similarity index 100%
rename from drivers/media/platform/omap3isp/Makefile
rename to drivers/media/platform/ti/omap3isp/Makefile
drivers/media/platform/ti/omap3isp/cfa_coef_table.h renamed from drivers/media/platform/omap3isp/cfa_coef_table.h +0 -0
similarity index 100%
rename from drivers/media/platform/omap3isp/cfa_coef_table.h
rename to drivers/media/platform/ti/omap3isp/cfa_coef_table.h
drivers/media/platform/ti/omap3isp/gamma_table.h renamed from drivers/media/platform/omap3isp/gamma_table.h +0 -0
similarity index 100%
rename from drivers/media/platform/omap3isp/gamma_table.h
rename to drivers/media/platform/ti/omap3isp/gamma_table.h
drivers/media/platform/ti/omap3isp/isp.c renamed from drivers/media/platform/omap3isp/isp.c +0 -0
similarity index 100%
rename from drivers/media/platform/omap3isp/isp.c
rename to drivers/media/platform/ti/omap3isp/isp.c
drivers/media/platform/ti/omap3isp/isp.h renamed from drivers/media/platform/omap3isp/isp.h +0 -0
similarity index 100%
rename from drivers/media/platform/omap3isp/isp.h
rename to drivers/media/platform/ti/omap3isp/isp.h
drivers/media/platform/ti/omap3isp/ispccdc.c renamed from drivers/media/platform/omap3isp/ispccdc.c +0 -0
similarity index 100%
rename from drivers/media/platform/omap3isp/ispccdc.c
rename to drivers/media/platform/ti/omap3isp/ispccdc.c
drivers/media/platform/ti/omap3isp/ispccdc.h renamed from drivers/media/platform/omap3isp/ispccdc.h +0 -0
similarity index 100%
rename from drivers/media/platform/omap3isp/ispccdc.h
rename to drivers/media/platform/ti/omap3isp/ispccdc.h
drivers/media/platform/ti/omap3isp/ispccp2.c renamed from drivers/media/platform/omap3isp/ispccp2.c +0 -0
similarity index 100%
rename from drivers/media/platform/omap3isp/ispccp2.c
rename to drivers/media/platform/ti/omap3isp/ispccp2.c
drivers/media/platform/ti/omap3isp/ispccp2.h renamed from drivers/media/platform/omap3isp/ispccp2.h +0 -0
similarity index 100%
rename from drivers/media/platform/omap3isp/ispccp2.h
rename to drivers/media/platform/ti/omap3isp/ispccp2.h
drivers/media/platform/ti/omap3isp/ispcsi2.c renamed from drivers/media/platform/omap3isp/ispcsi2.c +0 -0
similarity index 100%
rename from drivers/media/platform/omap3isp/ispcsi2.c
rename to drivers/media/platform/ti/omap3isp/ispcsi2.c
drivers/media/platform/ti/omap3isp/ispcsi2.h renamed from drivers/media/platform/omap3isp/ispcsi2.h +0 -0
similarity index 100%
rename from drivers/media/platform/omap3isp/ispcsi2.h
rename to drivers/media/platform/ti/omap3isp/ispcsi2.h
drivers/media/platform/ti/omap3isp/ispcsiphy.c renamed from drivers/media/platform/omap3isp/ispcsiphy.c +0 -0
similarity index 100%
rename from drivers/media/platform/omap3isp/ispcsiphy.c
rename to drivers/media/platform/ti/omap3isp/ispcsiphy.c
drivers/media/platform/ti/omap3isp/ispcsiphy.h renamed from drivers/media/platform/omap3isp/ispcsiphy.h +0 -0
similarity index 100%
rename from drivers/media/platform/omap3isp/ispcsiphy.h
rename to drivers/media/platform/ti/omap3isp/ispcsiphy.h
drivers/media/platform/ti/omap3isp/isph3a.h renamed from drivers/media/platform/omap3isp/isph3a.h +0 -0
similarity index 100%
rename from drivers/media/platform/omap3isp/isph3a.h
rename to drivers/media/platform/ti/omap3isp/isph3a.h
drivers/media/platform/ti/omap3isp/isph3a_aewb.c renamed from drivers/media/platform/omap3isp/isph3a_aewb.c +0 -0
similarity index 100%
rename from drivers/media/platform/omap3isp/isph3a_aewb.c
rename to drivers/media/platform/ti/omap3isp/isph3a_aewb.c
drivers/media/platform/ti/omap3isp/isph3a_af.c renamed from drivers/media/platform/omap3isp/isph3a_af.c +0 -0
similarity index 100%
rename from drivers/media/platform/omap3isp/isph3a_af.c
rename to drivers/media/platform/ti/omap3isp/isph3a_af.c
drivers/media/platform/ti/omap3isp/isphist.c renamed from drivers/media/platform/omap3isp/isphist.c +0 -0
similarity index 100%
rename from drivers/media/platform/omap3isp/isphist.c
rename to drivers/media/platform/ti/omap3isp/isphist.c
drivers/media/platform/ti/omap3isp/isphist.h renamed from drivers/media/platform/omap3isp/isphist.h +0 -0
similarity index 100%
rename from drivers/media/platform/omap3isp/isphist.h
rename to drivers/media/platform/ti/omap3isp/isphist.h
drivers/media/platform/ti/omap3isp/isppreview.c renamed from drivers/media/platform/omap3isp/isppreview.c +0 -0
similarity index 100%
rename from drivers/media/platform/omap3isp/isppreview.c
rename to drivers/media/platform/ti/omap3isp/isppreview.c
drivers/media/platform/ti/omap3isp/isppreview.h renamed from drivers/media/platform/omap3isp/isppreview.h +0 -0
similarity index 100%
rename from drivers/media/platform/omap3isp/isppreview.h
rename to drivers/media/platform/ti/omap3isp/isppreview.h
drivers/media/platform/ti/omap3isp/ispreg.h renamed from drivers/media/platform/omap3isp/ispreg.h +0 -0
similarity index 100%
rename from drivers/media/platform/omap3isp/ispreg.h
rename to drivers/media/platform/ti/omap3isp/ispreg.h
drivers/media/platform/ti/omap3isp/ispresizer.c renamed from drivers/media/platform/omap3isp/ispresizer.c +0 -0
similarity index 100%
rename from drivers/media/platform/omap3isp/ispresizer.c
rename to drivers/media/platform/ti/omap3isp/ispresizer.c
drivers/media/platform/ti/omap3isp/ispresizer.h renamed from drivers/media/platform/omap3isp/ispresizer.h +0 -0
similarity index 100%
rename from drivers/media/platform/omap3isp/ispresizer.h
rename to drivers/media/platform/ti/omap3isp/ispresizer.h
drivers/media/platform/ti/omap3isp/ispstat.c renamed from drivers/media/platform/omap3isp/ispstat.c +0 -0
similarity index 100%
rename from drivers/media/platform/omap3isp/ispstat.c
rename to drivers/media/platform/ti/omap3isp/ispstat.c
drivers/media/platform/ti/omap3isp/ispstat.h renamed from drivers/media/platform/omap3isp/ispstat.h +0 -0
similarity index 100%
rename from drivers/media/platform/omap3isp/ispstat.h
rename to drivers/media/platform/ti/omap3isp/ispstat.h
drivers/media/platform/ti/omap3isp/ispvideo.c renamed from drivers/media/platform/omap3isp/ispvideo.c +0 -0
similarity index 100%
rename from drivers/media/platform/omap3isp/ispvideo.c
rename to drivers/media/platform/ti/omap3isp/ispvideo.c
drivers/media/platform/ti/omap3isp/ispvideo.h renamed from drivers/media/platform/omap3isp/ispvideo.h +0 -0
similarity index 100%
rename from drivers/media/platform/omap3isp/ispvideo.h
rename to drivers/media/platform/ti/omap3isp/ispvideo.h
drivers/media/platform/ti/omap3isp/luma_enhance_table.h renamed from drivers/media/platform/omap3isp/luma_enhance_table.h +0 -0
similarity index 100%
rename from drivers/media/platform/omap3isp/luma_enhance_table.h
rename to drivers/media/platform/ti/omap3isp/luma_enhance_table.h
drivers/media/platform/ti/omap3isp/noise_filter_table.h renamed from drivers/media/platform/omap3isp/noise_filter_table.h +0 -0
similarity index 100%
rename from drivers/media/platform/omap3isp/noise_filter_table.h
rename to drivers/media/platform/ti/omap3isp/noise_filter_table.h
drivers/media/platform/ti/omap3isp/omap3isp.h renamed from drivers/media/platform/omap3isp/omap3isp.h +0 -0
similarity index 100%
rename from drivers/media/platform/omap3isp/omap3isp.h
rename to drivers/media/platform/ti/omap3isp/omap3isp.h
Signature · 1 line
2.35.1
author maintainer
#71 lore raw

PATCH v2 60/67 media: platform: rename omap/ to ti/omap/

In reply to Mauro Carvalho Chehab

As the end goal is to have platform drivers split by vendor, rename omap/ to ti/omap/.

---

To avoid mailbombing on a large number of people, only mailing lists were C/C on the cover. See [PATCH v2 00/67] at: https://lore.kernel.org/all/[email protected]/

 drivers/media/platform/Kconfig                        | 2 +-
 drivers/media/platform/Makefile                       | 2 +-
 drivers/media/platform/{ => ti}/omap/Kconfig          | 0
 drivers/media/platform/{ => ti}/omap/Makefile         | 0
 drivers/media/platform/{ => ti}/omap/omap_vout.c      | 0
 drivers/media/platform/{ => ti}/omap/omap_vout_vrfb.c | 0
 drivers/media/platform/{ => ti}/omap/omap_vout_vrfb.h | 0
 drivers/media/platform/{ => ti}/omap/omap_voutdef.h   | 0
 drivers/media/platform/{ => ti}/omap/omap_voutlib.c   | 0
 drivers/media/platform/{ => ti}/omap/omap_voutlib.h   | 0
 10 files changed, 2 insertions(+), 2 deletions(-)
 rename drivers/media/platform/{ => ti}/omap/Kconfig (100%)
 rename drivers/media/platform/{ => ti}/omap/Makefile (100%)
 rename drivers/media/platform/{ => ti}/omap/omap_vout.c (100%)
 rename drivers/media/platform/{ => ti}/omap/omap_vout_vrfb.c (100%)
 rename drivers/media/platform/{ => ti}/omap/omap_vout_vrfb.h (100%)
 rename drivers/media/platform/{ => ti}/omap/omap_voutdef.h (100%)
 rename drivers/media/platform/{ => ti}/omap/omap_voutlib.c (100%)
 rename drivers/media/platform/{ => ti}/omap/omap_voutlib.h (100%)
drivers/media/platform/Kconfig +1 -1
index 4f95ea9b1221..43a654e87613 100644
@@ -81,7 +81,6 @@ source "drivers/media/platform/mediatek/mtk-vcodec/Kconfig"
 source "drivers/media/platform/mediatek/mtk-vpu/Kconfig"
 source "drivers/media/platform/nvidia/tegra-vde/Kconfig"
 source "drivers/media/platform/nxp/Kconfig"
-source "drivers/media/platform/omap/Kconfig"
 source "drivers/media/platform/qcom/Kconfig"
 source "drivers/media/platform/renesas/Kconfig"
 source "drivers/media/platform/rockchip/Kconfig"
@@ -96,6 +95,7 @@ source "drivers/media/platform/stm/stm32/Kconfig"
 source "drivers/media/platform/ti-vpe/Kconfig"
 source "drivers/media/platform/ti/am437x/Kconfig"
 source "drivers/media/platform/ti/davinci/Kconfig"
+source "drivers/media/platform/ti/omap/Kconfig"
 source "drivers/media/platform/ti/omap3isp/Kconfig"
 source "drivers/media/platform/via/Kconfig"
 source "drivers/media/platform/xilinx/Kconfig"
drivers/media/platform/Makefile +1 -1
index c2bab3ba9ef6..39fa6aaad13b 100644
@@ -21,7 +21,6 @@ obj-y += mediatek/mtk-vcodec/
 obj-y += mediatek/mtk-vpu/
 obj-y += nvidia/tegra-vde/
 obj-y += nxp/
-obj-y += omap/
 obj-y += qcom/camss/
 obj-y += qcom/venus/
 obj-y += renesas/
@@ -41,6 +40,7 @@ obj-y += stm/stm32/
 obj-y += ti-vpe/
 obj-y += ti/am437x/
 obj-y += ti/davinci/
+obj-y += ti/omap/
 obj-y += ti/omap3isp/
 obj-y += via/
 obj-y += xilinx/
drivers/media/platform/ti/omap/Kconfig renamed from drivers/media/platform/omap/Kconfig +0 -0
similarity index 100%
rename from drivers/media/platform/omap/Kconfig
rename to drivers/media/platform/ti/omap/Kconfig
drivers/media/platform/ti/omap/Makefile renamed from drivers/media/platform/omap/Makefile +0 -0
similarity index 100%
rename from drivers/media/platform/omap/Makefile
rename to drivers/media/platform/ti/omap/Makefile
drivers/media/platform/ti/omap/omap_vout.c renamed from drivers/media/platform/omap/omap_vout.c +0 -0
similarity index 100%
rename from drivers/media/platform/omap/omap_vout.c
rename to drivers/media/platform/ti/omap/omap_vout.c
drivers/media/platform/ti/omap/omap_vout_vrfb.c renamed from drivers/media/platform/omap/omap_vout_vrfb.c +0 -0
similarity index 100%
rename from drivers/media/platform/omap/omap_vout_vrfb.c
rename to drivers/media/platform/ti/omap/omap_vout_vrfb.c
drivers/media/platform/ti/omap/omap_vout_vrfb.h renamed from drivers/media/platform/omap/omap_vout_vrfb.h +0 -0
similarity index 100%
rename from drivers/media/platform/omap/omap_vout_vrfb.h
rename to drivers/media/platform/ti/omap/omap_vout_vrfb.h
drivers/media/platform/ti/omap/omap_voutdef.h renamed from drivers/media/platform/omap/omap_voutdef.h +0 -0
similarity index 100%
rename from drivers/media/platform/omap/omap_voutdef.h
rename to drivers/media/platform/ti/omap/omap_voutdef.h
drivers/media/platform/ti/omap/omap_voutlib.c renamed from drivers/media/platform/omap/omap_voutlib.c +0 -0
similarity index 100%
rename from drivers/media/platform/omap/omap_voutlib.c
rename to drivers/media/platform/ti/omap/omap_voutlib.c
drivers/media/platform/ti/omap/omap_voutlib.h renamed from drivers/media/platform/omap/omap_voutlib.h +0 -0
similarity index 100%
rename from drivers/media/platform/omap/omap_voutlib.h
rename to drivers/media/platform/ti/omap/omap_voutlib.h
Signature · 1 line
2.35.1
maintainer
#49 lore raw

Re: [PATCH v2 47/67] media: platform: rename sunxi/ to allwinner/

In reply to Mauro Carvalho Chehab

Dne ponedeljek, 14. marec 2022 ob 17:34:42 CET je Mauro Carvalho Chehab napisal(a):

Quoted 4 lines

As the end goal is to have platform drivers split by vendor, rename sunxi/ to allwinner/.

I would rather not do that. Everything related to Allwinner is called sunxi, albeit there are a few outliers. This is similar to Amlogic/meson situation.

Best regards,
Jernej

Reviewed-by on v2 60/67
#72 lore raw

Re: [PATCH v2 60/67] media: platform: rename omap/ to ti/omap/

In reply to Mauro Carvalho Chehab

Hi Mauro,

Quoted 2 lines · Mauro Carvalho Chehab

As the end goal is to have platform drivers split by vendor, rename omap/ to ti/omap/.

Quoted 99 lines

---

To avoid mailbombing on a large number of people, only mailing lists were C/C on the cover. See [PATCH v2 00/67] at: https://lore.kernel.org/all/[email protected]/

 drivers/media/platform/Kconfig                        | 2 +-
 drivers/media/platform/Makefile                       | 2 +-
 drivers/media/platform/{ => ti}/omap/Kconfig          | 0
 drivers/media/platform/{ => ti}/omap/Makefile         | 0
 drivers/media/platform/{ => ti}/omap/omap_vout.c      | 0
 drivers/media/platform/{ => ti}/omap/omap_vout_vrfb.c | 0
 drivers/media/platform/{ => ti}/omap/omap_vout_vrfb.h | 0
 drivers/media/platform/{ => ti}/omap/omap_voutdef.h   | 0
 drivers/media/platform/{ => ti}/omap/omap_voutlib.c   | 0
 drivers/media/platform/{ => ti}/omap/omap_voutlib.h   | 0
 10 files changed, 2 insertions(+), 2 deletions(-)
 rename drivers/media/platform/{ => ti}/omap/Kconfig (100%)
 rename drivers/media/platform/{ => ti}/omap/Makefile (100%)
 rename drivers/media/platform/{ => ti}/omap/omap_vout.c (100%)
 rename drivers/media/platform/{ => ti}/omap/omap_vout_vrfb.c (100%)
 rename drivers/media/platform/{ => ti}/omap/omap_vout_vrfb.h (100%)
 rename drivers/media/platform/{ => ti}/omap/omap_voutdef.h (100%)
 rename drivers/media/platform/{ => ti}/omap/omap_voutlib.c (100%)
 rename drivers/media/platform/{ => ti}/omap/omap_voutlib.h (100%)
drivers/media/platform/Kconfig +1 -1
index 4f95ea9b1221..43a654e87613 100644
@@ -81,7 +81,6 @@ source "drivers/media/platform/mediatek/mtk-vcodec/Kconfig"
 source "drivers/media/platform/mediatek/mtk-vpu/Kconfig"
 source "drivers/media/platform/nvidia/tegra-vde/Kconfig"
 source "drivers/media/platform/nxp/Kconfig"
-source "drivers/media/platform/omap/Kconfig"
 source "drivers/media/platform/qcom/Kconfig"
 source "drivers/media/platform/renesas/Kconfig"
 source "drivers/media/platform/rockchip/Kconfig"
@@ -96,6 +95,7 @@ source "drivers/media/platform/stm/stm32/Kconfig"
 source "drivers/media/platform/ti-vpe/Kconfig"
 source "drivers/media/platform/ti/am437x/Kconfig"
 source "drivers/media/platform/ti/davinci/Kconfig"
+source "drivers/media/platform/ti/omap/Kconfig"
 source "drivers/media/platform/ti/omap3isp/Kconfig"
 source "drivers/media/platform/via/Kconfig"
 source "drivers/media/platform/xilinx/Kconfig"
drivers/media/platform/Makefile +1 -1
index c2bab3ba9ef6..39fa6aaad13b 100644
@@ -21,7 +21,6 @@ obj-y += mediatek/mtk-vcodec/
 obj-y += mediatek/mtk-vpu/
 obj-y += nvidia/tegra-vde/
 obj-y += nxp/
-obj-y += omap/
 obj-y += qcom/camss/
 obj-y += qcom/venus/
 obj-y += renesas/
@@ -41,6 +40,7 @@ obj-y += stm/stm32/
 obj-y += ti-vpe/
 obj-y += ti/am437x/
 obj-y += ti/davinci/
+obj-y += ti/omap/
 obj-y += ti/omap3isp/
 obj-y += via/
 obj-y += xilinx/
drivers/media/platform/ti/omap/Kconfig renamed from drivers/media/platform/omap/Kconfig +0 -0
similarity index 100%
rename from drivers/media/platform/omap/Kconfig
rename to drivers/media/platform/ti/omap/Kconfig
drivers/media/platform/ti/omap/Makefile renamed from drivers/media/platform/omap/Makefile +0 -0
similarity index 100%
rename from drivers/media/platform/omap/Makefile
rename to drivers/media/platform/ti/omap/Makefile
drivers/media/platform/ti/omap/omap_vout.c renamed from drivers/media/platform/omap/omap_vout.c +0 -0
similarity index 100%
rename from drivers/media/platform/omap/omap_vout.c
rename to drivers/media/platform/ti/omap/omap_vout.c
drivers/media/platform/ti/omap/omap_vout_vrfb.c renamed from drivers/media/platform/omap/omap_vout_vrfb.c +0 -0
similarity index 100%
rename from drivers/media/platform/omap/omap_vout_vrfb.c
rename to drivers/media/platform/ti/omap/omap_vout_vrfb.c
drivers/media/platform/ti/omap/omap_vout_vrfb.h renamed from drivers/media/platform/omap/omap_vout_vrfb.h +0 -0
similarity index 100%
rename from drivers/media/platform/omap/omap_vout_vrfb.h
rename to drivers/media/platform/ti/omap/omap_vout_vrfb.h
drivers/media/platform/ti/omap/omap_voutdef.h renamed from drivers/media/platform/omap/omap_voutdef.h +0 -0
similarity index 100%
rename from drivers/media/platform/omap/omap_voutdef.h
rename to drivers/media/platform/ti/omap/omap_voutdef.h
drivers/media/platform/ti/omap/omap_voutlib.c renamed from drivers/media/platform/omap/omap_voutlib.c +0 -0
similarity index 100%
rename from drivers/media/platform/omap/omap_voutlib.c
rename to drivers/media/platform/ti/omap/omap_voutlib.c
drivers/media/platform/ti/omap/omap_voutlib.h renamed from drivers/media/platform/omap/omap_voutlib.h +0 -0
similarity index 100%
rename from drivers/media/platform/omap/omap_voutlib.h
rename to drivers/media/platform/ti/omap/omap_voutlib.h
Signature · 1 line
Péter
author maintainer
#50 lore raw

Re: [PATCH v2 47/67] media: platform: rename sunxi/ to allwinner/

In reply to Jernej Škrabec

Em Mon, 14 Mar 2022 18:22:20 +0100
Jernej Škrabec <[email protected]> escreveu:

Quoted 9 lines

Dne ponedeljek, 14. marec 2022 ob 17:34:42 CET je Mauro Carvalho Chehab napisal(a):

Quoted 4 lines

As the end goal is to have platform drivers split by vendor, rename sunxi/ to allwinner/.

I would rather not do that. Everything related to Allwinner is called sunxi, albeit there are a few outliers. This is similar to Amlogic/meson situation.

The rationale of having one directory per manufacturer is that, if drivers for newer platforms with different names from the same manufacturers are added, those will still fit under allwinner/ and amlogic/.

The Kconfig names for sunxi and meson didn't change, nor the driver's name. Also, the directories under allwinner preserve sun<x>i name on them:

drivers/media/platform/allwinner/
├── sun4i-csi
├── sun6i-csi
├── sun8i-di
└── sun8i-rotate

and so the directory under amlogic/:

drivers/media/platform/amlogic/
└── meson-ge2d

Now, if Allinner decides to release a new platforms named after another star, let's say, "Vega" and "Rigel", it would be just a matter of adding "vega/" and "rigel/" directories under allwinner. No need to touch media/platform/Kconfig and media/platform/Makefile. Everything will happen on much more smaller vendor-specific Kconfig/Makefile.

See for instance, TI. We had initially a single driver, and everywhere it was called "omap", which was had gained different versions (omap2, omap3, ...). Then, TI decided to use other names for newer IP (davinci, am437x), and now the current development is at cal and vpe.

If we had placed a ti/ directory by the time omap were added (and the same for the other vendors), we would have avoided the need of this reorg.

Thanks,
Mauro

maintainer
#51 lore raw

Re: [PATCH v2 47/67] media: platform: rename sunxi/ to allwinner/

Hi Mauro,

Quoted 27 lines · Mauro Carvalho Chehab

Em Mon, 14 Mar 2022 18:22:20 +0100 Jernej Škrabec escreveu:

Quoted 9 lines

Dne ponedeljek, 14. marec 2022 ob 17:34:42 CET je Mauro Carvalho Chehab napisal(a):

Quoted 4 lines

As the end goal is to have platform drivers split by vendor, rename sunxi/ to allwinner/.

I would rather not do that. Everything related to Allwinner is called sunxi, albeit there are a few outliers. This is similar to Amlogic/meson situation.

The rationale of having one directory per manufacturer is that, if drivers for newer platforms with different names from the same manufacturers are added, those will still fit under allwinner/ and amlogic/.

The Kconfig names for sunxi and meson didn't change, nor the driver's name. Also, the directories under allwinner preserve sun<x>i name on them:

drivers/media/platform/allwinner/
├── sun4i-csi
├── sun6i-csi
├── sun8i-di
└── sun8i-rotate

and so the directory under amlogic/:

Quoted 8 lines

drivers/media/platform/amlogic/
└── meson-ge2d

Now, if Allinner decides to release a new platforms named after another star, let's say, "Vega" and "Rigel", it would be just a matter of adding "vega/" and "rigel/" directories under allwinner. No need to touch media/platform/Kconfig and media/platform/Makefile. Everything will happen on much more smaller vendor-specific Kconfig/Makefile.

But the day Allwinner changes its name to Noloser, we'll have a similar problem. Thnk about Freescale vs. NXP, or Altera bought by Intel. No naming scheme is totally future-proof. If the accepted standard through the kernel is to use sunxi to refer to Allwinner SoCs, I don't think it's a bit idea to go with that.

Quoted 8 lines

See for instance, TI. We had initially a single driver, and everywhere it was called "omap", which was had gained different versions (omap2, omap3, ...). Then, TI decided to use other names for newer IP (davinci, am437x), and now the current development is at cal and vpe.

If we had placed a ti/ directory by the time omap were added (and the same for the other vendors), we would have avoided the need of this reorg.

Signature · 3 lines
Regards,

Laurent Pinchart
author maintainer
#52 lore raw

Re: [PATCH v2 47/67] media: platform: rename sunxi/ to allwinner/

Em Tue, 15 Mar 2022 08:54:25 +0200
Laurent Pinchart <[email protected]> escreveu:

Quoted 33 lines

Hi Mauro,

Quoted 30 lines · Mauro Carvalho Chehab

Em Mon, 14 Mar 2022 18:22:20 +0100 Jernej Škrabec escreveu:

Quoted 9 lines

Dne ponedeljek, 14. marec 2022 ob 17:34:42 CET je Mauro Carvalho Chehab napisal(a):

Quoted 4 lines

As the end goal is to have platform drivers split by vendor, rename sunxi/ to allwinner/.

I would rather not do that. Everything related to Allwinner is called sunxi, albeit there are a few outliers. This is similar to Amlogic/meson situation.

The rationale of having one directory per manufacturer is that, if drivers for newer platforms with different names from the same manufacturers are added, those will still fit under allwinner/ and amlogic/.

The Kconfig names for sunxi and meson didn't change, nor the driver's name. Also, the directories under allwinner preserve sun<x>i name on them:

drivers/media/platform/allwinner/
├── sun4i-csi
├── sun6i-csi
├── sun8i-di
└── sun8i-rotate

and so the directory under amlogic/:

drivers/media/platform/amlogic/
└── meson-ge2d

Quoted 8 lines
Quoted 5 lines

Now, if Allinner decides to release a new platforms named after another star, let's say, "Vega" and "Rigel", it would be just a matter of adding "vega/" and "rigel/" directories under allwinner. No need to touch media/platform/Kconfig and media/platform/Makefile. Everything will happen on much more smaller vendor-specific Kconfig/Makefile.

But the day Allwinner changes its name to Noloser, we'll have a similar problem.

Not really. It will still be a single directory per vendor (whatever name it is).

Quoted 1 line

Thnk about Freescale vs. NXP, or Altera bought by Intel.

Yeah, when some drivers move from one vendor to another one that already exists there, we should probably move the directories, in order to keep things well organized.

The worse case scenario is really if, let's say, TI decides to sell their omap architecture to NXP, keeping the rest. On such case, the best would be to move platform/ti/omap* to the directory of its newer owner.

That's said, when things like that happen, there are usually a change at MAINTAINERS, as e-mails, mailing lists and contact people will likely change. So, this will very likely generate patches anyway.

Quoted 4 lines

No
naming scheme is totally future-proof. If the accepted standard through the kernel is to use sunxi to refer to Allwinner SoCs, I don't think it's a bit idea to go with that.

I'm not too concerned about the name here, but rather about the process. Needing to do reorg like this is painful, as it causes all pending work to fail merging against upstream, requiring rebases. So, we should avoid needing to re-do it by trying our best to avoid the need of another global change like that in the future.

By organizing entries per vendor, while we may need to do puntual per-vendor adjustments when they rename and change IP with other vendors, the global platform Kconfig/Make will contain a single entry per vendor. I can't foresee any need to change this in the future, if we take care of keeping the entries there properly sorted.

With regards to naming the per-vendor directory, while I do prefer to have the directories named after the vendor, and not after a vendor's nick name, It should also be ok to use a vendor's nick name, provided that such name is meant to be used by all their current and future IP.

Not sure if "sunxi" is actually a vendor's nick name. It sounds much likely that it is, instead, a brand name that covers their current media-related SoC.

Can someone from the vendor shed a light on it?

Thanks,
Mauro

maintainer
#53 lore raw

Re: [PATCH v2 47/67] media: platform: rename sunxi/ to allwinner/

Quoted 45 lines · Mauro Carvalho Chehab

Em Tue, 15 Mar 2022 08:54:25 +0200
Laurent Pinchart <[email protected]> escreveu:

Quoted 33 lines

Hi Mauro,

Quoted 30 lines · Mauro Carvalho Chehab

Em Mon, 14 Mar 2022 18:22:20 +0100 Jernej Škrabec escreveu:

Quoted 9 lines

Dne ponedeljek, 14. marec 2022 ob 17:34:42 CET je Mauro Carvalho Chehab napisal(a):

Quoted 4 lines

As the end goal is to have platform drivers split by vendor, rename sunxi/ to allwinner/.

I would rather not do that. Everything related to Allwinner is called sunxi, albeit there are a few outliers. This is similar to Amlogic/meson situation.

The rationale of having one directory per manufacturer is that, if drivers for newer platforms with different names from the same manufacturers are added, those will still fit under allwinner/ and amlogic/.

The Kconfig names for sunxi and meson didn't change, nor the driver's name. Also, the directories under allwinner preserve sun<x>i name on them:

drivers/media/platform/allwinner/
├── sun4i-csi
├── sun6i-csi
├── sun8i-di
└── sun8i-rotate

and so the directory under amlogic/:

drivers/media/platform/amlogic/
└── meson-ge2d

Quoted 8 lines
Quoted 5 lines

Now, if Allinner decides to release a new platforms named after another star, let's say, "Vega" and "Rigel", it would be just a matter of adding "vega/" and "rigel/" directories under allwinner. No need to touch media/platform/Kconfig and media/platform/Makefile. Everything will happen on much more smaller vendor-specific Kconfig/Makefile.

But the day Allwinner changes its name to Noloser, we'll have a similar problem.

Quoted 8 lines

Not really. It will still be a single directory per vendor (whatever name it is).

Quoted 1 line

Thnk about Freescale vs. NXP, or Altera bought by Intel.

Yeah, when some drivers move from one vendor to another one that already exists there, we should probably move the directories, in order to keep things well organized.

I'm not sure we should. We still have arch/arm64/boot/dts/freescale/ for instance. We can answer that question later though, when confronted with the situation.

Quoted 13 lines

The worse case scenario is really if, let's say, TI decides to sell their omap architecture to NXP, keeping the rest. On such case, the best would be to move platform/ti/omap* to the directory of its newer owner.

That's said, when things like that happen, there are usually a change at MAINTAINERS, as e-mails, mailing lists and contact people will likely change. So, this will very likely generate patches anyway.

Quoted 4 lines

No
naming scheme is totally future-proof. If the accepted standard through the kernel is to use sunxi to refer to Allwinner SoCs, I don't think it's a bit idea to go with that.

Quoted 5 lines

I'm not too concerned about the name here, but rather about the process. Needing to do reorg like this is painful, as it causes all pending work to fail merging against upstream, requiring rebases. So, we should avoid needing to re-do it by trying our best to avoid the need of another global change like that in the future.

Most of the pain we'll go through in the immediate future comes from the fact that we never really cared about this. I think renames (of vendors or product lines) will be infrequent enough that picking sunxi for Allwinner drivers wouldn't be an issue.

There's a similar think with Renesas, which had an SH product line and then moved to ARM, creating R-Mobile and R-Car (among other product liens). That's why we still have drivers/dma/sh/ for Renesas DMA drivers.

Quoted 11 lines

By organizing entries per vendor, while we may need to do puntual per-vendor adjustments when they rename and change IP with other vendors, the global platform Kconfig/Make will contain a single entry per vendor. I can't foresee any need to change this in the future, if we take care of keeping the entries there properly sorted.

With regards to naming the per-vendor directory, while I do prefer to have the directories named after the vendor, and not after a vendor's nick name, It should also be ok to use a vendor's nick name, provided that such name is meant to be used by all their current and future IP.

Quoted 5 lines

Not sure if "sunxi" is actually a vendor's nick name. It sounds much likely that it is, instead, a brand name that covers their current media-related SoC.

Can someone from the vendor shed a light on it?

Maybe we can let the Allwinner upstream community tell us what name to pick ? I'm sure they know better than us :-)

Signature · 3 lines
Regards,

Laurent Pinchart
maintainer Acked-by on v2 37/67
#38 lore raw

Re: [PATCH v2 37/67] media: platform: Kconfig: sort entries

In reply to Mauro Carvalho Chehab

Dne ponedeljek, 14. marec 2022 ob 17:34:32 CET je Mauro Carvalho Chehab napisal(a):

Quoted 6 lines

Now that each non-generic driver has their own directory, sort the entries.

---

For sunxi:

Best regards,
Jernej

Quoted 2 lines

To avoid mailbombing on a large number of people, only mailing lists were C/

C on the cover.

Quoted 1 line

See [PATCH v2 00/67] at: https://lore.kernel.org/all/cover.

[email protected]/

Quoted 140 lines
 drivers/media/platform/Kconfig | 98 +++++++++++++++-------------------
 1 file changed, 43 insertions(+), 55 deletions(-)
drivers/media/platform/Kconfig +43 -55
index d5aedc6b5ca3..b7c60969c974 100644
@@ -29,84 +29,72 @@ config V4L_MEM2MEM_DRIVERS
 	  to capture and output drivers, which use memory buffers for just
 	  one of those.
 
+# Ancillary drivers
+
+config VIDEO_MEM2MEM_DEINTERLACE
+	tristate "Deinterlace support"
+	depends on V4L_MEM2MEM_DRIVERS
+	depends on VIDEO_DEV && VIDEO_V4L2
+	depends on HAS_DMA
+	select VIDEOBUF2_DMA_CONTIG
+	select V4L2_MEM2MEM_DEV
+	help
+	    Generic deinterlacing V4L2 driver.
+
+config VIDEO_MUX
+	tristate "Video Multiplexer"
+	depends on V4L_PLATFORM_DRIVERS
+	select MULTIPLEXER
+	depends on VIDEO_V4L2 && OF
+	select MEDIA_CONTROLLER
+	select VIDEO_V4L2_SUBDEV_API
+	select REGMAP
+	select V4L2_FWNODE
+	help
+	  This driver provides support for N:1 video bus multiplexers.
+
+# Platform drivers - Please keep it alphabetically sorted
+
+# TODO: create per-manufacturer directories
+
 source "drivers/media/platform/allegro-dvt/Kconfig"
-source "drivers/media/platform/nxp/Kconfig"
-
-source "drivers/media/platform/renesas/Kconfig"
-
-# V4L platform drivers
-
-source "drivers/media/platform/marvell-ccic/Kconfig"
-
-source "drivers/media/platform/via/Kconfig"
-
+source "drivers/media/platform/am437x/Kconfig"
 source "drivers/media/platform/amphion/Kconfig"
+source "drivers/media/platform/aspeed/Kconfig"
+source "drivers/media/platform/atmel/Kconfig"
 source "drivers/media/platform/cadence/Kconfig"
-
 source "drivers/media/platform/coda/Kconfig"
 source "drivers/media/platform/davinci/Kconfig"
-
 source "drivers/media/platform/exynos-gsc/Kconfig"
+source "drivers/media/platform/exynos4-is/Kconfig"
+source "drivers/media/platform/intel/Kconfig"
+source "drivers/media/platform/marvell-ccic/Kconfig"
 source "drivers/media/platform/meson/ge2d/Kconfig"
 source "drivers/media/platform/mtk-jpeg/Kconfig"
 source "drivers/media/platform/mtk-mdp/Kconfig"
 source "drivers/media/platform/mtk-vcodec/Kconfig"
 source "drivers/media/platform/mtk-vpu/Kconfig"
-source "drivers/media/platform/omap3isp/Kconfig"
+source "drivers/media/platform/nxp/Kconfig"
 source "drivers/media/platform/omap/Kconfig"
+source "drivers/media/platform/omap3isp/Kconfig"
 source "drivers/media/platform/qcom/camss/Kconfig"
 source "drivers/media/platform/qcom/venus/Kconfig"
-
-source "drivers/media/platform/aspeed/Kconfig"
+source "drivers/media/platform/renesas/Kconfig"
 source "drivers/media/platform/rockchip/rga/Kconfig"
 source "drivers/media/platform/rockchip/rkisp1/Kconfig"
 source "drivers/media/platform/s3c-camif/Kconfig"
 source "drivers/media/platform/s5p-g2d/Kconfig"
 source "drivers/media/platform/s5p-jpeg/Kconfig"
+source "drivers/media/platform/s5p-mfc/Kconfig"
+source "drivers/media/platform/sti/bdisp/Kconfig"
+source "drivers/media/platform/sti/c8sectpfe/Kconfig"
+source "drivers/media/platform/sti/delta/Kconfig"
 source "drivers/media/platform/sti/hva/Kconfig"
 source "drivers/media/platform/stm32/Kconfig"
+source "drivers/media/platform/sunxi/Kconfig"
 source "drivers/media/platform/sunxi/sun8i-di/Kconfig"
 source "drivers/media/platform/sunxi/sun8i-rotate/Kconfig"
 source "drivers/media/platform/tegra/vde/Kconfig"
 source "drivers/media/platform/ti-vpe/Kconfig"
-
-config VIDEO_MUX
-	tristate "Video Multiplexer"
-	depends on V4L_PLATFORM_DRIVERS
-	select MULTIPLEXER
-	depends on VIDEO_V4L2 && OF
-	select MEDIA_CONTROLLER
-	select VIDEO_V4L2_SUBDEV_API
-	select REGMAP
-	select V4L2_FWNODE
-	help
-	  This driver provides support for N:1 video bus multiplexers.
-
-source "drivers/media/platform/intel/Kconfig"
-
-source "drivers/media/platform/exynos4-is/Kconfig"
-source "drivers/media/platform/am437x/Kconfig"
+source "drivers/media/platform/via/Kconfig"
 source "drivers/media/platform/xilinx/Kconfig"
-source "drivers/media/platform/atmel/Kconfig"
-source "drivers/media/platform/sunxi/Kconfig"
-
-# Mem2mem drivers
-
-config VIDEO_MEM2MEM_DEINTERLACE
-	tristate "Deinterlace support"
-	depends on V4L_MEM2MEM_DRIVERS
-	depends on VIDEO_DEV && VIDEO_V4L2
-	depends on HAS_DMA
-	select VIDEOBUF2_DMA_CONTIG
-	select V4L2_MEM2MEM_DEV
-	help
-	    Generic deinterlacing V4L2 driver.
-
-source "drivers/media/platform/s5p-mfc/Kconfig"
-
-source "drivers/media/platform/sti/bdisp/Kconfig"
-
-source "drivers/media/platform/sti/delta/Kconfig"
-
-# DVB platform drivers
-source "drivers/media/platform/sti/c8sectpfe/Kconfig"
Signature · 1 line
2.35.1
maintainer
#54 lore raw

Re: Re: [PATCH v2 47/67] media: platform: rename sunxi/ to allwinner/

In reply to Laurent Pinchart

Dne torek, 15. marec 2022 ob 09:35:05 CET je Laurent Pinchart napisal(a):

Quoted 10 lines · Mauro Carvalho Chehab
Quoted 9 lines

Em Tue, 15 Mar 2022 08:54:25 +0200
Laurent Pinchart <[email protected]> escreveu:

Quoted 6 lines

Hi Mauro,

Quoted 3 lines · Mauro Carvalho Chehab

Em Mon, 14 Mar 2022 18:22:20 +0100 Jernej Škrabec escreveu:

Quoted 1 line

Dne ponedeljek, 14. marec 2022 ob 17:34:42 CET je Mauro Carvalho

Chehab

Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines

napisal(a):

Quoted 4 lines

As the end goal is to have platform drivers split by vendor, rename sunxi/ to allwinner/.

I would rather not do that. Everything related to Allwinner is

called sunxi,

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

albeit there are a few outliers. This is similar to Amlogic/meson

situation.

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

The rationale of having one directory per manufacturer is that, if

drivers

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

for newer platforms with different names from the same manufacturers

are

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

added, those will still fit under allwinner/ and amlogic/.

The Kconfig names for sunxi and meson didn't change, nor the driver's

name.

Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines

Also, the directories under allwinner preserve sun<x>i name on them:

drivers/media/platform/allwinner/
├── sun4i-csi
├── sun6i-csi
├── sun8i-di
└── sun8i-rotate

Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines

and so the directory under amlogic/:

drivers/media/platform/amlogic/
└── meson-ge2d

Now, if Allinner decides to release a new platforms named after

another star,

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

let's say, "Vega" and "Rigel", it would be just a matter of adding "vega/" and "rigel/" directories under allwinner. No need to touch media/platform/Kconfig and media/platform/Makefile. Everything will

happen

Quoted 42 lines
Quoted 5 lines
Quoted 4 lines
Quoted 1 line

on much more smaller vendor-specific Kconfig/Makefile.

But the day Allwinner changes its name to Noloser, we'll have a similar problem.

Quoted 8 lines

Not really. It will still be a single directory per vendor (whatever name it is).

Quoted 1 line

Thnk about Freescale vs. NXP, or Altera bought by Intel.

Yeah, when some drivers move from one vendor to another one that already exists there, we should probably move the directories, in order to keep things well organized.

I'm not sure we should. We still have arch/arm64/boot/dts/freescale/ for instance. We can answer that question later though, when confronted with the situation.

Quoted 13 lines

The worse case scenario is really if, let's say, TI decides to sell their omap architecture to NXP, keeping the rest. On such case, the best would be to move platform/ti/omap* to the directory of its newer owner.

That's said, when things like that happen, there are usually a change at MAINTAINERS, as e-mails, mailing lists and contact people will likely change. So, this will very likely generate patches anyway.

Quoted 4 lines

No
naming scheme is totally future-proof. If the accepted standard through the kernel is to use sunxi to refer to Allwinner SoCs, I don't think it's a bit idea to go with that.

Quoted 5 lines

I'm not too concerned about the name here, but rather about the process. Needing to do reorg like this is painful, as it causes all pending work to fail merging against upstream, requiring rebases. So, we should avoid needing to re-do it by trying our best to avoid the need of another global change like that in the future.

Most of the pain we'll go through in the immediate future comes from the fact that we never really cared about this. I think renames (of vendors or product lines) will be infrequent enough that picking sunxi for Allwinner drivers wouldn't be an issue.

Quoted 21 lines

There's a similar think with Renesas, which had an SH product line and then moved to ARM, creating R-Mobile and R-Car (among other product liens). That's why we still have drivers/dma/sh/ for Renesas DMA drivers.

Quoted 16 lines

By organizing entries per vendor, while we may need to do puntual per-vendor adjustments when they rename and change IP with other vendors, the global platform Kconfig/Make will contain a single entry per vendor. I can't foresee any need to change this in the future, if we take care of keeping the entries there properly sorted.

With regards to naming the per-vendor directory, while I do prefer to have the directories named after the vendor, and not after a vendor's nick name, It should also be ok to use a vendor's nick name, provided that such name is meant to be used by all their current and future IP.

Not sure if "sunxi" is actually a vendor's nick name. It sounds much likely that it is, instead, a brand name that covers their current media-related SoC.

Can someone from the vendor shed a light on it?

Allwinner (as a company) isn't directly involved in maintaining upstream Linux support. Drivers are provided by linux-sunxi community, sometimes by cleaning up vendor drivers or more often by writing them from scratch.

That being said, "sunxi" is extensively used in vendor kernel, most often it's directory name containing vendor specific driver. It's derived from SoC family name, like sun4i, sun5i, sun5i, sun50i, etc. where number is replaced with X.

sunxi is synonym for Allwinner basically from the start. Community build around these SoCs is called linux-sunxi and even entry in MAINTAINERS contains both names: "ARM/Allwinner sunXi SoC support". Note that sunxi is not limited to ARM SoCs. RISC-V family is called sun20i.

Hope this helps.

Best regards,
Jernej

Quoted 12 lines

Maybe we can let the Allwinner upstream community tell us what name to pick ? I'm sure they know better than us :-)

Signature · 3 lines
Regards,

Laurent Pinchart
author maintainer
#56 lore raw

Re: [PATCH v2 47/67] media: platform: rename sunxi/ to allwinner/

In reply to Laurent Pinchart

Em Tue, 15 Mar 2022 10:35:05 +0200
Laurent Pinchart <[email protected]> escreveu:

Quoted 51 lines · Mauro Carvalho Chehab
Quoted 50 lines

Em Tue, 15 Mar 2022 08:54:25 +0200
Laurent Pinchart <[email protected]> escreveu:

Quoted 33 lines

Hi Mauro,

Quoted 30 lines · Mauro Carvalho Chehab

Em Mon, 14 Mar 2022 18:22:20 +0100 Jernej Škrabec escreveu:

Quoted 9 lines

Dne ponedeljek, 14. marec 2022 ob 17:34:42 CET je Mauro Carvalho Chehab napisal(a):

Quoted 4 lines

As the end goal is to have platform drivers split by vendor, rename sunxi/ to allwinner/.

I would rather not do that. Everything related to Allwinner is called sunxi, albeit there are a few outliers. This is similar to Amlogic/meson situation.

The rationale of having one directory per manufacturer is that, if drivers for newer platforms with different names from the same manufacturers are added, those will still fit under allwinner/ and amlogic/.

The Kconfig names for sunxi and meson didn't change, nor the driver's name. Also, the directories under allwinner preserve sun<x>i name on them:

drivers/media/platform/allwinner/
├── sun4i-csi
├── sun6i-csi
├── sun8i-di
└── sun8i-rotate

and so the directory under amlogic/:

drivers/media/platform/amlogic/
└── meson-ge2d

Quoted 8 lines
Quoted 5 lines

Now, if Allinner decides to release a new platforms named after another star, let's say, "Vega" and "Rigel", it would be just a matter of adding "vega/" and "rigel/" directories under allwinner. No need to touch media/platform/Kconfig and media/platform/Makefile. Everything will happen on much more smaller vendor-specific Kconfig/Makefile.

But the day Allwinner changes its name to Noloser, we'll have a similar problem.

Not really. It will still be a single directory per vendor (whatever name it is).

Quoted 1 line

Thnk about Freescale vs. NXP, or Altera bought by Intel.

Quoted 7 lines
Quoted 3 lines

Yeah, when some drivers move from one vendor to another one that already exists there, we should probably move the directories, in order to keep things well organized.

I'm not sure we should. We still have arch/arm64/boot/dts/freescale/ for instance. We can answer that question later though, when confronted with the situation.

It would be messy if some drivers under a

media/platform/vendor_a/

directory would actually belong to vendor_b, which also has its own media/platform/vendor_b/ directory.

On such case, I do think we should move stuff. Now, if everything under a "media/platform/vendor_a/" directory are now property of a vendor_c which doesn't have yet any directory there, I don't see and problems on not renaming - and even adding new drivers there that would belong to vendor_c.

Quoted 14 lines
Quoted 14 lines

The worse case scenario is really if, let's say, TI decides to sell their omap architecture to NXP, keeping the rest. On such case, the best would be to move platform/ti/omap* to the directory of its newer owner.

That's said, when things like that happen, there are usually a change at MAINTAINERS, as e-mails, mailing lists and contact people will likely change. So, this will very likely generate patches anyway.

Quoted 4 lines

No
naming scheme is totally future-proof. If the accepted standard through the kernel is to use sunxi to refer to Allwinner SoCs, I don't think it's a bit idea to go with that.

Quoted 8 lines
Quoted 5 lines

I'm not too concerned about the name here, but rather about the process. Needing to do reorg like this is painful, as it causes all pending work to fail merging against upstream, requiring rebases. So, we should avoid needing to re-do it by trying our best to avoid the need of another global change like that in the future.

Most of the pain we'll go through in the immediate future comes from the fact that we never really cared about this.

Nah, we had other reorgs in the past, also trying to better organize stuff, like splitting M2M from V4L and DVB platform drivers.

The thing is that the number of entries at platform/ increased a lot, and that justifies a major change.

Quoted 3 lines

I think renames (of vendors
or product lines) will be infrequent enough that picking sunxi for Allwinner drivers wouldn't be an issue.

Agreed.

Quoted 16 lines

There's a similar think with Renesas, which had an SH product line and then moved to ARM, creating R-Mobile and R-Car (among other product liens). That's why we still have drivers/dma/sh/ for Renesas DMA drivers.

Quoted 11 lines

By organizing entries per vendor, while we may need to do puntual per-vendor adjustments when they rename and change IP with other vendors, the global platform Kconfig/Make will contain a single entry per vendor. I can't foresee any need to change this in the future, if we take care of keeping the entries there properly sorted.

With regards to naming the per-vendor directory, while I do prefer to have the directories named after the vendor, and not after a vendor's nick name, It should also be ok to use a vendor's nick name, provided that such name is meant to be used by all their current and future IP.

Quoted 8 lines
Quoted 5 lines

Not sure if "sunxi" is actually a vendor's nick name. It sounds much likely that it is, instead, a brand name that covers their current media-related SoC.

Can someone from the vendor shed a light on it?

Maybe we can let the Allwinner upstream community tell us what name to pick ? I'm sure they know better than us :-)

Works for me.

Thanks,
Mauro

author maintainer
#55 lore raw

Re: [PATCH v2 47/67] media: platform: rename sunxi/ to allwinner/

In reply to Jernej Škrabec

Em Tue, 15 Mar 2022 19:04:05 +0100
Jernej Škrabec <[email protected]> escreveu:

Quoted 25 lines
Quoted 11 lines
Quoted 11 lines

By organizing entries per vendor, while we may need to do puntual per-vendor adjustments when they rename and change IP with other vendors, the global platform Kconfig/Make will contain a single entry per vendor. I can't foresee any need to change this in the future, if we take care of keeping the entries there properly sorted.

With regards to naming the per-vendor directory, while I do prefer to have the directories named after the vendor, and not after a vendor's nick name, It should also be ok to use a vendor's nick name, provided that such name is meant to be used by all their current and future IP.

Quoted 5 lines
Quoted 5 lines

Not sure if "sunxi" is actually a vendor's nick name. It sounds much likely that it is, instead, a brand name that covers their current media-related SoC.

Can someone from the vendor shed a light on it?

Allwinner (as a company) isn't directly involved in maintaining upstream Linux support. Drivers are provided by linux-sunxi community, sometimes by cleaning up vendor drivers or more often by writing them from scratch.

That being said, "sunxi" is extensively used in vendor kernel, most often it's directory name containing vendor specific driver. It's derived from SoC family name, like sun4i, sun5i, sun5i, sun50i, etc. where number is replaced with X.

Quoted 6 lines

sunxi is synonym for Allwinner basically from the start. Community build around these SoCs is called linux-sunxi and even entry in MAINTAINERS contains both names: "ARM/Allwinner sunXi SoC support". Note that sunxi is not limited to ARM SoCs. RISC-V family is called sun20i.

Hope this helps.

Ok, so let's then keep it named as "sunxi", and place all drivers from Allwinner there.

Thanks,
Mauro

maintainer Acked-by on v2 52/67
#62 lore raw

Re: [PATCH v2 52/67] media: platform: rename s5p-g2d/ to samsung/s5p-g2d/

In reply to Mauro Carvalho Chehab
Quoted 9 lines · when Mauro Carvalho Chehab

As the end goal is to have platform drivers split by vendor, rename s5p-g2d/ to samsung/s5p-g2d/.

---

To avoid mailbombing on a large number of people, only mailing lists were C/C on the cover. See [PATCH v2 00/67] at: https://lore.kernel.org/all/[email protected]/

Quoted 17 lines
 MAINTAINERS                                             | 2 +-
 drivers/media/platform/Kconfig                          | 2 +-
 drivers/media/platform/Makefile                         | 2 +-
 drivers/media/platform/{ => samsung}/s5p-g2d/Kconfig    | 0
 drivers/media/platform/{ => samsung}/s5p-g2d/Makefile   | 0
 drivers/media/platform/{ => samsung}/s5p-g2d/g2d-hw.c   | 0
 drivers/media/platform/{ => samsung}/s5p-g2d/g2d-regs.h | 0
 drivers/media/platform/{ => samsung}/s5p-g2d/g2d.c      | 0
 drivers/media/platform/{ => samsung}/s5p-g2d/g2d.h      | 0
 9 files changed, 3 insertions(+), 3 deletions(-)
 rename drivers/media/platform/{ => samsung}/s5p-g2d/Kconfig (100%)
 rename drivers/media/platform/{ => samsung}/s5p-g2d/Makefile (100%)
 rename drivers/media/platform/{ => samsung}/s5p-g2d/g2d-hw.c (100%)
 rename drivers/media/platform/{ => samsung}/s5p-g2d/g2d-regs.h (100%)
 rename drivers/media/platform/{ => samsung}/s5p-g2d/g2d.c (100%)
 rename drivers/media/platform/{ => samsung}/s5p-g2d/g2d.h (100%)
Quoted 73 lines
MAINTAINERS +1 -1
index 80f2a0eea3f7..4b03db9ee31e 100644
@@ -2616,7 +2616,7 @@ M:	Łukasz Stelmach <[email protected]>
 L:	[email protected] (moderated for non-subscribers)
 L:	[email protected]
 S:	Maintained
-F:	drivers/media/platform/s5p-g2d/
+F:	drivers/media/platform/samsung/s5p-g2d/
 
 ARM/SAMSUNG S5P SERIES HDMI CEC SUBSYSTEM SUPPORT
 M:	Marek Szyprowski <[email protected]>
drivers/media/platform/Kconfig +1 -1
index aed4394ddd05..8dd178e1a359 100644
@@ -88,12 +88,12 @@ source "drivers/media/platform/omap3isp/Kconfig"
 source "drivers/media/platform/qcom/Kconfig"
 source "drivers/media/platform/renesas/Kconfig"
 source "drivers/media/platform/rockchip/Kconfig"
-source "drivers/media/platform/s5p-g2d/Kconfig"
 source "drivers/media/platform/s5p-jpeg/Kconfig"
 source "drivers/media/platform/s5p-mfc/Kconfig"
 source "drivers/media/platform/samsung/exynos-gsc/Kconfig"
 source "drivers/media/platform/samsung/exynos4-is/Kconfig"
 source "drivers/media/platform/samsung/s3c-camif/Kconfig"
+source "drivers/media/platform/samsung/s5p-g2d/Kconfig"
 source "drivers/media/platform/sti/Kconfig"
 source "drivers/media/platform/stm32/Kconfig"
 source "drivers/media/platform/ti-vpe/Kconfig"
drivers/media/platform/Makefile +1 -1
index cb5e6d1df248..aa822365d8d0 100644
@@ -30,12 +30,12 @@ obj-y += qcom/venus/
 obj-y += renesas/
 obj-y += rockchip/rga/
 obj-y += rockchip/rkisp1/
-obj-y += s5p-g2d/
 obj-y += s5p-jpeg/
 obj-y += s5p-mfc/
 obj-y += samsung/exynos-gsc/
 obj-y += samsung/exynos4-is/
 obj-y += samsung/s3c-camif/
+obj-y += samsung/s5p-g2d/
 obj-y += sti/bdisp/
 obj-y += sti/c8sectpfe/
 obj-y += sti/delta/
drivers/media/platform/samsung/s5p-g2d/Kconfig renamed from drivers/media/platform/s5p-g2d/Kconfig +0 -0
similarity index 100%
rename from drivers/media/platform/s5p-g2d/Kconfig
rename to drivers/media/platform/samsung/s5p-g2d/Kconfig
drivers/media/platform/samsung/s5p-g2d/Makefile renamed from drivers/media/platform/s5p-g2d/Makefile +0 -0
similarity index 100%
rename from drivers/media/platform/s5p-g2d/Makefile
rename to drivers/media/platform/samsung/s5p-g2d/Makefile
drivers/media/platform/samsung/s5p-g2d/g2d-hw.c renamed from drivers/media/platform/s5p-g2d/g2d-hw.c +0 -0
similarity index 100%
rename from drivers/media/platform/s5p-g2d/g2d-hw.c
rename to drivers/media/platform/samsung/s5p-g2d/g2d-hw.c
drivers/media/platform/samsung/s5p-g2d/g2d-regs.h renamed from drivers/media/platform/s5p-g2d/g2d-regs.h +0 -0
similarity index 100%
rename from drivers/media/platform/s5p-g2d/g2d-regs.h
rename to drivers/media/platform/samsung/s5p-g2d/g2d-regs.h
drivers/media/platform/samsung/s5p-g2d/g2d.c renamed from drivers/media/platform/s5p-g2d/g2d.c +0 -0
similarity index 100%
rename from drivers/media/platform/s5p-g2d/g2d.c
rename to drivers/media/platform/samsung/s5p-g2d/g2d.c
drivers/media/platform/samsung/s5p-g2d/g2d.h renamed from drivers/media/platform/s5p-g2d/g2d.h +0 -0
similarity index 100%
rename from drivers/media/platform/s5p-g2d/g2d.h
rename to drivers/media/platform/samsung/s5p-g2d/g2d.h
Signature · 3 lines
Łukasz Stelmach
Samsung R&D Institute Poland
Samsung Electronics
maintainer Reviewed-by on v2 57/67
#68 lore raw

Re: [PATCH v2 57/67] media: platform: rename am437x/ to ti/am437x/

In reply to Mauro Carvalho Chehab
Quoted 11 lines · Mauro Carvalho Chehab

As the end goal is to have platform drivers split by vendor, rename am437x/ to ti/am437x/.

---

To avoid mailbombing on a large number of people, only mailing lists were C/C on the cover. See [PATCH v2 00/67] at: https://lore.kernel.org/all/[email protected]/

Quoted 15 lines
 MAINTAINERS                                               | 2 +-
 drivers/media/platform/Kconfig                            | 2 +-
 drivers/media/platform/Makefile                           | 2 +-
 drivers/media/platform/{ => ti}/am437x/Kconfig            | 0
 drivers/media/platform/{ => ti}/am437x/Makefile           | 0
 drivers/media/platform/{ => ti}/am437x/am437x-vpfe.c      | 0
 drivers/media/platform/{ => ti}/am437x/am437x-vpfe.h      | 0
 drivers/media/platform/{ => ti}/am437x/am437x-vpfe_regs.h | 0
 8 files changed, 3 insertions(+), 3 deletions(-)
 rename drivers/media/platform/{ => ti}/am437x/Kconfig (100%)
 rename drivers/media/platform/{ => ti}/am437x/Makefile (100%)
 rename drivers/media/platform/{ => ti}/am437x/am437x-vpfe.c (100%)
 rename drivers/media/platform/{ => ti}/am437x/am437x-vpfe.h (100%)
 rename drivers/media/platform/{ => ti}/am437x/am437x-vpfe_regs.h (100%)

Cheers,
Prabhakar

Quoted 76 lines
MAINTAINERS +1 -1
index 6c1055c27c65..f0b262176a70 100644
@@ -19262,7 +19262,7 @@ S:      Maintained
 W:     https://linuxtv.org
 Q:     http://patchwork.linuxtv.org/project/linux-media/list/
 T:     git git://linuxtv.org/mhadli/v4l-dvb-davinci_devices.git
-F:     drivers/media/platform/am437x/
+F:     drivers/media/platform/ti/am437x/
 
 TI BANDGAP AND THERMAL DRIVER
 M:     Eduardo Valentin <[email protected]>
drivers/media/platform/Kconfig +1 -1
index 2ad5fde02543..5d56058fa397 100644
@@ -67,7 +67,6 @@ config VIDEO_MUX
 
 source "drivers/media/platform/allegro-dvt/Kconfig"
 source "drivers/media/platform/allwinner/Kconfig"
-source "drivers/media/platform/am437x/Kconfig"
 source "drivers/media/platform/amlogic/meson-ge2d/Kconfig"
 source "drivers/media/platform/amphion/Kconfig"
 source "drivers/media/platform/aspeed/Kconfig"
@@ -97,6 +96,7 @@ source "drivers/media/platform/samsung/s5p-mfc/Kconfig"
 source "drivers/media/platform/stm/sti/Kconfig"
 source "drivers/media/platform/stm/stm32/Kconfig"
 source "drivers/media/platform/ti-vpe/Kconfig"
+source "drivers/media/platform/ti/am437x/Kconfig"
 source "drivers/media/platform/via/Kconfig"
 source "drivers/media/platform/xilinx/Kconfig"
 
drivers/media/platform/Makefile +1 -1
index f20f1287c665..f8c4617da0ae 100644
@@ -7,7 +7,6 @@
 # (e. g. LC_ALL=C sort Makefile)
 obj-y += allegro-dvt/
 obj-y += allwinner/
-obj-y += am437x/
 obj-y += amlogic/meson-ge2d/
 obj-y += amphion/
 obj-y += aspeed/
@@ -42,6 +41,7 @@ obj-y += stm/sti/delta/
 obj-y += stm/sti/hva/
 obj-y += stm/stm32/
 obj-y += ti-vpe/
+obj-y += ti/am437x/
 obj-y += via/
 obj-y += xilinx/
 
drivers/media/platform/ti/am437x/Kconfig renamed from drivers/media/platform/am437x/Kconfig +0 -0
similarity index 100%
rename from drivers/media/platform/am437x/Kconfig
rename to drivers/media/platform/ti/am437x/Kconfig
drivers/media/platform/ti/am437x/Makefile renamed from drivers/media/platform/am437x/Makefile +0 -0
similarity index 100%
rename from drivers/media/platform/am437x/Makefile
rename to drivers/media/platform/ti/am437x/Makefile
drivers/media/platform/ti/am437x/am437x-vpfe.c renamed from drivers/media/platform/am437x/am437x-vpfe.c +0 -0
similarity index 100%
rename from drivers/media/platform/am437x/am437x-vpfe.c
rename to drivers/media/platform/ti/am437x/am437x-vpfe.c
drivers/media/platform/ti/am437x/am437x-vpfe.h renamed from drivers/media/platform/am437x/am437x-vpfe.h +0 -0
similarity index 100%
rename from drivers/media/platform/am437x/am437x-vpfe.h
rename to drivers/media/platform/ti/am437x/am437x-vpfe.h
drivers/media/platform/ti/am437x/am437x-vpfe_regs.h renamed from drivers/media/platform/am437x/am437x-vpfe_regs.h +0 -1
similarity index 100%
rename from drivers/media/platform/am437x/am437x-vpfe_regs.h
rename to drivers/media/platform/ti/am437x/am437x-vpfe_regs.h
--

2.35.1

maintainer Acked-by on v2 65/67
#78 lore raw

Re: [PATCH v2 65/67] media: Kconfig: cleanup VIDEO_DEV dependencies

In reply to Mauro Carvalho Chehab
Quoted 159 lines · when Mauro Carvalho Chehab

media Kconfig has two entries associated to V4L API:
VIDEO_DEV and VIDEO_V4L2.

On Kernel 2.6.x, there were two V4L APIs, each one with its own flag. VIDEO_DEV were meant to:
1) enable Video4Linux and make its Kconfig options to appear;
2) it makes the Kernel build the V4L core.

while VIDEO_V4L2 where used to distinguish between drivers that implement the newer API and drivers that implemented the former one.

With time, such meaning changed, specially after the removal of all V4L version 1 drivers.

At the current implementation, VIDEO_DEV only does (1): it enables the media options related to V4L, that now has:

menu "Video4Linux options"
visible if VIDEO_DEV

source "drivers/media/v4l2-core/Kconfig"
endmenu

but it doesn't affect anymore the V4L core drivers.

The rationale is that the V4L2 core has a "soft" dependency at the I2C bus, and now requires to select a number of other Kconfig options:

	config VIDEO_V4L2
		tristate
		depends on (I2C || I2C=n) && VIDEO_DEV
		select RATIONAL
		select VIDEOBUF2_V4L2 if VIDEOBUF2_CORE
		default (I2C || I2C=n) && VIDEO_DEV

In the past, merging them would be tricky, but it seems that it is now possible to merge those symbols, in order to simplify V4L dependencies.

Let's keep VIDEO_DEV, as this one is used on some make *defconfig configurations.

---

To avoid mailbombing on a large number of people, only mailing lists were C/C on the cover. See [PATCH v2 00/67] at: https://lore.kernel.org/all/cover.1647274406.git.mchehab at kernel.org/

 drivers/input/rmi4/Kconfig                    |   2 +-
 drivers/input/touchscreen/Kconfig             |   4 +-
 drivers/media/Kconfig                         |   3 +
 drivers/media/common/saa7146/Kconfig          |   2 +-
 drivers/media/dvb-core/Kconfig                |   2 +-
 drivers/media/dvb-frontends/Kconfig           |   4 +-
 drivers/media/i2c/Kconfig                     | 250 +++++++++---------
 drivers/media/i2c/ccs/Kconfig                 |   2 +-
 drivers/media/i2c/cx25840/Kconfig             |   2 +-
 drivers/media/i2c/et8ek8/Kconfig              |   2 +-
 drivers/media/i2c/m5mols/Kconfig              |   2 +-
 drivers/media/pci/Kconfig                     |   2 +-
 drivers/media/pci/bt8xx/Kconfig               |   2 +-
 drivers/media/pci/cobalt/Kconfig              |   2 +-
 drivers/media/pci/cx18/Kconfig                |   2 +-
 drivers/media/pci/dt3155/Kconfig              |   2 +-
 drivers/media/pci/intel/ipu3/Kconfig          |   2 +-
 drivers/media/pci/ivtv/Kconfig                |   2 +-
 drivers/media/pci/meye/Kconfig                |   2 +-
 drivers/media/pci/saa7146/Kconfig             |   6 +-
 drivers/media/pci/sta2x11/Kconfig             |   2 +-
 drivers/media/pci/tw5864/Kconfig              |   2 +-
 drivers/media/pci/tw68/Kconfig                |   2 +-
 drivers/media/pci/tw686x/Kconfig              |   2 +-
 drivers/media/platform/Kconfig                |   6 +-
 drivers/media/platform/allegro-dvt/Kconfig    |   2 +-
 .../platform/allwinner/sun4i-csi/Kconfig      |   2 +-
 .../platform/allwinner/sun6i-csi/Kconfig      |   2 +-
 .../media/platform/allwinner/sun8i-di/Kconfig |   2 +-
 .../platform/allwinner/sun8i-rotate/Kconfig   |   2 +-
 .../media/platform/amlogic/meson-ge2d/Kconfig |   2 +-
 drivers/media/platform/amphion/Kconfig        |   1 -
 drivers/media/platform/aspeed/Kconfig         |   2 +-
 drivers/media/platform/atmel/Kconfig          |   8 +-
 drivers/media/platform/cadence/Kconfig        |   4 +-
 drivers/media/platform/chips-media/Kconfig    |   2 +-
 drivers/media/platform/intel/Kconfig          |   2 +-
 drivers/media/platform/marvell/Kconfig        |   4 +-
 .../media/platform/mediatek/mtk-jpeg/Kconfig  |   2 +-
 .../media/platform/mediatek/mtk-mdp/Kconfig   |   2 +-
 .../platform/mediatek/mtk-vcodec/Kconfig      |   2 +-
 .../media/platform/mediatek/mtk-vpu/Kconfig   |   2 +-
 .../media/platform/nvidia/tegra-vde/Kconfig   |   2 +-
 drivers/media/platform/nxp/Kconfig            |   6 +-
 drivers/media/platform/nxp/imx-jpeg/Kconfig   |   2 +-
 drivers/media/platform/qcom/camss/Kconfig     |   2 +-
 drivers/media/platform/qcom/venus/Kconfig     |   2 +-
 drivers/media/platform/renesas/Kconfig        |  30 +--
 .../media/platform/renesas/rcar-vin/Kconfig   |   4 +-
 drivers/media/platform/rockchip/rga/Kconfig   |   2 +-
 .../media/platform/rockchip/rkisp1/Kconfig    |   2 +-
 .../media/platform/samsung/exynos-gsc/Kconfig |   2 +-
 .../media/platform/samsung/exynos4-is/Kconfig |   2 +-
 .../media/platform/samsung/s3c-camif/Kconfig  |   2 +-
 .../media/platform/samsung/s5p-g2d/Kconfig    |   2 +-
 .../media/platform/samsung/s5p-jpeg/Kconfig   |   2 +-
 .../media/platform/samsung/s5p-mfc/Kconfig    |   2 +-
 drivers/media/platform/stm/sti/bdisp/Kconfig  |   2 +-
 drivers/media/platform/stm/sti/delta/Kconfig  |   2 +-
 drivers/media/platform/stm/sti/hva/Kconfig    |   2 +-
 drivers/media/platform/stm/stm32/Kconfig      |   4 +-
 drivers/media/platform/ti/am437x/Kconfig      |   2 +-
 drivers/media/platform/ti/davinci/Kconfig     |  12 +-
 drivers/media/platform/ti/omap/Kconfig        |   2 +-
 drivers/media/platform/ti/omap3isp/Kconfig    |   2 +-
 drivers/media/platform/via/Kconfig            |   2 +-
 drivers/media/platform/xilinx/Kconfig         |   2 +-
 drivers/media/radio/Kconfig                   |  42 ++-
 drivers/media/radio/si470x/Kconfig            |   2 +-
 drivers/media/radio/wl128x/Kconfig            |   2 +-
 drivers/media/spi/Kconfig                     |   4 +-
 drivers/media/test-drivers/Kconfig            |   2 +-
 drivers/media/test-drivers/vicodec/Kconfig    |   2 +-
 drivers/media/test-drivers/vimc/Kconfig       |   2 +-
 drivers/media/test-drivers/vivid/Kconfig      |   2 +-
 drivers/media/tuners/Kconfig                  |   6 +-
 drivers/media/tuners/e4000.c                  |   6 +-
 drivers/media/tuners/fc2580.c                 |   6 +-
 drivers/media/usb/airspy/Kconfig              |   2 +-
 drivers/media/usb/au0828/Kconfig              |   6 +-
 drivers/media/usb/cpia2/Kconfig               |   2 +-
 drivers/media/usb/dvb-usb-v2/Kconfig          |   8 +-
 drivers/media/usb/dvb-usb/Kconfig             |   4 +-
 drivers/media/usb/gspca/Kconfig               |  96 +++----
 drivers/media/usb/gspca/gl860/Kconfig         |   2 +-
 drivers/media/usb/gspca/m5602/Kconfig         |   2 +-
 drivers/media/usb/hackrf/Kconfig              |   2 +-
 drivers/media/usb/hdpvr/Kconfig               |   2 +-
 drivers/media/usb/msi2500/Kconfig             |   2 +-
 drivers/media/usb/pvrusb2/Kconfig             |   2 +-
 drivers/media/usb/pwc/Kconfig                 |   2 +-
 drivers/media/usb/s2255/Kconfig               |   2 +-
 drivers/media/usb/stkwebcam/Kconfig           |   2 +-
 drivers/media/usb/usbtv/Kconfig               |   2 +-
 drivers/media/usb/uvc/Kconfig                 |   2 +-
 drivers/media/usb/zr364xx/Kconfig             |   2 +-
 drivers/media/v4l2-core/Kconfig               |  12 +-
 drivers/media/v4l2-core/Makefile              |   2 +-
 drivers/staging/media/atomisp/Kconfig         |   2 +-
 drivers/staging/media/atomisp/i2c/Kconfig     |  14 +-
 drivers/staging/media/hantro/Kconfig          |   2 +-
 drivers/staging/media/imx/Kconfig             |   2 +-
 drivers/staging/media/ipu3/Kconfig            |   2 +-
 drivers/staging/media/max96712/Kconfig        |   2 +-
 drivers/staging/media/meson/vdec/Kconfig      |   2 +-
 drivers/staging/media/omap4iss/Kconfig        |   2 +-
 drivers/staging/media/rkvdec/Kconfig          |   2 +-
 drivers/staging/media/sunxi/cedrus/Kconfig    |   2 +-
Quoted 9 lines
 drivers/staging/media/tegra-video/Kconfig     |   2 +-
 drivers/staging/media/zoran/Kconfig           |   2 +-
 drivers/staging/most/video/Kconfig            |   2 +-
 .../vc04_services/bcm2835-camera/Kconfig      |   2 +-
 drivers/usb/gadget/Kconfig                    |   2 +-
 drivers/usb/gadget/legacy/Kconfig             |   2 +-
 sound/pci/Kconfig                             |   4 +-
 115 files changed, 356 insertions(+), 374 deletions(-)

[...]

Quoted 13 lines
drivers/media/platform/samsung/s5p-g2d/Kconfig +1 -1
index 9bc9d90a666a..28ab88fc2d7c 100644
@@ -1,7 +1,7 @@
 config VIDEO_SAMSUNG_S5P_G2D
 	tristate "Samsung S5P and EXYNOS4 G2D 2d graphics accelerator driver"
 	depends on V4L_MEM2MEM_DRIVERS
-	depends on VIDEO_DEV && VIDEO_V4L2
+	depends on VIDEO_DEV
 	depends on ARCH_S5PV210 || ARCH_EXYNOS || COMPILE_TEST
 	select VIDEOBUF2_DMA_CONTIG
 	select V4L2_MEM2MEM_DEV

[...]

Signature · 10 lines
?ukasz Stelmach
Samsung R&D Institute Poland
Samsung Electronics
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 487 bytes
Desc: not available
URL: <http://lists.ozlabs.org/pipermail/linux-aspeed/attachments/20220317/0ce6c9bf/attachment.sig>