From: "Ville Syrjälä" <ville.syrjala@linux.intel.com>
To: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Cc: Jani Nikula <jani.nikula@intel.com>,
intel-gfx@lists.freedesktop.org, linux-kernel@vger.kernel.org,
dri-devel@lists.freedesktop.org,
Hans de Goede <hdegoede@redhat.com>,
Daniel Vetter <daniel@ffwll.ch>,
Rodrigo Vivi <rodrigo.vivi@intel.com>,
David Airlie <airlied@gmail.com>
Subject: Re: [Intel-gfx] [PATCH v3 01/15] drm/i915/dsi: assume BXT gpio works for non-native GPIO
Date: Thu, 2 Nov 2023 19:10:09 +0200 [thread overview]
Message-ID: <ZUPX8RgtrCX8B_Cg@intel.com> (raw)
In-Reply-To: <20231102151228.668842-2-andriy.shevchenko@linux.intel.com>
On Thu, Nov 02, 2023 at 05:12:14PM +0200, Andy Shevchenko wrote:
> From: Jani Nikula <jani.nikula@intel.com>
>
> Purely a guess. Drop the nop function.
>
> Cc: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
> Cc: Hans de Goede <hdegoede@redhat.com>
> Signed-off-by: Jani Nikula <jani.nikula@intel.com>
> Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
> ---
> drivers/gpu/drm/i915/display/intel_dsi_vbt.c | 10 +---------
> 1 file changed, 1 insertion(+), 9 deletions(-)
>
> diff --git a/drivers/gpu/drm/i915/display/intel_dsi_vbt.c b/drivers/gpu/drm/i915/display/intel_dsi_vbt.c
> index 24b2cbcfc1ef..b2c0cc11f8c1 100644
> --- a/drivers/gpu/drm/i915/display/intel_dsi_vbt.c
> +++ b/drivers/gpu/drm/i915/display/intel_dsi_vbt.c
> @@ -372,14 +372,6 @@ static void bxt_exec_gpio(struct intel_connector *connector,
> gpiod_set_value(gpio_desc, value);
> }
>
> -static void icl_exec_gpio(struct intel_connector *connector,
> - u8 gpio_source, u8 gpio_index, bool value)
> -{
> - struct drm_i915_private *dev_priv = to_i915(connector->base.dev);
> -
> - drm_dbg_kms(&dev_priv->drm, "Skipping ICL GPIO element execution\n");
> -}
> -
> enum {
> MIPI_RESET_1 = 0,
> MIPI_AVDD_EN_1,
> @@ -491,7 +483,7 @@ static const u8 *mipi_exec_gpio(struct intel_dsi *intel_dsi, const u8 *data)
> if (native)
> icl_native_gpio_set_value(dev_priv, gpio_number, value);
> else if (DISPLAY_VER(dev_priv) >= 11)
> - icl_exec_gpio(connector, gpio_source, gpio_index, value);
> + bxt_exec_gpio(connector, gpio_source, gpio_index, value);
We could just drop this whole branch since we end up in bxt_exec_gpio()
in the end anyway. Or we drop the final else and make this one check for
DISPLAY_VER >=9.
> else if (IS_VALLEYVIEW(dev_priv))
> vlv_exec_gpio(connector, gpio_source, gpio_number, value);
> else if (IS_CHERRYVIEW(dev_priv))
> --
> 2.40.0.1.gaa8946217a0b
--
Ville Syrjälä
Intel
WARNING: multiple messages have this Message-ID (diff)
From: "Ville Syrjälä" <ville.syrjala@linux.intel.com>
To: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Cc: Jani Nikula <jani.nikula@intel.com>,
intel-gfx@lists.freedesktop.org, linux-kernel@vger.kernel.org,
dri-devel@lists.freedesktop.org,
Hans de Goede <hdegoede@redhat.com>,
Rodrigo Vivi <rodrigo.vivi@intel.com>
Subject: Re: [Intel-gfx] [PATCH v3 01/15] drm/i915/dsi: assume BXT gpio works for non-native GPIO
Date: Thu, 2 Nov 2023 19:10:09 +0200 [thread overview]
Message-ID: <ZUPX8RgtrCX8B_Cg@intel.com> (raw)
In-Reply-To: <20231102151228.668842-2-andriy.shevchenko@linux.intel.com>
On Thu, Nov 02, 2023 at 05:12:14PM +0200, Andy Shevchenko wrote:
> From: Jani Nikula <jani.nikula@intel.com>
>
> Purely a guess. Drop the nop function.
>
> Cc: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
> Cc: Hans de Goede <hdegoede@redhat.com>
> Signed-off-by: Jani Nikula <jani.nikula@intel.com>
> Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
> ---
> drivers/gpu/drm/i915/display/intel_dsi_vbt.c | 10 +---------
> 1 file changed, 1 insertion(+), 9 deletions(-)
>
> diff --git a/drivers/gpu/drm/i915/display/intel_dsi_vbt.c b/drivers/gpu/drm/i915/display/intel_dsi_vbt.c
> index 24b2cbcfc1ef..b2c0cc11f8c1 100644
> --- a/drivers/gpu/drm/i915/display/intel_dsi_vbt.c
> +++ b/drivers/gpu/drm/i915/display/intel_dsi_vbt.c
> @@ -372,14 +372,6 @@ static void bxt_exec_gpio(struct intel_connector *connector,
> gpiod_set_value(gpio_desc, value);
> }
>
> -static void icl_exec_gpio(struct intel_connector *connector,
> - u8 gpio_source, u8 gpio_index, bool value)
> -{
> - struct drm_i915_private *dev_priv = to_i915(connector->base.dev);
> -
> - drm_dbg_kms(&dev_priv->drm, "Skipping ICL GPIO element execution\n");
> -}
> -
> enum {
> MIPI_RESET_1 = 0,
> MIPI_AVDD_EN_1,
> @@ -491,7 +483,7 @@ static const u8 *mipi_exec_gpio(struct intel_dsi *intel_dsi, const u8 *data)
> if (native)
> icl_native_gpio_set_value(dev_priv, gpio_number, value);
> else if (DISPLAY_VER(dev_priv) >= 11)
> - icl_exec_gpio(connector, gpio_source, gpio_index, value);
> + bxt_exec_gpio(connector, gpio_source, gpio_index, value);
We could just drop this whole branch since we end up in bxt_exec_gpio()
in the end anyway. Or we drop the final else and make this one check for
DISPLAY_VER >=9.
> else if (IS_VALLEYVIEW(dev_priv))
> vlv_exec_gpio(connector, gpio_source, gpio_number, value);
> else if (IS_CHERRYVIEW(dev_priv))
> --
> 2.40.0.1.gaa8946217a0b
--
Ville Syrjälä
Intel
WARNING: multiple messages have this Message-ID (diff)
From: "Ville Syrjälä" <ville.syrjala@linux.intel.com>
To: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Cc: Jani Nikula <jani.nikula@intel.com>,
intel-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org,
linux-kernel@vger.kernel.org, Hans de Goede <hdegoede@redhat.com>,
Daniel Vetter <daniel@ffwll.ch>,
Rodrigo Vivi <rodrigo.vivi@intel.com>,
David Airlie <airlied@gmail.com>
Subject: Re: [Intel-gfx] [PATCH v3 01/15] drm/i915/dsi: assume BXT gpio works for non-native GPIO
Date: Thu, 2 Nov 2023 19:10:09 +0200 [thread overview]
Message-ID: <ZUPX8RgtrCX8B_Cg@intel.com> (raw)
In-Reply-To: <20231102151228.668842-2-andriy.shevchenko@linux.intel.com>
On Thu, Nov 02, 2023 at 05:12:14PM +0200, Andy Shevchenko wrote:
> From: Jani Nikula <jani.nikula@intel.com>
>
> Purely a guess. Drop the nop function.
>
> Cc: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
> Cc: Hans de Goede <hdegoede@redhat.com>
> Signed-off-by: Jani Nikula <jani.nikula@intel.com>
> Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
> ---
> drivers/gpu/drm/i915/display/intel_dsi_vbt.c | 10 +---------
> 1 file changed, 1 insertion(+), 9 deletions(-)
>
> diff --git a/drivers/gpu/drm/i915/display/intel_dsi_vbt.c b/drivers/gpu/drm/i915/display/intel_dsi_vbt.c
> index 24b2cbcfc1ef..b2c0cc11f8c1 100644
> --- a/drivers/gpu/drm/i915/display/intel_dsi_vbt.c
> +++ b/drivers/gpu/drm/i915/display/intel_dsi_vbt.c
> @@ -372,14 +372,6 @@ static void bxt_exec_gpio(struct intel_connector *connector,
> gpiod_set_value(gpio_desc, value);
> }
>
> -static void icl_exec_gpio(struct intel_connector *connector,
> - u8 gpio_source, u8 gpio_index, bool value)
> -{
> - struct drm_i915_private *dev_priv = to_i915(connector->base.dev);
> -
> - drm_dbg_kms(&dev_priv->drm, "Skipping ICL GPIO element execution\n");
> -}
> -
> enum {
> MIPI_RESET_1 = 0,
> MIPI_AVDD_EN_1,
> @@ -491,7 +483,7 @@ static const u8 *mipi_exec_gpio(struct intel_dsi *intel_dsi, const u8 *data)
> if (native)
> icl_native_gpio_set_value(dev_priv, gpio_number, value);
> else if (DISPLAY_VER(dev_priv) >= 11)
> - icl_exec_gpio(connector, gpio_source, gpio_index, value);
> + bxt_exec_gpio(connector, gpio_source, gpio_index, value);
We could just drop this whole branch since we end up in bxt_exec_gpio()
in the end anyway. Or we drop the final else and make this one check for
DISPLAY_VER >=9.
> else if (IS_VALLEYVIEW(dev_priv))
> vlv_exec_gpio(connector, gpio_source, gpio_number, value);
> else if (IS_CHERRYVIEW(dev_priv))
> --
> 2.40.0.1.gaa8946217a0b
--
Ville Syrjälä
Intel
next prev parent reply other threads:[~2023-11-02 17:10 UTC|newest]
Thread overview: 73+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-11-02 15:12 [Intel-gfx] [rft, PATCH v3 00/15] drm/i915/dsi: 2nd attempt to get rid of IOSF GPIO Andy Shevchenko
2023-11-02 15:12 ` Andy Shevchenko
2023-11-02 15:12 ` Andy Shevchenko
2023-11-02 15:12 ` [Intel-gfx] [PATCH v3 01/15] drm/i915/dsi: assume BXT gpio works for non-native GPIO Andy Shevchenko
2023-11-02 15:12 ` Andy Shevchenko
2023-11-02 15:12 ` Andy Shevchenko
2023-11-02 17:10 ` Ville Syrjälä [this message]
2023-11-02 17:10 ` [Intel-gfx] " Ville Syrjälä
2023-11-02 17:10 ` Ville Syrjälä
2023-11-02 17:40 ` Andy Shevchenko
2023-11-02 17:40 ` Andy Shevchenko
2023-11-02 17:40 ` Andy Shevchenko
2023-11-02 15:12 ` [Intel-gfx] [PATCH v3 02/15] drm/i915/dsi: switch mipi_exec_gpio() from dev_priv to i915 Andy Shevchenko
2023-11-02 15:12 ` Andy Shevchenko
2023-11-02 15:12 ` Andy Shevchenko
2023-11-02 15:12 ` [Intel-gfx] [PATCH v3 03/15] drm/i915/dsi: clarify GPIO exec sequence Andy Shevchenko
2023-11-02 15:12 ` Andy Shevchenko
2023-11-02 15:12 ` Andy Shevchenko
2023-11-02 15:12 ` [Intel-gfx] [PATCH v3 04/15] drm/i915/dsi: rename platform specific *_exec_gpio() to *_gpio_set_value() Andy Shevchenko
2023-11-02 15:12 ` Andy Shevchenko
2023-11-02 15:12 ` Andy Shevchenko
2023-11-02 15:12 ` [Intel-gfx] [PATCH v3 05/15] drm/i915/dsi: bxt/icl GPIO set value do not need gpio source Andy Shevchenko
2023-11-02 15:12 ` Andy Shevchenko
2023-11-02 15:12 ` Andy Shevchenko
2023-11-02 15:12 ` [Intel-gfx] [PATCH v3 06/15] drm/i915/dsi: Replace while(1) with one with clear exit condition Andy Shevchenko
2023-11-02 15:12 ` Andy Shevchenko
2023-11-02 15:12 ` Andy Shevchenko
2023-11-02 15:12 ` [Intel-gfx] [PATCH v3 07/15] drm/i915/dsi: Get rid of redundant 'else' Andy Shevchenko
2023-11-02 15:12 ` Andy Shevchenko
2023-11-02 15:12 ` Andy Shevchenko
2023-11-02 15:12 ` [Intel-gfx] [PATCH v3 08/15] drm/i915/dsi: Replace check with a (missing) MIPI sequence name Andy Shevchenko
2023-11-02 15:12 ` Andy Shevchenko
2023-11-02 15:12 ` Andy Shevchenko
2023-11-02 15:12 ` [Intel-gfx] [PATCH v3 09/15] drm/i915/dsi: Remove GPIO lookup table at the end of intel_dsi_vbt_gpio_init() Andy Shevchenko
2023-11-02 15:12 ` Andy Shevchenko
2023-11-02 15:12 ` Andy Shevchenko
2023-11-02 15:12 ` [Intel-gfx] [PATCH v3 10/15] drm/i915/dsi: Fix wrong initial value for GPIOs in bxt_exec_gpio() Andy Shevchenko
2023-11-02 15:12 ` Andy Shevchenko
2023-11-02 15:12 ` Andy Shevchenko
2023-11-02 15:19 ` [Intel-gfx] " Andy Shevchenko
2023-11-02 15:19 ` Andy Shevchenko
2023-11-02 15:19 ` Andy Shevchenko
2023-11-02 15:12 ` [Intel-gfx] [PATCH v3 11/15] drm/i915/dsi: Extract common soc_gpio_set_value() helper Andy Shevchenko
2023-11-02 15:12 ` Andy Shevchenko
2023-11-02 15:12 ` Andy Shevchenko
2023-11-02 15:12 ` [Intel-gfx] [PATCH v3 12/15] drm/i915/dsi: Replace poking of VLV GPIOs behind the driver's back Andy Shevchenko
2023-11-02 15:12 ` Andy Shevchenko
2023-11-02 15:12 ` Andy Shevchenko
2023-11-02 15:12 ` [Intel-gfx] [PATCH v3 13/15] drm/i915/dsi: Prepare soc_gpio_set_value() to distinguish GPIO communities Andy Shevchenko
2023-11-02 15:12 ` Andy Shevchenko
2023-11-02 15:12 ` Andy Shevchenko
2023-11-02 15:12 ` [Intel-gfx] [PATCH v3 14/15] drm/i915/dsi: Replace poking of CHV GPIOs behind the driver's back Andy Shevchenko
2023-11-02 15:12 ` Andy Shevchenko
2023-11-02 15:12 ` Andy Shevchenko
2023-11-02 15:47 ` [Intel-gfx] " Hans de Goede
2023-11-02 15:47 ` Hans de Goede
2023-11-02 15:47 ` Hans de Goede
2023-11-02 16:49 ` [Intel-gfx] " Andy Shevchenko
2023-11-02 16:49 ` Andy Shevchenko
2023-11-02 16:49 ` Andy Shevchenko
2023-11-03 19:27 ` [Intel-gfx] " kernel test robot
2023-11-03 19:27 ` kernel test robot
2023-11-03 19:27 ` kernel test robot
2023-11-02 15:12 ` [Intel-gfx] [PATCH v3 15/15] drm/i915/iosf: Drop unused APIs Andy Shevchenko
2023-11-02 15:12 ` Andy Shevchenko
2023-11-02 15:12 ` Andy Shevchenko
2023-11-02 15:17 ` [Intel-gfx] [rft, PATCH v3 00/15] drm/i915/dsi: 2nd attempt to get rid of IOSF GPIO Andy Shevchenko
2023-11-02 15:17 ` Andy Shevchenko
2023-11-02 15:17 ` Andy Shevchenko
2023-11-02 15:40 ` [Intel-gfx] " Jani Nikula
2023-11-02 15:40 ` Jani Nikula
2023-11-02 15:40 ` Jani Nikula
2023-11-02 23:21 ` [Intel-gfx] ✗ Fi.CI.BUILD: failure for drm/i915/dsi: 2nd attempt to get rid of IOSF GPIO (rev6) 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=ZUPX8RgtrCX8B_Cg@intel.com \
--to=ville.syrjala@linux.intel.com \
--cc=airlied@gmail.com \
--cc=andriy.shevchenko@linux.intel.com \
--cc=daniel@ffwll.ch \
--cc=dri-devel@lists.freedesktop.org \
--cc=hdegoede@redhat.com \
--cc=intel-gfx@lists.freedesktop.org \
--cc=jani.nikula@intel.com \
--cc=linux-kernel@vger.kernel.org \
--cc=rodrigo.vivi@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.