phy: tegra: xusb: Uncomment register write
authorThierry Reding <treding@nvidia.com>
Wed, 14 Mar 2018 10:02:18 +0000 (11:02 +0100)
committerKishon Vijay Abraham I <kishon@ti.com>
Fri, 16 Mar 2018 11:25:38 +0000 (16:55 +0530)
commite7f4da4c44fe74e1c9277bac9b12ea1ef4eb70db
treefacae620fc4d3f0780b9f5007a82ff4c903ffbfb
parentec1fcd7b7e6f50dd6e259ca76c6e41e2346b3afe
phy: tegra: xusb: Uncomment register write

The reason why this was originally commented out is no longer clear. The
UPHY driver for SATA works fine with or without this change. The reset
value of the XDIGCLK_EN bit is 0, so unless programmed by the bootloader
this shouldn't make a difference anyway.

Define a macro for this bit and uncomment the code. This also fixes a
coverity issue brought to my attention by Rohith because not only is the
XDIGCLK_EN field modification commented out, but also the register write
which causes none of the earlier modifications of the register value to
be written to the register and the value being overwritten.

Reported-by: Rohith Seelaboyina <rseelaboyina@nvidia.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com>
drivers/phy/tegra/xusb-tegra210.c