[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <d006d5883b7053d7d4269582dfe3c597a81fdc20.camel@mediatek.com>
Date: Wed, 18 May 2022 11:27:49 +0800
From: CK Hu <ck.hu@...iatek.com>
To: <xinlei.lee@...iatek.com>, <chunkuang.hu@...nel.org>,
<p.zabel@...gutronix.de>, <airlied@...ux.ie>, <daniel@...ll.ch>,
<matthias.bgg@...il.com>
CC: <jitao.shi@...iatek.com>, <linux-kernel@...r.kernel.org>,
<dri-devel@...ts.freedesktop.org>,
<Project_Global_Chrome_Upstream_Group@...iatek.com>,
<linux-mediatek@...ts.infradead.org>, <rex-bc.chen@...iatek.com>,
<linux-arm-kernel@...ts.infradead.org>
Subject: Re: [PATCH v6,1/4] drm/mediatek: Modify dsi funcs to atomic
operations
Hi, Xinlei:
On Thu, 2022-05-12 at 14:30 +0800, xinlei.lee@...iatek.com wrote:
> From: Xinlei Lee <xinlei.lee@...iatek.com>
>
> Because .enable & .disable are deprecated.
> Use .atomic_enable & .atomic_disable instead.
Reviewed-by: CK Hu <ck.hu@...iatek.com>
>
> Signed-off-by: Jitao Shi <jitao.shi@...iatek.com>
> Signed-off-by: Xinlei Lee <xinlei.lee@...iatek.com>
> ---
> drivers/gpu/drm/mediatek/mtk_dsi.c | 10 ++++++----
> 1 file changed, 6 insertions(+), 4 deletions(-)
>
> diff --git a/drivers/gpu/drm/mediatek/mtk_dsi.c
> b/drivers/gpu/drm/mediatek/mtk_dsi.c
> index bd3f5b485085..f880136cec09 100644
> --- a/drivers/gpu/drm/mediatek/mtk_dsi.c
> +++ b/drivers/gpu/drm/mediatek/mtk_dsi.c
> @@ -763,14 +763,16 @@ static void mtk_dsi_bridge_mode_set(struct
> drm_bridge *bridge,
> drm_display_mode_to_videomode(adjusted, &dsi->vm);
> }
>
> -static void mtk_dsi_bridge_disable(struct drm_bridge *bridge)
> +static void mtk_dsi_bridge_atomic_disable(struct drm_bridge *bridge,
> + struct drm_bridge_state
> *old_bridge_state)
> {
> struct mtk_dsi *dsi = bridge_to_dsi(bridge);
>
> mtk_output_dsi_disable(dsi);
> }
>
> -static void mtk_dsi_bridge_enable(struct drm_bridge *bridge)
> +static void mtk_dsi_bridge_atomic_enable(struct drm_bridge *bridge,
> + struct drm_bridge_state
> *old_bridge_state)
> {
> struct mtk_dsi *dsi = bridge_to_dsi(bridge);
>
> @@ -779,8 +781,8 @@ static void mtk_dsi_bridge_enable(struct
> drm_bridge *bridge)
>
> static const struct drm_bridge_funcs mtk_dsi_bridge_funcs = {
> .attach = mtk_dsi_bridge_attach,
> - .disable = mtk_dsi_bridge_disable,
> - .enable = mtk_dsi_bridge_enable,
> + .atomic_disable = mtk_dsi_bridge_atomic_disable,
> + .atomic_enable = mtk_dsi_bridge_atomic_enable,
> .mode_set = mtk_dsi_bridge_mode_set,
> };
>
Powered by blists - more mailing lists