| .. | .. |
|---|
| 876 | 876 | static void dw_mipi_dsi_bridge_post_disable(struct drm_bridge *bridge) |
|---|
| 877 | 877 | { |
|---|
| 878 | 878 | struct dw_mipi_dsi *dsi = bridge_to_dsi(bridge); |
|---|
| 879 | + const struct dw_mipi_dsi_plat_data *pdata = dsi->plat_data; |
|---|
| 879 | 880 | |
|---|
| 880 | 881 | if (dsi->panel) |
|---|
| 881 | 882 | drm_panel_unprepare(dsi->panel); |
|---|
| 882 | 883 | |
|---|
| 883 | 884 | dw_mipi_dsi_post_disable(dsi); |
|---|
| 885 | + |
|---|
| 886 | + if (pdata->stream_standby) |
|---|
| 887 | + pdata->stream_standby(pdata->priv_data, 0); |
|---|
| 884 | 888 | } |
|---|
| 885 | 889 | |
|---|
| 886 | 890 | static void dw_mipi_dsi_bridge_disable(struct drm_bridge *bridge) |
|---|
| 887 | 891 | { |
|---|
| 888 | 892 | struct dw_mipi_dsi *dsi = bridge_to_dsi(bridge); |
|---|
| 893 | + const struct dw_mipi_dsi_plat_data *pdata = dsi->plat_data; |
|---|
| 889 | 894 | |
|---|
| 890 | 895 | if (dsi->panel) |
|---|
| 891 | 896 | drm_panel_disable(dsi->panel); |
|---|
| 897 | + |
|---|
| 898 | + if (pdata->stream_standby) |
|---|
| 899 | + pdata->stream_standby(pdata->priv_data, 1); |
|---|
| 892 | 900 | |
|---|
| 893 | 901 | dw_mipi_dsi_disable(dsi); |
|---|
| 894 | 902 | } |
|---|
| .. | .. |
|---|
| 975 | 983 | static void dw_mipi_dsi_bridge_pre_enable(struct drm_bridge *bridge) |
|---|
| 976 | 984 | { |
|---|
| 977 | 985 | struct dw_mipi_dsi *dsi = bridge_to_dsi(bridge); |
|---|
| 986 | + const struct dw_mipi_dsi_plat_data *pdata = dsi->plat_data; |
|---|
| 987 | + |
|---|
| 988 | + if (pdata->stream_standby) |
|---|
| 989 | + pdata->stream_standby(pdata->priv_data, 1); |
|---|
| 978 | 990 | |
|---|
| 979 | 991 | dw_mipi_dsi_pre_enable(dsi); |
|---|
| 980 | 992 | |
|---|
| .. | .. |
|---|
| 1006 | 1018 | static void dw_mipi_dsi_bridge_enable(struct drm_bridge *bridge) |
|---|
| 1007 | 1019 | { |
|---|
| 1008 | 1020 | struct dw_mipi_dsi *dsi = bridge_to_dsi(bridge); |
|---|
| 1021 | + const struct dw_mipi_dsi_plat_data *pdata = dsi->plat_data; |
|---|
| 1009 | 1022 | |
|---|
| 1010 | 1023 | dw_mipi_dsi_enable(dsi); |
|---|
| 1011 | 1024 | |
|---|
| 1025 | + if (pdata->stream_standby) |
|---|
| 1026 | + pdata->stream_standby(pdata->priv_data, 0); |
|---|
| 1027 | + |
|---|
| 1012 | 1028 | if (dsi->panel) |
|---|
| 1013 | 1029 | drm_panel_enable(dsi->panel); |
|---|
| 1014 | 1030 | |
|---|