phy: ti-pipe3: Program the DPLL even if it was already locked
authorRoger Quadros <rogerq@ti.com>
Wed, 18 May 2016 12:28:06 +0000 (15:28 +0300)
committerKishon Vijay Abraham I <kishon@ti.com>
Fri, 3 Jun 2016 06:36:41 +0000 (12:06 +0530)
commit31b2a32f708bb33b3f35b03ce3d2cb31f7d1e684
treecec2d756eb4345065d6af165e5fbcab2e6b98258
parent06061dc63bff8d609bc8d64f5d3ef59d0a673b25
phy: ti-pipe3: Program the DPLL even if it was already locked

If bootloader has set a wrong DPLL then we must trash those values
and re-program it anyways. This fixes USB3 devices not being enumerated
on beagle-x15 if usb was started in u-boot.

We don't re-program SATA DPLL if it is locked as it was causing
SATA failures if device was hotpluged after boot.

Reported-by: Robert Nelson <robertcnelson@gmail.com>
Signed-off-by: Roger Quadros <rogerq@ti.com>
Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com>
drivers/phy/phy-ti-pipe3.c