phy: phy-rockchip-typec: fix rx eq training fail
authorWu Liang feng <wulf@rock-chips.com>
Tue, 23 Aug 2016 01:11:41 +0000 (09:11 +0800)
committerWu Liang feng <wulf@rock-chips.com>
Tue, 23 Aug 2016 01:11:41 +0000 (09:11 +0800)
commit56173870ac91228300dca8ec39606cf064b2e3b0
tree4da2546e150b4437fbf57e592d5fc9cbda4a528b
parent6a70fe365cc64033cf9368b4ade268f7074d97c2
phy: phy-rockchip-typec: fix rx eq training fail

When do Rx compliance test, PHY is in loopback mode, we
observed that Rx test failed with long cable, and it was
found that equalizer adaptation is not happening properly.
With rx_eq_training forced from PMA, the equalizer adaptation
working fine and Rx test can pass. The root cause is that
the Rx REE component will be turned off when control data
is being received by default PHY configuration. So we need
to unmask REE control data by setting REE control data mask
register, and with this patch, equalizer training will happen
based on the signal coming from controller only.

Change-Id: Ic4fca1045d92381470588c4afccff0cc7318ab4c
Signed-off-by: Wu Liang feng <wulf@rock-chips.com>
drivers/phy/phy-rockchip-typec.c