mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-17 04:07:58 +07:00
34c7ed72f4
Some PHYs (for example Exynos5 USB3.0 DRD PHY) require calibration to be
done after every USB HCD reset. Generic PHY framework has been already
extended with phy_calibrate() function in commit 36914111e6
("drivers:
phy: add calibrate method"). This patch adds support for it to generic
PHY handling code in USB HCD core.
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Tested-by: Anand Moon <linux.amoon@gmail.com>
Tested-by: Jochen Sprickerhof <jochen@sprickerhof.de>
Link: https://lore.kernel.org/r/20190829053028.32438-2-m.szyprowski@samsung.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
31 lines
979 B
C
31 lines
979 B
C
/* SPDX-License-Identifier: GPL-2.0+ */
|
|
/*
|
|
* USB roothub wrapper
|
|
*
|
|
* Copyright (C) 2018 Martin Blumenstingl <martin.blumenstingl@googlemail.com>
|
|
*/
|
|
|
|
#ifndef __USB_CORE_PHY_H_
|
|
#define __USB_CORE_PHY_H_
|
|
|
|
struct device;
|
|
struct usb_phy_roothub;
|
|
|
|
struct usb_phy_roothub *usb_phy_roothub_alloc(struct device *dev);
|
|
|
|
int usb_phy_roothub_init(struct usb_phy_roothub *phy_roothub);
|
|
int usb_phy_roothub_exit(struct usb_phy_roothub *phy_roothub);
|
|
|
|
int usb_phy_roothub_set_mode(struct usb_phy_roothub *phy_roothub,
|
|
enum phy_mode mode);
|
|
int usb_phy_roothub_calibrate(struct usb_phy_roothub *phy_roothub);
|
|
int usb_phy_roothub_power_on(struct usb_phy_roothub *phy_roothub);
|
|
void usb_phy_roothub_power_off(struct usb_phy_roothub *phy_roothub);
|
|
|
|
int usb_phy_roothub_suspend(struct device *controller_dev,
|
|
struct usb_phy_roothub *phy_roothub);
|
|
int usb_phy_roothub_resume(struct device *controller_dev,
|
|
struct usb_phy_roothub *phy_roothub);
|
|
|
|
#endif /* __USB_CORE_PHY_H_ */
|