Skip to contentSkip to conversation

ARM: davinci: misc. VPIF cleanups

PATCH Superseded Kevin Hilman 2 participants 5 messages Jun 2, 2017 – Jun 9, 2017

Subsystems (4)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

cover ARM: davinci: misc. VPIF cleanups

This are the platforms-specific cleanups needed to go along with the VPIF cleanups for raw capture support here:

https://marc.info/?l=linux-arm-kernel&m=149643932427173

Kevin Hilman (2):
ARM: davinci: pdata-quirks: fix const warnings
ARM: dts: da850-evm: drop VPIF endpoints

 arch/arm/boot/dts/da850-evm.dts      | 21 ---------------------
 arch/arm/mach-davinci/pdata-quirks.c |  4 ++--
 2 files changed, 2 insertions(+), 23 deletions(-)
Signature · 1 line
2.9.3
#1 lore raw

PATCH 1/2 ARM: davinci: pdata-quirks: fix const warnings

After VPIF was converted to enable getting subdevs from DT, the pdata is no longer const, so remove these to avoid compiler warnings.

---
 arch/arm/mach-davinci/pdata-quirks.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
arch/arm/mach-davinci/pdata-quirks.c +2 -2
index 329f5402ad1d..4858b1cdf31b 100644
@@ -33,7 +33,7 @@ static struct tvp514x_platform_data tvp5146_pdata = {
 
 #define TVP514X_STD_ALL (V4L2_STD_NTSC | V4L2_STD_PAL)
 
-static const struct vpif_input da850_ch0_inputs[] = {
+static struct vpif_input da850_ch0_inputs[] = {
 	{
 		.input = {
 			.index = 0,
@@ -48,7 +48,7 @@ static const struct vpif_input da850_ch0_inputs[] = {
 	},
 };
 
-static const struct vpif_input da850_ch1_inputs[] = {
+static struct vpif_input da850_ch1_inputs[] = {
 	{
 		.input = {
 			.index = 0,
Signature · 1 line
2.9.3
#2 lore raw

PATCH 1/2 ARM: davinci: pdata-quirks: fix const warnings

Hi Kevin,

Quoted 4 lines · Kevin Hilman

After VPIF was converted to enable getting subdevs from DT, the pdata is no longer const, so remove these to avoid compiler warnings.

I think this should be squashed into patch 2/4 of "davinci:
vpif_capture: raw camera support" series where the warning is introduced. That does mix the platform and driver parts in one patch, but I think its better that way so that no patch introduces a warning.

The patch does not clash with anything queued in davinci tree, so I think it should be fine.

Also, there is a warning introduced in arch/arm/mach-davinci/board-dm646x-evm.c that should be fixed as well.

Thanks,
Sekhar

#3 lore raw

PATCH 1/2 ARM: davinci: pdata-quirks: fix const warnings

Quoted 6 lines · Sekhar Nori

Hi Kevin,

Quoted 3 lines · Kevin Hilman

After VPIF was converted to enable getting subdevs from DT, the pdata is no longer const, so remove these to avoid compiler warnings.

Quoted 6 lines
Quoted 1 line

I think this should be squashed into patch 2/4 of "davinci:
vpif_capture: raw camera support" series where the warning is introduced. That does mix the platform and driver parts in one patch, but I think its better that way so that no patch introduces a warning.

Well, media maintainers have already taken that patch, and probably won't want to take this as a separate patch now. So, IMO, as long as this goes in the same merge window, a couple warnings in -next while things are settling will be OK.

Quoted 5 lines

The patch does not clash with anything queued in davinci tree, so I think it should be fine.

Also, there is a warning introduced in arch/arm/mach-davinci/board-dm646x-evm.c that should be fixed as well.

I'll fix that and resend the series (this time with DT maintainers in copy for PATCH 2/2.

Kevin

#4 lore raw

PATCH 2/2 ARM: dts: da850-evm: drop VPIF endpoints

In reply to Kevin Hilman

Drop the unused endpoints. They should only be used when there is an actual remote-endpoint connected.

---
 arch/arm/boot/dts/da850-evm.dts | 21 ---------------------
 1 file changed, 21 deletions(-)
arch/arm/boot/dts/da850-evm.dts +0 -21
index a423e8ebfb37..67e72bc72e80 100644
@@ -301,25 +301,4 @@
 	pinctrl-names = "default";
 	pinctrl-0 = <&vpif_capture_pins>, <&vpif_display_pins>;
 	status = "okay";
-
-	/* VPIF capture port */
-	port at 0 {
-		vpif_input_ch0: endpoint at 0 {
-			reg = <0>;
-			bus-width = <8>;
-		};
-
-		vpif_input_ch1: endpoint at 1 {
-			reg = <1>;
-			bus-width = <8>;
-			data-shift = <8>;
-		};
-	};
-
-	/* VPIF display port */
-	port at 1 {
-		vpif_output_ch0: endpoint {
-			bus-width = <8>;
-		};
-	};
 };
Signature · 1 line
2.9.3