[PATCH v4 6/9] drm/bridge: cdns: Separate DSI and D-PHY configuration
Maxime Ripard
maxime.ripard at bootlin.com
Mon Jan 21 15:43:28 UTC 2019
On Thu, Jan 17, 2019 at 08:33:38AM -0500, Sean Paul wrote:
> > @@ -768,49 +769,90 @@ static int cdns_dsi_mode2cfg(struct cdns_dsi *dsi,
> >
> > dsi_cfg->hsa = dpi_to_dsi_timing(tmp, bpp,
> > DSI_HSA_FRAME_OVERHEAD);
> > - dsi_htotal += dsi_cfg->hsa + DSI_HSA_FRAME_OVERHEAD;
> > - dsi_hss_hsa_hse_hbp += dsi_cfg->hsa + DSI_HSA_FRAME_OVERHEAD;
> > }
> >
> > dsi_cfg->hact = dpi_to_dsi_timing(mode_valid_check ?
> > mode->hdisplay : mode->crtc_hdisplay,
> > bpp, 0);
> > - dsi_htotal += dsi_cfg->hact;
> > + dsi_cfg->hfp = dpi_to_dsi_timing(mode_to_dpi_hfp(mode), bpp,
> > + DSI_HFP_FRAME_OVERHEAD);
>
> We're throwing away the mode_valid_check switch here to flip between crtc_h*
> value and h* value. Is that intentional? We're using it above for hdisplay, so
> it's a bit confusing.
ah, right, thanks for spotting this.
I'll resend a version with those changes, thanks!
Maxime
--
Maxime Ripard, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 228 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/dri-devel/attachments/20190121/27de79fd/attachment.sig>
More information about the dri-devel
mailing list