|
@@ -10,6 +10,7 @@
|
|
#define __LINUX_USB_PHY_H
|
|
#define __LINUX_USB_PHY_H
|
|
|
|
|
|
#include <linux/notifier.h>
|
|
#include <linux/notifier.h>
|
|
|
|
+#include <linux/usb.h>
|
|
|
|
|
|
enum usb_phy_events {
|
|
enum usb_phy_events {
|
|
USB_EVENT_NONE, /* no events or cable disconnected */
|
|
USB_EVENT_NONE, /* no events or cable disconnected */
|
|
@@ -99,8 +100,10 @@ struct usb_phy {
|
|
int suspend);
|
|
int suspend);
|
|
|
|
|
|
/* notify phy connect status change */
|
|
/* notify phy connect status change */
|
|
- int (*notify_connect)(struct usb_phy *x, int port);
|
|
|
|
- int (*notify_disconnect)(struct usb_phy *x, int port);
|
|
|
|
|
|
+ int (*notify_connect)(struct usb_phy *x,
|
|
|
|
+ enum usb_device_speed speed);
|
|
|
|
+ int (*notify_disconnect)(struct usb_phy *x,
|
|
|
|
+ enum usb_device_speed speed);
|
|
};
|
|
};
|
|
|
|
|
|
|
|
|
|
@@ -189,19 +192,19 @@ usb_phy_set_suspend(struct usb_phy *x, int suspend)
|
|
}
|
|
}
|
|
|
|
|
|
static inline int
|
|
static inline int
|
|
-usb_phy_notify_connect(struct usb_phy *x, int port)
|
|
|
|
|
|
+usb_phy_notify_connect(struct usb_phy *x, enum usb_device_speed speed)
|
|
{
|
|
{
|
|
if (x->notify_connect)
|
|
if (x->notify_connect)
|
|
- return x->notify_connect(x, port);
|
|
|
|
|
|
+ return x->notify_connect(x, speed);
|
|
else
|
|
else
|
|
return 0;
|
|
return 0;
|
|
}
|
|
}
|
|
|
|
|
|
static inline int
|
|
static inline int
|
|
-usb_phy_notify_disconnect(struct usb_phy *x, int port)
|
|
|
|
|
|
+usb_phy_notify_disconnect(struct usb_phy *x, enum usb_device_speed speed)
|
|
{
|
|
{
|
|
if (x->notify_disconnect)
|
|
if (x->notify_disconnect)
|
|
- return x->notify_disconnect(x, port);
|
|
|
|
|
|
+ return x->notify_disconnect(x, speed);
|
|
else
|
|
else
|
|
return 0;
|
|
return 0;
|
|
}
|
|
}
|