media: fdp1: Support ES2 platforms
Subsystems (2)
PATCH 1/1 media: fdp1: Support ES2 platforms
From: Kieran Bingham <[email protected]>
The new Renesas R-Car H3 ES2.0 platforms have an updated hw version register. Update the driver accordingly.
--- drivers/media/platform/rcar_fdp1.c | 4 ++++ 1 file changed, 4 insertions(+)
drivers/media/platform/rcar_fdp1.c +4 -0
@@ -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);
Signature · 1 line
2.7.4
Hi Kieran,
Thank you for the patch.
Quoted 16 lines · On Friday 09 Jun 2017 18:15:48 Kieran Bingham wrote:
From: Kieran Bingham <[email protected]>
The new Renesas R-Car H3 ES2.0 platforms have an updated hw version register. Update the driver accordingly.
Signed-off-by Kieran Bingham <[email protected]>--- drivers/media/platform/rcar_fdp1.c | 4 ++++ 1 file changed, 4 insertions(+)(quoted diff) +0
-0
b/drivers/media/platform/rcar_fdp1.cindex42f25d241edd..50b59995b817100644
drivers/media/platform/rcar_fdp1.c MODULE_PARM_DESC(debug, "activate debug info"); · line 263
Quoted 4 lines
drivers/media/platform/rcar_fdp1.c +1
-0@@ -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
Quoted 12 lines
drivers/media/platform/rcar_fdp1.c +3
-0/* 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);
Signature · 3 lines
Regards, Laurent Pinchart
Hi Laurent,
Quoted 15 lines · Laurent Pinchart
Hi Kieran,
Thank you for the patch.
Quoted 10 lines · On Friday 09 Jun 2017 18:15:48 Kieran Bingham wrote:
From: Kieran Bingham <[email protected]>
The new Renesas R-Car H3 ES2.0 platforms have an updated hw version register. Update the driver accordingly.
Signed-off-by Kieran Bingham <[email protected]>--- drivers/media/platform/rcar_fdp1.c | 4 ++++ 1 file changed, 4 insertions(+)
Quoted 14 lines
drivers/media/platform/rcar_fdp1.c MODULE_PARM_DESC(debug, "activate debug info"); · line 263
Quoted 10 lines
(quoted diff) +0
-0
b/drivers/media/platform/rcar_fdp1.cindex42f25d241edd..50b59995b817100644drivers/media/platform/rcar_fdp1.c +1
-0@@ -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 0x02010203Following our global policy of treating ES2 as the default, how about renaming
FDP1_IP_H3toFDP1_IP_H3_ES1and adding a newFD1_IP_H3for 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.
Quoted 4 lines
Apart from that the patch looks good to me, so
Reviewed-by Laurent Pinchart <[email protected]>
Thanks
Kieran
Quoted 13 lines
Quoted 12 lines
drivers/media/platform/rcar_fdp1.c +3
-0/* 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);
Hi Kieran, Laurent,
Quoted 7 lines · Laurent Pinchart
Quoted 6 lines · On Friday 09 Jun 2017 18:15:48 Kieran Bingham wrote:
From: Kieran Bingham <[email protected]>
The new Renesas R-Car H3 ES2.0 platforms have an updated hw version register. Update the driver accordingly.
Signed-off-by Kieran Bingham <[email protected]>
Thanks, seems to work fine (as in: no more complaints from the driver).
Quoted 11 lines
drivers/media/platform/rcar_fdp1.c MODULE_PARM_DESC(debug, "activate debug info"); · line 263
Quoted 7 lines
drivers/media/platform/rcar_fdp1.c +1
-0@@ -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 0x02010203Following our global policy of treating ES2 as the default, how about renaming
FDP1_IP_H3toFDP1_IP_H3_ES1and adding a newFD1_IP_H3for ES2 ? The messages below should be updated as well.
Yes, that sounds good.
Quoted 8 lines
drivers/media/platform/rcar_fdp1.c static int fdp1_probe(struct platform_device *pdev) · line 2370
Quoted 8 lines
drivers/media/platform/rcar_fdp1.c +2
-0/* 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.
Quoted 4 lines
drivers/media/platform/rcar_fdp1.c static int fdp1_probe(struct platform_device *pdev) · line 2374
Quoted 4 lines
drivers/media/platform/rcar_fdp1.c +1
-0+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 -- [email protected]
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