Linux Media Controller development
 help / color / mirror / Atom feed
* [PATCH] media: fdp1: Support ES2 platforms
@ 2017-06-09 17:15 Kieran Bingham
  2017-06-10  7:54 ` Laurent Pinchart
  0 siblings, 1 reply; 4+ messages in thread
From: Kieran Bingham @ 2017-06-09 17:15 UTC (permalink / raw)
  To: linux-media, linux-renesas-soc
  Cc: geert, laurent.pinchart, kieran.bingham, Kieran Bingham

From: Kieran Bingham <kieran.bingham+renesas@ideasonboard.com>

The new Renesas R-Car H3 ES2.0 platforms have an updated hw version register.
Update the driver accordingly.

Signed-off-by: Kieran Bingham <kieran.bingham+renesas@ideasonboard.com>
---
 drivers/media/platform/rcar_fdp1.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/drivers/media/platform/rcar_fdp1.c b/drivers/media/platform/rcar_fdp1.c
index 42f25d241edd..50b59995b817 100644
--- a/drivers/media/platform/rcar_fdp1.c
+++ b/drivers/media/platform/rcar_fdp1.c
@@ -260,6 +260,7 @@ MODULE_PARM_DESC(debug, "activate debug info");
 #define FD1_IP_INTDATA			0x0800
 #define FD1_IP_H3			0x02010101
 #define FD1_IP_M3W			0x02010202
+#define FD1_IP_H3_ES2			0x02010203
 
 /* LUTs */
 #define FD1_LUT_DIF_ADJ			0x1000
@@ -2365,6 +2366,9 @@ static int fdp1_probe(struct platform_device *pdev)
 	case FD1_IP_M3W:
 		dprintk(fdp1, "FDP1 Version R-Car M3-W\n");
 		break;
+	case FD1_IP_H3_ES2:
+		dprintk(fdp1, "FDP1 Version R-Car H3-ES2\n");
+		break;
 	default:
 		dev_err(fdp1->dev, "FDP1 Unidentifiable (0x%08x)\n",
 				hw_version);
-- 
2.7.4

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH] media: fdp1: Support ES2 platforms
  2017-06-09 17:15 [PATCH] media: fdp1: Support ES2 platforms Kieran Bingham
@ 2017-06-10  7:54 ` Laurent Pinchart
  2017-06-10  8:42   ` Kieran Bingham
  2017-06-12 10:10   ` Geert Uytterhoeven
  0 siblings, 2 replies; 4+ messages in thread
From: Laurent Pinchart @ 2017-06-10  7:54 UTC (permalink / raw)
  To: Kieran Bingham
  Cc: linux-media, linux-renesas-soc, geert, kieran.bingham,
	Kieran Bingham

Hi Kieran,

Thank you for the patch.

On Friday 09 Jun 2017 18:15:48 Kieran Bingham wrote:
> From: Kieran Bingham <kieran.bingham+renesas@ideasonboard.com>
> 
> The new Renesas R-Car H3 ES2.0 platforms have an updated hw version
> register. Update the driver accordingly.
> 
> Signed-off-by: Kieran Bingham <kieran.bingham+renesas@ideasonboard.com>
> ---
>  drivers/media/platform/rcar_fdp1.c | 4 ++++
>  1 file changed, 4 insertions(+)
> 
> diff --git a/drivers/media/platform/rcar_fdp1.c
> b/drivers/media/platform/rcar_fdp1.c index 42f25d241edd..50b59995b817
> 100644
> --- a/drivers/media/platform/rcar_fdp1.c
> +++ b/drivers/media/platform/rcar_fdp1.c
> @@ -260,6 +260,7 @@ MODULE_PARM_DESC(debug, "activate debug info");
>  #define FD1_IP_INTDATA			0x0800
>  #define FD1_IP_H3			0x02010101
>  #define FD1_IP_M3W			0x02010202
> +#define FD1_IP_H3_ES2			0x02010203

Following our global policy of treating ES2 as the default, how about renaming 
FDP1_IP_H3 to FDP1_IP_H3_ES1 and adding a new FD1_IP_H3 for ES2 ? The messages 
below should be updated as well.

Apart from that the patch looks good to me, so

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

>  /* LUTs */
>  #define FD1_LUT_DIF_ADJ			0x1000
> @@ -2365,6 +2366,9 @@ static int fdp1_probe(struct platform_device *pdev)
>  	case FD1_IP_M3W:
>  		dprintk(fdp1, "FDP1 Version R-Car M3-W\n");
>  		break;
> +	case FD1_IP_H3_ES2:
> +		dprintk(fdp1, "FDP1 Version R-Car H3-ES2\n");
> +		break;
>  	default:
>  		dev_err(fdp1->dev, "FDP1 Unidentifiable (0x%08x)\n",
>  				hw_version);

-- 
Regards,

