From: Imre Deak <imre.deak@intel.com>
To: "Michał Grzelak" <michal.grzelak@intel.com>
Cc: <intel-gfx@lists.freedesktop.org>,
<intel-xe@lists.freedesktop.org>,
"Mika Kahola" <mika.kahola@intel.com>,
Luca Coelho <luciano.coelho@intel.com>,
Nemesa Garg <nemesa.garg@intel.com>
Subject: Re: [PATCH v1 29/30] drm/i915/dp_link_caps: s/lc/lce/
Date: Thu, 25 Jun 2026 17:13:38 +0300 [thread overview]
Message-ID: <aj03klb1L2mUYNkq@ideak-desk.lan> (raw)
In-Reply-To: <20260623224619.1949975-30-michal.grzelak@intel.com>
On Wed, Jun 24, 2026 at 12:46:18AM +0200, Michał Grzelak wrote:
> lc variable took it's name as an acronym from struct
> intel_dp_link_config. Rename the variable into lce since the struct was
> renamed into intel_dp_link_config_entry.
>
> Signed-off-by: Michał Grzelak <michal.grzelak@intel.com>
Thanks for the patch, I pushed this one to drm-intel-next.
> ---
> .../gpu/drm/i915/display/intel_dp_link_caps.c | 50 +++++++++----------
> 1 file changed, 25 insertions(+), 25 deletions(-)
>
> diff --git a/drivers/gpu/drm/i915/display/intel_dp_link_caps.c b/drivers/gpu/drm/i915/display/intel_dp_link_caps.c
> index 0917e7f51a26d..1c34ba6c49c35 100644
> --- a/drivers/gpu/drm/i915/display/intel_dp_link_caps.c
> +++ b/drivers/gpu/drm/i915/display/intel_dp_link_caps.c
> @@ -144,14 +144,14 @@ void intel_dp_link_caps_get_forced_params(struct intel_dp_link_caps *link_caps,
> }
>
> static int intel_dp_link_config_rate(struct intel_dp_link_caps *link_caps,
> - const struct intel_dp_link_config_entry *lc)
> + const struct intel_dp_link_config_entry *lce)
> {
> - return intel_dp_common_rate(link_caps, lc->link_rate_idx);
> + return intel_dp_common_rate(link_caps, lce->link_rate_idx);
> }
>
> -static int intel_dp_link_config_lane_count(const struct intel_dp_link_config_entry *lc)
> +static int intel_dp_link_config_lane_count(const struct intel_dp_link_config_entry *lce)
> {
> - return 1 << lc->lane_count_exp;
> + return 1 << lce->lane_count_exp;
> }
>
> static void set_max_link_limits_no_update(struct intel_dp_link_caps *link_caps,
> @@ -236,10 +236,10 @@ void intel_dp_link_caps_reset_max_limits(struct intel_dp_link_caps *link_caps)
> }
>
> static int intel_dp_link_config_bw(struct intel_dp_link_caps *link_caps,
> - const struct intel_dp_link_config_entry *lc)
> + const struct intel_dp_link_config_entry *lce)
> {
> - return drm_dp_max_dprx_data_rate(intel_dp_link_config_rate(link_caps, lc),
> - intel_dp_link_config_lane_count(lc));
> + return drm_dp_max_dprx_data_rate(intel_dp_link_config_rate(link_caps, lce),
> + intel_dp_link_config_lane_count(lce));
> }
>
> static int link_config_cmp_by_bw(const void *a, const void *b, const void *p)
> @@ -247,16 +247,16 @@ static int link_config_cmp_by_bw(const void *a, const void *b, const void *p)
> struct intel_dp *intel_dp = (struct intel_dp *)p; /* remove const */
> struct intel_dp_link_caps *link_caps = intel_dp->link.caps;
>
> - const struct intel_dp_link_config_entry *lc_a = a;
> - const struct intel_dp_link_config_entry *lc_b = b;
> - int bw_a = intel_dp_link_config_bw(link_caps, lc_a);
> - int bw_b = intel_dp_link_config_bw(link_caps, lc_b);
> + const struct intel_dp_link_config_entry *lce_a = a;
> + const struct intel_dp_link_config_entry *lce_b = b;
> + int bw_a = intel_dp_link_config_bw(link_caps, lce_a);
> + int bw_b = intel_dp_link_config_bw(link_caps, lce_b);
>
> if (bw_a != bw_b)
> return bw_a - bw_b;
>
> - return intel_dp_link_config_rate(link_caps, lc_a) -
> - intel_dp_link_config_rate(link_caps, lc_b);
> + return intel_dp_link_config_rate(link_caps, lce_a) -
> + intel_dp_link_config_rate(link_caps, lce_b);
> }
>
> /* Return %true if the supported link parameters have changed. */
> @@ -265,7 +265,7 @@ bool intel_dp_link_caps_update(struct intel_dp_link_caps *link_caps,
> {
> struct intel_dp *intel_dp = link_caps->dp;
> struct intel_display *display = to_intel_display(intel_dp);
> - struct intel_dp_link_config_entry *lc;
> + struct intel_dp_link_config_entry *lce;
> bool link_params_changed = false;
> int num_common_lane_configs;
> int i;
> @@ -298,13 +298,13 @@ bool intel_dp_link_caps_update(struct intel_dp_link_caps *link_caps,
>
> link_caps->num_configs = num_rates * num_common_lane_configs;
>
> - lc = &link_caps->configs[0];
> + lce = &link_caps->configs[0];
> for (i = 0; i < link_caps->num_rates; i++) {
> for (j = 0; j < num_common_lane_configs; j++) {
> - lc->lane_count_exp = j;
> - lc->link_rate_idx = i;
> + lce->lane_count_exp = j;
> + lce->link_rate_idx = i;
>
> - lc++;
> + lce++;
> }
> }
>
> @@ -320,15 +320,15 @@ void intel_dp_link_config_get(struct intel_dp_link_caps *link_caps,
> int idx, int *link_rate, int *lane_count)
> {
> struct intel_display *display = to_intel_display(link_caps->dp);
> - const struct intel_dp_link_config_entry *lc;
> + const struct intel_dp_link_config_entry *lce;
>
> if (drm_WARN_ON(display->drm, idx < 0 || idx >= link_caps->num_configs))
> idx = 0;
>
> - lc = &link_caps->configs[idx];
> + lce = &link_caps->configs[idx];
>
> - *link_rate = intel_dp_link_config_rate(link_caps, lc);
> - *lane_count = intel_dp_link_config_lane_count(lc);
> + *link_rate = intel_dp_link_config_rate(link_caps, lce);
> + *lane_count = intel_dp_link_config_lane_count(lce);
> }
>
> int intel_dp_link_config_index(struct intel_dp_link_caps *link_caps,
> @@ -340,10 +340,10 @@ int intel_dp_link_config_index(struct intel_dp_link_caps *link_caps,
> int i;
>
> for (i = 0; i < link_caps->num_configs; i++) {
> - const struct intel_dp_link_config_entry *lc = &link_caps->configs[i];
> + const struct intel_dp_link_config_entry *lce = &link_caps->configs[i];
>
> - if (lc->lane_count_exp == lane_count_exp &&
> - lc->link_rate_idx == link_rate_idx)
> + if (lce->lane_count_exp == lane_count_exp &&
> + lce->link_rate_idx == link_rate_idx)
> return i;
> }
>
> --
> 2.45.2
>
next prev parent reply other threads:[~2026-06-25 14:14 UTC|newest]
Thread overview: 42+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-06-23 22:45 [PATCH v1 00/30] Comments applied to dp_link_caps Michał Grzelak
2026-06-23 22:45 ` [PATCH v1 01/30] drm/i915/dp: Rename intel_dp_link_config to intel_dp_link_config_entry Michał Grzelak
2026-06-23 22:45 ` [PATCH v1 02/30] drm/i915/dp: Add struct intel_dp_link_config Michał Grzelak
2026-06-23 22:45 ` [PATCH v1 03/30] drm/i915/dp_link_caps: Introduce DP link capability module Michał Grzelak
2026-06-23 22:45 ` [PATCH v1 04/30] drm/i915/dp_link_caps: Move common rate helpers to link caps Michał Grzelak
2026-06-23 22:45 ` [PATCH v1 05/30] drm/i915/dp_link_caps: Move forced link param " Michał Grzelak
2026-06-23 22:45 ` [PATCH v1 06/30] drm/i915/dp: Simplify querying of forced link parameters Michał Grzelak
2026-06-23 22:45 ` [PATCH v1 07/30] drm/i915/dp_link_caps: Move forced and max link debugfs entries to link caps Michał Grzelak
2026-06-23 22:45 ` [PATCH v1 08/30] drm/i915/dp_link_training: Use helpers to get forced link params Michał Grzelak
2026-06-23 22:45 ` [PATCH v1 09/30] drm/i915/dp_link_caps: Move forced link params to link_caps Michał Grzelak
2026-06-23 22:45 ` [PATCH v1 10/30] drm/i915/dp_link_caps: Move link config helpers to link caps Michał Grzelak
2026-06-23 22:46 ` [PATCH v1 11/30] drm/i915/dp_link_caps: Move link config tracking to link_caps Michał Grzelak
2026-06-23 22:46 ` [PATCH v1 12/30] drm/i915/dp_link_caps: Rename helper updating the link configurations Michał Grzelak
2026-06-23 22:46 ` [PATCH v1 13/30] drm/i915/dp: Factor out helper to get link rate capabilities Michał Grzelak
2026-06-23 22:46 ` [PATCH v1 14/30] drm/i915/dp_link_caps: Pass supported link rates to link caps update Michał Grzelak
2026-06-23 22:46 ` [PATCH v1 15/30] drm/i915/dp_link_caps: Add helper to print all supported link rates Michał Grzelak
2026-06-23 22:46 ` [PATCH v1 16/30] drm/i915/dp_link_caps: Add helper to get the number of " Michał Grzelak
2026-06-23 22:46 ` [PATCH v1 17/30] drm/i915/dp_link_caps: Add helper to get common rate index Michał Grzelak
2026-06-23 22:46 ` [PATCH v1 18/30] drm/i915/dp_link_caps: Move tracking of common rates to link_caps struct Michał Grzelak
2026-06-23 22:46 ` [PATCH v1 19/30] drm/i915/dp_link_caps: Track max common lane count in link_caps Michał Grzelak
2026-06-23 22:46 ` [PATCH v1 20/30] drm/i915/dp_link_caps: Use max common lane count from link_caps Michał Grzelak
2026-06-23 22:46 ` [PATCH v1 21/30] drm/i915/dp_link_caps: Add helpers to get max link limits Michał Grzelak
2026-06-23 22:46 ` [PATCH v1 22/30] drm/i915/dp_link_caps: Add helpers to set " Michał Grzelak
2026-06-23 22:46 ` [PATCH v1 23/30] drm/i915/dp_link_caps: Add helper to reset " Michał Grzelak
2026-06-23 22:46 ` [PATCH v1 24/30] drm/i915/dp_link_caps: Add helper to reset link_caps state Michał Grzelak
2026-06-23 22:46 ` [PATCH v1 25/30] drm/i915/dp_link_caps: Move max link limits to link_caps Michał Grzelak
2026-06-23 22:46 ` [PATCH v1 26/30] drm/i915/dp_link_caps: Pass link_caps to static functions Michał Grzelak
2026-06-23 22:46 ` [PATCH v1 27/30] drm/i915/dp_link_caps: Pass link_caps to config update/lookup helpers Michał Grzelak
2026-06-23 22:46 ` [PATCH v1 28/30] drm/i915/dp_link_caps: Pass link_caps to common rate helpers Michał Grzelak
2026-06-23 22:46 ` [PATCH v1 29/30] drm/i915/dp_link_caps: s/lc/lce/ Michał Grzelak
2026-06-25 14:13 ` Imre Deak [this message]
2026-06-23 22:46 ` [PATCH v1 30/30] drm/i915/dp: return -EINVAL on failure Michał Grzelak
2026-06-25 14:15 ` Imre Deak
2026-06-25 15:10 ` Michał Grzelak
2026-06-23 23:09 ` ✗ CI.checkpatch: warning for Comments applied to dp_link_caps Patchwork
2026-06-23 23:10 ` ✓ CI.KUnit: success " Patchwork
2026-06-23 23:46 ` ✓ Xe.CI.BAT: " Patchwork
2026-06-24 0:37 ` ✓ i915.CI.BAT: " Patchwork
2026-06-24 5:22 ` ✓ Xe.CI.FULL: " Patchwork
2026-06-24 8:12 ` [PATCH v1 00/30] " Jani Nikula
2026-06-24 8:25 ` Michał Grzelak
2026-06-24 10:46 ` ✓ i915.CI.Full: success for " Patchwork
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=aj03klb1L2mUYNkq@ideak-desk.lan \
--to=imre.deak@intel.com \
--cc=intel-gfx@lists.freedesktop.org \
--cc=intel-xe@lists.freedesktop.org \
--cc=luciano.coelho@intel.com \
--cc=michal.grzelak@intel.com \
--cc=mika.kahola@intel.com \
--cc=nemesa.garg@intel.com \
/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.