drm/imx/lcdc: Fix double-free of driver data[ Upstream commit ff3670877e7c73d06c2a835d9abb62efcae0145c ]The struct imx_lcdc driver data is allocated using devm_drm_dev_alloc()so it must not be e
drm/imx/lcdc: Fix double-free of driver data[ Upstream commit ff3670877e7c73d06c2a835d9abb62efcae0145c ]The struct imx_lcdc driver data is allocated using devm_drm_dev_alloc()so it must not be explicitly kfree()d.Also drm_kms_helper_poll_fini() should not be called as there is nomatching drm_kms_helper_poll_init(). So drop the release functioncompletely.Fixes: c87e859cdeb5 ("drm/imx/lcdc: Implement DRM driver for imx25")Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>Reviewed-by: Philipp Zabel <p.zabel@pengutronix.de>Signed-off-by: Philipp Zabel <philipp.zabel@gmail.com>Link: https://patchwork.freedesktop.org/patch/msgid/20230706092731.2630232-1-u.kleine-koenig@pengutronix.deSigned-off-by: Sasha Levin <sashal@kernel.org>
show more ...
drm: Explicitly include correct DT includesThe DT of_device.h and of_platform.h date back to the separateof_platform_bus_type before it as merged into the regular platform bus.As part of that mer
drm: Explicitly include correct DT includesThe DT of_device.h and of_platform.h date back to the separateof_platform_bus_type before it as merged into the regular platform bus.As part of that merge prepping Arm DT support 13 years ago, they"temporarily" include each other. They also include platform_device.hand of.h. As a result, there's a pretty much random mix of those includefiles used throughout the tree. In order to detangle these headers andreplace the implicit includes with struct declarations, users need toexplicitly include the correct includes.Signed-off-by: Rob Herring <robh@kernel.org>Acked-by: Sam Ravnborg <sam@ravnborg.org>Reviewed-by: Steven Price <steven.price@arm.com>Acked-by: Liviu Dudau <liviu.dudau@arm.com>Reviewed-by: Kieran Bingham <kieran.bingham+renesas@ideasonboard.com>Acked-by: Robert Foss <rfoss@kernel.org>Signed-off-by: Thierry Reding <treding@nvidia.com>Link: https://patchwork.freedesktop.org/patch/msgid/20230714174545.4056287-1-robh@kernel.org
drm/imx/lcdc: fix a NULL vs IS_ERR() bug in probeThe devm_drm_dev_alloc() function returns error pointers. It neverreturns NULL. Fix the check.Fixes: c87e859cdeb5 ("drm/imx/lcdc: Implement DRM
drm/imx/lcdc: fix a NULL vs IS_ERR() bug in probeThe devm_drm_dev_alloc() function returns error pointers. It neverreturns NULL. Fix the check.Fixes: c87e859cdeb5 ("drm/imx/lcdc: Implement DRM driver for imx25")Signed-off-by: Dan Carpenter <error27@gmail.com>Reviewed-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>Signed-off-by: Javier Martinez Canillas <javierm@redhat.com>Link: https://patchwork.freedesktop.org/patch/msgid/d0a1fc55-3ef6-444e-b3ef-fdc937d8d57a@kili.mountain
Merge tag 'drm-misc-next-2023-03-16' of git://anongit.freedesktop.org/drm/drm-misc into drm-nextdrm-misc-next for v6.4-rc1:Cross-subsystem Changes:- Add drm_bridge.h to drm_bridge maintainers.
Merge tag 'drm-misc-next-2023-03-16' of git://anongit.freedesktop.org/drm/drm-misc into drm-nextdrm-misc-next for v6.4-rc1:Cross-subsystem Changes:- Add drm_bridge.h to drm_bridge maintainers.Core Changes:- Assorted fixes to TTM, tests, format-helper, accel.- Assorted Makefile fixes to drivers and accel.- Implement fbdev emulation for GEM DMA drivers, and convert a lot of drivers to use it.- Use tgid instead of pid for tracking clients.Driver Changes:- Assorted fixes in rockchip, vmwgfx, nouveau, cirrus.- Add imx25 driver.- Add Elida KD50T048A, Sony TD4353, Novatek NT36523, STARRY 2081101QFH032011-53G panels.- Add 4K mode support to rockchip.- Convert cirrus to use regular atomic helpers, and more cirrus improvements.- Add damage clipping to cirrus, virtio.[airlied: add drm_bridge.h include to imx]Signed-off-by: Dave Airlie <airlied@redhat.com>From: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>Link: https://patchwork.freedesktop.org/patch/msgid/f7b765c7-d49d-edb5-2a6a-4f7a7be16a59@linux.intel.com
drm/imx/lcdc: Implement DRM driver for imx25Add support for the LCD Controller found on i.MX21 and i.MX25.It targets to be a drop in replacement for the imx-fb driver.[ukl: Rebase to a newer ke
drm/imx/lcdc: Implement DRM driver for imx25Add support for the LCD Controller found on i.MX21 and i.MX25.It targets to be a drop in replacement for the imx-fb driver.[ukl: Rebase to a newer kernel version, various smaller fixes andimprovements]Signed-off-by: Marian Cichy <m.cichy@pengutronix.de>Reviewed-by: Philipp Zabel <p.zabel@pengutronix.de>Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>Link: https://lore.kernel.org/r/20230306115249.2223042-2-u.kleine-koenig@pengutronix.deSigned-off-by: Philipp Zabel <p.zabel@pengutronix.de>Link: https://patchwork.freedesktop.org/patch/msgid/20230306115249.2223042-3-u.kleine-koenig@pengutronix.de