diff mbox

[8/8,media] rcar-vin: add Gen2 and Gen3 fallback compatibility strings

Message ID 1464203409-1279-9-git-send-email-niklas.soderlund@ragnatech.se (mailing list archive)
State Superseded
Delegated to: Geert Uytterhoeven
Headers show

Commit Message

Niklas Söderlund May 25, 2016, 7:10 p.m. UTC
From: Niklas Söderlund <niklas.soderlund+renesas@ragnatech.se>

These are present in the soc-camera version of this driver and it's time
to add them to this driver as well.

Signed-off-by: Niklas Söderlund <niklas.soderlund+renesas@ragnatech.se>
---
 drivers/media/platform/rcar-vin/rcar-core.c | 2 ++
 1 file changed, 2 insertions(+)

Comments

Sergei Shtylyov May 25, 2016, 7:36 p.m. UTC | #1
On 05/25/2016 10:10 PM, Niklas Söderlund wrote:

> From: Niklas Söderlund <niklas.soderlund+renesas@ragnatech.se>
>
> These are present in the soc-camera version of this driver and it's time
> to add them to this driver as well.
>
> Signed-off-by: Niklas Söderlund <niklas.soderlund+renesas@ragnatech.se>
> ---
>  drivers/media/platform/rcar-vin/rcar-core.c | 2 ++
>  1 file changed, 2 insertions(+)
>
> diff --git a/drivers/media/platform/rcar-vin/rcar-core.c b/drivers/media/platform/rcar-vin/rcar-core.c
> index 520690c..87041db 100644
> --- a/drivers/media/platform/rcar-vin/rcar-core.c
> +++ b/drivers/media/platform/rcar-vin/rcar-core.c
> @@ -33,6 +33,8 @@ static const struct of_device_id rvin_of_id_table[] = {
>  	{ .compatible = "renesas,vin-r8a7790", .data = (void *)RCAR_GEN2 },
>  	{ .compatible = "renesas,vin-r8a7779", .data = (void *)RCAR_H1 },
>  	{ .compatible = "renesas,vin-r8a7778", .data = (void *)RCAR_M1 },
> +	{ .compatible = "renesas,rcar-gen3-vin", .data = (void *)RCAR_GEN3 },
> +	{ .compatible = "renesas,rcar-gen2-vin", .data = (void *)RCAR_GEN2 },

    What's the point of adding the H3 specific compatibility string in the 
previous patch then? The fallback stings were added not have to updated the 
driver for every new SoC exactly.

MBR, Sergei
Niklas Söderlund May 27, 2016, 11:36 a.m. UTC | #2
Hi Sergei,

On 2016-05-25 22:36:02 +0300, Sergei Shtylyov wrote:
> On 05/25/2016 10:10 PM, Niklas Söderlund wrote:
> 
> > From: Niklas Söderlund <niklas.soderlund+renesas@ragnatech.se>
> > 
> > These are present in the soc-camera version of this driver and it's time
> > to add them to this driver as well.
> > 
> > Signed-off-by: Niklas Söderlund <niklas.soderlund+renesas@ragnatech.se>
> > ---
> >  drivers/media/platform/rcar-vin/rcar-core.c | 2 ++
> >  1 file changed, 2 insertions(+)
> > 
> > diff --git a/drivers/media/platform/rcar-vin/rcar-core.c b/drivers/media/platform/rcar-vin/rcar-core.c
> > index 520690c..87041db 100644
> > --- a/drivers/media/platform/rcar-vin/rcar-core.c
> > +++ b/drivers/media/platform/rcar-vin/rcar-core.c
> > @@ -33,6 +33,8 @@ static const struct of_device_id rvin_of_id_table[] = {
> >  	{ .compatible = "renesas,vin-r8a7790", .data = (void *)RCAR_GEN2 },
> >  	{ .compatible = "renesas,vin-r8a7779", .data = (void *)RCAR_H1 },
> >  	{ .compatible = "renesas,vin-r8a7778", .data = (void *)RCAR_M1 },
> > +	{ .compatible = "renesas,rcar-gen3-vin", .data = (void *)RCAR_GEN3 },
> > +	{ .compatible = "renesas,rcar-gen2-vin", .data = (void *)RCAR_GEN2 },
> 
>    What's the point of adding the H3 specific compatibility string in the
> previous patch then? The fallback stings were added not have to updated the
> driver for every new SoC exactly.

Since this driver aims to replace the previous R-Car VIN driver which 
uses soc-camera I think it also should contain all the compatibility 
strings that the soc-camera driver do.

Other then that I have no strong opining and are happy to drop the 
previous patch if the intended use of the fallback strings are to use 
them over a SoC specific one.
Sergei Shtylyov May 27, 2016, 6:18 p.m. UTC | #3
Hello.

On 05/27/2016 02:36 PM, Niklas Söderlund wrote:

>>> From: Niklas Söderlund <niklas.soderlund+renesas@ragnatech.se>
>>>
>>> These are present in the soc-camera version of this driver and it's time
>>> to add them to this driver as well.
>>>
>>> Signed-off-by: Niklas Söderlund <niklas.soderlund+renesas@ragnatech.se>
>>> ---
>>>  drivers/media/platform/rcar-vin/rcar-core.c | 2 ++
>>>  1 file changed, 2 insertions(+)
>>>
>>> diff --git a/drivers/media/platform/rcar-vin/rcar-core.c b/drivers/media/platform/rcar-vin/rcar-core.c
>>> index 520690c..87041db 100644
>>> --- a/drivers/media/platform/rcar-vin/rcar-core.c
>>> +++ b/drivers/media/platform/rcar-vin/rcar-core.c
>>> @@ -33,6 +33,8 @@ static const struct of_device_id rvin_of_id_table[] = {
>>>  	{ .compatible = "renesas,vin-r8a7790", .data = (void *)RCAR_GEN2 },
>>>  	{ .compatible = "renesas,vin-r8a7779", .data = (void *)RCAR_H1 },
>>>  	{ .compatible = "renesas,vin-r8a7778", .data = (void *)RCAR_M1 },
>>> +	{ .compatible = "renesas,rcar-gen3-vin", .data = (void *)RCAR_GEN3 },
>>> +	{ .compatible = "renesas,rcar-gen2-vin", .data = (void *)RCAR_GEN2 },
>>
>>    What's the point of adding the H3 specific compatibility string in the
>> previous patch then? The fallback stings were added not have to updated the
>> driver for every new SoC exactly.
>
> Since this driver aims to replace the previous R-Car VIN driver which
> uses soc-camera I think it also should contain all the compatibility
> strings that the soc-camera driver do.

    Indeed. And I'm not seeing the gen2/3 strings there yet (I thought Simon 
had already pushed them there). Nevermind then.

MBR, Sergei
Laurent Pinchart June 16, 2016, 4:55 p.m. UTC | #4
Hi Niklas,

Thank you for the patch.

On Wednesday 25 May 2016 21:10:09 Niklas Söderlund wrote:
> From: Niklas Söderlund <niklas.soderlund+renesas@ragnatech.se>
> 
> These are present in the soc-camera version of this driver and it's time
> to add them to this driver as well.
> 
> Signed-off-by: Niklas Söderlund <niklas.soderlund+renesas@ragnatech.se>

Acked-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>

> ---
>  drivers/media/platform/rcar-vin/rcar-core.c | 2 ++
>  1 file changed, 2 insertions(+)
> 
> diff --git a/drivers/media/platform/rcar-vin/rcar-core.c
> b/drivers/media/platform/rcar-vin/rcar-core.c index 520690c..87041db 100644
> --- a/drivers/media/platform/rcar-vin/rcar-core.c
> +++ b/drivers/media/platform/rcar-vin/rcar-core.c
> @@ -33,6 +33,8 @@ static const struct of_device_id rvin_of_id_table[] = {
>  	{ .compatible = "renesas,vin-r8a7790", .data = (void *)RCAR_GEN2 },
>  	{ .compatible = "renesas,vin-r8a7779", .data = (void *)RCAR_H1 },
>  	{ .compatible = "renesas,vin-r8a7778", .data = (void *)RCAR_M1 },
> +	{ .compatible = "renesas,rcar-gen3-vin", .data = (void *)RCAR_GEN3 },
> +	{ .compatible = "renesas,rcar-gen2-vin", .data = (void *)RCAR_GEN2 },
>  	{ },
>  };
>  MODULE_DEVICE_TABLE(of, rvin_of_id_table);
diff mbox

Patch

diff --git a/drivers/media/platform/rcar-vin/rcar-core.c b/drivers/media/platform/rcar-vin/rcar-core.c
index 520690c..87041db 100644
--- a/drivers/media/platform/rcar-vin/rcar-core.c
+++ b/drivers/media/platform/rcar-vin/rcar-core.c
@@ -33,6 +33,8 @@  static const struct of_device_id rvin_of_id_table[] = {
 	{ .compatible = "renesas,vin-r8a7790", .data = (void *)RCAR_GEN2 },
 	{ .compatible = "renesas,vin-r8a7779", .data = (void *)RCAR_H1 },
 	{ .compatible = "renesas,vin-r8a7778", .data = (void *)RCAR_M1 },
+	{ .compatible = "renesas,rcar-gen3-vin", .data = (void *)RCAR_GEN3 },
+	{ .compatible = "renesas,rcar-gen2-vin", .data = (void *)RCAR_GEN2 },
 	{ },
 };
 MODULE_DEVICE_TABLE(of, rvin_of_id_table);