On Tue, Feb 22, 2022 at 09:07:49PM +, Stephen Boyd wrote:
> Quoting José Expósito (2022-02-20 23:33:39)
> > The function "drm_of_find_panel_or_bridge" has been deprecated in
> > favor of "devm_drm_of_get_bridge".
> >
> > Switch to the new functio
The function "drm_of_find_panel_or_bridge" has been deprecated in
favor of "devm_drm_of_get_bridge".
Switch to the new function and reduce boilerplate.
Signed-off-by: José Expósito
---
drivers/gpu/drm/msm/dp/dp_parser.c | 10 +-
1 file changed, 1 insertion(+),
s")
Addresses-Coverity-ID: 1493860 ("Null pointer dereference")
Signed-off-by: José Expósito
---
drivers/gpu/drm/msm/dsi/phy/dsi_phy.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/drivers/gpu/drm/msm/dsi/phy/dsi_phy.c
b/drivers/gpu/drm/msm/dsi/phy/dsi_phy.c
n dpu
driver")
Addresses-Coverity-ID: 1493866 ("Null pointer dereference")
Signed-off-by: José Expósito
---
drivers/gpu/drm/msm/disp/dpu1/dpu_hw_dspp.c | 11 +--
1 file changed, 9 insertions(+), 2 deletions(-)
diff --git a/drivers/gpu/drm/msm/disp/dpu1/dpu_hw_dspp.c
b/dri
Implement the missing "drm_plane_funcs.format_mod_supported" function
to avoid exposing an invalid IN_FORMATS blob with modifiers but no
formats.
Signed-off-by: José Expósito
---
drivers/gpu/drm/msm/disp/mdp4/mdp4_plane.c | 8
1 file changed, 8 insertions(+)
diff --git a/d
Implement the missing "drm_plane_funcs.format_mod_supported" function
to avoid exposing an invalid IN_FORMATS blob with modifiers but no
formats.
Signed-off-by: José Expósito
---
drivers/gpu/drm/sun4i/sun8i_ui_layer.c | 7 +++
drivers/gpu/drm/sun4i/sun8i_vi_layer.c | 7 ++
program [2].
Make clear in the IN_FORMATS documentation that implementing
"format_mod_supported" is mandatory.
[1]
https://gitlab.freedesktop.org/wayland/weston/-/blob/9.0/libweston/backend-drm/kms.c#L431
[2] https://github.com/JoseExposito/drm-sandbox/blob/main/in_formats.c
Signed-o
d I didn't find more instances of
the issue.
Jose
José Expósito (3):
drm/plane: Mention format_mod_supported in IN_FORMATS docs
drm/msm/mdp4: Add format_mod_supported function
drm/sun4i: Add format_mod_supported function
drivers/gpu/drm/drm_plane.c| 7 +--
drivers/g