[PATCH v3] drm/dsi: Add _NO_ to MIPI_DSI_* flags disabling features
Nicolas Boichat
drinkcat at chromium.org
Tue Jul 27 03:29:08 PDT 2021
On Tue, Jul 27, 2021 at 4:35 PM Sam Ravnborg <sam at ravnborg.org> wrote:
>
> Hi Nicolas,
> On Tue, Jul 27, 2021 at 09:45:21AM +0800, Nicolas Boichat wrote:
> > Many of the DSI flags have names opposite to their actual effects,
> > e.g. MIPI_DSI_MODE_EOT_PACKET means that EoT packets will actually
> > be disabled. Fix this by including _NO_ in the flag names, e.g.
> > MIPI_DSI_MODE_NO_EOT_PACKET.
> >
> > Signed-off-by: Nicolas Boichat <drinkcat at chromium.org>
> > Reviewed-by: Linus Walleij <linus.walleij at linaro.org>
> > Reviewed-by: Robert Foss <robert.foss at linaro.org>
> > Reviewed-by: Laurent Pinchart <laurent.pinchart at ideasonboard.com>
> > Reviewed-by: Andrzej Hajda <andrzej.hajda at samsung.com>
> > Reviewed-by: Xin Ji <xji at analogixsemi.com> # anx7625.c
> > Reviewed-by: Abhinav Kumar <abhinavk at codeaurora.org> # msm/dsi
> > ---
> > I considered adding _DISABLE_ instead, but that'd make the
> > flag names a big too long.
> >
> > Generated with:
> > flag=MIPI_DSI_MODE_VIDEO_HFP; git grep $flag | cut -f1 -d':' | \
> > xargs -I{} sed -i -e "s/$flag/MIPI_DSI_MODE_VIDEO_NO_HFP/" {}
> > flag=MIPI_DSI_MODE_VIDEO_HBP; git grep $flag | cut -f1 -d':' | \
> > xargs -I{} sed -i -e "s/$flag/MIPI_DSI_MODE_VIDEO_NO_HBP/" {}
> > flag=MIPI_DSI_MODE_VIDEO_HSA; git grep $flag | cut -f1 -d':' | \
> > xargs -I{} sed -i -e "s/$flag/MIPI_DSI_MODE_VIDEO_NO_HSA/" {}
> > flag=MIPI_DSI_MODE_EOT_PACKET; git grep $flag | cut -f1 -d':' | \
> > xargs -I{} sed -i -e "s/$flag/MIPI_DSI_MODE_NO_EOT_PACKET/" {}
> > (then minor format changes)
> >
> > Changes in v3:
> > - Added all R-b tags from v1 and v2 (hopefully didn't miss any).
> >
> > Changes in v2:
> > - Rebased on latest linux-next, after some of the flags got fixed
> > (Linus Walleij).
>
> Thanks for the update, applied to drm-misc-next.
Thanks Sam!
>
> Sam
More information about the Linux-mediatek
mailing list