phy: qcom-qmp: Fix PHY block reset sequence
authorManu Gautam <mgautam@codeaurora.org>
Tue, 16 Jan 2018 10:57:00 +0000 (16:27 +0530)
committerKishon Vijay Abraham I <kishon@ti.com>
Thu, 8 Mar 2018 08:26:08 +0000 (13:56 +0530)
commitc6549f0eefc4d492954af11421d359265c155a91
treea274eaefc2d308622393d76e135ed2db827d65f7
parent937e17f36a32fc2ec01b9f99bac5b80acf22923c
phy: qcom-qmp: Fix PHY block reset sequence

PHY block or asynchronous reset requires signal
to be asserted before de-asserting. Driver is only
de-asserting signal which is already low, hence
reset operation is a no-op. Fix this by asserting
signal first. Also, resetting requires PHY clocks
to be turned ON only after reset is finished. Fix
that as well.

Signed-off-by: Manu Gautam <mgautam@codeaurora.org>
Reviewed-by: Vivek Gautam <vivek.gautam@codeaurora.org>
Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com>
drivers/phy/qualcomm/phy-qcom-qmp.c