phy: qcom-snps: Add a set mode callback
authorWesley Cheng <wcheng@codeaurora.org>
Thu, 25 Jun 2020 19:54:44 +0000 (12:54 -0700)
committerVinod Koul <vkoul@kernel.org>
Mon, 29 Jun 2020 09:45:56 +0000 (15:15 +0530)
commitdcbec046507615d7c4b5f6682dc11a1be9a2924c
tree405e73434090f59b6040a1a7ab9f39eb094074d1
parent0d75f508a9d56133a2834215959cde4605c804d1
phy: qcom-snps: Add a set mode callback

The set mode handler is used to keep track of the current role of the
device.  This is used for enabling certain resources within the PHY
depending on if the device is behaving as a host or device.

Signed-off-by: Wesley Cheng <wcheng@codeaurora.org>
Link: https://lore.kernel.org/r/20200625195444.15130-3-wcheng@codeaurora.org
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/phy/qualcomm/phy-qcom-snps-femto-v2.c