Laurent Pinchart

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] media: fdp1: Support ES2 platforms
  2017-06-10  7:54 ` Laurent Pinchart
@ 2017-06-10  8:42   ` Kieran Bingham
  2017-06-12 10:10   ` Geert Uytterhoeven
  1 sibling, 0 replies; 4+ messages in thread
From: Kieran Bingham @ 2017-06-10  8:42 UTC (permalink / raw)
  To: Laurent Pinchart, Kieran Bingham
  Cc: linux-media, linux-renesas-soc, geert, Kieran Bingham

Hi Laurent,

On 10/06/17 08:54, Laurent Pinchart wrote:
> Hi Kieran,
> 
> Thank you for the patch.
> 
> On Friday 09 Jun 2017 18:15:48 Kieran Bingham wrote:
>> From: Kieran Bingham <kieran.bingham+renesas@ideasonboard.com>
>>
>> The new Renesas R-Car H3 ES2.0 platforms have an updated hw version
>> register. Update the driver accordingly.
>>
>> Signed-off-by: Kieran Bingham <kieran.bingham+renesas@ideasonboard.com>
>> ---
>>  drivers/media/platform/rcar_fdp1.c | 4 ++++
>>  1 file changed, 4 insertions(+)
>>
>> diff --git a/drivers/media/platform/rcar_fdp1.c
>> b/drivers/media/platform/rcar_fdp1.c index 42f25d241edd..50b59995b817
>> 100644
>> --- a/drivers/media/platform/rcar_fdp1.c
>> +++ b/drivers/media/platform/rcar_fdp1.c
>> @@ -260,6 +260,7 @@ MODULE_PARM_DESC(debug, "activate debug info");
>>  #define FD1_IP_INTDATA			0x0800
>>  #define FD1_IP_H3			0x02010101
>>  #define FD1_IP_M3W			0x02010202
>> +#define FD1_IP_H3_ES2			0x02010203
> 
> Following our global policy of treating ES2 as the default, how about renaming 
> FDP1_IP_H3 to FDP1_IP_H3_ES1 and adding a new FD1_IP_H3 for ES2 ? The messages 
> below should be updated as well.

Sorry, I didn't realise that was the case. I'll update and resend later when I'm
back online.

> Apart from that the patch looks good to me, so
> 
> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
> 

Thanks

Kieran

>>  /* LUTs */
>>  #define FD1_LUT_DIF_ADJ			0x1000
>> @@ -2365,6 +2366,9 @@ static int fdp1_probe(struct platform_device *pdev)
>>  	case FD1_IP_M3W:
>>  		dprintk(fdp1, "FDP1 Version R-Car M3-W\n");
>>  		break;
>> +	case FD1_IP_H3_ES2:
>> +		dprintk(fdp1, "FDP1 Version R-Car H3-ES2\n");
>> +		break;
>>  	default:
>>  		dev_err(fdp1->dev, "FDP1 Unidentifiable (0x%08x)\n",
>>  				hw_version);
> 

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] media: fdp1: Support ES2 platforms
  2017-06-10  7:54 ` Laurent Pinchart
  2017-06-10  8:42   ` Kieran Bingham
@ 2017-06-12 10:10   ` Geert Uytterhoeven
  1 sibling, 0 replies; 4+ messages in thread
From: Geert Uytterhoeven @ 2017-06-12 10:10 UTC (permalink / raw)
  To: Kieran Bingham, Laurent Pinchart
  Cc: Linux Media Mailing List, Linux-Renesas, Kieran Bingham,
	Kieran Bingham

Hi Kieran, Laurent,

On Sat, Jun 10, 2017 at 9:54 AM, Laurent Pinchart
<laurent.pinchart@ideasonboard.com> wrote:
> On Friday 09 Jun 2017 18:15:48 Kieran Bingham wrote:
>> From: Kieran Bingham <kieran.bingham+renesas@ideasonboard.com>
>>
>> The new Renesas R-Car H3 ES2.0 platforms have an updated hw version
>> register. Update the driver accordingly.
>>
>> Signed-off-by: Kieran Bingham <kieran.bingham+renesas@ideasonboard.com>

Thanks, seems to work fine (as in: no more complaints from the driver).

>> --- a/drivers/media/platform/rcar_fdp1.c
>> +++ b/drivers/media/platform/rcar_fdp1.c
>> @@ -260,6 +260,7 @@ MODULE_PARM_DESC(debug, "activate debug info");
>>  #define FD1_IP_INTDATA                       0x0800
>>  #define FD1_IP_H3                    0x02010101
>>  #define FD1_IP_M3W                   0x02010202
>> +#define FD1_IP_H3_ES2                        0x02010203
>
> Following our global policy of treating ES2 as the default, how about renaming
> FDP1_IP_H3 to FDP1_IP_H3_ES1 and adding a new FD1_IP_H3 for ES2 ? The messages
> below should be updated as well.

Yes, that sounds good.

>>  /* LUTs */
>>  #define FD1_LUT_DIF_ADJ                      0x1000
>> @@ -2365,6 +2366,9 @@ static int fdp1_probe(struct platform_device *pdev)
>>       case FD1_IP_M3W:
>>               dprintk(fdp1, "FDP1 Version R-Car M3-W\n");
>>               break;
>> +     case FD1_IP_H3_ES2:
>> +             dprintk(fdp1, "FDP1 Version R-Car H3-ES2\n");

Please drop dashes between SoC names and revisions.

>> +             break;
>>       default:
>>               dev_err(fdp1->dev, "FDP1 Unidentifiable (0x%08x)\n",
>>                               hw_version);

Gr{oetje,eeting}s,

                        Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
                                -- Linus Torvalds

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2017-06-12 10:10 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-06-09 17:15 [PATCH] media: fdp1: Support ES2 platforms Kieran Bingham
2017-06-10  7:54 ` Laurent Pinchart
2017-06-10  8:42   ` Kieran Bingham
2017-06-12 10:10   ` Geert Uytterhoeven

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox