Skip to content

Commit 7fd94be

Browse files
committed
Merge tag 'gadget-for-v3.8' of git://git.kernel.org/pub/scm/linux/kernel/git/balbi/usb into usb-next
USB gadget patches from Felipe: "usb: gadget: patches for v3.8 renesas_usbhs implements ->pullup() method, switches over to devm_request_irq(), adds support for DMA Engine and got a few miscelaneous cleanups. The NCM gadget got an endianness fix and the Ethernet gadget a frame size fix. We're finally removing the g_file_storage gadget and sticking to g_mass_storage and the new tcm_usb_gadget gadgets since that was a huge duplicaton of effort anyway. While removing g_file_storage, we also had to fix a bunch of defconfigs which were still pointing to the old gadget. There's a big series getting us closer to being able to introduce our configfs interface. The series converts functions into loadable modules which will, eventually, be registered to the configfs interface. Other than that there's the usual typo fixes and miscelaneous cleanups all over the place."
2 parents 0f89fc3 + f72e3b7 commit 7fd94be

84 files changed

Lines changed: 833 additions & 4803 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎Documentation/DocBook/gadget.tmpl‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -671,7 +671,7 @@ than a kernel driver.
671671
<para>There's a USB Mass Storage class driver, which provides
672672
a different solution for interoperability with systems such
673673
as MS-Windows and MacOS.
674-
That <emphasis>File-backed Storage</emphasis> driver uses a
674+
That <emphasis>Mass Storage</emphasis> driver uses a
675675
file or block device as backing store for a drive,
676676
like the <filename>loop</filename> driver.
677677
The USB host uses the BBB, CB, or CBI versions of the mass

‎Documentation/usb/mass-storage.txt‎

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@
2020

2121
This document describes how to use the gadget from user space, its
2222
relation to mass storage function (or MSF) and different gadgets
23-
using it, and how it differs from File Storage Gadget (or FSG). It
24-
will talk only briefly about how to use MSF within composite
25-
gadgets.
23+
using it, and how it differs from File Storage Gadget (or FSG)
24+
(which is no longer included in Linux). It will talk only briefly
25+
about how to use MSF within composite gadgets.
2626

2727
* Module parameters
2828

@@ -198,16 +198,15 @@
198198
The Mass Storage Function and thus the Mass Storage Gadget has been
199199
based on the File Storage Gadget. The difference between the two is
200200
that MSG is a composite gadget (ie. uses the composite framework)
201-
while file storage gadget is a traditional gadget. From userspace
201+
while file storage gadget was a traditional gadget. From userspace
202202
point of view this distinction does not really matter, but from
203203
kernel hacker's point of view, this means that (i) MSG does not
204204
duplicate code needed for handling basic USB protocol commands and
205205
(ii) MSF can be used in any other composite gadget.
206206

207-
Because of that, File Storage Gadget has been deprecated and
208-
scheduled to be removed in Linux 3.8. All users need to transition
209-
to the Mass Storage Gadget by that time. The two gadgets behave
210-
mostly the same from the outside except:
207+
Because of that, File Storage Gadget has been removed in Linux 3.8.
208+
All users need to transition to the Mass Storage Gadget. The two
209+
gadgets behave mostly the same from the outside except:
211210

212211
1. In FSG the “removable” and “cdrom” module parameters set the flag
213212
for all logical units whereas in MSG they accept a list of y/n

‎arch/arm/configs/afeb9260_defconfig‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ CONFIG_USB_STORAGE=y
7979
CONFIG_USB_GADGET=y
8080
CONFIG_USB_ZERO=m
8181
CONFIG_USB_GADGETFS=m
82-
CONFIG_USB_FILE_STORAGE=m
82+
CONFIG_USB_MASS_STORAGE=m
8383
CONFIG_USB_G_SERIAL=m
8484
CONFIG_RTC_CLASS=y
8585
CONFIG_RTC_DEBUG=y

