diff options
| -rw-r--r-- | drivers/phy/freescale/phy-fsl-imx8mq-usb.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/drivers/phy/freescale/phy-fsl-imx8mq-usb.c b/drivers/phy/freescale/phy-fsl-imx8mq-usb.c index ba7603a008d8..8859835541b1 100644 --- a/drivers/phy/freescale/phy-fsl-imx8mq-usb.c +++ b/drivers/phy/freescale/phy-fsl-imx8mq-usb.c @@ -9,6 +9,7 @@ #include <linux/of.h> #include <linux/phy/phy.h> #include <linux/platform_device.h> +#include <linux/pm_domain.h> #include <linux/pm_runtime.h> #include <linux/regulator/consumer.h> #include <linux/regmap.h> @@ -134,6 +135,7 @@ struct imx8mq_usb_phy { struct imx8mq_usb_phy_drvdata { const struct phy_ops *ops; + bool need_genpd_rpm_on; }; static void tca_blk_orientation_set(struct tca_blk *tca, @@ -669,6 +671,7 @@ static const struct imx8mq_usb_phy_drvdata imx8mq_usb_phy_data = { static const struct imx8mq_usb_phy_drvdata imx8mp_usb_phy_data = { .ops = &imx8mp_usb_phy_ops, + .need_genpd_rpm_on = true, }; static const struct imx8mq_usb_phy_drvdata imx95_usb_phy_data = { @@ -738,6 +741,12 @@ static int imx8mq_usb_phy_probe(struct platform_device *pdev) if (!phy_data) return -EINVAL; + if (phy_data->need_genpd_rpm_on) { + ret = dev_pm_genpd_rpm_always_on(dev, true); + if (ret && ret != -EOPNOTSUPP) + dev_warn(dev, "failed to set genpd rpm always on\n"); + } + pm_runtime_set_active(dev); pm_runtime_enable(dev); |
