Searched refs:bus_power_dev (Results 1 – 2 of 2) sorted by relevance
/openbmc/linux/drivers/pmdomain/imx/ |
H A D | imx8m-blk-ctrl.c | 33 struct device *bus_power_dev; member 93 ret = pm_runtime_get_sync(bc->bus_power_dev); in imx8m_blk_ctrl_power_on() 95 pm_runtime_put_noidle(bc->bus_power_dev); in imx8m_blk_ctrl_power_on() 140 pm_runtime_put(bc->bus_power_dev); in imx8m_blk_ctrl_power_on() 162 pm_runtime_put(bc->bus_power_dev); in imx8m_blk_ctrl_power_off() 214 bc->bus_power_dev = dev_pm_domain_attach_by_name(dev, "bus"); in imx8m_blk_ctrl_probe() 215 if (IS_ERR(bc->bus_power_dev)) { in imx8m_blk_ctrl_probe() 216 if (PTR_ERR(bc->bus_power_dev) == -ENODEV) in imx8m_blk_ctrl_probe() 220 return dev_err_probe(dev, PTR_ERR(bc->bus_power_dev), in imx8m_blk_ctrl_probe() 306 ret = dev_pm_genpd_add_notifier(bc->bus_power_dev, &bc->power_nb); in imx8m_blk_ctrl_probe() [all …]
|
H A D | imx8mp-blk-ctrl.c | 41 struct device *bus_power_dev; member 167 ret = devm_clk_hw_register(bc->bus_power_dev, hw); in imx8mp_hsio_blk_ctrl_probe() 531 ret = pm_runtime_resume_and_get(bc->bus_power_dev); in imx8mp_blk_ctrl_power_on() 565 pm_runtime_put(bc->bus_power_dev); in imx8mp_blk_ctrl_power_on() 592 pm_runtime_put(bc->bus_power_dev); in imx8mp_blk_ctrl_power_off() 645 bc->bus_power_dev = dev_pm_domain_attach_by_name(dev, "bus"); in imx8mp_blk_ctrl_probe() 646 if (IS_ERR(bc->bus_power_dev)) in imx8mp_blk_ctrl_probe() 647 return dev_err_probe(dev, PTR_ERR(bc->bus_power_dev), in imx8mp_blk_ctrl_probe() 734 ret = dev_pm_genpd_add_notifier(bc->bus_power_dev, &bc->power_nb); in imx8mp_blk_ctrl_probe() 758 dev_pm_domain_detach(bc->bus_power_dev, true); in imx8mp_blk_ctrl_probe() [all …]
|