diff options
| author | Linus Torvalds <torvalds@linux-foundation.org> | 2013-04-29 15:19:23 -0400 |
|---|---|---|
| committer | Linus Torvalds <torvalds@linux-foundation.org> | 2013-04-29 15:19:23 -0400 |
| commit | ec25e246b94a3233ab064994ef05a170bdba0e7c (patch) | |
| tree | 49b7d7e4c46e13bb465c7b832961596e41e8526a /include | |
| parent | 507ffe4f3840ac24890a8123c702cf1b7fe4d33c (diff) | |
| parent | 4626b8daf9bb00ce6b4d533c1a155211ad880f32 (diff) | |
Merge tag 'usb-3.10-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb
Pull USB patches from Greg Kroah-Hartman:
"Here's the big USB pull request for 3.10-rc1.
Lots of USB patches here, the majority being USB gadget changes and
USB-serial driver cleanups, the rest being ARM build fixes / cleanups,
and individual driver updates. We also finally got some chipidea
fixes, which have been delayed for a number of kernel releases, as the
maintainer has now reappeared.
All of these have been in linux-next for a while"
* tag 'usb-3.10-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb: (568 commits)
USB: ehci-msm: USB_MSM_OTG needs USB_PHY
USB: OHCI: avoid conflicting platform drivers
USB: OMAP: ISP1301 needs USB_PHY
USB: lpc32xx: ISP1301 needs USB_PHY
USB: ftdi_sio: enable two UART ports on ST Microconnect Lite
usb: phy: tegra: don't call into tegra-ehci directly
usb: phy: phy core cannot yet be a module
USB: Fix initconst in ehci driver
usb-storage: CY7C68300A chips do not support Cypress ATACB
USB: serial: option: Added support Olivetti Olicard 145
USB: ftdi_sio: correct ST Micro Connect Lite PIDs
ARM: mxs_defconfig: add CONFIG_USB_PHY
ARM: imx_v6_v7_defconfig: add CONFIG_USB_PHY
usb: phy: remove exported function from __init section
usb: gadget: zero: put function instances on unbind
usb: gadget: f_sourcesink.c: correct a copy-paste misnomer
usb: gadget: cdc2: fix error return code in cdc_do_config()
usb: gadget: multi: fix error return code in rndis_do_config()
usb: gadget: f_obex: fix error return code in obex_bind()
USB: storage: convert to use module_usb_driver()
...
Diffstat (limited to 'include')
| -rw-r--r-- | include/linux/platform_data/dwc3-omap.h | 4 | ||||
| -rw-r--r-- | include/linux/platform_data/mv_usb.h | 2 | ||||
| -rw-r--r-- | include/linux/usb.h | 13 | ||||
| -rw-r--r-- | include/linux/usb/cdc-wdm.h | 2 | ||||
| -rw-r--r-- | include/linux/usb/ch9.h | 9 | ||||
| -rw-r--r-- | include/linux/usb/composite.h | 3 | ||||
| -rw-r--r-- | include/linux/usb/dwc3-omap.h | 6 | ||||
| -rw-r--r-- | include/linux/usb/gadget.h | 11 | ||||
| -rw-r--r-- | include/linux/usb/gadget_configfs.h | 110 | ||||
| -rw-r--r-- | include/linux/usb/hcd.h | 6 | ||||
| -rw-r--r-- | include/linux/usb/musb-ux500.h | 31 | ||||
| -rw-r--r-- | include/linux/usb/nop-usb-xceiv.h | 5 | ||||
| -rw-r--r-- | include/linux/usb/otg.h | 9 | ||||
| -rw-r--r-- | include/linux/usb/phy.h | 33 | ||||
| -rw-r--r-- | include/linux/usb/renesas_usbhs.h | 6 | ||||
| -rw-r--r-- | include/linux/usb/serial.h | 12 | ||||
| -rw-r--r-- | include/linux/usb/tegra_usb_phy.h | 10 | ||||
| -rw-r--r-- | include/uapi/linux/usb/cdc-wdm.h | 21 | ||||
| -rw-r--r-- | include/uapi/linux/usb/ch9.h | 4 |
19 files changed, 252 insertions, 45 deletions
diff --git a/include/linux/platform_data/dwc3-omap.h b/include/linux/platform_data/dwc3-omap.h index ada401244e0b..1d36ca874cc8 100644 --- a/include/linux/platform_data/dwc3-omap.h +++ b/include/linux/platform_data/dwc3-omap.h | |||
| @@ -41,7 +41,3 @@ enum dwc3_omap_utmi_mode { | |||
| 41 | DWC3_OMAP_UTMI_MODE_HW, | 41 | DWC3_OMAP_UTMI_MODE_HW, |
| 42 | DWC3_OMAP_UTMI_MODE_SW, | 42 | DWC3_OMAP_UTMI_MODE_SW, |
| 43 | }; | 43 | }; |
| 44 | |||
| 45 | struct dwc3_omap_data { | ||
| 46 | enum dwc3_omap_utmi_mode utmi_mode; | ||
| 47 | }; | ||
diff --git a/include/linux/platform_data/mv_usb.h b/include/linux/platform_data/mv_usb.h index 944b01dd103e..98b7925f1a2d 100644 --- a/include/linux/platform_data/mv_usb.h +++ b/include/linux/platform_data/mv_usb.h | |||
| @@ -34,8 +34,6 @@ struct mv_usb_addon_irq { | |||
| 34 | }; | 34 | }; |
| 35 | 35 | ||
| 36 | struct mv_usb_platform_data { | 36 | struct mv_usb_platform_data { |
| 37 | unsigned int clknum; | ||
| 38 | char **clkname; | ||
| 39 | struct mv_usb_addon_irq *id; /* Only valid for OTG. ID pin change*/ | 37 | struct mv_usb_addon_irq *id; /* Only valid for OTG. ID pin change*/ |
| 40 | struct mv_usb_addon_irq *vbus; /* valid for OTG/UDC. VBUS change*/ | 38 | struct mv_usb_addon_irq *vbus; /* valid for OTG/UDC. VBUS change*/ |
| 41 | 39 | ||
diff --git a/include/linux/usb.h b/include/linux/usb.h index 4d22d0f6167a..a0bee5a28d1a 100644 --- a/include/linux/usb.h +++ b/include/linux/usb.h | |||
| @@ -469,14 +469,12 @@ struct usb3_lpm_parameters { | |||
| 469 | * @lpm_capable: device supports LPM | 469 | * @lpm_capable: device supports LPM |
| 470 | * @usb2_hw_lpm_capable: device can perform USB2 hardware LPM | 470 | * @usb2_hw_lpm_capable: device can perform USB2 hardware LPM |
| 471 | * @usb2_hw_lpm_enabled: USB2 hardware LPM enabled | 471 | * @usb2_hw_lpm_enabled: USB2 hardware LPM enabled |
| 472 | * @usb3_lpm_enabled: USB3 hardware LPM enabled | ||
| 472 | * @string_langid: language ID for strings | 473 | * @string_langid: language ID for strings |
| 473 | * @product: iProduct string, if present (static) | 474 | * @product: iProduct string, if present (static) |
| 474 | * @manufacturer: iManufacturer string, if present (static) | 475 | * @manufacturer: iManufacturer string, if present (static) |
| 475 | * @serial: iSerialNumber string, if present (static) | 476 | * @serial: iSerialNumber string, if present (static) |
| 476 | * @filelist: usbfs files that are open to this device | 477 | * @filelist: usbfs files that are open to this device |
| 477 | * @usb_classdev: USB class device that was created for usbfs device | ||
| 478 | * access from userspace | ||
| 479 | * @usbfs_dentry: usbfs dentry entry for the device | ||
| 480 | * @maxchild: number of ports if hub | 478 | * @maxchild: number of ports if hub |
| 481 | * @quirks: quirks of the whole device | 479 | * @quirks: quirks of the whole device |
| 482 | * @urbnum: number of URBs submitted for the whole device | 480 | * @urbnum: number of URBs submitted for the whole device |
| @@ -619,7 +617,7 @@ static inline bool usb_acpi_power_manageable(struct usb_device *hdev, int index) | |||
| 619 | #endif | 617 | #endif |
| 620 | 618 | ||
| 621 | /* USB autosuspend and autoresume */ | 619 | /* USB autosuspend and autoresume */ |
| 622 | #ifdef CONFIG_USB_SUSPEND | 620 | #ifdef CONFIG_PM_RUNTIME |
| 623 | extern void usb_enable_autosuspend(struct usb_device *udev); | 621 | extern void usb_enable_autosuspend(struct usb_device *udev); |
| 624 | extern void usb_disable_autosuspend(struct usb_device *udev); | 622 | extern void usb_disable_autosuspend(struct usb_device *udev); |
| 625 | 623 | ||
| @@ -978,7 +976,12 @@ struct usbdrv_wrap { | |||
| 978 | * the "usbfs" filesystem. This lets devices provide ways to | 976 | * the "usbfs" filesystem. This lets devices provide ways to |
| 979 | * expose information to user space regardless of where they | 977 | * expose information to user space regardless of where they |
| 980 | * do (or don't) show up otherwise in the filesystem. | 978 | * do (or don't) show up otherwise in the filesystem. |
| 981 | * @suspend: Called when the device is going to be suspended by the system. | 979 | * @suspend: Called when the device is going to be suspended by the |
| 980 | * system either from system sleep or runtime suspend context. The | ||
| 981 | * return value will be ignored in system sleep context, so do NOT | ||
| 982 | * try to continue using the device if suspend fails in this case. | ||
| 983 | * Instead, let the resume or reset-resume routine recover from | ||
| 984 | * the failure. | ||
| 982 | * @resume: Called when the device is being resumed by the system. | 985 | * @resume: Called when the device is being resumed by the system. |
| 983 | * @reset_resume: Called when the suspended device has been reset instead | 986 | * @reset_resume: Called when the suspended device has been reset instead |
| 984 | * of being resumed. | 987 | * of being resumed. |
diff --git a/include/linux/usb/cdc-wdm.h b/include/linux/usb/cdc-wdm.h index 719c332620fa..0b3f4295c025 100644 --- a/include/linux/usb/cdc-wdm.h +++ b/include/linux/usb/cdc-wdm.h | |||
| @@ -11,6 +11,8 @@ | |||
| 11 | #ifndef __LINUX_USB_CDC_WDM_H | 11 | #ifndef __LINUX_USB_CDC_WDM_H |
| 12 | #define __LINUX_USB_CDC_WDM_H | 12 | #define __LINUX_USB_CDC_WDM_H |
| 13 | 13 | ||
| 14 | #include <uapi/linux/usb/cdc-wdm.h> | ||
| 15 | |||
| 14 | extern struct usb_driver *usb_cdc_wdm_register(struct usb_interface *intf, | 16 | extern struct usb_driver *usb_cdc_wdm_register(struct usb_interface *intf, |
| 15 | struct usb_endpoint_descriptor *ep, | 17 | struct usb_endpoint_descriptor *ep, |
| 16 | int bufsize, | 18 | int bufsize, |
diff --git a/include/linux/usb/ch9.h b/include/linux/usb/ch9.h index 9c210f2283df..27603bcbb9b9 100644 --- a/include/linux/usb/ch9.h +++ b/include/linux/usb/ch9.h | |||
| @@ -43,4 +43,13 @@ | |||
| 43 | */ | 43 | */ |
| 44 | extern const char *usb_speed_string(enum usb_device_speed speed); | 44 | extern const char *usb_speed_string(enum usb_device_speed speed); |
| 45 | 45 | ||
| 46 | |||
| 47 | /** | ||
| 48 | * usb_state_string - Returns human readable name for the state. | ||
| 49 | * @state: The state to return a human-readable name for. If it's not | ||
| 50 | * any of the states devices in usb_device_state_string enum, | ||
| 51 | * the string UNKNOWN will be returned. | ||
| 52 | */ | ||
| 53 | extern const char *usb_state_string(enum usb_device_state state); | ||
| 54 | |||
| 46 | #endif /* __LINUX_USB_CH9_H */ | 55 | #endif /* __LINUX_USB_CH9_H */ |
diff --git a/include/linux/usb/composite.h b/include/linux/usb/composite.h index 8860594d6364..5e61589fc166 100644 --- a/include/linux/usb/composite.h +++ b/include/linux/usb/composite.h | |||
| @@ -39,6 +39,7 @@ | |||
| 39 | #include <linux/usb/ch9.h> | 39 | #include <linux/usb/ch9.h> |
| 40 | #include <linux/usb/gadget.h> | 40 | #include <linux/usb/gadget.h> |
| 41 | #include <linux/log2.h> | 41 | #include <linux/log2.h> |
| 42 | #include <linux/configfs.h> | ||
| 42 | 43 | ||
| 43 | /* | 44 | /* |
| 44 | * USB function drivers should return USB_GADGET_DELAYED_STATUS if they | 45 | * USB function drivers should return USB_GADGET_DELAYED_STATUS if they |
| @@ -464,6 +465,8 @@ struct usb_function_driver { | |||
| 464 | }; | 465 | }; |
| 465 | 466 | ||
| 466 | struct usb_function_instance { | 467 | struct usb_function_instance { |
| 468 | struct config_group group; | ||
| 469 | struct list_head cfs_list; | ||
| 467 | struct usb_function_driver *fd; | 470 | struct usb_function_driver *fd; |
| 468 | void (*free_func_inst)(struct usb_function_instance *inst); | 471 | void (*free_func_inst)(struct usb_function_instance *inst); |
| 469 | }; | 472 | }; |
diff --git a/include/linux/usb/dwc3-omap.h b/include/linux/usb/dwc3-omap.h index 51eae14477f7..5615f4d82724 100644 --- a/include/linux/usb/dwc3-omap.h +++ b/include/linux/usb/dwc3-omap.h | |||
| @@ -19,11 +19,11 @@ enum omap_dwc3_vbus_id_status { | |||
| 19 | }; | 19 | }; |
| 20 | 20 | ||
| 21 | #if (defined(CONFIG_USB_DWC3) || defined(CONFIG_USB_DWC3_MODULE)) | 21 | #if (defined(CONFIG_USB_DWC3) || defined(CONFIG_USB_DWC3_MODULE)) |
| 22 | extern void dwc3_omap_mailbox(enum omap_dwc3_vbus_id_status status); | 22 | extern int dwc3_omap_mailbox(enum omap_dwc3_vbus_id_status status); |
| 23 | #else | 23 | #else |
| 24 | static inline void dwc3_omap_mailbox(enum omap_dwc3_vbus_id_status status) | 24 | static inline int dwc3_omap_mailbox(enum omap_dwc3_vbus_id_status status) |
| 25 | { | 25 | { |
| 26 | return; | 26 | return -ENODEV; |
| 27 | } | 27 | } |
| 28 | #endif | 28 | #endif |
| 29 | 29 | ||
diff --git a/include/linux/usb/gadget.h b/include/linux/usb/gadget.h index 2e297e80d59a..c454a88abf2e 100644 --- a/include/linux/usb/gadget.h +++ b/include/linux/usb/gadget.h | |||
| @@ -482,6 +482,7 @@ struct usb_gadget_ops { | |||
| 482 | * @speed: Speed of current connection to USB host. | 482 | * @speed: Speed of current connection to USB host. |
| 483 | * @max_speed: Maximal speed the UDC can handle. UDC must support this | ||
