]> git.itanic.dy.fi Git - linux-stable/commit
drm/i915/dsi: Remove GPIO lookup table at the end of intel_dsi_vbt_gpio_init()
authorHans de Goede <hdegoede@redhat.com>
Fri, 3 Nov 2023 20:18:24 +0000 (22:18 +0200)
committerJani Nikula <jani.nikula@intel.com>
Wed, 22 Nov 2023 16:50:35 +0000 (18:50 +0200)
commite2a97a08ce179ee2ac33a0e24b890fb0638ac3f5
treecf72fcde4f99093d51061ce73957a46877564077
parent246bcae104475136cd3eb87793726b5cc4320ad1
drm/i915/dsi: Remove GPIO lookup table at the end of intel_dsi_vbt_gpio_init()

To properly deal with GPIOs used in MIPI panel sequences a temporary
GPIO lookup will be used. Since there can only be 1 GPIO lookup table
for the "0000:00:02.0" device this will not work if the GPIO lookup
table used by intel_dsi_vbt_gpio_init() is still registered.

After getting the "backlight" and "panel" GPIOs the lookup table
registered by intel_dsi_vbt_gpio_init() is no longer necessary,
remove it so that another temporary lookup-table for the "0000:00:02.0"
device can be added.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Acked-by: Jani Nikula <jani.nikula@intel.com>
Tested-by: Hans de Goede <hdegoede@redhat.com>
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20231103201831.1037416-10-andriy.shevchenko@linux.intel.com
drivers/gpu/drm/i915/display/intel_dsi_vbt.c