media: vsp1: Fix WPF macro names
PATCH 1/1 media: vsp1: Fix WPF macro names
From: Kieran Bingham <[email protected]>
The WPF IRQ enable and status macros have been incorrectly named WFP. Fix them accordingly, and update all uses of the macros.
--- drivers/media/platform/vsp1/vsp1_drv.c | 4 ++-- drivers/media/platform/vsp1/vsp1_regs.h | 8 ++++---- drivers/media/platform/vsp1/vsp1_wpf.c | 2 +- 3 files changed, 7 insertions(+), 7 deletions(-)
drivers/media/platform/vsp1/vsp1_drv.c +2 -2
@@ -44,7 +44,7 @@static irqreturn_t vsp1_irq_handler (int irq,void *data) { -u32 mask =VI6_WFP_IRQ_STA_DFE |VI6_WFP_IRQ_STA_FRE ; +u32 mask =VI6_WPF_IRQ_STA_DFE |VI6_WPF_IRQ_STA_FRE ;struct vsp1_device *vsp1 = data;irqreturn_t ret =IRQ_NONE ;unsigned int i;
@@ -59,7 +59,7 @@ static irqreturn_t vsp1_irq_handler(int irq, void *data) status =vsp1_read (vsp1,VI6_WPF_IRQ_STA (i));vsp1_write (vsp1,VI6_WPF_IRQ_STA (i), ~status & mask); -if (status &VI6_WFP_IRQ_STA_DFE ) { +if (status &VI6_WPF_IRQ_STA_DFE ) {vsp1_pipeline_frame_end (wpf->entity.pipe); ret =IRQ_HANDLED ; }
drivers/media/platform/vsp1/vsp1_regs.h +4 -4
@@ -32,12 +32,12 @@#define VI6_STATUS_SYS_ACT (n) BIT((n) + 8)#define VI6_WPF_IRQ_ENB (n) (0x0048 + (n) * 12) -#define VI6_WFP_IRQ_ENB_DFEE BIT(1) -#define VI6_WFP_IRQ_ENB_FREE BIT(0) +#define VI6_WPF_IRQ_ENB_DFEE BIT(1) +#define VI6_WPF_IRQ_ENB_FREE BIT(0)#define VI6_WPF_IRQ_STA (n) (0x004c + (n) * 12) -#define VI6_WFP_IRQ_STA_DFE BIT(1) -#define VI6_WFP_IRQ_STA_FRE BIT(0) +#define VI6_WPF_IRQ_STA_DFE BIT(1) +#define VI6_WPF_IRQ_STA_FRE BIT(0)#define VI6_DISP_IRQ_ENB (n) (0x0078 + (n) * 60)#define VI6_DISP_IRQ_ENB_DSTE BIT(8)
drivers/media/platform/vsp1/vsp1_wpf.c +1 -1
@@ -342,7 +342,7 @@ static void wpf_configure_stream(struct vsp1_entity *entity,/* Enable interrupts. */ vsp1_dl_body_write (dlb,VI6_WPF_IRQ_STA (index),0 );vsp1_dl_body_write (dlb,VI6_WPF_IRQ_ENB (index), -VI6_WFP_IRQ_ENB_DFEE ); +VI6_WPF_IRQ_ENB_DFEE );/* * Configure writeback for display pipelines (the wpf writeback flag is
Signature · 1 line
2.30.2
Hi Kieran,
Thank you for the patch.
Quoted 6 lines · Kieran Bingham
From: Kieran Bingham <[email protected]>
The WPF IRQ enable and status macros have been incorrectly named WFP. Fix them accordingly, and update all uses of the macros.
Signed-off-by Kieran Bingham <[email protected]>
Wow, and all this time it has escaped our eyes.
Feel free to push. Oh, wait... I'm too used to libcamera :-)
Quoted 62 lines
--- drivers/media/platform/vsp1/vsp1_drv.c | 4 ++-- drivers/media/platform/vsp1/vsp1_regs.h | 8 ++++---- drivers/media/platform/vsp1/vsp1_wpf.c | 2 +- 3 files changed, 7 insertions(+), 7 deletions(-)drivers/media/platform/vsp1/vsp1_drv.c +2
-2@@ -44,7 +44,7 @@static irqreturn_t vsp1_irq_handler (int irq,void *data) { -u32 mask =VI6_WFP_IRQ_STA_DFE |VI6_WFP_IRQ_STA_FRE ; +u32 mask =VI6_WPF_IRQ_STA_DFE |VI6_WPF_IRQ_STA_FRE ;struct vsp1_device *vsp1 = data;irqreturn_t ret =IRQ_NONE ;unsigned int i;@@ -59,7 +59,7 @@ static irqreturn_t vsp1_irq_handler(int irq, void *data) status =vsp1_read (vsp1,VI6_WPF_IRQ_STA (i));vsp1_write (vsp1,VI6_WPF_IRQ_STA (i), ~status & mask); -if (status &VI6_WFP_IRQ_STA_DFE ) { +if (status &VI6_WPF_IRQ_STA_DFE ) {vsp1_pipeline_frame_end (wpf->entity.pipe); ret =IRQ_HANDLED ; }drivers/media/platform/vsp1/vsp1_regs.h +4
-4@@ -32,12 +32,12 @@#define VI6_STATUS_SYS_ACT (n) BIT((n) + 8)#define VI6_WPF_IRQ_ENB (n) (0x0048 + (n) * 12) -#define VI6_WFP_IRQ_ENB_DFEE BIT(1) -#define VI6_WFP_IRQ_ENB_FREE BIT(0) +#define VI6_WPF_IRQ_ENB_DFEE BIT(1) +#define VI6_WPF_IRQ_ENB_FREE BIT(0)#define VI6_WPF_IRQ_STA (n) (0x004c + (n) * 12) -#define VI6_WFP_IRQ_STA_DFE BIT(1) -#define VI6_WFP_IRQ_STA_FRE BIT(0) +#define VI6_WPF_IRQ_STA_DFE BIT(1) +#define VI6_WPF_IRQ_STA_FRE BIT(0)#define VI6_DISP_IRQ_ENB (n) (0x0078 + (n) * 60)#define VI6_DISP_IRQ_ENB_DSTE BIT(8)drivers/media/platform/vsp1/vsp1_wpf.c +1
-1@@ -342,7 +342,7 @@ static void wpf_configure_stream(struct vsp1_entity *entity,/* Enable interrupts. */ vsp1_dl_body_write (dlb,VI6_WPF_IRQ_STA (index),0 );vsp1_dl_body_write (dlb,VI6_WPF_IRQ_ENB (index), -VI6_WFP_IRQ_ENB_DFEE ); +VI6_WPF_IRQ_ENB_DFEE );/* * Configure writeback for display pipelines (the wpf writeback flag is
Signature · 3 lines
Regards, Laurent Pinchart
Hi Laurent,
Quoted 10 lines · Laurent Pinchart
Hi Kieran,
Thank you for the patch.
Quoted 5 lines · Kieran Bingham
From: Kieran Bingham <[email protected]>
The WPF IRQ enable and status macros have been incorrectly named WFP. Fix them accordingly, and update all uses of the macros.
Quoted 7 lines
Quoted 1 line
Signed-off-by Kieran Bingham <[email protected]>Wow, and all this time it has escaped our eyes.
Reviewed-by Laurent Pinchart <[email protected]>Feel free to push. Oh, wait... I'm too used to libcamera :-)
Has this been collected anywhere?
I don't see it progressing.
--
Kieran
Quoted 64 lines
Quoted 63 lines
--- drivers/media/platform/vsp1/vsp1_drv.c | 4 ++-- drivers/media/platform/vsp1/vsp1_regs.h | 8 ++++---- drivers/media/platform/vsp1/vsp1_wpf.c | 2 +- 3 files changed, 7 insertions(+), 7 deletions(-)drivers/media/platform/vsp1/vsp1_drv.c +2
-2@@ -44,7 +44,7 @@static irqreturn_t vsp1_irq_handler (int irq,void *data) { -u32 mask =VI6_WFP_IRQ_STA_DFE |VI6_WFP_IRQ_STA_FRE ; +u32 mask =VI6_WPF_IRQ_STA_DFE |VI6_WPF_IRQ_STA_FRE ;struct vsp1_device *vsp1 = data;irqreturn_t ret =IRQ_NONE ;unsigned int i;@@ -59,7 +59,7 @@ static irqreturn_t vsp1_irq_handler(int irq, void *data) status =vsp1_read (vsp1,VI6_WPF_IRQ_STA (i));vsp1_write (vsp1,VI6_WPF_IRQ_STA (i), ~status & mask); -if (status &VI6_WFP_IRQ_STA_DFE ) { +if (status &VI6_WPF_IRQ_STA_DFE ) {vsp1_pipeline_frame_end (wpf->entity.pipe); ret =IRQ_HANDLED ; }drivers/media/platform/vsp1/vsp1_regs.h +4
-4@@ -32,12 +32,12 @@#define VI6_STATUS_SYS_ACT (n) BIT((n) + 8)#define VI6_WPF_IRQ_ENB (n) (0x0048 + (n) * 12) -#define VI6_WFP_IRQ_ENB_DFEE BIT(1) -#define VI6_WFP_IRQ_ENB_FREE BIT(0) +#define VI6_WPF_IRQ_ENB_DFEE BIT(1) +#define VI6_WPF_IRQ_ENB_FREE BIT(0)#define VI6_WPF_IRQ_STA (n) (0x004c + (n) * 12) -#define VI6_WFP_IRQ_STA_DFE BIT(1) -#define VI6_WFP_IRQ_STA_FRE BIT(0) +#define VI6_WPF_IRQ_STA_DFE BIT(1) +#define VI6_WPF_IRQ_STA_FRE BIT(0)#define VI6_DISP_IRQ_ENB (n) (0x0078 + (n) * 60)#define VI6_DISP_IRQ_ENB_DSTE BIT(8)drivers/media/platform/vsp1/vsp1_wpf.c +1
-1@@ -342,7 +342,7 @@ static void wpf_configure_stream(struct vsp1_entity *entity,/* Enable interrupts. */ vsp1_dl_body_write (dlb,VI6_WPF_IRQ_STA (index),0 );vsp1_dl_body_write (dlb,VI6_WPF_IRQ_ENB (index), -VI6_WFP_IRQ_ENB_DFEE ); +VI6_WPF_IRQ_ENB_DFEE );/* * Configure writeback for display pipelines (the wpf writeback flag is
Hi Kieran,
Quoted 9 lines · Kieran Bingham
Quoted 8 lines · Laurent Pinchart
Quoted 6 lines · Kieran Bingham
From: Kieran Bingham <[email protected]>
The WPF IRQ enable and status macros have been incorrectly named WFP. Fix them accordingly, and update all uses of the macros.
Signed-off-by Kieran Bingham <[email protected]>
Quoted 7 lines
Quoted 5 lines
Wow, and all this time it has escaped our eyes.
Reviewed-by Laurent Pinchart <[email protected]>Feel free to push. Oh, wait... I'm too used to libcamera :-)
Has this been collected anywhere?
It has now.
Quoted 64 lines
I don't see it progressing.
Quoted 62 lines
Quoted 62 lines
--- drivers/media/platform/vsp1/vsp1_drv.c | 4 ++-- drivers/media/platform/vsp1/vsp1_regs.h | 8 ++++---- drivers/media/platform/vsp1/vsp1_wpf.c | 2 +- 3 files changed, 7 insertions(+), 7 deletions(-)drivers/media/platform/vsp1/vsp1_drv.c +2
-2@@ -44,7 +44,7 @@static irqreturn_t vsp1_irq_handler (int irq,void *data) { -u32 mask =VI6_WFP_IRQ_STA_DFE |VI6_WFP_IRQ_STA_FRE ; +u32 mask =VI6_WPF_IRQ_STA_DFE |VI6_WPF_IRQ_STA_FRE ;struct vsp1_device *vsp1 = data;irqreturn_t ret =IRQ_NONE ;unsigned int i;@@ -59,7 +59,7 @@ static irqreturn_t vsp1_irq_handler(int irq, void *data) status =vsp1_read (vsp1,VI6_WPF_IRQ_STA (i));vsp1_write (vsp1,VI6_WPF_IRQ_STA (i), ~status & mask); -if (status &VI6_WFP_IRQ_STA_DFE ) { +if (status &VI6_WPF_IRQ_STA_DFE ) {vsp1_pipeline_frame_end (wpf->entity.pipe); ret =IRQ_HANDLED ; }drivers/media/platform/vsp1/vsp1_regs.h +4
-4@@ -32,12 +32,12 @@#define VI6_STATUS_SYS_ACT (n) BIT((n) + 8)#define VI6_WPF_IRQ_ENB (n) (0x0048 + (n) * 12) -#define VI6_WFP_IRQ_ENB_DFEE BIT(1) -#define VI6_WFP_IRQ_ENB_FREE BIT(0) +#define VI6_WPF_IRQ_ENB_DFEE BIT(1) +#define VI6_WPF_IRQ_ENB_FREE BIT(0)#define VI6_WPF_IRQ_STA (n) (0x004c + (n) * 12) -#define VI6_WFP_IRQ_STA_DFE BIT(1) -#define VI6_WFP_IRQ_STA_FRE BIT(0) +#define VI6_WPF_IRQ_STA_DFE BIT(1) +#define VI6_WPF_IRQ_STA_FRE BIT(0)#define VI6_DISP_IRQ_ENB (n) (0x0078 + (n) * 60)#define VI6_DISP_IRQ_ENB_DSTE BIT(8)drivers/media/platform/vsp1/vsp1_wpf.c +1
-1@@ -342,7 +342,7 @@ static void wpf_configure_stream(struct vsp1_entity *entity,/* Enable interrupts. */ vsp1_dl_body_write (dlb,VI6_WPF_IRQ_STA (index),0 );vsp1_dl_body_write (dlb,VI6_WPF_IRQ_ENB (index), -VI6_WFP_IRQ_ENB_DFEE ); +VI6_WPF_IRQ_ENB_DFEE );/* * Configure writeback for display pipelines (the wpf writeback flag is
Signature · 3 lines
Regards, Laurent Pinchart