mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-08-23 15:26:50 -04:00
drm/bridge: cdns-mhdp8546: Switch to atomic_create_state
The cdns-mhdp8546 bridge atomic_reset implementation is semantically an atomic_create_state: it allocates and initializes a pristine state without side effects. Switch to the atomic_create_state callback, and rename the function accordingly. Reviewed-by: Thomas Zimmermann <tzimmermann@suse.de> Reviewed-by: Luca Ceresoli <luca.ceresoli@bootlin.com> Tested-by: Luca Ceresoli <luca.ceresoli@bootlin.com> # imx8mp + sn65dsi84 + bridge hotplug Link: https://patch.msgid.link/20260619-drm-no-more-bridge-reset-v3-77-ff399263111b@kernel.org Signed-off-by: Maxime Ripard <mripard@kernel.org>
This commit is contained in:
@@ -1921,7 +1921,7 @@ cdns_mhdp_bridge_atomic_destroy_state(struct drm_bridge *bridge,
|
||||
}
|
||||
|
||||
static struct drm_bridge_state *
|
||||
cdns_mhdp_bridge_atomic_reset(struct drm_bridge *bridge)
|
||||
cdns_mhdp_bridge_atomic_create_state(struct drm_bridge *bridge)
|
||||
{
|
||||
struct cdns_mhdp_bridge_state *cdns_mhdp_state;
|
||||
|
||||
@@ -2051,7 +2051,7 @@ static const struct drm_bridge_funcs cdns_mhdp_bridge_funcs = {
|
||||
.detach = cdns_mhdp_detach,
|
||||
.atomic_duplicate_state = cdns_mhdp_bridge_atomic_duplicate_state,
|
||||
.atomic_destroy_state = cdns_mhdp_bridge_atomic_destroy_state,
|
||||
.atomic_reset = cdns_mhdp_bridge_atomic_reset,
|
||||
.atomic_create_state = cdns_mhdp_bridge_atomic_create_state,
|
||||
.atomic_get_input_bus_fmts = cdns_mhdp_get_input_bus_fmts,
|
||||
.detect = cdns_mhdp_bridge_detect,
|
||||
.edid_read = cdns_mhdp_bridge_edid_read,
|
||||
|
||||
Reference in New Issue
Block a user