#include <linux/kernel.h>
#include <linux/export.h>
#include <linux/err.h>
#include <linux/device.h>
#include <linux/slab.h>
#include <linux/usb/otg.h>
Go to the source code of this file.
devm_usb_get_phy - find the USB PHY - device that requests this phy - the type of the phy the controller requires
Gets the phy using usb_get_phy(), and associates a device with it using devres. On driver detach, release function is invoked on the devres data, then, devres data is freed.
For use by USB host and peripheral drivers.
Definition at line 61 of file otg.c.
devm_usb_put_phy - release the USB PHY - device that wants to release this phy - the phy returned by devm_usb_get_phy()
destroys the devres associated with this phy and invokes usb_put_phy to release the phy.
For use by USB host and peripheral drivers.
Definition at line 123 of file otg.c.
usb_add_phy - declare the USB PHY : the USB phy to be used; or NULL - the type of this PHY
This call is exclusively for use by phy drivers, which coordinate the activities of drivers for host and peripheral controllers, and in some cases for VBUS current regulation.
Definition at line 156 of file otg.c.
usb_get_phy - find the USB PHY - the type of the phy the controller requires
Returns the phy driver, after getting a refcount to it; or -ENODEV if there is no such phy. The caller is responsible for calling usb_put_phy() to release that count.
For use by USB host and peripheral drivers.
Definition at line 90 of file otg.c.
usb_remove_phy - remove the OTG PHY : the USB OTG PHY to be removed;
This reverts the effects of usb_add_phy
Definition at line 193 of file otg.c.