Maxime Ripard 52541851a8 drm/mipi-dsi: Create devm device attachment
[ Upstream commit db6568498b35a4d5d5a99420df27ed25fae31406 ]

MIPI-DSI devices need to call mipi_dsi_attach() when their probe is done
to attach against their host.

However, at removal or when an error occurs, that attachment needs to be
undone through a call to mipi_dsi_detach().

Let's create a device-managed variant of the attachment function that
will automatically detach the device at unbind.

Reviewed-by: Andrzej Hajda <a.hajda@samsung.com>
Signed-off-by: Maxime Ripard <maxime@cerno.tech>
Link: https://patchwork.freedesktop.org/patch/msgid/20210910101218.1632297-5-maxime@cerno.tech
Stable-dep-of: 941882a0e96d ("drm/bridge: lt8912b: Fix bridge_detach")
Signed-off-by: Sasha Levin <sashal@kernel.org>
2023-11-20 11:08:19 +01:00
..
2021-07-29 09:12:01 +02:00
2021-08-10 20:14:01 +02:00
2021-06-11 12:30:39 -07:00
2021-08-10 20:14:01 +02:00
2021-08-02 16:41:20 +02:00
2021-08-10 20:14:01 +02:00
2020-09-17 13:39:44 +02:00
2020-07-16 18:16:31 -04:00
2021-03-16 13:12:46 +01:00