All of lore.kernel.org
 help / color / mirror / Atom feed
From: s00452708 <shiyongbang@huawei.com>
To: Jani Nikula <jani.nikula@linux.intel.com>
Cc: <liangjian010@huawei.com>, <chenjianmin@huawei.com>,
	<lidongming5@huawei.com>, <libaihan@huawei.com>,
	<shenjian15@huawei.com>, <shaojijie@huawei.com>,
	<dri-devel@lists.freedesktop.org>, <linux-kernel@vger.kernel.org>,
	<xinliang.liu@linaro.org>, <kong.kongxinwei@hisilicon.com>,
	<daniel@ffwll.ch>, <airlied@gmail.com>, <tzimmermann@suse.de>,
	<mripard@kernel.org>, <maarten.lankhorst@linux.intel.com>,
	<tiantao6@hisilicon.com>
Subject: Re: [PATCH drm-dp 1/4] drm/hisilicon/hibmc: add dp aux in hibmc drivers
Date: Thu, 10 Oct 2024 20:02:28 +0800	[thread overview]
Message-ID: <aee55727-5159-463e-bb18-722f3cfa6a50@huawei.com> (raw)
In-Reply-To: <87bjztbsny.fsf@intel.com>

[-- Attachment #1: Type: text/plain, Size: 1052 bytes --]

> On Mon, 30 Sep 2024, shiyongbang<shiyongbang@huawei.com> wrote:
>> From: baihan li<libaihan@huawei.com>
>>
>> Add dp aux read/write functions. They are basic functions
>>   and will be used later.
> You're supposed to use struct drm_dp_aux, add a .transfer function,
> initialize it with intel_dp_aux_init(), and register with
> intel_dp_aux_register(). Then you can use the standard drm_dp_dpcd_*
> calls to access aux. They handle a lot of the boilerplate for DP
> aux. You'll also get the i2c and aux device nodes for free. As well as a
> lot of helpers based on struct drm_dp_aux interface.
>
> There's a lot of duplication in this patch otherwise too. The DPCD
> register macros, a dupe for struct drm_dp_aux_msg, etc.
>
>
> BR,
> Jani.

Hi Jani,
   Thanks for your advice. I didn't notice that the drm framework
   has this implementation, and I'll use the struct drm_dp_aux and
   drm_dp_aux_init() function in the next version to simplify my code.

   And I will check if there are others implementation in drm_dp_helper.c.
   
   Baihan Li.

[-- Attachment #2: Type: text/html, Size: 1756 bytes --]

  reply	other threads:[~2024-10-10 14:41 UTC|newest]

Thread overview: 26+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-09-30 10:06 [PATCH drm-dp 0/4] Add dp module in hibmc driver shiyongbang
2024-09-30 10:06 ` [PATCH drm-dp 1/4] drm/hisilicon/hibmc: add dp aux in hibmc drivers shiyongbang
2024-10-09  1:37   ` Andy Yan
2024-10-10 12:03     ` [PATCH " s00452708
2024-10-09  8:13   ` Jani Nikula
2024-10-10 12:02     ` s00452708 [this message]
2024-09-30 10:06 ` [PATCH drm-dp 2/4] drm/hisilicon/hibmc: add dp link moduel " shiyongbang
2024-10-03 10:11   ` kernel test robot
2024-10-09  8:20   ` Jani Nikula
2024-10-10 12:05     ` s00452708
2024-09-30 10:06 ` [PATCH drm-dp 3/4] drm/hisilicon/hibmc: add dp kapi " shiyongbang
2024-10-03 19:19   ` kernel test robot
2024-10-19 13:59   ` Dmitry Baryshkov
2024-10-21 11:57     ` s00452708
2024-10-21 12:22     ` Yongbang Shi
2024-10-21 19:11       ` Dmitry Baryshkov
2024-10-22 12:25         ` Yongbang Shi
2024-09-30 10:06 ` [PATCH drm-dp 4/4] drm/hisilicon/hibmc: add dp module in hibmc shiyongbang
2024-10-19 14:06   ` Dmitry Baryshkov
2024-10-21 11:54     ` s00452708
2024-10-21 19:03       ` Dmitry Baryshkov
2024-10-22 12:21         ` Yongbang Shi
2024-10-21 12:29     ` Yongbang Shi
2024-10-22 12:24     ` Yongbang Shi
2024-10-22 13:49       ` Dmitry Baryshkov
2024-10-23  1:12         ` Yongbang Shi

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=aee55727-5159-463e-bb18-722f3cfa6a50@huawei.com \
    --to=shiyongbang@huawei.com \
    --cc=airlied@gmail.com \
    --cc=chenjianmin@huawei.com \
    --cc=daniel@ffwll.ch \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=jani.nikula@linux.intel.com \
    --cc=kong.kongxinwei@hisilicon.com \
    --cc=liangjian010@huawei.com \
    --cc=libaihan@huawei.com \
    --cc=lidongming5@huawei.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=maarten.lankhorst@linux.intel.com \
    --cc=mripard@kernel.org \
    --cc=shaojijie@huawei.com \
    --cc=shenjian15@huawei.com \
    --cc=tiantao6@hisilicon.com \
    --cc=tzimmermann@suse.de \
    --cc=xinliang.liu@linaro.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.