‎arch/arm/configs/at91sam9260_defconfig‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ CONFIG_USB_STORAGE_DEBUG=y
7575
CONFIG_USB_GADGET=y
7676
CONFIG_USB_ZERO=m
7777
CONFIG_USB_GADGETFS=m
78-
CONFIG_USB_FILE_STORAGE=m
78+
CONFIG_USB_MASS_STORAGE=m
7979
CONFIG_USB_G_SERIAL=m
8080
CONFIG_RTC_CLASS=y
8181
CONFIG_RTC_DRV_AT91SAM9=y

‎arch/arm/configs/at91sam9261_defconfig‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ CONFIG_USB_GADGET=y
125125
CONFIG_USB_ZERO=m
126126
CONFIG_USB_ETH=m
127127
CONFIG_USB_GADGETFS=m
128-
CONFIG_USB_FILE_STORAGE=m
128+
CONFIG_USB_MASS_STORAGE=m
129129
CONFIG_USB_G_SERIAL=m
130130
CONFIG_MMC=y
131131
CONFIG_MMC_ATMELMCI=m

‎arch/arm/configs/at91sam9263_defconfig‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ CONFIG_USB_GADGET=y
133133
CONFIG_USB_ZERO=m
134134
CONFIG_USB_ETH=m
135135
CONFIG_USB_GADGETFS=m
136-
CONFIG_USB_FILE_STORAGE=m
136+
CONFIG_USB_MASS_STORAGE=m
137137
CONFIG_USB_G_SERIAL=m
138138
CONFIG_MMC=y
139139
CONFIG_SDIO_UART=m

‎arch/arm/configs/at91sam9g20_defconfig‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ CONFIG_USB_STORAGE=y
9696
CONFIG_USB_GADGET=y
9797
CONFIG_USB_ZERO=m
9898
CONFIG_USB_GADGETFS=m
99-
CONFIG_USB_FILE_STORAGE=m
99+
CONFIG_USB_MASS_STORAGE=m
100100
CONFIG_USB_G_SERIAL=m
101101
CONFIG_MMC=y
102102
CONFIG_MMC_ATMELMCI=m

‎arch/arm/configs/corgi_defconfig‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ CONFIG_USB_GADGET=y
218218
CONFIG_USB_ZERO=m
219219
CONFIG_USB_ETH=m
220220
CONFIG_USB_GADGETFS=m
221-
CONFIG_USB_FILE_STORAGE=m
221+
CONFIG_USB_MASS_STORAGE=m
222222
CONFIG_USB_G_SERIAL=m
223223
CONFIG_MMC=y
224224
CONFIG_MMC_PXA=y

‎arch/arm/configs/davinci_all_defconfig‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ CONFIG_USB_GADGET_DEBUG_FS=y
144144
CONFIG_USB_ZERO=m
145145
CONFIG_USB_ETH=m
146146
CONFIG_USB_GADGETFS=m
147-
CONFIG_USB_FILE_STORAGE=m
147+
CONFIG_USB_MASS_STORAGE=m
148148
CONFIG_USB_G_SERIAL=m
149149
CONFIG_USB_G_PRINTER=m
150150
CONFIG_USB_CDC_COMPOSITE=m

‎arch/arm/configs/h7202_defconfig‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,7 @@ CONFIG_FB_MODE_HELPERS=y
3434
CONFIG_USB_GADGET=m
3535
CONFIG_USB_ZERO=m
3636
CONFIG_USB_GADGETFS=m
37-
CONFIG_USB_FILE_STORAGE=m
38-
CONFIG_USB_FILE_STORAGE_TEST=y
37+
CONFIG_USB_MASS_STORAGE=m
3938
CONFIG_USB_G_SERIAL=m
4039
CONFIG_EXT2_FS=y
4140
CONFIG_TMPFS=y

0 commit comments

Comments
 (0)