drm/i915: convert vlv_dpio_read()/write() from pipe to phy
authorJani Nikula <jani.nikula@intel.com>
Tue, 14 Nov 2023 10:45:34 +0000 (12:45 +0200)
committerJani Nikula <jani.nikula@intel.com>
Fri, 17 Nov 2023 13:00:00 +0000 (15:00 +0200)
commitf70a68bc1d18b7af52d368b80d1d0fed747ef2a9
tree1113605d101cd1d61eba6c6b9dbad11d4068fb27
parent9fda18c2c32a42e6c9fb68893b9628d6a5319555
drm/i915: convert vlv_dpio_read()/write() from pipe to phy

vlv_dpio_read() and vlv_dpio_write() really operate on the phy, not
pipe. Passing the pipe instead of the phy as parameter is supposed to be
a convenience, but when the caller has the phy, it becomes an
inconvenience. See e.g. chv_dpio_cmn_power_well_enable() and
assert_chv_phy_powergate().

Figure out the phy in the callers, and pass phy to the dpio functions.

v2: retract one overzealous pipe->phy change (Ville)

Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20231114104534.4180144-3-jani.nikula@intel.com
drivers/gpu/drm/i915/display/intel_display_power_well.c
drivers/gpu/drm/i915/display/intel_dpio_phy.c
drivers/gpu/drm/i915/display/intel_dpll.c
drivers/gpu/drm/i915/vlv_sideband.c
drivers/gpu/drm/i915/vlv_sideband.h