| .. | .. |
|---|
| 629 | 629 | |
|---|
| 630 | 630 | dsi->format = format; |
|---|
| 631 | 631 | bpp = mipi_dsi_pixel_format_to_bpp(dsi->format); |
|---|
| 632 | | - if (bpp < 0) { |
|---|
| 632 | + if (bpp <= 0) { |
|---|
| 633 | 633 | DRM_DEV_ERROR(dsi->dev, |
|---|
| 634 | 634 | "failed to get bpp for pixel format %d\n", |
|---|
| 635 | 635 | dsi->format); |
|---|
| .. | .. |
|---|
| 1101 | 1101 | return 0; |
|---|
| 1102 | 1102 | } |
|---|
| 1103 | 1103 | |
|---|
| 1104 | +static void |
|---|
| 1105 | +dw_mipi_dsi_rockchip_stream_standby(void *priv_data, bool standby) |
|---|
| 1106 | +{ |
|---|
| 1107 | + struct dw_mipi_dsi_rockchip *dsi = priv_data; |
|---|
| 1108 | + struct drm_encoder *encoder = &dsi->encoder; |
|---|
| 1109 | + |
|---|
| 1110 | + rockchip_drm_crtc_standby(encoder->crtc, standby); |
|---|
| 1111 | +} |
|---|
| 1112 | + |
|---|
| 1104 | 1113 | static int dw_mipi_dsi_rockchip_probe(struct platform_device *pdev) |
|---|
| 1105 | 1114 | { |
|---|
| 1106 | 1115 | struct device *dev = &pdev->dev; |
|---|
| .. | .. |
|---|
| 1209 | 1218 | dsi->pdata.max_data_lanes = dsi->cdata->max_data_lanes; |
|---|
| 1210 | 1219 | dsi->pdata.phy_ops = &dw_mipi_dsi_rockchip_phy_ops; |
|---|
| 1211 | 1220 | dsi->pdata.priv_data = dsi; |
|---|
| 1221 | + |
|---|
| 1222 | + if (dsi->cdata->soc_type == RK3568) |
|---|
| 1223 | + dsi->pdata.stream_standby = dw_mipi_dsi_rockchip_stream_standby; |
|---|
| 1224 | + |
|---|
| 1212 | 1225 | platform_set_drvdata(pdev, dsi); |
|---|
| 1213 | 1226 | |
|---|
| 1214 | 1227 | dsi->dmd = dw_mipi_dsi_probe(pdev, &dsi->pdata); |
|---|