phy: marvell: a3700: Fix configuring polarity invert bits
authorPali Rohár <pali@kernel.org>
Fri, 24 Sep 2021 14:11:56 +0000 (16:11 +0200)
committerStefan Roese <sr@denx.de>
Fri, 8 Oct 2021 06:33:52 +0000 (08:33 +0200)
commit4ca474d3067ba7278c6a5f94ff4340ca5a07ca0a
tree9323ce147013a97334c2d54520d373edbb024f77
parent4adb16b29a31590f536b72e635370aff73732b4d
phy: marvell: a3700: Fix configuring polarity invert bits

phy_txd_inv or phy_rxd_inv needs to be set only in case when
appropriate polarity is inverted. Otherwise these bits should be
cleared.

Same change was included in TF-A project:
https://review.trustedfirmware.org/c/TF-A/trusted-firmware-a/+/9406

Signed-off-by: Pali Rohár <pali@kernel.org>
Reviewed-by: Stefan Roese <sr@denx.de>
drivers/phy/marvell/comphy_a3700.c