diff options
| author | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2015-02-04 14:03:20 -0500 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2015-02-04 14:03:20 -0500 |
| commit | 4d4bac4499e9955521af80198063ef9c2f2bd634 (patch) | |
| tree | b02fb1f3d343d3a4a9864be18eec04e10f43d410 /include/linux/usb | |
| parent | 7fa40910e0bf5ef32eca49595d950cb24f6402bf (diff) | |
| parent | 9298b4aad37e8c6962edcdbd0b62620adb207d03 (diff) | |
Merge tag 'usb-for-v3.20' of git://git.kernel.org/pub/scm/linux/kernel/git/balbi/usb into usb-next
Felipe writes:
usb: patches for v3.20 merge window
Here's the big pull request for Gadgets and PHYs. It's
a total of 217 non-merge commits with pretty much everything
being touched.
The most important bits are a ton of new documentation for
almost all usb gadget functions, a new isp1760 UDC driver,
several improvements to the old net2280 UDC driver, and
some minor tracepoint improvements to dwc3.
Other than that, a big list of minor cleanups, smaller bugfixes
and new features all over the place.
Signed-off-by: Felipe Balbi <balbi@ti.com>
Diffstat (limited to 'include/linux/usb')
| -rw-r--r-- | include/linux/usb/gadget.h | 2 | ||||
| -rw-r--r-- | include/linux/usb/phy.h | 4 | ||||
| -rw-r--r-- | include/linux/usb/usb_phy_generic.h | 2 |
3 files changed, 6 insertions, 2 deletions
diff --git a/include/linux/usb/gadget.h b/include/linux/usb/gadget.h index 70ddb3943b62..e2f00fd8cd47 100644 --- a/include/linux/usb/gadget.h +++ b/include/linux/usb/gadget.h | |||
| @@ -523,6 +523,7 @@ struct usb_gadget_ops { | |||
| 523 | * enabled HNP support. | 523 | * enabled HNP support. |
| 524 | * @quirk_ep_out_aligned_size: epout requires buffer size to be aligned to | 524 | * @quirk_ep_out_aligned_size: epout requires buffer size to be aligned to |
| 525 | * MaxPacketSize. | 525 | * MaxPacketSize. |
| 526 | * @is_selfpowered: if the gadget is self-powered. | ||
| 526 | * | 527 | * |
| 527 | * Gadgets have a mostly-portable "gadget driver" implementing device | 528 | * Gadgets have a mostly-portable "gadget driver" implementing device |
| 528 | * functions, handling all usb configurations and interfaces. Gadget | 529 | * functions, handling all usb configurations and interfaces. Gadget |
| @@ -563,6 +564,7 @@ struct usb_gadget { | |||
| 563 | unsigned a_hnp_support:1; | 564 | unsigned a_hnp_support:1; |
| 564 | unsigned a_alt_hnp_support:1; | 565 | unsigned a_alt_hnp_support:1; |
| 565 | unsigned quirk_ep_out_aligned_size:1; | 566 | unsigned quirk_ep_out_aligned_size:1; |
| 567 | unsigned is_selfpowered:1; | ||
| 566 | }; | 568 | }; |
| 567 | #define work_to_gadget(w) (container_of((w), struct usb_gadget, work)) | 569 | #define work_to_gadget(w) (container_of((w), struct usb_gadget, work)) |
| 568 | 570 | ||
diff --git a/include/linux/usb/phy.h b/include/linux/usb/phy.h index f499c23e6342..bc91b5d380fd 100644 --- a/include/linux/usb/phy.h +++ b/include/linux/usb/phy.h | |||
| @@ -1,5 +1,5 @@ | |||
| 1 | /* USB OTG (On The Go) defines */ | ||
| 2 | /* | 1 | /* |
| 2 | * USB PHY defines | ||
| 3 | * | 3 | * |
| 4 | * These APIs may be used between USB controllers. USB device drivers | 4 | * These APIs may be used between USB controllers. USB device drivers |
| 5 | * (for either host or peripheral roles) don't use these calls; they | 5 | * (for either host or peripheral roles) don't use these calls; they |
| @@ -106,7 +106,7 @@ struct usb_phy { | |||
| 106 | int (*set_power)(struct usb_phy *x, | 106 | int (*set_power)(struct usb_phy *x, |
| 107 | unsigned mA); | 107 | unsigned mA); |
| 108 | 108 | ||
| 109 | /* for non-OTG B devices: set transceiver into suspend mode */ | 109 | /* Set transceiver into suspend mode */ |
| 110 | int (*set_suspend)(struct usb_phy *x, | 110 | int (*set_suspend)(struct usb_phy *x, |
| 111 | int suspend); | 111 | int suspend); |
| 112 | 112 | ||
diff --git a/include/linux/usb/usb_phy_generic.h b/include/linux/usb/usb_phy_generic.h index 68adae83affc..c13632d5292e 100644 --- a/include/linux/usb/usb_phy_generic.h +++ b/include/linux/usb/usb_phy_generic.h | |||
| @@ -2,6 +2,7 @@ | |||
| 2 | #define __LINUX_USB_NOP_XCEIV_H | 2 | #define __LINUX_USB_NOP_XCEIV_H |
| 3 | 3 | ||
| 4 | #include <linux/usb/otg.h> | 4 | #include <linux/usb/otg.h> |
| 5 | #include <linux/gpio/consumer.h> | ||
| 5 | 6 | ||
| 6 | struct usb_phy_generic_platform_data { | 7 | struct usb_phy_generic_platform_data { |
| 7 | enum usb_phy_type type; | 8 | enum usb_phy_type type; |
| @@ -11,6 +12,7 @@ struct usb_phy_generic_platform_data { | |||
| 11 | unsigned int needs_vcc:1; | 12 | unsigned int needs_vcc:1; |
| 12 | unsigned int needs_reset:1; /* deprecated */ | 13 | unsigned int needs_reset:1; /* deprecated */ |
| 13 | int gpio_reset; | 14 | int gpio_reset; |
| 15 | struct gpio_desc *gpiod_vbus; | ||
| 14 | }; | 16 | }; |
| 15 | 17 | ||
| 16 | #if IS_ENABLED(CONFIG_NOP_USB_XCEIV) | 18 | #if IS_ENABLED(CONFIG_NOP_USB_XCEIV) |
