Merge "disp: msm: sde: Fix data width calculation when widebus is enabled" into display-kernel.lnx.5.15

This commit is contained in:
Linux Build Service Account
2022-07-17 12:56:31 -07:00
committed by Gerrit - the friendly Code Review server

View File

@@ -315,10 +315,11 @@ static void sde_hw_intf_setup_timing_engine(struct sde_hw_intf *ctx,
data_width = p->width;
if (p->compression_en) {
data_width = DIV_ROUND_UP(p->dce_bytes_per_line, 3);
if (p->wide_bus_en)
data_width >>= 1;
data_width = DIV_ROUND_UP(p->dce_bytes_per_line, 6);
else
data_width = DIV_ROUND_UP(p->dce_bytes_per_line, 3);
} else if (!dp_intf && p->wide_bus_en) {
data_width = p->width >> 1;
} else {