Lines Matching +full:c +full:- +full:phy
1 // SPDX-License-Identifier: GPL-2.0
5 * Copyright (C) 2019 Chris Brandt
6 * Copyright (C) 2019 Renesas Electronics Corporation
12 #include <linux/phy/phy.h>
19 struct phy *phy = phy_get(&pdev->dev, "usb"); in usbhs_rza2_hardware_init() local
21 if (IS_ERR(phy)) in usbhs_rza2_hardware_init()
22 return PTR_ERR(phy); in usbhs_rza2_hardware_init()
24 priv->phy = phy; in usbhs_rza2_hardware_init()
32 phy_put(&pdev->dev, priv->phy); in usbhs_rza2_hardware_exit()
33 priv->phy = NULL; in usbhs_rza2_hardware_exit()
44 if (!priv->phy) in usbhs_rza2_power_ctrl()
45 return -ENODEV; in usbhs_rza2_power_ctrl()
48 retval = phy_init(priv->phy); in usbhs_rza2_power_ctrl()
52 retval = phy_power_on(priv->phy); in usbhs_rza2_power_ctrl()
55 phy_power_off(priv->phy); in usbhs_rza2_power_ctrl()
56 phy_exit(priv->phy); in usbhs_rza2_power_ctrl()