- unicode string with environment variables
3 - binary
4 - little-endian 32-bit
5 - big-endian 32-bit
6 - unicode string with a symbolic link
7 - multiple unicode strings
Signed-off-by: Andrzej Pietrasiewicz andrze...@samsung.com
---
Documentation/ABI/testing/configfs-usb-gadget | 21 +++
drivers
and sub_compatible_id, which represent 8-byte
strings to be reported to the host as the Compatible ID and Sub Compatible
ID.
Signed-off-by: Andrzej Pietrasiewicz andrze...@samsung.com
---
Documentation/ABI/testing/configfs-usb-gadget | 13 ++
drivers/usb/gadget/configfs.c | 190
Added handling of OS Descriptors support for f_rndis.
Signed-off-by: Andrzej Pietrasiewicz andrze...@samsung.com
---
drivers/usb/gadget/f_rndis.c | 7 +++
1 file changed, 7 insertions(+)
diff --git a/drivers/usb/gadget/f_rndis.c b/drivers/usb/gadget/f_rndis.c
index a7633d6..eed3ad8 100644
-off-by: Andrzej Pietrasiewicz andrze...@samsung.com
Acked-by: Michal Nazarewicz min...@mina86.com
---
drivers/usb/gadget/composite.c | 288 -
drivers/usb/gadget/u_os_desc.h | 90 +
include/linux/usb/composite.h | 58 +
3 files changed
Variable Length Array macros allow portable (compilable with both gcc
and clang) way of allocating a number of structures using a single
memory chunk. They can be useful for files other than f_fs.c,
so move them to a header file.
Signed-off-by: Andrzej Pietrasiewicz andrze...@samsung.com
Acked
In order for usb functions to expose OS descriptors they
need to be made aware of OS descriptors. This involves
extending the options structure and setting up
appropriate associations.
Signed-off-by: Andrzej Pietrasiewicz andrze...@samsung.com
Acked-by: Michal Nazarewicz min...@mina86.com
implement responding to any vendor-specific
USB requests.
Signed-off-by: Andrzej Pietrasiewicz andrze...@samsung.com
Acked-by: Michal Nazarewicz min...@mina86.com
---
drivers/usb/gadget/composite.c | 29 +
include/linux/usb/composite.h | 11 +++
2 files
Hi Peter,
W dniu 06.05.2014 03:01, Peter Chen pisze:
On Mon, May 05, 2014 at 11:09:30AM +0200, Andrzej Pietrasiewicz wrote:
W dniu 04.05.2014 09:48, Peter Chen pisze:
Hi Sebastian Andrzej,
snip
1. I have setup successfully for running mass storage and CDC ACM at the
same time with below
Hello Michal,
W dniu 05.05.2014 20:41, Michal Nazarewicz pisze:
On Mon, May 05 2014, Andrzej Pietrasiewicz wrote:
When a gadget is composed with configfs the usb_add_config() is invoked
each time a configuration's directory is created, so this way configurations'
indices are determined. If we
- unicode string with environment variables
3 - binary
4 - little-endian 32-bit
5 - big-endian 32-bit
6 - unicode string with a symbolic link
7 - multiple unicode strings
Signed-off-by: Andrzej Pietrasiewicz andrze...@samsung.com
---
Documentation/ABI/testing/configfs-usb-gadget | 21 +++
drivers
Variable Length Array macros allow portable (compilable with both gcc
and clang) way of allocating a number of structures using a single
memory chunk. They can be useful for files other than f_fs.c,
so move them to a header file.
Signed-off-by: Andrzej Pietrasiewicz andrze...@samsung.com
Acked
$
$ #USUAL STUFF, CONTINUED
$ #==
$
$ ln -s functions/rndis.usb0 configs/c.1
$ echo s3c-hsotg UDC
Andrzej Pietrasiewicz (8):
usb: gadget: FunctionFS: share VLA macros with all usb gadget files
usb: gadget: OS String support
usb: gadget: OS Feature Descriptors support
Added handling of OS Descriptors support for f_rndis.
Signed-off-by: Andrzej Pietrasiewicz andrze...@samsung.com
---
drivers/usb/gadget/f_rndis.c | 7 +++
1 file changed, 7 insertions(+)
diff --git a/drivers/usb/gadget/f_rndis.c b/drivers/usb/gadget/f_rndis.c
index a7633d6..eed3ad8 100644
In order for usb functions to expose OS descriptors they
need to be made aware of OS descriptors. This involves
extending the options structure and setting up
appropriate associations.
Signed-off-by: Andrzej Pietrasiewicz andrze...@samsung.com
---
drivers/usb/gadget/f_rndis.c | 24
-off-by: Andrzej Pietrasiewicz andrze...@samsung.com
---
drivers/usb/gadget/composite.c | 315 -
drivers/usb/gadget/u_os_desc.h | 90
include/linux/usb/composite.h | 58
3 files changed, 462 insertions(+), 1 deletion(-)
create mode
.
b_vendor_code contains a one-byte value which is used
for custom per-device and per-interface requests.
qw_sign contains an identifier to be reported as the OS String
proper.
Signed-off-by: Andrzej Pietrasiewicz andrze...@samsung.com
---
Documentation/ABI/testing/configfs-usb-gadget | 11 ++
drivers
and sub_compatible_id, which represent 8-byte
strings to be reported to the host as the Compatible ID and Sub Compatible
ID.
Signed-off-by: Andrzej Pietrasiewicz andrze...@samsung.com
---
Documentation/ABI/testing/configfs-usb-gadget | 13 ++
drivers/usb/gadget/configfs.c | 190
implement responding to any vendor-specific
USB requests.
Signed-off-by: Andrzej Pietrasiewicz andrze...@samsung.com
---
drivers/usb/gadget/composite.c | 27 +++
include/linux/usb/composite.h | 11 +++
2 files changed, 38 insertions(+)
diff --git a/drivers/usb
Example of using OS Descriptors in a legacy gadget.
Signed-off-by: Andrzej Pietrasiewicz andrze...@samsung.com
---
drivers/usb/gadget/ether.c | 61 +-
1 file changed, 55 insertions(+), 6 deletions(-)
diff --git a/drivers/usb/gadget/ether.c b/drivers
Hi Felipe,
W dniu 30.04.2014 18:24, Felipe Balbi pisze:
On Thu, Apr 24, 2014 at 11:17:11AM +0200, Andrzej Pietrasiewicz wrote:
There is a custom (non-USB IF) extension to the USB standard:
http://msdn.microsoft.com/library/windows/hardware/gg463182
are you sure there isn't some crappy
Hello,
W dniu 04.05.2014 12:31, Peter Stuge pisze:
Hi Peter,
Peter Chen wrote:
The step at the board:
root@freescale ~$ modprobe libcomposite
I guess this step is unneccessary, and that all neccessary modules
are loaded automatically on demand.
This one is necessary. The code which
W dniu 04.05.2014 09:48, Peter Chen pisze:
Hi Sebastian Andrzej,
snip
My questions:
snip
- How to choose gserial? I tried to remove the configuration
of mass storage, but both of configurations have been removed
root@freescale /sys/kernel/config/usb_gadget/g1$ rm -rf
Hi Michal,
W dniu 01.05.2014 03:42, Michal Nazarewicz pisze:
On Thu, Apr 24 2014, Andrzej Pietrasiewicz wrote:
@@ -438,8 +440,46 @@ static int config_desc(struct usb_composite_dev *cdev,
unsigned w_value)
}
- /* This is a lookup by config *INDEX* */
w_value = 0xff
W dniu 01.05.2014 03:48, Michal Nazarewicz pisze:
On Thu, Apr 24 2014, Andrzej Pietrasiewicz wrote:
In order for usb functions to expose OS descriptors they
need to be made aware of OS descriptors. This involves
extending the options structure and setting up
appropriate associations.
Signed
W dniu 01.05.2014 03:36, Michal Nazarewicz pisze:
On Thu, Apr 24 2014, Andrzej Pietrasiewicz wrote:
There is a custom (non-USB IF) extension to the USB standard:
http://msdn.microsoft.com/library/windows/hardware/gg463182
snip
diff --git a/drivers/usb/gadget/composite.c b/drivers/usb
Hi Felipe
W dniu 24.04.2014 11:17, Andrzej Pietrasiewicz pisze:
Example of using OS Descriptors in a legacy gadget.
Signed-off-by: Andrzej Pietrasiewicz andrze...@samsung.com
---
drivers/usb/gadget/ether.c | 58 ++
1 file changed, 53 insertions
it can invoke
usb_add_config in any order because the designated configuration
will be reported to be at index 0 anyway.
This patch also adds handling vendor-specific requests addressed
at device or interface and related to handling OS descriptors.
Signed-off-by: Andrzej Pietrasiewicz andrze
Example of using OS Descriptors in a legacy gadget.
Signed-off-by: Andrzej Pietrasiewicz andrze...@samsung.com
---
drivers/usb/gadget/ether.c | 58 ++
1 file changed, 53 insertions(+), 5 deletions(-)
diff --git a/drivers/usb/gadget/ether.c b/drivers
Added handling of OS Descriptors support for f_rndis.
Signed-off-by: Andrzej Pietrasiewicz andrze...@samsung.com
---
drivers/usb/gadget/f_rndis.c | 7 +++
1 file changed, 7 insertions(+)
diff --git a/drivers/usb/gadget/f_rndis.c b/drivers/usb/gadget/f_rndis.c
index b781a59..43d15f9 100644
.
Rebased onto Felipe's master as of 23rd April.
It is meant for 3.16.
I kindly ask for comments about this extension. In particular,
FunctionFS needs an extension of the way descriptors are written to ep0.
Regards,
AP
Andrzej Pietrasiewicz (9):
usb: gadget: FunctionFS: share VLA macros
.
b_vendor_code contains a one-byte value which is used
for custom per-device and per-interface requests.
qw_sign contains an identifier to be reported as the OS String
proper.
Signed-off-by: Andrzej Pietrasiewicz andrze...@samsung.com
---
Documentation/ABI/testing/configfs-usb-gadget | 11 ++
drivers
Variable Length Array macros allow portable (compilable with both gcc
and clang) way of allocating a number of structures using a single
memory chunk. They can be useful for files other than f_fs.c,
so move them to a header file.
Signed-off-by: Andrzej Pietrasiewicz andrze...@samsung.com
and sub_compatible_id, which represent 8-byte
strings to be reported to the host as the Compatible ID and Sub Compatible
ID.
Signed-off-by: Andrzej Pietrasiewicz andrze...@samsung.com
---
Documentation/ABI/testing/configfs-usb-gadget | 13 ++
drivers/usb/gadget/configfs.c | 190
In order for usb functions to expose OS descriptors they
need to be made aware of OS descriptors. This involves
extending the options structure and setting up
appropriate associations.
Signed-off-by: Andrzej Pietrasiewicz andrze...@samsung.com
---
drivers/usb/gadget/f_rndis.c | 24
-specific
USB requests.
Signed-off-by: Andrzej Pietrasiewicz andrze...@samsung.com
---
drivers/usb/gadget/composite.c | 16
include/linux/usb/composite.h | 14 ++
2 files changed, 30 insertions(+)
diff --git a/drivers/usb/gadget/composite.c b/drivers/usb/gadget
- unicode string with environment variables
3 - binary
4 - little-endian 32-bit
5 - big-endian 32-bit
6 - unicode string with a symbolic link
7 - multiple unicode strings
Signed-off-by: Andrzej Pietrasiewicz andrze...@samsung.com
---
Documentation/ABI/testing/configfs-usb-gadget | 21 +++
drivers
W dniu 24.04.2014 11:17, Andrzej Pietrasiewicz pisze:
There is a custom (non-USB IF) extension to the USB standard:
http://msdn.microsoft.com/library/windows/hardware/gg463182
The said extension is maintained by Microsoft for Microsoft.
Yet it is fairly common for various devices to use
W dniu 20.04.2014 21:33, Robert Jarzmik pisze:
Robert Jarzmik robert.jarz...@free.fr writes:
Hi,
I've tried the 3.15-rc1 recently. Upon USB gether gadget connexion, the kernel
panics. With 3.14, no issue is seen.
And if I revert commit in [2], everything works fine.
That should speed up the
W dniu 03.04.2014 06:31, clanlab.proj pisze:
Hi Andrzej,
Btw, Can you help to test the another version of this patch which uses work
queue instead of NAPI?
I'll send you a copy of this patch later out of the mailing list.
The patch was send to the list here.
Hello,
W dniu 06.03.2014 17:04, Felipe Balbi pisze:
Hi,
On Thu, Mar 06, 2014 at 11:42:49PM +0800, Weinn Jheng wrote:
In order to reduce the interrupt times in the embedded system,
a receiving workqueue is introduced.
This modification also enhanced the overall throughput as the
benefits of
W dniu 02.04.2014 16:39, clanlab.proj pisze:
Hi Andrzej,
My device supports rndis only and the platform was beased on Android.
Sorry I cannot test with the behavior like what you've did.
Could you provide the board information to me and maybe I can trying to get one?
It's a board with an
v4l2:///dev/video0
Andrzej Pietrasiewicz (8):
usb: gadget: f_uvc: fix potential memory leak
usb/gadget: uvc: move module parameters from f_uvc
usb/gadget: uvc: separately compile some components of f_uvc
usb/gadget: f_uvc: convert f_uvc to new function interface
usb/gadget: webcam
If uvc-control_buf is successfuly allocated but uvc-control_req
is not, uvc-control_buf is not freed in the error recovery path.
With this patch applied uvc-control_buf is freed unconditionally;
if it happens to be NULL kfree on it is safe anyway.
Signed-off-by: Andrzej Pietrasiewicz andrze
Use the new function registration interface. It is required
in order to integrate configfs support.
Signed-off-by: Andrzej Pietrasiewicz andrze...@samsung.com
---
drivers/usb/gadget/Kconfig | 3 +
drivers/usb/gadget/Makefile | 2 +
drivers/usb/gadget/f_uvc.c | 252
Use the new function interface of f_uvc.
Signed-off-by: Andrzej Pietrasiewicz andrze...@samsung.com
---
drivers/usb/gadget/Kconfig | 1 +
drivers/usb/gadget/Makefile | 4 ++--
drivers/usb/gadget/webcam.c | 53 -
3 files changed, 41 insertions(+), 17
Compile uvc_queue, uvc_v4l2, uvc_video separately so that later they can
be all combined in a separately compiled f_uvc.
Signed-off-by: Andrzej Pietrasiewicz andrze...@samsung.com
---
drivers/usb/gadget/Makefile| 2 +-
drivers/usb/gadget/f_uvc.c | 2 ++
drivers/usb/gadget/f_uvc.h
Attach strings to gadget with usb_strings_attach.
Signed-off-by: Andrzej Pietrasiewicz andrze...@samsung.com
---
drivers/usb/gadget/f_uvc.c | 29 -
1 file changed, 12 insertions(+), 17 deletions(-)
diff --git a/drivers/usb/gadget/f_uvc.c b/drivers/usb/gadget/f_uvc.c
When configfs support is integrated the future uvc function
module must not take any parameters. Move parameters to
webcam.
Signed-off-by: Andrzej Pietrasiewicz andrze...@samsung.com
---
drivers/usb/gadget/f_uvc.c | 30 --
drivers/usb/gadget/f_uvc.h | 6
There are no users of the old interface left. Remove it.
Signed-off-by: Andrzej Pietrasiewicz andrze...@samsung.com
---
drivers/usb/gadget/f_uvc.c | 167 -
drivers/usb/gadget/f_uvc.h | 11 ---
2 files changed, 178 deletions(-)
diff --git a/drivers
.
[for the configfs part]
Acked-by: Andrzej Pietrasiewicz andrze...@samsung.com
---
drivers/usb/gadget/f_loopback.c | 3 +-
drivers/usb/gadget/f_sourcesink.c | 519
--
drivers/usb/gadget/g_zero.h | 13 +-
drivers/usb/gadget/zero.c | 21 ++
4
W dniu 18.02.2014 14:15, Arturo Veras pisze:
hi all
In my PC have the kernel linux usb gadget support enabled but when i
Why do you have usb gadget support in a PC in the first place?
What are you trying to achieve? What you could achieve is for
example to make your PC act as a mass storage
W dniu 18.02.2014 17:40, Felipe Balbi pisze:
On Fri, Jan 17, 2014 at 05:04:55PM +0100, Michal Nazarewicz wrote:
On Thu, Jan 16 2014, Andrzej Pietrasiewicz wrote:
Fix possible NULL pointer dereference introduced in
219580e64f035bb9018dbb08d340f90b0ac50f8c
usb: f_fs: check quirk to pad epout
W dniu 10.02.2014 14:16, Amit Virdi pisze:
Interrupt endpoints behave quite similar to the bulk endpoints with the
difference that the endpoints expect data sending/reception request at
particular intervals till the whole data has not been transmitted.
The interrupt EP support is added to
it by moving the actual assignment to the local 'gadget'
variable after the potential waiting has completed.
Signed-off-by: Andrzej Pietrasiewicz andrze...@samsung.com
Acked-by: Michal Nazarewicz min...@mina86.com
---
drivers/usb/gadget/f_fs.c |7 ++-
1 files changed, 6 insertions(+), 1
W dniu 16.01.2014 17:29, Eric Dumazet pisze:
On Thu, 2014-01-16 at 16:21 +0100, Andrzej Pietrasiewicz wrote:
W dniu 10.12.2013 15:25, Eric Dumazet pisze:
On Tue, 2013-12-10 at 07:55 +0100, Andrzej Pietrasiewicz wrote:
W dniu 09.12.2013 16:31, Eric Dumazet pisze:
On Mon, 2013-12-09 at 12:47
W dniu 17.01.2014 13:18, Andrzej Pietrasiewicz pisze:
W dniu 16.01.2014 17:29, Eric Dumazet pisze:
On Thu, 2014-01-16 at 16:21 +0100, Andrzej Pietrasiewicz wrote:
W dniu 10.12.2013 15:25, Eric Dumazet pisze:
On Tue, 2013-12-10 at 07:55 +0100, Andrzej Pietrasiewicz wrote:
W dniu 09.12.2013 16
it.
This patch fixes it by moving the actual assignment to the local 'gadget'
variable after the potential waiting has completed.
Signed-off-by: Andrzej Pietrasiewicz andrze...@samsung.com
---
@Michal: This has been detected with adb function implemented on top of
FunctionFS and the gadget itself has been
.
Andrzej Pietrasiewicz (3):
usb: gadget: FunctionFS: dereference ffs_dev conditionally
usb: gadget: FunctionFS: staticize functions used only in f_fs.c
usb: gadget: FunctionFS: use consistent naming with regard to
ffs_lock
drivers/usb/gadget/f_fs.c | 39
Consistently prefix function name with underscore if the function has to
be called with ffs_lock taken.
Signed-off-by: Andrzej Pietrasiewicz andrze...@samsung.com
---
drivers/usb/gadget/f_fs.c | 30 +++---
1 files changed, 15 insertions(+), 15 deletions(-)
diff --git
ffs_alloc_dev and ffs_free_dev are used only in f_fs.c,
so make them static.
Signed-off-by: Andrzej Pietrasiewicz andrze...@samsung.com
---
drivers/usb/gadget/f_fs.c |6 --
drivers/usb/gadget/u_fs.h |2 --
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/drivers/usb
ffs_dev-ffs_release_dev_callback should be accessed only if ffs_dev
is not NULL.
Additionally whitespace error correction.
Signed-off-by: Andrzej Pietrasiewicz andrze...@samsung.com
---
drivers/usb/gadget/f_fs.c | 11 ++-
1 files changed, 6 insertions(+), 5 deletions(-)
diff --git
ffs_alloc_dev and ffs_free_dev are used only in f_fs.c,
so make them static.
Signed-off-by: Andrzej Pietrasiewicz andrze...@samsung.com
---
drivers/usb/gadget/f_fs.c |6 --
drivers/usb/gadget/u_fs.h |2 --
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/drivers/usb
Consistently prefix function name with underscore if the function has to
be called with ffs_lock taken.
Signed-off-by: Andrzej Pietrasiewicz andrze...@samsung.com
---
drivers/usb/gadget/f_fs.c | 30 +++---
1 files changed, 15 insertions(+), 15 deletions(-)
diff --git
, its name starts with an underscore.
v1..v2:
- split the first patch into a fix proper and code cleanup
Andrzej Pietrasiewicz (4):
usb: gadget: FunctionFS: dereference ffs_dev conditionally
usb: gadget: code cleanup
usb: gadget: FunctionFS: staticize functions used only in f_fs.c
usb
ffs_dev-ffs_release_dev_callback should be accessed only if ffs_dev
is not NULL.
Signed-off-by: Andrzej Pietrasiewicz andrze...@samsung.com
---
drivers/usb/gadget/f_fs.c |9 +
1 files changed, 5 insertions(+), 4 deletions(-)
diff --git a/drivers/usb/gadget/f_fs.c b/drivers/usb
Remove trailing whitespace
Signed-off-by: Andrzej Pietrasiewicz andrze...@samsung.com
---
drivers/usb/gadget/f_fs.c |2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/drivers/usb/gadget/f_fs.c b/drivers/usb/gadget/f_fs.c
index 78333f0..f0c657d 100644
--- a/drivers/usb
.
This patch changes the initial values of (obex1|obex2|phonet)_stat to a
nonzero value so that if the err_conf label is hit while the respective
functions have not been acquired the usb_remove_function() is not called
for those functions.
Signed-off-by: Andrzej Pietrasiewicz andrze...@samsung.com
Hello Dan Carpenter,
Thank you for your comments.
W dniu 13.12.2013 12:22, Dan Carpenter pisze:
Hello Andrzej Pietrasiewicz,
The patch 83167f12da05: usb: gadget: nokia: convert to new interface
of f_phonet from May 23, 2013, leads to the following Smatch
warnings:
drivers/usb/gadget/nokia.c
.
This patch changes the initial values of (obex1|obex2|phonet)_stat to a
nonzero value so that if the err_conf label is hit while the respective
functions have not been acquired the usb_remove_function() is not called
for those functions.
Signed-off-by: Andrzej Pietrasiewicz andrze...@samsung.com
)
[ 54.033299] Code: e3043504 e5845010 e34c3030 e5843064 (e5d53012)
Signed-off-by: Andrzej Pietrasiewicz andrze...@samsung.com
---
net/ipv4/tcp_ipv4.c |2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/net/ipv4/tcp_ipv4.c b/net/ipv4/tcp_ipv4.c
index b14266b..c6a318f 100644
:242:3: error: implicit declaration of
function 'blksize_bits' [-Werror=implicit-function-declaration]
Signed-off-by: Randy Dunlap rdun...@infradead.org
Cc: Andrzej Pietrasiewicz andrze...@samsung.com
Cc: Felipe Balbi ba...@ti.com
---
drivers/usb/gadget/Kconfig |2 +-
1 file changed, 1
W dniu 09.12.2013 16:31, Eric Dumazet pisze:
On Mon, 2013-12-09 at 12:47 +0100, Andrzej Pietrasiewicz wrote:
NOT FOR COMMITTING TO MAINLINE.
With g_ether loaded the sk occasionally becomes 0x.
It happens usually after transferring few hundreds of kilobytes to few
tens of megabytes
There are no old function interface users left, so the old interface
can be removed.
Signed-off-by: Andrzej Pietrasiewicz andrze...@samsung.com
Signed-off-by: Kyungmin Park kyungmin.p...@samsung.com
Acked-by: Michal Nazarewicz min...@mina86.com
---
drivers/usb/gadget/f_subset.c | 60
with the instance name.
In a typical case, the struct usb_function_instance is embedded in a
larger struct which is retrieved in set_inst_name() with container_of(),
and the larger struct contains a field to store the instance name.
Signed-off-by: Andrzej Pietrasiewicz andrze...@samsung.com
Signed
There is a new interface of f_rndis and g_ffs is the last to use the old one.
Signed-off-by: Andrzej Pietrasiewicz andrze...@samsung.com
Signed-off-by: Kyungmin Park kyungmin.p...@samsung.com
Acked-by: Michal Nazarewicz min...@mina86.com
---
drivers/usb/gadget/Kconfig |1 +
drivers/usb
A header file to be used by f_fs.c and g_ffs.c will be required when
f_fs.c is converted into a module.
Signed-off-by: Andrzej Pietrasiewicz andrze...@samsung.com
Signed-off-by: Kyungmin Park kyungmin.p...@samsung.com
Acked-by: Michal Nazarewicz min...@mina86.com
---
drivers/usb/gadget/f_fs.c
Add support for using FunctionFS in configfs-based USB gadgets.
Signed-off-by: Andrzej Pietrasiewicz andrze...@samsung.com
Signed-off-by: Kyungmin Park kyungmin.p...@samsung.com
Acked-by: Michal Nazarewicz min...@mina86.com
---
Documentation/ABI/testing/configfs-usb-gadget-ffs |9
THE FUNCTIONS (actually there is only one)
=
FunctionFS)
device: connect the gadget, enable it
host: mount the ptp device, adb shell
Andrzej Pietrasiewicz (16):
usb/gadget: configfs: allow setting function instance's name
usb/gadget: g_ffs: remove a reduntant gfs_ether_setup
There is a new function interface of f_subset and g_ffs is the last to use
the old one.
Signed-off-by: Andrzej Pietrasiewicz andrze...@samsung.com
Signed-off-by: Kyungmin Park kyungmin.p...@samsung.com
Acked-by: Michal Nazarewicz min...@mina86.com
---
drivers/usb/gadget/Kconfig |1 +
drivers
Prepare for configfs integration. Use the new interface so that f_fs can be
made a module.
Signed-off-by: Andrzej Pietrasiewicz andrze...@samsung.com
Signed-off-by: Kyungmin Park kyungmin.p...@samsung.com
---
drivers/usb/gadget/Kconfig |1 +
drivers/usb/gadget/g_ffs.c | 151
kmalloc and
kfree calls. This version uses group vs struct since it really is not a
struct and is essentially a group of VLA in a common allocated block. This
version also fixes the issues pointed out by Andrzej Pietrasiewicz and
Michal Nazarewicz.
Signed-off-by: Mark Charlebois charl...@gmail.com
There are no old function interface users left, so the old interface
can be removed.
Signed-off-by: Andrzej Pietrasiewicz andrze...@samsung.com
Signed-off-by: Kyungmim Park kyungmin.p...@samsung.com
Acked-by: Michal Nazarewicz min...@mina86.com
---
drivers/usb/gadget/f_ecm.c | 73
a comment to be consistent with the code.
Signed-off-by: Andrzej Pietrasiewicz andrze...@samsung.com
Signed-off-by: Kyungmin Park kyungmin.p...@samsung.com
Acked-by: Michal Nazarewicz min...@mina86.com
---
drivers/usb/gadget/g_ffs.c | 13 +
1 files changed, 5 insertions(+), 8
This is required in order to integrate configfs support.
f_fs needs to be a separately compiled module and so it needs to use the new
interface.
Signed-off-by: Andrzej Pietrasiewicz andrze...@samsung.com
Signed-off-by: Kyungmin Park kyungmin.p...@samsung.com
---
drivers/usb/gadget/Kconfig
There are no old function interface users left, so the old interface can
be removed.
Signed-off-by: Andrzej Pietrasiewicz andrze...@samsung.com
Signed-off-by: Kyungmin Park kyungmin.p...@samsung.com
Acked-by: Michal Nazarewicz min...@mina86.com
---
drivers/usb/gadget/f_fs.c | 114
The rndis function's users use only the new interface, so the two modules
can be merged.
Signed-off-by: Andrzej Pietrasiewicz andrze...@samsung.com
Signed-off-by: Kyungmin Park kyungmin.p...@samsung.com
Acked-by: Michal Nazarewicz min...@mina86.com
---
drivers/usb/gadget/Kconfig |7
There are no old function interface users left, so the old interface
can be removed.
Signed-off-by: Andrzej Pietrasiewicz andrze...@samsung.com
Signed-off-by: Kyungmin Park kyungmin.p...@samsung.com
Acked-by: Michal Nazarewicz min...@mina86.com
---
drivers/usb/gadget/f_rndis.c | 72
kmalloc and
kfree calls. This version uses group vs struct since it really is not a
struct and is essentially a group of VLA in a common allocated block. This
version also fixes the issues pointed out by Andrzej Pietrasiewicz and
Michal Nazarewicz.
Signed-off-by: Mark Charlebois charl...@gmail.com
the ptp device, adb shell
Andrzej Pietrasiewicz (16):
usb/gadget: configfs: allow setting function instance's name
usb/gadget: g_ffs: remove a reduntant gfs_ether_setup variable
usb/gadget: g_ffs: convert to new interface of f_ecm
usb/gadget: f_ecm: remove compatibility layer
usb/gadget
A header file to be used by f_fs.c and g_ffs.c will be required when
f_fs.c is converted into a module.
Signed-off-by: Andrzej Pietrasiewicz andrze...@samsung.com
Signed-off-by: Kyungmin Park kyungmin.p...@samsung.com
Acked-by: Michal Nazarewicz min...@mina86.com
---
drivers/usb/gadget/f_fs.c
Add support for using FunctionFS in configfs-based USB gadgets.
Signed-off-by: Andrzej Pietrasiewicz andrze...@samsung.com
Signed-off-by: Kyungmin Park kyungmin.p...@samsung.com
---
Documentation/ABI/testing/configfs-usb-gadget-ffs |9 +++
drivers/usb/gadget/Kconfig
This is required in order to integrate configfs support.
f_fs needs to be a separately compiled module and so it needs to use the new
interface.
Signed-off-by: Andrzej Pietrasiewicz andrze...@samsung.com
Signed-off-by: Kyungmin Park kyungmin.p...@samsung.com
Acked-by: Michal Nazarewicz min
There are no old function interface users left, so the old interface
can be removed.
Signed-off-by: Andrzej Pietrasiewicz andrze...@samsung.com
Signed-off-by: Kyungmin Park kyungmin.p...@samsung.com
Acked-by: Michal Nazarewicz min...@mina86.com
---
drivers/usb/gadget/f_subset.c | 60
There is a new interface of f_rndis and g_ffs is the last to use the old one.
Signed-off-by: Andrzej Pietrasiewicz andrze...@samsung.com
Signed-off-by: Kyungmin Park kyungmin.p...@samsung.com
Acked-by: Michal Nazarewicz min...@mina86.com
---
drivers/usb/gadget/Kconfig |1 +
drivers/usb
There is a new funtion interface and g_ffs is the last gadget to use the old.
Signed-off-by: Andrzej Pietrasiewicz andrze...@samsung.com
Signed-off-by: Kyungmin Park kyungmin.p...@samsung.com
Acked-by: Michal Nazarewicz min...@mina86.com
---
drivers/usb/gadget/Kconfig |1 +
drivers/usb
There are no old function interface users left, so the old interface
can be removed.
Signed-off-by: Andrzej Pietrasiewicz andrze...@samsung.com
Signed-off-by: Kyungmim Park kyungmin.p...@samsung.com
Acked-by: Michal Nazarewicz min...@mina86.com
---
drivers/usb/gadget/f_ecm.c | 73
There are no old function interface users left, so the old interface can
be removed.
Signed-off-by: Andrzej Pietrasiewicz andrze...@samsung.com
Signed-off-by: Kyungmin Park kyungmin.p...@samsung.com
---
drivers/usb/gadget/f_fs.c | 114
drivers/usb
Prepare for configfs integration. Use the new interface so that f_fs can be
made a module.
Signed-off-by: Andrzej Pietrasiewicz andrze...@samsung.com
Signed-off-by: Kyungmin Park kyungmin.p...@samsung.com
---
drivers/usb/gadget/Kconfig |1 +
drivers/usb/gadget/g_ffs.c | 190
The rndis function's users use only the new interface, so the two modules
can be merged.
Signed-off-by: Andrzej Pietrasiewicz andrze...@samsung.com
Signed-off-by: Kyungmin Park kyungmin.p...@samsung.com
Acked-by: Michal Nazarewicz min...@mina86.com
---
drivers/usb/gadget/Kconfig |7
This will be required in order to use the new function interface
(usb_get_function_instance/usb_put_function_instance)
Signed-off-by: Andrzej Pietrasiewicz andrze...@samsung.com
Signed-off-by: Kyunmgin Park kyungmin.p...@samsung.com
Acked-by: Michal Nazarewicz min...@mina86.com
---
drivers/usb
501 - 600 of 1195 matches
Mail list logo