Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 9AF94C433EF for ; Thu, 9 Dec 2021 00:16:06 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241443AbhLIATh (ORCPT ); Wed, 8 Dec 2021 19:19:37 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36150 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238337AbhLIATh (ORCPT ); Wed, 8 Dec 2021 19:19:37 -0500 Received: from sin.source.kernel.org (sin.source.kernel.org [IPv6:2604:1380:40e1:4800::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3738AC061746 for ; Wed, 8 Dec 2021 16:16:04 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sin.source.kernel.org (Postfix) with ESMTPS id 2ADD5CE2339 for ; Thu, 9 Dec 2021 00:16:02 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 247D1C00446 for ; Thu, 9 Dec 2021 00:16:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1639008960; bh=oVSOBOa6BXE/T1paveXxdxhNyigIeoXyMRSYZn5ztc8=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=Xbh8zW9a4BNtJUamHUMgd/G0U8wsAoNVgu1NdgnUQI0ziYSTS+YgLYditYytslYMV gpYPw9Hed6vDfqNYjGjQHm6CYrQayp5dUoqMH9GDL3Hxf0v3JXgggWq75Vg0UHvPF+ twc+0rdfYigCw0aVZNhLRLo/HP3iWhwwF6twjVb3yT4vWUcQiYAVbjLaazlyHAIUli dEkh9xiFVxGU4ZJWeUDF+mwjhuSE46dbwDtxXv/wDBu/aUZGA/8NzfI+2YdsnpAN/J JxylvXVMA0wdeknmQ/Bg+KnTQEV0y4T4tkDlsTXUIKf8EkNhql0t7hEShiiVHPSCit Mx4A/NqJ6Vywg== Received: by mail-ed1-f47.google.com with SMTP id r11so13792162edd.9 for ; Wed, 08 Dec 2021 16:16:00 -0800 (PST) X-Gm-Message-State: AOAM531cv1xBJsRYIcW9RTJvlo3mOFvOYHcB7XYHOwDDU/0K3aRUUDYe nwaTVzRhf900Z+d5VGYogfOeKzgTvbne1rbHyA== X-Google-Smtp-Source: ABdhPJwbRkLlN1DN6NRjc1MrpWhMmKdZKIytk32WxKVDcsvTdDXYzOYWNAqhEtEdWyy6APe77L/rn1RVklA5TSKKC5c= X-Received: by 2002:a50:d883:: with SMTP id p3mr24003865edj.94.1639008958411; Wed, 08 Dec 2021 16:15:58 -0800 (PST) MIME-Version: 1.0 References: <20211027162806.2014022-1-markyacoub@chromium.org> In-Reply-To: <20211027162806.2014022-1-markyacoub@chromium.org> From: Chun-Kuang Hu Date: Thu, 9 Dec 2021 08:15:42 +0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] drm/mediatek: Set the default value of rotation to DRM_MODE_ROTATE_0 To: markyacoub@chromium.org Cc: Sean Paul , Mark Yacoub , Chun-Kuang Hu , Philipp Zabel , David Airlie , Daniel Vetter , Matthias Brugger , DRI Development , "moderated list:ARM/Mediatek SoC support" , Linux ARM , linux-kernel Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Mark: Mark Yacoub =E6=96=BC 2021=E5=B9=B410=E6=9C=8828= =E6=97=A5 =E9=80=B1=E5=9B=9B =E4=B8=8A=E5=8D=8812:28=E5=AF=AB=E9=81=93=EF= =BC=9A > > From: Mark Yacoub > > At the reset hook, call __drm_atomic_helper_plane_reset which is > called at the initialization of the plane and sets the default value of > rotation on all planes to DRM_MODE_ROTATE_0 which is equal to 1. This patch looks good to me, but please fix this checkpatch warning: WARNING: From:/Signed-off-by: email address mismatch: 'From: Mark Yacoub ' !=3D 'Signed-off-by: Mark Yacoub ' total: 0 errors, 1 warnings, 11 lines checked Regards, Chun-Kuang. > > Tested on Jacuzzi (MTK). > Resolves IGT@kms_properties@plane-properties-{legacy,atomic} > > Signed-off-by: Mark Yacoub > --- > drivers/gpu/drm/mediatek/mtk_drm_plane.c | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > > diff --git a/drivers/gpu/drm/mediatek/mtk_drm_plane.c b/drivers/gpu/drm/m= ediatek/mtk_drm_plane.c > index e6dcb34d30522..accd26481b9fb 100644 > --- a/drivers/gpu/drm/mediatek/mtk_drm_plane.c > +++ b/drivers/gpu/drm/mediatek/mtk_drm_plane.c > @@ -44,9 +44,10 @@ static void mtk_plane_reset(struct drm_plane *plane) > state =3D kzalloc(sizeof(*state), GFP_KERNEL); > if (!state) > return; > - plane->state =3D &state->base; > } > > + __drm_atomic_helper_plane_reset(plane, &state->base); > + > state->base.plane =3D plane; > state->pending.format =3D DRM_FORMAT_RGB565; > } > -- > 2.33.0.1079.g6e70778dc9-goog >