All of lore.kernel.org
 help / color / mirror / Atom feed
* [Intel-gfx] [rft, PATCH v3 00/15] drm/i915/dsi: 2nd attempt to get rid of IOSF GPIO
@ 2023-11-02 15:12 ` Andy Shevchenko
  0 siblings, 0 replies; 73+ messages in thread
From: Andy Shevchenko @ 2023-11-02 15:12 UTC (permalink / raw)
  To: Jani Nikula, Andy Shevchenko, intel-gfx, dri-devel, linux-kernel
  Cc: Hans de Goede, Daniel Vetter, Rodrigo Vivi, David Airlie

DSI code for VBT has a set of ugly GPIO hacks, one of which is direct
talking to GPIO IP behind the actual driver's back. A second attempt
to fix that is here.

If I understood correctly, my approach should work in the similar way as
the current IOSF GPIO.

Hans, I believe you have some devices that use this piece of code,
is it possible to give a test run on (one of) them?

In v3:
- incorporated series by Jani
- incorporated couple of precursor patches by Hans
- added Rb tag for used to be first three patches (Andi)
- rebased on top of the above changes
- fixed indexing for multi-community devices, such as Cherry View

In v2:
- added a few cleanup patches
- reworked to use dynamic GPIO lookup tables
- converted CHV as well

Andy Shevchenko (8):
  drm/i915/dsi: Replace while(1) with one with clear exit condition
  drm/i915/dsi: Get rid of redundant 'else'
  drm/i915/dsi: Replace check with a (missing) MIPI sequence name
  drm/i915/dsi: Extract common soc_gpio_set_value() helper
  drm/i915/dsi: Replace poking of VLV GPIOs behind the driver's back
  drm/i915/dsi: Prepare soc_gpio_set_value() to distinguish GPIO
    communities
  drm/i915/dsi: Replace poking of CHV GPIOs behind the driver's back
  drm/i915/iosf: Drop unused APIs

Hans de Goede (2):
  drm/i915/dsi: Remove GPIO lookup table at the end of
    intel_dsi_vbt_gpio_init()
  drm/i915/dsi: Fix wrong initial value for GPIOs in bxt_exec_gpio()

Jani Nikula (5):
  drm/i915/dsi: assume BXT gpio works for non-native GPIO
  drm/i915/dsi: switch mipi_exec_gpio() from dev_priv to i915
  drm/i915/dsi: clarify GPIO exec sequence
  drm/i915/dsi: rename platform specific *_exec_gpio() to
    *_gpio_set_value()
  drm/i915/dsi: bxt/icl GPIO set value do not need gpio source

 drivers/gpu/drm/i915/display/intel_dsi_vbt.c | 355 +++++++------------
 drivers/gpu/drm/i915/vlv_sideband.c          |  17 -
 drivers/gpu/drm/i915/vlv_sideband.h          |   3 -
 3 files changed, 137 insertions(+), 238 deletions(-)

-- 
2.40.0.1.gaa8946217a0b


^ permalink raw reply	[flat|nested] 73+ messages in thread

end of thread, other threads:[~2023-11-03 19:28 UTC | newest]

Thread overview: 73+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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   ` [Intel-gfx] " Ville Syrjälä
2023-11-02 17:10     ` 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

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.