drm/i915: Only poll DW3_A when init DDI PHY for ports B and C.
authorRodrigo Vivi <rodrigo.vivi@intel.com>
Thu, 17 Nov 2016 19:17:36 +0000 (11:17 -0800)
committerRodrigo Vivi <rodrigo.vivi@intel.com>
Fri, 2 Dec 2016 20:16:25 +0000 (12:16 -0800)
commit01a551971c0fb1739dbe61f60105323a1f8827ad
treed62a599e52d89a94054f6a74378f2cb0a7b5ba7b
parente9c9882556fc92f053f81195f75845ec362a9050
drm/i915: Only poll DW3_A when init DDI PHY for ports B and C.

According to Bspec we need to
"Poll for PORT_REF_DW3_A grc_done == 1b"
only on ports B and C initialization sequence when
copying rcomp from port A.

So let's follow the spec and only poll for that case
and not on every port A initialization.

v2: Also remove the grc_done check from bxt_ddi_phy_is_enabled()
    otherwise it might believe it is disabled and force it to re program.

Cc: Imre Deak <imre.deak@intel.com>
Cc: Ander Conselvan de Oliveira <ander.conselvan.de.oliveira@intel.com>
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Reviewed-by: Imre Deak <imre.deak@intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/1479410256-25735-1-git-send-email-rodrigo.vivi@intel.com
drivers/gpu/drm/i915/intel_dpio_phy.c