Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1693900
| From | Stephen Boyd <sboyd@codeaurora.org> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH v1 4/6] phy: qcom-qusb2: Add support for runtime PM |
| Date | 2017-07-21 19:30 +0200 |
| Message-ID | <u5JUu-7GX-29@gated-at.bofh.it> (permalink) |
| References | <u5DYJ-45z-3@gated-at.bofh.it> <u5DYJ-45z-9@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On 07/21/2017 04:01 AM, Manu Gautam wrote:
> Driver can turn off clocks during runtime suspend.
> Also, runtime suspend is not as a result of host mode
> selective suspend then PHY can be powered off as well.
>
> Signed-off-by: Manu Gautam <mgautam@codeaurora.org>
>
> diff --git a/drivers/phy/qualcomm/phy-qcom-qusb2.c b/drivers/phy/qualcomm/phy-qcom-qusb2.c
> index fa60a99..b505681 100644
> --- a/drivers/phy/qualcomm/phy-qcom-qusb2.c
> +++ b/drivers/phy/qualcomm/phy-qcom-qusb2.c
> @@ -132,6 +132,9 @@ struct qusb2_phy {
>
> const struct qusb2_phy_cfg *cfg;
> bool has_se_clk_scheme;
> + bool phy_initialized;
> + bool powered_on;
Is the powered_on flag here because the controller driver has unbalanced
power on calls to the phy? Same comment applies for the phy_initialized
flag. Both of these look like workarounds for some odd behavior in the
controller driver.
--
Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum,
a Linux Foundation Collaborative Project
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[PATCH v1 4/6] phy: qcom-qusb2: Add support for runtime PM Manu Gautam <mgautam@codeaurora.org> - 2017-07-21 13:10 +0200
Re: [PATCH v1 4/6] phy: qcom-qusb2: Add support for runtime PM Stephen Boyd <sboyd@codeaurora.org> - 2017-07-21 19:30 +0200
Re: [PATCH v1 4/6] phy: qcom-qusb2: Add support for runtime PM Manu Gautam <mgautam@codeaurora.org> - 2017-07-24 12:10 +0200
csiph-web