phy: cadence: cdns-dphy-rx: Add runtime PM support
PATCH 1/1 phy: cadence: cdns-dphy-rx: Add runtime PM support
Enable runtime power management for the device. The PHY framework handles calling pm_runtime_(get|put)_sync when powering on/off this device.
--- drivers/phy/cadence/cdns-dphy-rx.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/phy/cadence/cdns-dphy-rx.c +2 -1
@@ -12,6 +12,7 @@#include <linux/phy/phy.h> #include <linux/phy/phy-mipi-dphy.h> #include <linux/platform_device.h> +#include <linux/pm_runtime.h> #include <linux/sys_soc.h> #define DPHY_PMA_CMN (reg) (reg)
@@ -265,7 +266,7 @@ static int cdns_dphy_rx_probe(struct platform_device *pdev)return PTR_ERR (provider); } -return 0 ; +return devm_pm_runtime_enable (dev); }static const struct of_device_id cdns_dphy_rx_of_match[] = {
---
base-commit: d082ecbc71e9e0bf49883ee4afd435a77a5101b6
change-id: 20250224-cdns_phy_pm-b2b7d472835d
Best regards,
Signature · 1 line
Jai Luthra <[email protected]>
Hi Vinod, Kishon,
Quoting Jai Luthra (2025-02-24 18:10:05)
Quoted 4 lines
Enable runtime power management for the device. The PHY framework handles calling pm_runtime_(get|put)_sync when powering on/off this device.
Can this patch get picked for the next merge window?
The CSI PM series is already reviewed [1], and it would be good to have runtime PM for cameras working in 6.18, which needs both the PHY and CSI IPs to be powered off.
[1]: https://lore.kernel.org/linux-media/[email protected]/
Quoted 31 lines
Signed-off-by Jai Luthra <[email protected]>--- drivers/phy/cadence/cdns-dphy-rx.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)drivers/phy/cadence/cdns-dphy-rx.c +2
-2@@ -12,6 +12,7 @@#include <linux/phy/phy.h> #include <linux/phy/phy-mipi-dphy.h> #include <linux/platform_device.h> +#include <linux/pm_runtime.h> #include <linux/sys_soc.h> #define DPHY_PMA_CMN (reg) (reg)@@ -265,7 +266,7 @@ static int cdns_dphy_rx_probe(struct platform_device *pdev)return PTR_ERR (provider); } -return 0 ; +return devm_pm_runtime_enable (dev); }static const struct of_device_id cdns_dphy_rx_of_match[] = { ---base-commit:
d082ecbc71e9e0bf49883ee4afd435a77a5101b6
change-id: 20250224-cdns_phy_pm-b2b7d472835d
Quoted 4 lines
Best regards,
Signature · 1 line
Jai Luthra <[email protected]>
Thanks,
Jai
Quoted 5 lines · Jai Luthra
Enable runtime power management for the device. The PHY framework handles calling pm_runtime_(get|put)_sync when powering on/off this device.
Applied, thanks!
[1/1] phy: cadence: cdns-dphy-rx: Add runtime PM support
commit: a230d52c90cfb48f1f32d3957dc962165373895b
Best regards,
Signature · 1 line
~Vinod