From: <Hermes.Wu@ite.com.tw>
To: <dmitry.baryshkov@linaro.org>
Cc: <Kenneth.Hung@ite.com.tw>, <andrzej.hajda@intel.com>,
<neil.armstrong@linaro.org>, <rfoss@kernel.org>,
<Laurent.pinchart@ideasonboard.com>, <jonas@kwiboo.se>,
<jernej.skrabec@gmail.com>, <maarten.lankhorst@linux.intel.com>,
<mripard@kernel.org>, <tzimmermann@suse.de>, <airlied@gmail.com>,
<simona@ffwll.ch>, <allen.chen@ite.com.tw>,
<angelogioacchino.delregno@collabora.com>,
<dri-devel@lists.freedesktop.org>, <linux-kernel@vger.kernel.org>
Subject: RE: [PATCH v4 04/11] drm/bridge: it6505: fix aux command write to aux operaction register
Date: Thu, 26 Sep 2024 08:53:50 +0000 [thread overview]
Message-ID: <f0626a7af4654d56b7f45b4b56ce3cd2@ite.com.tw> (raw)
In-Reply-To: <fcy6i4cfmtpsgnvuqfjm7pwlkyuno65rij5w32snmjbudma6wp@ht2jqtj2rsxq>
>On Thu, Sep 26, 2024 at 03:47:54PM GMT, Hermes Wu wrote:
>> From: Hermes Wu <Hermes.wu@ite.com.tw>
>>
>> The aux control register command is 4 bits LSB only, adding a MACRO to
>> get correct operaction command.
>
>Nit: AUX, add (not adding), macro.
>
>What happens if the driver doesn't limit the field? Let me guess, the KSV reading command is 0x10 (it should have been a part of the commit message, BTW), so it overrides some other bits? In such a case this either should be a part of the previous commit, or, at least, come before it.
>
Nothing Happens.
The AUX control command at control register REG_AUX_CMD_REQ is 4 bits LSB only, and b[7:4] is ready only.
AUX FIFO access cannot reach all DPCD area, only KSV FIFO at DPCD(0x6802C).
The commend define use [7:4] to extend original AUX_NATIVE_READ(0) as AUX_NATIVE_READ with AUX FIFO
It should be a part of previous commit.
>> Fixes: b5c84a9edcd4 ("drm/bridge: add it6505 driver")
>> Signed-off-by: Hermes Wu <Hermes.wu@ite.com.tw>
>> ---
>> drivers/gpu/drm/bridge/ite-it6505.c | 4 +++-
>> 1 file changed, 3 insertions(+), 1 deletion(-)
>>
>> diff --git a/drivers/gpu/drm/bridge/ite-it6505.c
>> b/drivers/gpu/drm/bridge/ite-it6505.c
>> index 0583abdca75f..d1f5220e04a6 100644
>> --- a/drivers/gpu/drm/bridge/ite-it6505.c
>> +++ b/drivers/gpu/drm/bridge/ite-it6505.c
>> @@ -329,6 +329,8 @@ enum aux_cmd_type {
>> CMD_AUX_GET_KSV_LIST = 0x10,
>> };
>>
>> +#define GET_AUX_CONTROL_CODE(cmd) ((cmd) & 0x0F)
>> +
>> enum aux_cmd_reply {
>> REPLY_ACK,
>> REPLY_NACK,
>> @@ -1000,7 +1002,7 @@ static ssize_t it6505_aux_operation(struct it6505 *it6505,
>> size);
>>
>> /* Aux Fire */
>> - it6505_write(it6505, REG_AUX_CMD_REQ, cmd);
>> + it6505_write(it6505, REG_AUX_CMD_REQ, GET_AUX_CONTROL_CODE(cmd));
>>
>> ret = it6505_aux_wait(it6505);
>> if (ret < 0)
>> --
>> 2.34.1
>>
>
>--
>With best wishes
>Dmitry
>
BR,
Hermes
next prev parent reply other threads:[~2024-09-26 8:53 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-09-26 7:47 [PATCH v4 00/11] fix HDCP CTS fail items and add MCCS support Hermes Wu
2024-09-26 7:47 ` [PATCH v4 01/11] drm/bridge: it6505: change aux max fifo size Hermes Wu
2024-09-26 7:51 ` Dmitry Baryshkov
2024-09-26 7:47 ` [PATCH v4 02/11] drm/bridge: it6505: fix aux operation for edid read Hermes Wu
2024-09-26 7:53 ` Dmitry Baryshkov
2024-09-26 8:04 ` Hermes.Wu
2024-09-26 8:05 ` Dmitry Baryshkov
2024-09-26 8:10 ` AngeloGioacchino Del Regno
2024-09-26 7:47 ` [PATCH v4 03/11] drm/bridge: it6505: add aux operation for HDCP ksv list read Hermes Wu
2024-09-26 7:57 ` Dmitry Baryshkov
2024-09-26 9:46 ` Hermes.Wu
2024-09-26 12:17 ` Dmitry Baryshkov
2024-09-26 7:47 ` [PATCH v4 04/11] drm/bridge: it6505: fix aux command write to aux operaction register Hermes Wu
2024-09-26 8:01 ` Dmitry Baryshkov
2024-09-26 8:53 ` Hermes.Wu [this message]
2024-09-26 8:10 ` AngeloGioacchino Del Regno
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=f0626a7af4654d56b7f45b4b56ce3cd2@ite.com.tw \
--to=hermes.wu@ite.com.tw \
--cc=Kenneth.Hung@ite.com.tw \
--cc=Laurent.pinchart@ideasonboard.com \
--cc=airlied@gmail.com \
--cc=allen.chen@ite.com.tw \
--cc=andrzej.hajda@intel.com \
--cc=angelogioacchino.delregno@collabora.com \
--cc=dmitry.baryshkov@linaro.org \
--cc=dri-devel@lists.freedesktop.org \
--cc=jernej.skrabec@gmail.com \
--cc=jonas@kwiboo.se \
--cc=linux-kernel@vger.kernel.org \
--cc=maarten.lankhorst@linux.intel.com \
--cc=mripard@kernel.org \
--cc=neil.armstrong@linaro.org \
--cc=rfoss@kernel.org \
--cc=simona@ffwll.ch \
--cc=tzimmermann@suse.de \
/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