OSDN Git Service

phy: xilinx: add runtime PM support
authorPiyush Mehta <piyush.mehta@amd.com>
Tue, 13 Jun 2023 14:02:49 +0000 (19:32 +0530)
committerVinod Koul <vkoul@kernel.org>
Wed, 12 Jul 2023 16:57:42 +0000 (22:27 +0530)
commitb3db66f624468ab4a0385586bc7f4221e477d6b2
tree4e5bc41bc3176a047ae266b07548c74e435f3f95
parentbd36b1ba2010714b5f1e77e6648973392939e1d6
phy: xilinx: add runtime PM support

Added Runtime power management support to the xilinx phy driver and using
DEFINE_RUNTIME_DEV_PM_OPS new macros allows the compiler to remove the
unused dev_pm_ops structure and related functions if !CONFIG_PM without
the need to mark the functions __maybe_unused.

Signed-off-by: Piyush Mehta <piyush.mehta@amd.com>
Link: https://lore.kernel.org/r/20230613140250.3018947-2-piyush.mehta@amd.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/phy/xilinx/phy-zynqmp.c