= devm_ioremap_resource(...);
+ioremap_res = devm_platform_ioremap_resource(pdev,0);
Cc: Thierry Reding
Cc: Mikko Perttunen
Reviewed-by: Maxime Ripard
Signed-off-by: Anusha Srivatsa
---
drivers/gpu/drm/tegra/dsi.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/drivers/gpu
Update the Documentation to be more precise.
v2: Update for clarity
Cc: Thomas Zimmermann
Signed-off-by: Anusha Srivatsa
---
Documentation/gpu/todo.rst | 12 ++--
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/Documentation/gpu/todo.rst b/Documentation/gpu/todo.rst
On Thu, Feb 6, 2025 at 11:13 AM Maxime Ripard wrote:
> On Wed, Feb 05, 2025 at 03:08:07PM -0500, Anusha Srivatsa wrote:
> > Replace platform_get_resource_byname + devm_ioremap_resource
> > with just devm_platform_ioremap_resource()
> >
> > Used Coccinelle to
= platform_get_resource_byname(pdev,mem,name);
<...
-if (!res) {
-...
-}
...>
-ioremap = devm_ioremap(...);
+ioremap = devm_platform_ioremap_resource_byname(pdev,name);
Cc: Neil Armstrong
Signed-off-by: Anusha Srivatsa
---
drivers/gpu/drm/meson/meson_drv.c | 9 +
1 file changed, 1 insertion(+), 8 del
= devm_ioremap_resource(...);
+ioremap_res = devm_platform_ioremap_resource(pdev,0);
Cc: Chun-Kuang Hu
Cc: Philipp Zabel
Signed-off-by: Anusha Srivatsa
---
drivers/gpu/drm/mediatek/mtk_disp_color.c | 4 +---
drivers/gpu/drm/mediatek/mtk_disp_gamma.c | 4 +---
drivers/gpu/drm/mediatek
= devm_ioremap_resource(...);
+ioremap_res = devm_platform_ioremap_resource(pdev,0);
Cc: Stefan Agner
Cc: Alison Wang
Signed-off-by: Anusha Srivatsa
---
drivers/gpu/drm/fsl-dcu/fsl_dcu_drm_drv.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/drivers/gpu/drm/fsl-dcu
= devm_ioremap_resource(...);
+ioremap_res = devm_platform_ioremap_resource(pdev,0);
Cc: Xinliang Liu
Cc: Tian Tao
Cc: Xinwei Kong
Cc: Sumit Semwal
Cc: Yongqin Liu
Cc: John Stultz
Signed-off-by: Anusha Srivatsa
---
drivers/gpu/drm/hisilicon/kirin/dw_drm_dsi.c| 4 +---
drivers/gpu/drm
Remove the TODO now that this series addresses
the changes needed.
Cc: Thomas Zimmermann
Signed-off-by: Anusha Srivatsa
---
Documentation/gpu/todo.rst | 15 ---
1 file changed, 15 deletions(-)
diff --git a/Documentation/gpu/todo.rst b/Documentation/gpu/todo.rst
index
= devm_ioremap_resource(...);
+ioremap_res = devm_platform_ioremap_resource(pdev,0);
Cc: Maarten Lankhorst
Cc: Maxime Ripard
Signed-off-by: Anusha Srivatsa
---
drivers/gpu/drm/tiny/arcpgu.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/drivers/gpu/drm/tiny/arcpgu.c b
= devm_ioremap_resource(...);
+ioremap_res = devm_platform_ioremap_resource(pdev,0);
Cc: Thierry Reding
Cc: Mikko Perttunen
Signed-off-by: Anusha Srivatsa
---
drivers/gpu/drm/tegra/dsi.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/drivers/gpu/drm/tegra/dsi.c b/drivers/gpu
"Maíra Canal"
Signed-off-by: Anusha Srivatsa
---
drivers/gpu/drm/vc4/vc4_hdmi.c | 9 ++---
1 file changed, 2 insertions(+), 7 deletions(-)
diff --git a/drivers/gpu/drm/vc4/vc4_hdmi.c b/drivers/gpu/drm/vc4/vc4_hdmi.c
index
47d9ada98430634cfd8c1e21
-if (!res) {
-...
-}
...>
-ioremap = devm_ioremap(...);
+ioremap = devm_platform_ioremap_resource(pdev,0);
Cc: Alain Volmat
Signed-off-by: Anusha Srivatsa
---
drivers/gpu/drm/sti/sti_compositor.c | 10 +-
drivers/gpu/drm/sti/sti_dvo.c| 10 +-
drivers/gpu/drm/sti/sti_hda.c
= devm_ioremap_resource(...);
+ioremap_res = devm_platform_ioremap_resource(pdev,0);
Cc: Yannick Fertre
Cc: Raphael Gallais-Pou
Cc: Philippe Cornu
Signed-off-by: Anusha Srivatsa
---
drivers/gpu/drm/stm/ltdc.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/drivers/gpu/drm
= devm_ioremap_resource(...);
+ioremap_res = devm_platform_ioremap_resource(pdev,0);
Cc: Marek Vasut
Cc: Stefan Agner
Signed-off-by: Anusha Srivatsa
---
drivers/gpu/drm/mxsfb/lcdif_drv.c | 4 +---
drivers/gpu/drm/mxsfb/mxsfb_drv.c | 4 +---
2 files changed, 2 insertions(+), 6 deletions(-)
diff
res) {
-...
-}
...>
-ioremap = devm_ioremap(...);
+ioremap = devm_platform_ioremap_resource(pdev,0);
Cc: Chunyan Zhang
Cc: Dmitry Baryshkov
Signed-off-by: Anusha Srivatsa
---
drivers/gpu/drm/sprd/sprd_dpu.c | 9 +
drivers/gpu/drm/sprd/sprd_dsi.c | 9 +
2 files changed, 2 insertions(
= devm_ioremap_resource(...);
+ioremap_res = devm_platform_ioremap_resource(pdev,0);
Cc: Sandy Huang
Cc: Heiko Stübner
Cc: Andy Yan
Signed-off-by: Anusha Srivatsa
---
drivers/gpu/drm/rockchip/rockchip_drm_vop.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/drivers/gpu/drm
tifier res;
expression ioremap;
identifier pdev;
constant mem;
expression name;
@@
-struct resource *res;
...
-res = platform_get_resource_byname(pdev,mem,name);
<...
-if (!res) {
-...
-}
...>
-ioremap = devm_ioremap(...);
+ioremap = devm_platform_ioremap_resource_byname(pdev,name);
Signed-of
= devm_ioremap_resource(...);
+ioremap_res = devm_platform_ioremap_resource(pdev,0);
Cc: Joel Stanley
Signed-off-by: Anusha Srivatsa
---
drivers/gpu/drm/aspeed/aspeed_gfx_drv.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/drivers/gpu/drm/aspeed/aspeed_gfx_drv.c
b/drivers
On Wed, Jan 29, 2025 at 8:18 AM Dave Stevenson <
dave.steven...@raspberrypi.com> wrote:
> Hi Anusha
>
> On Tue, 28 Jan 2025 at 22:33, Anusha Srivatsa wrote:
> >
> > Replace platform_get_resource_byname + devm_ioremap_resource
> > with just devm_platform_ioremap_r
On Wed, Jan 29, 2025 at 4:10 AM Raphael Gallais-Pou <
raphael.gallais-...@foss.st.com> wrote:
>
> On 1/28/25 23:29, Anusha Srivatsa wrote:
> > Replace platform_get_resource/_byname + devm_ioremap
> > with just devm_platform_ioremap_resource()
> >
> > Used Cocc
= devm_ioremap_resource(...);
+ioremap_res = devm_platform_ioremap_resource(pdev,0);
Cc: Xinliang Liu
Cc: Tian Tao
Cc: Xinwei Kong
Cc: Sumit Semwal
Cc: Yongqin Liu
Cc: John Stultz
Reviewed-by: Maxime Ripard
Signed-off-by: Anusha Srivatsa
---
drivers/gpu/drm/hisilicon/kirin/dw_drm_dsi.c| 4
= devm_ioremap_resource(...);
+ioremap_res = devm_platform_ioremap_resource(pdev,0);
Cc: Marek Vasut
Cc: Stefan Agner
Reviewed-by: Maxime Ripard
Signed-off-by: Anusha Srivatsa
---
drivers/gpu/drm/mxsfb/lcdif_drv.c | 4 +---
drivers/gpu/drm/mxsfb/mxsfb_drv.c | 4 +---
2 files changed, 2 insertions
-if (!res) {
-...
-}
...>
-ioremap = devm_ioremap(...);
+ioremap = devm_platform_ioremap_resource(pdev,0);
v2: Fix compilation error.
Cc: Raphael Gallais-Pou
Cc: Alain Volmat
Reviewed-by: Maxime Ripard
Acked-by: Raphael Gallais-Pou
Signed-off-by: Anusha Srivatsa
---
drivers/gpu/drm/sti/sti_compo
res) {
-...
-}
...>
-ioremap = devm_ioremap(...);
+ioremap = devm_platform_ioremap_resource(pdev,0);
Cc: Chunyan Zhang
Cc: Dmitry Baryshkov
Reviewed-by: Maxime Ripard
Signed-off-by: Anusha Srivatsa
---
drivers/gpu/drm/sprd/sprd_dpu.c | 9 +
drivers/gpu/drm/sprd/sprd_dsi.c | 9 +
2 files c
= devm_ioremap_resource(...);
+ioremap_res = devm_platform_ioremap_resource(pdev,0);
Cc: Yannick Fertre
Cc: Raphael Gallais-Pou
Cc: Philippe Cornu
Acked-by: Raphael Gallais-Pou
Signed-off-by: Anusha Srivatsa
---
drivers/gpu/drm/stm/ltdc.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions
= devm_ioremap_resource(...);
+ioremap_res = devm_platform_ioremap_resource(pdev,0);
Cc: Thierry Reding
Cc: Mikko Perttunen
Reviewed-by: Maxime Ripard
Signed-off-by: Anusha Srivatsa
---
drivers/gpu/drm/tegra/dsi.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/drivers/gpu
= devm_ioremap_resource(...);
+ioremap_res = devm_platform_ioremap_resource(pdev,0);
Cc: Chun-Kuang Hu
Cc: Philipp Zabel
Reviewed-by: Maxime Ripard
Reviewed-by: CK Hu
Signed-off-by: Anusha Srivatsa
---
drivers/gpu/drm/mediatek/mtk_disp_color.c | 4 +---
drivers/gpu/drm/mediatek/mtk_disp_gamma.c
r pdev;
constant mem;
expression name;
@@
-struct resource *res;
<+...
-res = platform_get_resource_byname(pdev,mem,name);
<...
-if (!res) {
-...
-}
...>
-ioremap = devm_ioremap(...);
+ioremap = devm_platform_ioremap_resource_byname(pdev,name);
...+>
Signed-off-by: Anusha Srivatsa
---
A
= devm_ioremap_resource(...);
+ioremap_res = devm_platform_ioremap_resource(pdev,0);
Cc: Joel Stanley
Acked-by: Andrew Jeffery
Reviewed-by: Maxime Ripard
Signed-off-by: Anusha Srivatsa
---
drivers/gpu/drm/aspeed/aspeed_gfx_drv.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git
= devm_ioremap_resource(...);
+ioremap_res = devm_platform_ioremap_resource(pdev,0);
Cc: Stefan Agner
Cc: Alison Wang
Reviewed-by: Maxime Ripard
Signed-off-by: Anusha Srivatsa
---
drivers/gpu/drm/fsl-dcu/fsl_dcu_drm_drv.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a
Update the Documentation to be more precise.
v2: Update for clarity
v3: Further details in Todo
Cc: Thomas Zimmermann
Signed-off-by: Anusha Srivatsa
---
Documentation/gpu/todo.rst | 13 +++--
1 file changed, 7 insertions(+), 6 deletions(-)
diff --git a/Documentation/gpu/todo.rst b
= devm_ioremap_resource(...);
+ioremap_res = devm_platform_ioremap_resource(pdev,0);
Cc: Maarten Lankhorst
Cc: Maxime Ripard
Reviewed-by: Maxime Ripard
Acked-by: Alexey Brodkin
Signed-off-by: Anusha Srivatsa
---
drivers/gpu/drm/tiny/arcpgu.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions
h to work on multiple occurences of
the pattern. This also fixes the compilation error.
v3: Do not convert "hd" resource to follow the rest of the
refactor. (Maxime)
Cc: Maxime Ripard
Cc: Dave Stevenson
Cc: Maíra Canal
Signed-off-by: Anusha Srivatsa
---
drivers/gpu/d
On Fri, Mar 7, 2025 at 12:47 PM Maxime Ripard wrote:
> On Thu, Mar 06, 2025 at 02:12:14PM -0500, Anusha Srivatsa wrote:
> > On Thu, Mar 6, 2025 at 12:54 PM Doug Anderson
> wrote:
> > > On Thu, Mar 6, 2025 at 9:20 AM Maxime Ripard
> wrote:
> > > >
> &
On Tue, 18 Mar 2025 at 12:00 PM, Dmitry Baryshkov <
dmitry.barysh...@oss.qualcomm.com> wrote:
> On Tue, 18 Mar 2025 at 18:55, Anusha Srivatsa wrote:
> >
> > On Sun, Mar 16, 2025 at 7:32 PM Dmitry Baryshkov <
> dmitry.barysh...@oss.qualcomm.com> wrote:
> >>
ifier dsi_var;
identifier func;
type t;
position p;
expression list es;
@@
t func(...) {
...
struct mipi_dsi_multi_context dsi_ctx = { .dsi = dsi_var };
...
-return 0;
+return dsi_ctx.accum_err;
}
v2: Use mipi_dsi_dcs_write_buffer_multi() in place of
mipi_dsi_dcs_write(). (Dmitry)
Cc: Maxime Ripard
Cc
On Mon, Mar 17, 2025 at 6:14 AM Neil Armstrong
wrote:
> On 16/03/2025 18:40, Anusha Srivatsa wrote:
> >
> >
> > On Fri, Mar 14, 2025 at 10:20 AM Doug Anderson <mailto:diand...@chromium.org>> wrote:
> >
> > Hi,
> >
> > On Thu,
On Sun, Mar 16, 2025 at 7:32 PM Dmitry Baryshkov <
dmitry.barysh...@oss.qualcomm.com> wrote:
> On Sun, Mar 16, 2025 at 02:58:22PM -0400, Anusha Srivatsa wrote:
> > Move away from using deprecated API and use _multi
> > variants if available. Use mipi_dsi_msleep()
> >
;
expression list es;
@@
t func(...) {
...
struct mipi_dsi_multi_context dsi_ctx = { .dsi = dsi_var };
...
-return 0;
+return dsi_ctx.accum_err;
}
Cc: Maxime Ripard
Cc: Dmitry Baryshkov
Cc: Tejas Vipin
Cc: Douglas Anderson
Cc: Neil Armstrong
Reviewed-by: Douglas Anderson
Signed-off-by: A
On Fri, Mar 14, 2025 at 2:22 PM Maxime Ripard wrote:
> Hi
>
> On Fri, Mar 14, 2025 at 12:47:16AM -0400, Anusha Srivatsa wrote:
> > Move away from using deprecated API and use _multi
> > variants if available. Use mipi_dsi_msleep()
> > and mipi_dsi_usleep_range()
.
-return 0;
+return dsi_ctx.accum_err;
}
Cc: Maxime Ripard
Cc: Dmitry Baryshkov
Cc: Tejas Vipin
Cc: Doug Anderson
Signed-off-by: Anusha Srivatsa
---
drivers/gpu/drm/panel/panel-sharp-ls043t1le01.c | 36 ++---
1 file changed, 14 insertions(+), 22 deletions(-)
diff --git a
On Fri, Mar 14, 2025 at 8:27 AM Luca Ceresoli
wrote:
> Hello Anusha,
>
> On Thu, 13 Mar 2025 16:34:45 -0400
> Anusha Srivatsa wrote:
>
> > > > +void *__devm_drm_panel_alloc(struct device *dev, size_t size,
> size_t
> > > offset,
> > > > +
On Sun, Mar 16, 2025 at 7:32 PM Dmitry Baryshkov <
dmitry.barysh...@oss.qualcomm.com> wrote:
> On Sun, Mar 16, 2025 at 02:58:22PM -0400, Anusha Srivatsa wrote:
> > Move away from using deprecated API and use _multi
> > variants if available. Use mipi_dsi_msleep()
> >
Move to using the new API devm_drm_panel_alloc() to allocate the
panel.
Signed-off-by: Anusha Srivatsa
---
drivers/gpu/drm/panel/panel-sony-td4353-jdi.c | 11 +--
1 file changed, 5 insertions(+), 6 deletions(-)
diff --git a/drivers/gpu/drm/panel/panel-sony-td4353-jdi.c
b/drivers/gpu
Move to using the new API devm_drm_panel_alloc() to allocate the
panel.
Signed-off-by: Anusha Srivatsa
---
drivers/gpu/drm/panel/panel-ilitek-ili9806e.c | 10 --
1 file changed, 4 insertions(+), 6 deletions(-)
diff --git a/drivers/gpu/drm/panel/panel-ilitek-ili9806e.c
b/drivers/gpu
Move to using the new API devm_drm_panel_alloc() to allocate the
panel.
Signed-off-by: Anusha Srivatsa
---
drivers/gpu/drm/panel/panel-raydium-rm692e5.c | 10 +-
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/drivers/gpu/drm/panel/panel-raydium-rm692e5.c
b/drivers/gpu
Move to using the new API devm_drm_panel_alloc() to allocate the
panel.
Signed-off-by: Anusha Srivatsa
---
drivers/gpu/drm/panel/panel-leadtek-ltk050h3146w.c | 11 +--
1 file changed, 5 insertions(+), 6 deletions(-)
diff --git a/drivers/gpu/drm/panel/panel-leadtek-ltk050h3146w.c
b
Start using the new helper that does the refcounted
allocations
Signed-off-by: Anusha Srivatsa
---
drivers/gpu/drm/panel/panel-ilitek-ili9805.c | 12 ++--
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/drivers/gpu/drm/panel/panel-ilitek-ili9805.c
b/drivers/gpu/drm/panel
Move to using the new API devm_drm_panel_alloc() to allocate the
panel.
Signed-off-by: Anusha Srivatsa
---
drivers/gpu/drm/panel/panel-lg-lg4573.c | 11 +--
1 file changed, 5 insertions(+), 6 deletions(-)
diff --git a/drivers/gpu/drm/panel/panel-lg-lg4573.c
b/drivers/gpu/drm/panel
Move to using the new API devm_drm_panel_alloc() to allocate the
panel.
Signed-off-by: Anusha Srivatsa
---
drivers/gpu/drm/panel/panel-ilitek-ili9341.c | 8 +---
1 file changed, 5 insertions(+), 3 deletions(-)
diff --git a/drivers/gpu/drm/panel/panel-ilitek-ili9341.c
b/drivers/gpu/drm
Move to using the new API devm_drm_panel_alloc() to allocate the
panel.
Signed-off-by: Anusha Srivatsa
---
v2: none.
---
drivers/gpu/drm/panel/panel-leadtek-ltk500hd1829.c | 11 +--
1 file changed, 5 insertions(+), 6 deletions(-)
diff --git a/drivers/gpu/drm/panel/panel-leadtek
Move to using the new API devm_drm_panel_alloc() to allocate the
panel.
Signed-off-by: Anusha Srivatsa
---
drivers/gpu/drm/panel/panel-samsung-s6e3fa7.c | 10 +-
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/drivers/gpu/drm/panel/panel-samsung-s6e3fa7.c
b/drivers/gpu
Move to using the new API devm_drm_panel_alloc() to allocate the
panel.
Signed-off-by: Anusha Srivatsa
---
v2: none
---
drivers/gpu/drm/panel/panel-novatek-nt35950.c | 10 --
1 file changed, 4 insertions(+), 6 deletions(-)
diff --git a/drivers/gpu/drm/panel/panel-novatek-nt35950.c
b
Move to using the new API devm_drm_panel_alloc() to allocate the
panel.
Signed-off-by: Anusha Srivatsa
---
drivers/gpu/drm/panel/panel-raydium-rm69380.c | 10 +-
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/drivers/gpu/drm/panel/panel-raydium-rm69380.c
b/drivers/gpu
e Ripard
Signed-off-by: Anusha Srivatsa
---
Changes in v4:
- Move refcounting documentation from Patch 1 to Patch 2
- Link to v3:
https://lore.kernel.org/r/20250330-b4-panel-refcounting-v3-0-0e0d4e464...@redhat.com
Changes in v3:
- Move the include from patch 1 to patch 2 where it is actually
Move to using the new API devm_drm_panel_alloc() to allocate the
panel.
Signed-off-by: Anusha Srivatsa
---
drivers/gpu/drm/panel/panel-samsung-s6d16d0.c | 11 +--
1 file changed, 5 insertions(+), 6 deletions(-)
diff --git a/drivers/gpu/drm/panel/panel-samsung-s6d16d0.c
b/drivers/gpu
Move to using the new API devm_drm_panel_alloc() to allocate the
panel.
Signed-off-by: Anusha Srivatsa
---
v2: none.
---
drivers/gpu/drm/panel/panel-innolux-p079zca.c | 11 +--
1 file changed, 5 insertions(+), 6 deletions(-)
diff --git a/drivers/gpu/drm/panel/panel-innolux-p079zca.c
b
Move to using the new API devm_drm_panel_alloc() to allocate the
panel.
Signed-off-by: Anusha Srivatsa
---
drivers/gpu/drm/panel/panel-seiko-43wvf1g.c | 11 +--
1 file changed, 5 insertions(+), 6 deletions(-)
diff --git a/drivers/gpu/drm/panel/panel-seiko-43wvf1g.c
b/drivers/gpu/drm
Move to using the new API devm_drm_panel_alloc() to allocate the
panel.
Signed-off-by: Anusha Srivatsa
---
drivers/gpu/drm/panel/panel-ebbg-ft8719.c | 11 +--
1 file changed, 5 insertions(+), 6 deletions(-)
diff --git a/drivers/gpu/drm/panel/panel-ebbg-ft8719.c
b/drivers/gpu/drm/panel
Move to using the new API devm_drm_panel_alloc() to allocate the
panel.
Signed-off-by: Anusha Srivatsa
---
drivers/gpu/drm/panel/panel-himax-hx83112a.c | 10 +-
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/drivers/gpu/drm/panel/panel-himax-hx83112a.c
b/drivers/gpu/drm
Move to using the new API devm_drm_panel_alloc() to allocate the
panel.
Signed-off-by: Anusha Srivatsa
---
drivers/gpu/drm/panel/panel-raydium-rm67191.c | 10 +-
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/drivers/gpu/drm/panel/panel-raydium-rm67191.c
b/drivers/gpu
Start converting drivers to use the API - devm_drm_panel_alloc().
Sending next 30 drivers. Sending in batches for easier review.
Signed-off-by: Anusha Srivatsa
---
Anusha Srivatsa (30):
panel/panel-elida-kd35t133: Refcounted allocation
panel/elida-kd35t133: Use refcounted allocation
Move to using the new API devm_drm_panel_alloc() to allocate the
panel.
Signed-off-by: Anusha Srivatsa
---
drivers/gpu/drm/panel/panel-samsung-s6d27a1.c | 11 +--
1 file changed, 5 insertions(+), 6 deletions(-)
diff --git a/drivers/gpu/drm/panel/panel-samsung-s6d27a1.c
b/drivers/gpu
Move to using the new API devm_drm_panel_alloc() to allocate the
panel.
Signed-off-by: Anusha Srivatsa
---
drivers/gpu/drm/panel/panel-mantix-mlaf057we51.c | 11 +--
1 file changed, 5 insertions(+), 6 deletions(-)
diff --git a/drivers/gpu/drm/panel/panel-mantix-mlaf057we51.c
b/drivers
Move to using the new API devm_drm_panel_alloc() to allocate the
panel.
Signed-off-by: Anusha Srivatsa
---
drivers/gpu/drm/panel/panel-leadtek-ltk500hd1829.c | 11 +--
1 file changed, 5 insertions(+), 6 deletions(-)
diff --git a/drivers/gpu/drm/panel/panel-leadtek-ltk500hd1829.c
b
-off-by: Anusha Srivatsa
---
drivers/gpu/drm/drm_panel.c | 25 +
include/drm/drm_panel.h | 22 ++
2 files changed, 47 insertions(+)
diff --git a/drivers/gpu/drm/drm_panel.c b/drivers/gpu/drm/drm_panel.c
index
c627e42a7ce70459f50eb5095fffc806ca45dabf
On Wed, Mar 26, 2025 at 11:31 AM Maxime Ripard wrote:
> On Tue, Mar 25, 2025 at 01:24:10PM -0400, Anusha Srivatsa wrote:
> > Take the panel reference and put it back as required
> > using the helpers introduced in previous patch.
> > drm_panel_add() and drm_panel_remove()
&
On Wed, Mar 26, 2025 at 11:26 AM Maxime Ripard wrote:
> On Wed, Mar 26, 2025 at 10:22:59AM +0100, Luca Ceresoli wrote:
> > Hello Anusha,
> >
> > On Tue, 25 Mar 2025 13:24:08 -0400
> > Anusha Srivatsa wrote:
> >
> > > Introduce reference counted alloc
On Wed, Mar 26, 2025 at 11:32 AM Maxime Ripard wrote:
> On Tue, Mar 25, 2025 at 01:24:11PM -0400, Anusha Srivatsa wrote:
> > Start moving to the new refcounted allocations using
> > the new API devm_drm_panel_alloc(). Deprecate any other
> > allocation.
> >
> &g
On Thu, Mar 27, 2025 at 4:54 PM Doug Anderson wrote:
> Hi,
>
> On Wed, Mar 26, 2025 at 8:29 PM Anusha Srivatsa
> wrote:
> >
> > Move away from using deprecated API and use _multi variants
> > if available. Use mipi_dsi_msleep() and mipi_dsi_usleep_range
On Tue, Mar 25, 2025 at 11:34 AM Doug Anderson
wrote:
> Hi,
>
> On Mon, Mar 24, 2025 at 1:31 PM Anusha Srivatsa
> wrote:
> >
> > Move away from using deprecated API and use _multi
> > variants if available. Use mipi_dsi_msleep()
> > and mipi_dsi_usleep
Baryshkov
Cc: Tejas Vipin
Cc: Doug Anderson
Signed-off-by: Anusha Srivatsa
---
Changes in v3:
- Simplify commit log by adding a reference to a patch that uses the
same script.
- Simplify code by using a helper that doesnt need additional code
changes other then using the helper itself.
-
Start using the new helper that does the refcounted
allocations.
v2: check error condition (Luca)
Signed-off-by: Anusha Srivatsa
---
drivers/gpu/drm/panel/panel-simple.c | 9 -
1 file changed, 4 insertions(+), 5 deletions(-)
diff --git a/drivers/gpu/drm/panel/panel-simple.c
b/drivers
Start moving to the new refcounted allocations using
the new API devm_drm_panel_alloc(). Deprecate any other
allocation.
v2: make the documentation changes in v1 more precise (Maxime)
Reviewed-by: Luca Ceresoli
Signed-off-by: Anusha Srivatsa
---
drivers/gpu/drm/drm_panel.c | 5 +++--
1 file
On Thu, Mar 27, 2025 at 11:58 AM Maxime Ripard wrote:
> On Thu, Mar 27, 2025 at 10:55:39AM -0400, Anusha Srivatsa wrote:
> > Introduce reference counted allocations for panels to avoid
> > use-after-free. The patch adds the macro devm_drm_bridge_alloc()
> > to allocate a
: Better documentation for connector_type field - follow drm_panel_init
documentation. (Luca)
- Clarify the refcount initialisation in comments.(Maxime)
- Correct the documentation of the return type (Maxime)
Signed-off-by: Anusha Srivatsa
---
drivers/gpu/drm/drm_panel.c | 25
better workding (Luca, Maxime)
- Change drm_panel_put() to return void (Luca)
- Code Cleanups - add return in documentation, replace bridge to
panel (Luca)
Signed-off-by: Anusha Srivatsa
---
drivers/gpu/drm/drm_panel.c | 64 -
include/drm/drm_panel.h
e Ripard
Signed-off-by: Anusha Srivatsa
---
Changes in v2:
- Change drm_panel_put() to return void.
- Export drm_panel_get()/put()
- Code cleanups: add missing return documentation, improve documentation
in commit logs.
- Link to v1:
https://lore.kernel.org/r/20250325-b4-panel-refcountin
On Fri, Mar 28, 2025 at 4:34 AM Luca Ceresoli
wrote:
> Hello Anusha,
>
> Thanks for your continued effort.
>
> I have a few minor comments. Nothing big, but since Maxime requested a
> change you'll have to send a new iteration, so find my comments below.
>
> On Th
Move to using the new API devm_drm_panel_alloc() to allocate the
panel.
Signed-off-by: Anusha Srivatsa
---
drivers/gpu/drm/panel/panel-boe-bf060y8m-aj0.c | 11 +--
1 file changed, 5 insertions(+), 6 deletions(-)
diff --git a/drivers/gpu/drm/panel/panel-boe-bf060y8m-aj0.c
b/drivers/gpu
Move to using the new API devm_drm_panel_alloc() to allocate the
panel.
Signed-off-by: Anusha Srivatsa
---
drivers/gpu/drm/panel/panel-boe-th101mb31ig002-28a.c | 11 +--
1 file changed, 5 insertions(+), 6 deletions(-)
diff --git a/drivers/gpu/drm/panel/panel-boe-th101mb31ig002-28a.c
b
Move to using the new API devm_drm_panel_alloc() to allocate the
panel.
Signed-off-by: Anusha Srivatsa
---
drivers/gpu/drm/panel/panel-abt-y030xx067a.c | 10 --
1 file changed, 4 insertions(+), 6 deletions(-)
diff --git a/drivers/gpu/drm/panel/panel-abt-y030xx067a.c
b/drivers/gpu/drm
Move to using the new API devm_drm_panel_alloc() to allocate the
panel.
Signed-off-by: Anusha Srivatsa
---
drivers/gpu/drm/panel/panel-auo-a030jtn01.c | 10 --
1 file changed, 4 insertions(+), 6 deletions(-)
diff --git a/drivers/gpu/drm/panel/panel-auo-a030jtn01.c
b/drivers/gpu/drm
Move to using the new API devm_drm_panel_alloc() to allocate the
panel.
Signed-off-by: Anusha Srivatsa
---
drivers/gpu/drm/panel/panel-asus-z00t-tm5p5-n35596.c | 11 +--
1 file changed, 5 insertions(+), 6 deletions(-)
diff --git a/drivers/gpu/drm/panel/panel-asus-z00t-tm5p5-n35596.c
b
Move to using the new API devm_drm_panel_alloc() to allocate the
panel.
Signed-off-by: Anusha Srivatsa
---
drivers/gpu/drm/panel/panel-dsi-cm.c | 10 --
1 file changed, 4 insertions(+), 6 deletions(-)
diff --git a/drivers/gpu/drm/panel/panel-dsi-cm.c
b/drivers/gpu/drm/panel/panel-dsi
Move to using the new API devm_drm_panel_alloc() to allocate the
panel.
Signed-off-by: Anusha Srivatsa
---
drivers/gpu/drm/panel/panel-arm-versatile.c | 11 +--
1 file changed, 5 insertions(+), 6 deletions(-)
diff --git a/drivers/gpu/drm/panel/panel-arm-versatile.c
b/drivers/gpu/drm
Move to using the new API devm_drm_panel_alloc() to allocate the
panel.
Signed-off-by: Anusha Srivatsa
---
drivers/gpu/drm/panel/panel-edp.c | 9 -
1 file changed, 4 insertions(+), 5 deletions(-)
diff --git a/drivers/gpu/drm/panel/panel-edp.c
b/drivers/gpu/drm/panel/panel-edp.c
index
Move to using the new API devm_drm_panel_alloc() to allocate the
panel.
Signed-off-by: Anusha Srivatsa
---
drivers/gpu/drm/panel/panel-boe-tv101wum-ll2.c | 10 +-
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/drivers/gpu/drm/panel/panel-boe-tv101wum-ll2.c
b/drivers/gpu
remaining drivers.
Signed-off-by: Anusha Srivatsa
---
Anusha Srivatsa (10):
panel/abt-y030xx067a: Use the refcounted allocation in place of
devm_kzalloc()
panel/arm-versatile: Use the refcounted allocation in place of
devm_kzalloc()
panel/z00t-tm5p5-n35596: Use refcounted allocation
xt dsi_ctx = { .dsi = dsi_var };
...
-return 0;
+return dsi_ctx.accum_err;
}
Cc: Maxime Ripard
Cc: Dmitry Baryshkov
Cc: Tejas Vipin
Cc: Doug Anderson
Signed-off-by: Anusha Srivatsa
---
Previous attempt for this change was addressed in:[1]
The series did not handle returns properly and sti
On Fri, Mar 14, 2025 at 10:20 AM Doug Anderson
wrote:
> Hi,
>
> On Thu, Mar 13, 2025 at 9:47 PM Anusha Srivatsa
> wrote:
> >
> > @@ -181,24 +162,15 @@ static int r63353_panel_prepare(struct drm_panel
> *panel)
> > static int r63353_panel_deact
On Mon, Mar 17, 2025 at 6:12 AM Neil Armstrong
wrote:
> On 13/03/2025 01:54, Anusha Srivatsa wrote:
> > Start using the new helper that does the refcounted
> > allocations.
> >
> > Signed-off-by: Anusha Srivatsa
> > ---
> > drivers/gpu/drm/panel/panel-si
i Nikula wrote:
> > >> On Mon, 31 Mar 2025, Anusha Srivatsa wrote:
> > >> > Allocate panel via reference counting. Add _get() and _put() helper
> > >> > functions to ensure panel allocations are refcounted. Avoid use
> after
> > >> &g
}
>
> +/**
> + * drm_gem_is_imported() - Tests if GEM object's buffer has been imported
> + * @obj: the GEM object
> + *
> + * Returns:
> + * True if the GEM object's buffer has been imported, false otherwise
> + */
> +static inline bool drm_gem_is_imported(const struct drm_gem_obj
On Wed, Feb 26, 2025 at 5:19 AM Raphael Gallais-Pou <
raphael.gallais-...@foss.st.com> wrote:
>
> On 2/25/25 23:20, Anusha Srivatsa wrote:
> > Replace platform_get_resource/_byname + devm_ioremap
> > with just devm_platform_ioremap_resource()
> >
> > Used Cocc
On Thu, Mar 6, 2025 at 11:29 AM Dmitry Baryshkov <
dmitry.barysh...@linaro.org> wrote:
> On Thu, 6 Mar 2025 at 17:10, Anusha Srivatsa wrote:
> >
> >
> >
> > On Thu, Mar 6, 2025 at 4:31 AM Maxime Ripard wrote:
> >>
> >> Hi Anusha,
> &g
(...);
+ioremap = devm_platform_ioremap_resource_byname(pdev,name);
...+>
Signed-off-by: Anusha Srivatsa
---
Anusha Srivatsa (7):
drm/fsl-dcu: move to devm_platform_ioremap_resource() usage
drm/hisilicon: move to devm_platform_ioremap_resource() usage
drm/mxsfb: move to devm_platfor
res) {
-...
-}
...>
-ioremap = devm_ioremap(...);
+ioremap = devm_platform_ioremap_resource(pdev,0);
v2: Address the return handling properly since
the new API returns error pointers and not NULL.
Cc: Chunyan Zhang
Cc: Dmitry Baryshkov
Signed-off-by: Anusha Srivatsa
Reviewed-by: Chunyan Zhang (v1)
Revie
= devm_ioremap_resource(...);
+ioremap_res = devm_platform_ioremap_resource(pdev,0);
Cc: Thierry Reding
Cc: Mikko Perttunen
Reviewed-by: Maxime Ripard
Signed-off-by: Anusha Srivatsa
---
drivers/gpu/drm/tegra/dsi.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/drivers/gpu
-by: Raphael Gallais-Pou (v2)
Signed-off-by: Anusha Srivatsa
---
drivers/gpu/drm/sti/sti_compositor.c | 14 +++---
drivers/gpu/drm/sti/sti_dvo.c| 14 +++---
drivers/gpu/drm/sti/sti_hda.c| 13 +++--
drivers/gpu/drm/sti/sti_hdmi.c | 15 +++
drivers
101 - 200 of 523 matches
Mail list logo