From: Abhinav Kumar <quic_abhinavk@quicinc.com>
To: Stephen Boyd <swboyd@chromium.org>,
Dmitry Baryshkov <dmitry.baryshkov@linaro.org>,
Rob Clark <robdclark@gmail.com>
Cc: Douglas Anderson <dianders@chromium.org>,
Sean Paul <sean@poorly.run>, <linux-kernel@vger.kernel.org>,
<dri-devel@lists.freedesktop.org>, <patches@lists.linux.dev>,
Hsin-Yi Wang <hsinyi@chromium.org>,
<freedreno@lists.freedesktop.org>
Subject: Re: [Freedreno] [PATCH] drm/msm/dsi: Set panel orientation when directly connected
Date: Thu, 7 Jul 2022 14:25:07 -0700 [thread overview]
Message-ID: <7e029069-3c8d-ad0e-b992-8b2b06f5c4fc@quicinc.com> (raw)
In-Reply-To: <CAE-0n51KOMLP4XJHw2CPNikzfhY0xdjeCScYwvCZ7gAYJM+8Fw@mail.gmail.com>
On 7/7/2022 2:21 PM, Stephen Boyd wrote:
> Quoting Abhinav Kumar (2022-07-07 14:11:08)
>>
>>
>> On 7/6/2022 12:14 PM, Stephen Boyd wrote:
>>> Set the panel orientation in drm when the panel is directly connected,
>>> i.e. we're not using an external bridge. The external bridge case is
>>> already handled by the panel bridge code, so we only update the path we
>>> take when the panel is directly connected/internal. This silences a
>>> warning splat coming from __drm_mode_object_add() on Wormdingler boards.
>>>
>>> Cc: Hsin-Yi Wang <hsinyi@chromium.org>
>>> Cc: Douglas Anderson <dianders@chromium.org>
>>> Signed-off-by: Stephen Boyd <swboyd@chromium.org>
>>> ---
>>>
>>> This relies on commit 5e41b01a7808 ("drm/panel: Add an API to allow drm
>>> to set orientation from panel") which is in drm-misc
>>>
>>> drivers/gpu/drm/msm/dsi/dsi_manager.c | 2 ++
>>> 1 file changed, 2 insertions(+)
>>>
>>> diff --git a/drivers/gpu/drm/msm/dsi/dsi_manager.c b/drivers/gpu/drm/msm/dsi/dsi_manager.c
>>> index cb84d185d73a..9333f7095acd 100644
>>> --- a/drivers/gpu/drm/msm/dsi/dsi_manager.c
>>> +++ b/drivers/gpu/drm/msm/dsi/dsi_manager.c
>>> @@ -268,6 +268,8 @@ static int msm_dsi_manager_panel_init(struct drm_connector *conn, u8 id)
>>> return PTR_ERR(panel);
>>> }
>>>
>>> + drm_connector_set_orientation_from_panel(conn, panel);
>>> +
>>
>> This should be moved below the !panel check since you are passing panel
>> as one of the params.
>
> drm_connector_set_orientation_from_panel() checks for a NULL panel
> pointer and sets to UNKNOWN. If I moved this below the !panel check then
> I'd have to split that condition for !IS_BONDED_DSI() which was more
> diff.
>
Ah okay. Even if the panel is null, it sets it to
DRM_MODE_PANEL_ORIENTATION_UNKNOWN.
>>
>> I looked up the doc and it says that for unknown(default cases) this is
>> a no-op so I think this change is fine otherwise.
>>
>> "It is allowed to call this function with a panel_orientation of
>> DRM_MODE_PANEL_ORIENTATION_UNKNOWN, in which case it is a no-op."
>
> Ok, so you're fine with this patch?
Yes, I only held back the R-b for the previous comment, now since thats
clarified.
Reviewed-by: Abhinav Kumar <quic_abhinavk@quicinc.com>
>
>>
>>
>>> if (!panel || !IS_BONDED_DSI())
>>> goto out;
>>>
>>>
>>> base-commit: 15b9ca1641f0c3cd74885280331e9172c62a125e
next prev parent reply other threads:[~2022-07-07 21:25 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-07-06 19:14 Stephen Boyd
2022-07-07 21:11 ` Abhinav Kumar
2022-07-07 21:21 ` Stephen Boyd
2022-07-07 21:25 ` Abhinav Kumar [this message]
2022-07-08 15:25 ` Doug Anderson
2022-07-08 16:00 ` Abhinav Kumar
2022-07-08 19:42 ` Abhinav Kumar
2022-07-08 20:58 ` Dmitry Baryshkov
2022-07-08 21:17 ` Abhinav Kumar
2022-07-20 20:46 ` Rob Clark
2022-07-20 22:42 ` Doug Anderson
2022-08-17 20:48 ` Doug Anderson
2022-08-18 23:11 ` [Freedreno] " Abhinav Kumar
2022-09-01 8:42 ` Dmitry Baryshkov
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=7e029069-3c8d-ad0e-b992-8b2b06f5c4fc@quicinc.com \
--to=quic_abhinavk@quicinc.com \
--cc=dianders@chromium.org \
--cc=dmitry.baryshkov@linaro.org \
--cc=dri-devel@lists.freedesktop.org \
--cc=freedreno@lists.freedesktop.org \
--cc=hsinyi@chromium.org \
--cc=linux-kernel@vger.kernel.org \
--cc=patches@lists.linux.dev \
--cc=robdclark@gmail.com \
--cc=sean@poorly.run \
--cc=swboyd@chromium.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®