From: Sankeerth Billakanti <quic_sbillaka@quicinc.com>
To: <dri-devel@lists.freedesktop.org>,
<linux-arm-msm@vger.kernel.org>,
<freedreno@lists.freedesktop.org>, <linux-kernel@vger.kernel.org>
Cc: Sankeerth Billakanti <quic_sbillaka@quicinc.com>,
<robdclark@gmail.com>, <seanpaul@chromium.org>,
<swboyd@chromium.org>, <kalyan_t@codeaurora.org>,
<abhinavk@codeaurora.org>, <dianders@chromium.org>,
<khsieh@codeaurora.org>, <mkrishn@codeaurora.org>,
<sbillaka@codeaurora.org>
Subject: [PATCH v3 3/6] drm/dp: Add macro to check max_downspread capability
Date: Thu, 28 Oct 2021 07:24:45 +0530 [thread overview]
Message-ID: <1635386088-18089-4-git-send-email-quic_sbillaka@quicinc.com> (raw)
In-Reply-To: <1635386088-18089-1-git-send-email-quic_sbillaka@quicinc.com>
Add a macro to check for the max_downspread capability in
drm_dp_helper.
Signed-off-by: Sankeerth Billakanti <quic_sbillaka@quicinc.com>
---
include/drm/drm_dp_helper.h | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/include/drm/drm_dp_helper.h b/include/drm/drm_dp_helper.h
index afdf7f4..b39e7a0 100644
--- a/include/drm/drm_dp_helper.h
+++ b/include/drm/drm_dp_helper.h
@@ -1784,6 +1784,12 @@ drm_dp_tps3_supported(const u8 dpcd[DP_RECEIVER_CAP_SIZE])
}
static inline bool
+drm_dp_max_downspread(const u8 dpcd[DP_RECEIVER_CAP_SIZE])
+{
+ return dpcd[DP_MAX_DOWNSPREAD] & DP_MAX_DOWNSPREAD_0_5;
+}
+
+static inline bool
drm_dp_tps4_supported(const u8 dpcd[DP_RECEIVER_CAP_SIZE])
{
return dpcd[DP_DPCD_REV] >= 0x14 &&
--
2.7.4
next prev parent reply other threads:[~2021-10-28 1:55 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-10-28 1:54 [PATCH v3 0/6] Add support for eDP controller on SC7280 Sankeerth Billakanti
2021-10-28 1:54 ` [PATCH v3 1/6] dt-bindings: msm/dp: Add DP compatible strings for sc7280 Sankeerth Billakanti
2021-10-28 6:20 ` Stephen Boyd
2021-10-28 1:54 ` [PATCH v3 2/6] drm/msm/dp: Add DP controllers " Sankeerth Billakanti
2021-10-28 6:21 ` Stephen Boyd
2021-10-28 1:54 ` Sankeerth Billakanti [this message]
2021-10-28 6:31 ` [PATCH v3 3/6] drm/dp: Add macro to check max_downspread capability Stephen Boyd
2021-10-28 1:54 ` [PATCH v3 4/6] drm/msm/dp: Enable downspread for supported DP sinks Sankeerth Billakanti
2021-10-28 6:33 ` Stephen Boyd
2021-10-28 1:54 ` [PATCH v3 5/6] drm/msm/dp: Enable ASSR " Sankeerth Billakanti
2021-10-28 6:34 ` Stephen Boyd
2021-10-28 1:54 ` [PATCH v3 6/6] drm/msm/dp: Remove the hpd init delay for eDP Sankeerth Billakanti
2021-10-28 6:38 ` Stephen Boyd
2021-10-29 17:20 ` khsieh
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=1635386088-18089-4-git-send-email-quic_sbillaka@quicinc.com \
--to=quic_sbillaka@quicinc.com \
--cc=abhinavk@codeaurora.org \
--cc=dianders@chromium.org \
--cc=dri-devel@lists.freedesktop.org \
--cc=freedreno@lists.freedesktop.org \
--cc=kalyan_t@codeaurora.org \
--cc=khsieh@codeaurora.org \
--cc=linux-arm-msm@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mkrishn@codeaurora.org \
--cc=robdclark@gmail.com \
--cc=sbillaka@codeaurora.org \
--cc=seanpaul@chromium.org \
--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;
as well as URLs for NNTP newsgroup(s).