[PATCH 03/17] usb/gadget: f_eem: convert to new function interface with backward compatibility

2013-05-24 Thread Andrzej Pietrasiewicz
conditional directives. After all users are converted, 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/Kconfig |3 + drivers/usb/gadget/Makefile |2 + drivers/usb

[PATCH 10/17] usb/gadget: ether: convert to new interface of f_subset

2013-05-24 Thread Andrzej Pietrasiewicz
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/ether.c | 104 2 files changed, 58 insertions(+), 47 deletions(-) diff --git

[PATCH 02/17] usb/gadget: ether: convert to new interface of f_ecm

2013-05-24 Thread Andrzej Pietrasiewicz
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/ether.c | 73 2 files changed, 61 insertions(+), 13 deletions(-) diff --git

[PATCH 14/17] usb/gadget: ether: convert to new interface of f_rndis

2013-05-24 Thread Andrzej Pietrasiewicz
Conversion to new interface is required to move to configfs. This patch edition fixes compilation error if RNDIS is not selected in Kconfig. Signed-off-by: Andrzej Pietrasiewicz andrze...@samsung.com Signed-off-by: Kyungmin Park kyungmin.p...@samsung.com --- drivers/usb/gadget/Kconfig |1

[PATCH v4 0/8] Equivalent of g_ncm.ko with configfs

2013-05-23 Thread Andrzej Pietrasiewicz
be removed. After that the gadget directory can be removed. After that the respective modules can be unloaded. TESTING THE FUNCTIONS (actually there is just one) == ncm) On the device: ping host's IP On the host: ping device's IP Andrzej Pietrasiewicz

[PATCH v4 1/8] usb/gadget: u_ether: convert into module

2013-05-23 Thread Andrzej Pietrasiewicz
, in a manner similar to u_serial.c. The resulting module should not take any parameters, so they are pushed to the current users of it, that is ether.c, g_ffs.c, multi.c, ncm.c, nokia.c. Signed-off-by: Andrzej Pietrasiewicz andrze...@samsung.com Signed-off-by: Kyungmin Park kyungmin.p...@samsung.com

[PATCH v4 2/8] usb/gadget: rndis: convert into module

2013-05-23 Thread Andrzej Pietrasiewicz
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/Kconfig |6 ++ drivers/usb/gadget/Makefile |2 ++ drivers/usb/gadget/ether.c |4 +++- drivers

[PATCH v3 1/5] usb/gadget: add helpers for configfs support for USB Ethernet

2013-05-23 Thread Andrzej Pietrasiewicz
All USB Ethernet functions will have very similar attributes in configfs. This patch provides helper definitions to ease writing the functions and reduce source code duplication. Signed-off-by: Andrzej Pietrasiewicz andrze...@samsung.com Signed-off-by: Kyungmin Park kyungmin.p...@samsung.com

[PATCH v3 5/5] usb/gadget: f_ecm: add configfs support

2013-05-23 Thread Andrzej Pietrasiewicz
Signed-off-by: Andrzej Pietrasiewicz andrze...@samsung.com Signed-off-by: Kyungmin Park kyungmin.p...@samsung.com --- drivers/usb/gadget/f_ecm.c | 50 +++- drivers/usb/gadget/u_ecm.h |9 2 files changed, 58 insertions(+), 1 deletions(-) diff

[PATCH v3 4/5] usb/gadget: f_ecm: use usb_gstrings_attach

2013-05-23 Thread Andrzej Pietrasiewicz
Signed-off-by: Andrzej Pietrasiewicz andrze...@samsung.com Signed-off-by: Kyungmin Park kyungmin.p...@samsung.com --- drivers/usb/gadget/f_ecm.c | 23 +-- 1 files changed, 9 insertions(+), 14 deletions(-) diff --git a/drivers/usb/gadget/f_ecm.c b/drivers/usb/gadget/f_ecm.c

[PATCH v3 3/5] usb/gadget: cdc2: convert to new interface of f_ecm

2013-05-23 Thread Andrzej Pietrasiewicz
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/cdc2.c | 84 ++- 2 files changed, 52 insertions(+), 33 deletions(-) diff --git

[PATCH v2 0/9] Equivalent of g_nokia.ko with configfs

2013-05-23 Thread Andrzej Pietrasiewicz
) On host: cat /dev/ttyACMX On target: cat /dev/ttyGSY then the other way round On target: cat /dev/ttyGSY On host: cat /dev/ttyACMX ecm) On the device: ping host's IP On the host: ping device's IP Andrzej Pietrasiewicz (9): usb/gadget: f_obex: use usb_gstrings_attach usb/gadget: nokia

[PATCH v2 3/9] usb/gadget: f_obex: remove compatibility layer

2013-05-23 Thread Andrzej Pietrasiewicz
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_obex.c | 52 --- 1 files

[PATCH v2 2/9] usb/gadget: nokia: convert to new interface of f_obex

2013-05-23 Thread Andrzej Pietrasiewicz
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/nokia.c | 122 ++-- 2 files changed, 85 insertions(+), 38 deletions(-) diff --git

[PATCH v2 5/9] usb/gadget: f_phonet: convert to new function interface with backward compatibility

2013-05-23 Thread Andrzej Pietrasiewicz
of preprocessor conditional directives. After all users are converted, 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/Kconfig|3 + drivers/usb/gadget/Makefile |2

[PATCH 2/9] usb/gadget: nokia: convert to new interface of f_obex

2013-05-16 Thread Andrzej Pietrasiewicz
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/nokia.c | 122 ++-- 2 files changed, 85 insertions(+), 38 deletions(-) diff --git

[PATCH v3 0/8] Equivalent of g_ncm.ko with configfs

2013-05-15 Thread Andrzej Pietrasiewicz
be removed. After that the gadget directory can be removed. After that the respective modules can be unloaded. TESTING THE FUNCTIONS (actually there is just one) == ncm) On the device: ping host's IP On the host: ping device's IP Andrzej

[PATCH v3 2/8] usb/gadget: rndis: convert into module

2013-05-15 Thread Andrzej Pietrasiewicz
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/Kconfig |6 ++ drivers/usb/gadget/Makefile |2 ++ drivers/usb/gadget/ether.c |4 +++- drivers

[PATCH v3 1/8] usb/gadget: u_ether: convert into module

2013-05-15 Thread Andrzej Pietrasiewicz
, in a manner similar to u_serial.c. The resulting module should not take any parameters, so they are pushed to the current users of it, that is ether.c, g_ffs.c, multi.c, ncm.c, nokia.c. Signed-off-by: Andrzej Pietrasiewicz andrze...@samsung.com Signed-off-by: Kyungmin Park kyungmin.p...@samsung.com

[PATCH v3 8/8] usb/gadget: f_ncm: add configfs support

2013-05-15 Thread Andrzej Pietrasiewicz
Signed-off-by: Andrzej Pietrasiewicz andrze...@samsung.com Signed-off-by: Kyungmin Park kyungmin.p...@samsung.com --- drivers/usb/gadget/f_ncm.c | 166 drivers/usb/gadget/u_ncm.h |9 +++ 2 files changed, 175 insertions(+), 0 deletions(-) diff

[PATCH v3 6/8] usb/gadget: f_ncm: remove compatibility layer

2013-05-15 Thread Andrzej Pietrasiewicz
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_ncm.c | 80 -- drivers/usb

[PATCH v3 7/8] usb/gadget: f_ncm: use usb_gstrings_attach

2013-05-15 Thread Andrzej Pietrasiewicz
Signed-off-by: Andrzej Pietrasiewicz andrze...@samsung.com Signed-off-by: Kyungmin Park kyungmin.p...@samsung.com --- drivers/usb/gadget/f_ncm.c | 26 ++ 1 files changed, 10 insertions(+), 16 deletions(-) diff --git a/drivers/usb/gadget/f_ncm.c b/drivers/usb/gadget

[PATCH v3 4/8] usb/gadget: f_ncm: convert to new function interface with backward compatibility

2013-05-15 Thread Andrzej Pietrasiewicz
conditional directives. After all users are converted, 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/Kconfig |3 + drivers/usb/gadget/Makefile |2 + drivers/usb

[PATCH v3 3/8] usb/gadget: u_ether: construct with default values and add setters/getters

2013-05-15 Thread Andrzej Pietrasiewicz
. Signed-off-by: Andrzej Pietrasiewicz andrze...@samsung.com Signed-off-by: Kyungmin Park kyungmin.p...@samsung.com --- drivers/usb/gadget/u_ether.c | 185 +- drivers/usb/gadget/u_ether.h | 123 2 files changed, 307 insertions

[PATCH v2 0/5] Equivalent of g_cdc.ko with configfs

2013-05-15 Thread Andrzej Pietrasiewicz
: cat /dev/ttyACMX ecm) On the device: ping host's IP On the host: ping device's IP Andrzej Pietrasiewicz (5): usb/gadget: add helpers for configfs support for USB Ethernet usb/gadget: f_ecm: convert to new function interface with backward compatibility usb/gadget: cdc2: convert to new

[PATCH v2 2/5] usb/gadget: f_ecm: convert to new function interface with backward compatibility

2013-05-15 Thread Andrzej Pietrasiewicz
conditional directives. After all users are converted, 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/Kconfig |3 + drivers/usb/gadget/Makefile |2 + drivers/usb

[PATCH v2 4/5] usb/gadget: f_ecm: use usb_gstrings_attach

2013-05-15 Thread Andrzej Pietrasiewicz
Signed-off-by: Andrzej Pietrasiewicz andrze...@samsung.com Signed-off-by: Kyungmin Park kyungmin.p...@samsung.com --- drivers/usb/gadget/f_ecm.c | 23 +-- 1 files changed, 9 insertions(+), 14 deletions(-) diff --git a/drivers/usb/gadget/f_ecm.c b/drivers/usb/gadget/f_ecm.c

[PATCH v2 5/5] usb/gadget: f_ecm: add configfs support

2013-05-15 Thread Andrzej Pietrasiewicz
Signed-off-by: Andrzej Pietrasiewicz andrze...@samsung.com Signed-off-by: Kyungmin Park kyungmin.p...@samsung.com --- drivers/usb/gadget/f_ecm.c | 50 +++- drivers/usb/gadget/u_ecm.h |9 2 files changed, 58 insertions(+), 1 deletions(-) diff

[PATCH 0/9] Equivalent of g_nokia.ko with configfs

2013-05-15 Thread Andrzej Pietrasiewicz
) On the device: ping host's IP On the host: ping device's IP Andrzej Pietrasiewicz (9): usb/gadget: f_obex: use usb_gstrings_attach usb/gadget: nokia: convert to new interface of f_obex usb/gadget: f_obex: remove compatibility layer usb/gadget: phonet: move global dev variable to its user usb

[PATCH 1/9] usb/gadget: f_obex: use usb_gstrings_attach

2013-05-15 Thread Andrzej Pietrasiewicz
Signed-off-by: Andrzej Pietrasiewicz andrze...@samsung.com Signed-off-by: Kyungmin Park kyungmin.p...@samsung.com --- drivers/usb/gadget/f_obex.c | 19 --- 1 files changed, 8 insertions(+), 11 deletions(-) diff --git a/drivers/usb/gadget/f_obex.c b/drivers/usb/gadget/f_obex.c

[PATCH 2/9] usb/gadget: nokia: convert to new interface of f_obex

2013-05-15 Thread Andrzej Pietrasiewicz
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/nokia.c | 122 ++-- 2 files changed, 85 insertions(+), 38 deletions(-) diff --git

[PATCH 4/9] usb/gadget: phonet: move global dev variable to its user

2013-05-15 Thread Andrzej Pietrasiewicz
Signed-off-by: Andrzej Pietrasiewicz andrze...@samsung.com Signed-off-by: Kyungmin Park kyungmin.p...@samsung.com --- drivers/usb/gadget/f_phonet.c | 20 +++- drivers/usb/gadget/nokia.c| 14 +- drivers/usb/gadget/u_phonet.h |6 +++--- 3 files changed, 23

[PATCH 5/9] usb/gadget: f_phonet: convert to new function interface with backward compatibility

2013-05-15 Thread Andrzej Pietrasiewicz
of preprocessor conditional directives. After all users are converted, 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/Kconfig|3 + drivers/usb/gadget/Makefile |2

[PATCH 6/9] usb/gadget: nokia: convert to new interface of f_phonet

2013-05-15 Thread Andrzej Pietrasiewicz
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/nokia.c | 56 ++- 2 files changed, 40 insertions(+), 17 deletions(-) diff --git

[PATCH 8/9] usb/gadget: nokia: convert to new interface of f_ecm

2013-05-15 Thread Andrzej Pietrasiewicz
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/nokia.c | 66 +++ 2 files changed, 36 insertions(+), 31 deletions(-) diff --git

[PATCH 9/9] usb/gadget: f_phonet: add configfs support

2013-05-15 Thread Andrzej Pietrasiewicz
Signed-off-by: Andrzej Pietrasiewicz andrze...@samsung.com Signed-off-by: Kyungmin Park kyungmin.p...@samsung.com --- drivers/usb/gadget/Kconfig| 10 +++ drivers/usb/gadget/f_phonet.c | 56 + 2 files changed, 66 insertions(+), 0 deletions

[PATCH 7/9] usb/gadget: f_phonet: remove compatibility layer

2013-05-15 Thread Andrzej Pietrasiewicz
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_phonet.c | 84 ++--- drivers/usb

[PATCH 3/9] usb/gadget: f_obex: remove compatibility layer

2013-05-15 Thread Andrzej Pietrasiewicz
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_obex.c | 54 --- 1 files

RE: [PATCH v2 0/8] Equivalent of g_ncm.ko with configfs

2013-05-13 Thread Andrzej Pietrasiewicz
On Tuesday, April 23, 2013 1:43 PM I wrote: Here I present the conversion of everthing that is required to provide the equivalent of g_ncm.ko with configfs. This is the second version of the series after discussion with Alan and Michal's review - thank you guys. A branch will be available

RE: [PATCH 0/5] Equivalent of g_cdc.ko with configfs

2013-05-13 Thread Andrzej Pietrasiewicz
On Wednesday, April 24, 2013 11:41 AM I wrote: Here I present the conversion of everthing that is required to provide the equivalent of g_cdc.ko with configfs. A branch will be available here (from 24th April 2013, afternoon UTC): git://git.infradead.org/users/kmpark/linux-samsung

[Regression 2.6.37-2.6.38] Revert f_phonet: avoid pskb_pull(), fix OOPS with CONFIG_HIGHMEM

2013-05-09 Thread Andrzej Pietrasiewicz
This reverts commit f5a45325284ec10a907b96052ebf2168e7166b5c. To be applied on current kernels, but only for the purpose of debugging the regression mentioned in the subject. There is a small conflict during the revert, but this patch fixes it. Signed-off-by: Andrzej Pietrasiewicz andrze

[Regression 2.6.37-2.6.38] f_phonet with SOCK_DGRAM

2013-05-09 Thread Andrzej Pietrasiewicz
that it is both the sender and the receiver, this works OK even on recent kernels. @Remi: Could you look into the problem? Or is it a problem at all? Anyone? Andrzej Pietrasiewicz (2): Revert f_phonet: avoid pskb_pull(), fix OOPS with CONFIG_HIGHMEM pnxmit.c, test program drivers/usb/gadget

[Regression 2.6.37-2.6.38] pnxmit.c, test program

2013-05-09 Thread Andrzej Pietrasiewicz
$ pnxmit -a 0x10 -s 0x6c # send from host 0x10 to device 0x6c $ pnxmit -a 0x6c -r # on the device, receive Signed-off-by: Andrzej Pietrasiewicz andrze...@samsung.com Signed-off-by: Kyungmin Park kyungmin.p...@samsung.com --- /* * Test program for phonet * * Copyright (c) 2013 Samsung

RE: [Regression 2.6.37-2.6.38] f_phonet with SOCK_DGRAM

2013-05-09 Thread Andrzej Pietrasiewicz
On Thursday, May 09, 2013 1:15 PM Rémi Denis-Courmont wrote: Unfortunately, I do not have hardware to test f_phonet and HIGHMEM together at thé moment. (Neither do I have a proper mail agent.) While the original fix may be wrong, I doubt reverting will work. It should bomb if an skb segment

RE: Testing phonet

2013-05-07 Thread Andrzej Pietrasiewicz
On Wednesday, May 01, 2013 1:53 PM Daniele Forsi wrote: 2013/4/30 Andrzej Pietrasiewicz: As I already wrote I am now stuck with sending correct data, so that when I sendto() from host I can recvfrom() on device (or vice versa). payload data doesn't matter so you don't need my dumps

RE: Testing phonet

2013-04-30 Thread Andrzej Pietrasiewicz
On Monday, April 29, 2013 3:48 PM Rémi Denis-Courmont wrote: Le lundi 29 avril 2013 15:06:17, Sebastian Andrzej Siewior a écrit : In Documentation/networking/phonet.txt are few snippets how to open SOCK_DGRAM and PN_PROTO_PIPE. With this and read()/write() should work. Using datagram

RE: Testing phonet

2013-04-30 Thread Andrzej Pietrasiewicz
On Tuesday, April 30, 2013 11:30 AM Daniele Forsi wrote: Hello Andrzej, I removed people from CC On Monday, April 29, 2013 6:30 PM Daniele Forsi wrote: I can provide the OP with frames captured from a real phone when talking with gnokii You mean some kind of dump? What can it be

[PATCH] usb/gadget: Add options to build only functions modules

2013-04-29 Thread Andrzej Pietrasiewicz
and compiling a new g_serial_with_ecm.c. A documentation file is added to Documentation/usb. Function's attributes are described in Documentation/ABI/*/configfs-usb-gadget* The latter might need adjusting the KernelVersion and Date tags. Signed-off-by: Andrzej Pietrasiewicz andrze...@samsung.com

Testing phonet

2013-04-29 Thread Andrzej Pietrasiewicz
Hello, I have a question @all in general and @Felipe and Rémi Denis-Courmont in particular Can you please give me a hint on how to test the phonet function, preferably without Nokia hardware? Andrzej -- To unsubscribe from this list: send the line unsubscribe linux-usb in the body of a

RE: Testing phonet

2013-04-29 Thread Andrzej Pietrasiewicz
On Monday, April 29, 2013 6:30 PM Daniele Forsi wrote: 2013/4/29 Rémi Denis-Courmont: Host-side at least oFono used to support Phonet (not tried in a year); maybe ModemManager or Gnokii would work too (not tried ever). yes, gnokii supports Phonet with and without kernel the modules

[PATCH 1/5] usb/gadget: add helpers for configfs support for USB Ethernet

2013-04-24 Thread Andrzej Pietrasiewicz
All USB Ethernet functions will have very similar attributes in configfs. This patch provides helper definitions to ease writing the functions and reduce source code duplication. Signed-off-by: Andrzej Pietrasiewicz andrze...@samsung.com Signed-off-by: Kyungmin Park kyungmin.p...@samsung.com

[PATCH 0/5] Equivalent of g_cdc.ko with configfs

2013-04-24 Thread Andrzej Pietrasiewicz
be unloaded. TESTING THE FUNCTIONS acm) On host: cat /dev/ttyACMX On target: cat /dev/ttyGSY then the other way round On target: cat /dev/ttyGSY On host: cat /dev/ttyACMX ecm) On the device: ping host's IP On the host: ping device's IP Andrzej Pietrasiewicz (5): usb

[PATCH 3/5] usb/gadget: cdc2: convert to new interface of f_ecm

2013-04-24 Thread Andrzej Pietrasiewicz
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/cdc2.c | 84 ++- 2 files changed, 52 insertions(+), 33 deletions(-) diff --git

[PATCH 5/5] usb/gadget: f_ecm: add configfs support

2013-04-24 Thread Andrzej Pietrasiewicz
Signed-off-by: Andrzej Pietrasiewicz andrze...@samsung.com Signed-off-by: Kyungmin Park kyungmin.p...@samsung.com --- drivers/usb/gadget/f_ecm.c | 50 +++- drivers/usb/gadget/u_ecm.h |9 2 files changed, 58 insertions(+), 1 deletions(-) diff

[PATCH 4/5] usb/gadget: f_ecm: use usb_gstrings_attach

2013-04-24 Thread Andrzej Pietrasiewicz
Signed-off-by: Andrzej Pietrasiewicz andrze...@samsung.com Signed-off-by: Kyungmin Park kyungmin.p...@samsung.com --- drivers/usb/gadget/f_ecm.c | 23 +-- 1 files changed, 9 insertions(+), 14 deletions(-) diff --git a/drivers/usb/gadget/f_ecm.c b/drivers/usb/gadget/f_ecm.c

[PATCH 2/5] usb/gadget: f_ecm: convert to new function interface with backward compatibility

2013-04-24 Thread Andrzej Pietrasiewicz
conditional directives. After all users are converted, 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/Kconfig |3 + drivers/usb/gadget/Makefile |2 + drivers/usb

[PATCH v2 7/8] usb/gadget: f_ncm: use usb_gstrings_attach

2013-04-23 Thread Andrzej Pietrasiewicz
Signed-off-by: Andrzej Pietrasiewicz andrze...@samsung.com Signed-off-by: Kyungmin Park kyungmin.p...@samsung.com --- drivers/usb/gadget/f_ncm.c | 26 ++ 1 files changed, 10 insertions(+), 16 deletions(-) diff --git a/drivers/usb/gadget/f_ncm.c b/drivers/usb/gadget

[PATCH v2 0/8] Equivalent of g_ncm.ko with configfs

2013-04-23 Thread Andrzej Pietrasiewicz
THE FUNCTIONS (actually there is just one) == ncm) On the device: ping host's IP On the host: ping device's IP Andrzej Pietrasiewicz (8): usb/gadget: u_ether: convert into module usb/gadget: rndis: convert into module usb/gadget: u_ether

[PATCH v2 2/8] usb/gadget: rndis: convert into module

2013-04-23 Thread Andrzej Pietrasiewicz
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/Kconfig |6 ++ drivers/usb/gadget/Makefile |2 ++ drivers/usb/gadget/ether.c |4 +++- drivers

[PATCH v2 4/8] usb/gadget: f_ncm: convert to new function interface with backward compatibility

2013-04-23 Thread Andrzej Pietrasiewicz
conditional directives. After all users are converted, 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/Kconfig |3 + drivers/usb/gadget/Makefile |2 + drivers/usb

[PATCH v2 3/8] usb/gadget: u_ether: construct with default values and add setters/getters

2013-04-23 Thread Andrzej Pietrasiewicz
Add an interface to create a struct netdev_dev filled with default values, an interface to fill the struct with useful values and an interface to read the values set. The patch also adds an interface to register the net device associated with an ethernet-over-usb link. Signed-off-by: Andrzej

[PATCH v2 5/8] usb/gadget: ncm: convert to new function interface

2013-04-23 Thread Andrzej Pietrasiewicz
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/ncm.c | 57 +++- 2 files changed, 36 insertions(+), 22 deletions(-) diff --git

[PATCH v2 8/8] usb/gadget: f_ncm: add configfs support

2013-04-23 Thread Andrzej Pietrasiewicz
Signed-off-by: Andrzej Pietrasiewicz andrze...@samsung.com Signed-off-by: Kyungmin Park kyungmin.p...@samsung.com --- drivers/usb/gadget/f_ncm.c | 166 drivers/usb/gadget/u_ncm.h |9 +++ 2 files changed, 175 insertions(+), 0 deletions(-) diff

RE: [PATCH 3/9] usb/gadget: change sysfs parent device for USB Ethernet

2013-04-18 Thread Andrzej Pietrasiewicz
On Wednesday, April 17, 2013 6:46 PM Alan Stern wrote: On Wed, 17 Apr 2013, Andrzej Pietrasiewicz wrote: The procedure of setting a gadget up with configfs is like this: 1) create the gadget directory 2) create functions directories corresponding to functions to be used by the gadget

[PATCH 0/2] Gadget Zero fixes

2013-04-18 Thread Andrzej Pietrasiewicz
Dear All, The first patch contains a trivial fix of a name which doesn't fit its purpose. The second patch fixes a bug which prevents the usb_f_ss_lb.ko from unloading when it is not actually used. Andrzej Pietrasiewicz (2): usb/gadget: f_sourcesink.c: correct a copy-paste misnomer usb

[PATCH 1/2] usb/gadget: f_sourcesink.c: correct a copy-paste misnomer

2013-04-18 Thread Andrzej Pietrasiewicz
acm was the first function to be converted and it seems that its code served as a base for converting f_sourcesink to the new function interface. source_sink has nothing to do with acm, though. Signed-off-by: Andrzej Pietrasiewicz andrze...@samsung.com Signed-off-by: Kyungmin Park kyungmin.p

[PATCH 2/2] usb/gadget: zero: put function instances on unbind

2013-04-18 Thread Andrzej Pietrasiewicz
If function instances are not put on gadget's unbind, their implementation module's refcount is nonzero and it is impossible to unload it. Signed-off-by: Andrzej Pietrasiewicz andrze...@samsung.com Signed-off-by: Kyungmin Park kyungmin.p...@samsung.com --- drivers/usb/gadget/zero.c |2 ++ 1

RE: [PATCH 3/9] usb/gadget: change sysfs parent device for USB Ethernet

2013-04-17 Thread Andrzej Pietrasiewicz
On Friday, April 12, 2013 7:58 PM Alan Stern wrote: On Fri, 12 Apr 2013, Andrzej Pietrasiewicz wrote: registered with register_netdev. But in order to register it, its parent device must be known and it becomes known only later during gadget's bind. Why must this happen before

RE: [PATCH 3/9] usb/gadget: change sysfs parent device for USB Ethernet

2013-04-12 Thread Andrzej Pietrasiewicz
On Thursday, April 11, 2013 5:00 PM Alan Stern wrote: On Thu, 11 Apr 2013, Andrzej Pietrasiewicz wrote: This adds a new sysfs root device to serve as a replacement for devices which are available only when a gadget is being bound. It is motivated by adding configfs support to USB

[PATCH 0/9] Equivalent of g_ncm.ko with configfs

2013-04-11 Thread Andrzej Pietrasiewicz
be unloaded. TESTING THE FUNCTIONS (actually there is just one) == ncm) On the device: ping host's IP On the host: ping device's IP Andrzej Pietrasiewicz (9): usb/gadget: u_ether: convert into module usb/gadget: rndis: convert into module

[PATCH 2/9] usb/gadget: rndis: convert into module

2013-04-11 Thread Andrzej Pietrasiewicz
module. Signed-off-by: Andrzej Pietrasiewicz andrze...@samsung.com Signed-off-by: Kyungmin Park kyungmin.p...@samsung.com --- drivers/usb/gadget/Kconfig |6 ++ drivers/usb/gadget/Makefile |2 ++ drivers/usb/gadget/ether.c |4 +++- drivers/usb/gadget/g_ffs.c |2 +- drivers/usb

[PATCH 1/9] usb/gadget: u_ether: convert into module

2013-04-11 Thread Andrzej Pietrasiewicz
, in a manner similar to u_serial.c. The resulting module should not take any parameters, so they are pushed to the current users of it, that is ether.c, g_ffs.c, multi.c, ncm.c, nokia.c. Signed-off-by: Andrzej Pietrasiewicz andrze...@samsung.com Signed-off-by: Kyungmin Park kyungmin.p...@samsung.com

[PATCH 4/9] usb/gadget: u_ether: construct with default values and add setters/getters

2013-04-11 Thread Andrzej Pietrasiewicz
, and an interface which makes it possible to read the values set. Signed-off-by: Andrzej Pietrasiewicz andrze...@samsung.com Signed-off-by: Kyungmin Park kyungmin.p...@samsung.com --- drivers/usb/gadget/u_ether.c | 173 ++ drivers/usb/gadget/u_ether.h | 101

[PATCH 7/9] usb/gadget: f_ncm: remove compatibility layer

2013-04-11 Thread Andrzej Pietrasiewicz
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_ncm.c | 80 -- drivers/usb

[PATCH 8/9] usb/gadget: f_ncm: use usb_gstrings_attach

2013-04-11 Thread Andrzej Pietrasiewicz
Signed-off-by: Andrzej Pietrasiewicz andrze...@samsung.com Signed-off-by: Kyungmin Park kyungmin.p...@samsung.com --- drivers/usb/gadget/f_ncm.c | 26 ++ 1 files changed, 10 insertions(+), 16 deletions(-) diff --git a/drivers/usb/gadget/f_ncm.c b/drivers/usb/gadget

[PATCH 3/9] usb/gadget: change sysfs parent device for USB Ethernet

2013-04-11 Thread Andrzej Pietrasiewicz
libcomposite users and is used as a parent device for USB Ethernet devices instead of the gadget-dev. Signed-off-by: Andrzej Pietrasiewicz andrze...@samsung.com Signed-off-by: Kyungmin Park kyungmin.p...@samsung.com --- drivers/usb/gadget/configfs.c | 15 +++ drivers/usb/gadget/configfs.h

[PATCH 9/9] usb/gadget: f_ncm: add configfs support

2013-04-11 Thread Andrzej Pietrasiewicz
Signed-off-by: Andrzej Pietrasiewicz andrze...@samsung.com Signed-off-by: Kyungmin Park kyungmin.p...@samsung.com --- drivers/usb/gadget/f_ncm.c | 162 +++- drivers/usb/gadget/u_ncm.h |9 +++ 2 files changed, 170 insertions(+), 1 deletions(-) diff

[PATCH 6/9] usb/gadget: ncm: convert to new function interface

2013-04-11 Thread Andrzej Pietrasiewicz
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/ncm.c | 57 +++- 2 files changed, 36 insertions(+), 22 deletions(-) diff --git

[PATCH 5/9] usb/gadget: f_ncm: convert to new function interface with backward compatibility

2013-04-11 Thread Andrzej Pietrasiewicz
conditional directives. After all users are converted, 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/Kconfig |3 + drivers/usb/gadget/Makefile |2 + drivers/usb

[PATCH v2 7/9] usb/gadget: f_obex: convert to new function interface with backward compatibility

2013-04-03 Thread Andrzej Pietrasiewicz
of preprocessor conditional directives. After all users are converted, 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/Kconfig |3 + drivers/usb/gadget/Makefile |2 + drivers/usb

RE: [PATCH 0/9] Towards configfs in mass storage

2013-04-03 Thread Andrzej Pietrasiewicz
Hello Felipe, On Tuesday, April 02, 2013 4:00 PM Felipe Balbi wrote: Hi Andrejz, On Wed, Jan 23, 2013 at 12:45:31PM +0100, Andrzej Pietrasiewicz wrote: The prerequisite for providing the configfs interface for mass storage and all its users is converting them to the new function

RE: [PATCH 0/9] Towards configfs in mass storage

2013-04-03 Thread Andrzej Pietrasiewicz
Hi, On Wednesday, April 03, 2013 12:01 PM Felipe Balbi wrote: I think it is more acceptable to provide a small but more-or-less complete solution and I intend to do further works in a manner demonstrated in the above mentioned thread. alright, but do we still have the old

RE: [PATCH 1/9] usb/gadget: use consistent naming scheme for usb function modules

2013-04-03 Thread Andrzej Pietrasiewicz
Hi, On Wednesday, April 03, 2013 12:03 PM Felipe Balbi wrote: snip On Thu, Mar 28, 2013 at 11:37:32AM +0100, Andrzej Pietrasiewicz wrote: In order to convert to configfs the USB functions need to be converted to the new interface from Sebastian, which also requires turning them

RE: [PATCH 0/9] Towards configfs in mass storage

2013-04-03 Thread Andrzej Pietrasiewicz
: Andrzej Pietrasiewicz andrze...@samsung.com Date: Fri Jan 25 14:09:17 2013 +0100 It is Sebastian's. It is listed as a prerequisite in the cover letter: quote This patch series depends on the following patches: http://www.spinics.net/lists/linux-usb/msg78752.html usb/gadget: nokia: use function

RE: [PATCH 0/9] Towards configfs in mass storage

2013-04-03 Thread Andrzej Pietrasiewicz
Author: Andrzej Pietrasiewicz andrze...@samsung.com Date: Fri Jan 25 14:09:17 2013 +0100 It is Sebastian's. It is listed as a prerequisite in the cover letter: I'm talking about the branch you pointed me to in your cover letter, but fair enough. I'll fix it to be sebastian's

[PATCH 0/9] Equivalent of g_serial.ko with configfs

2013-03-28 Thread Andrzej Pietrasiewicz
://www.spinics.net/lists/linux-usb/msg76388.html usb/gadget: the start of the configfs interface Andrzej Pietrasiewicz (9): usb/gadget: use consistent naming scheme for usb function modules usb/gadget: nokia: remove unused include usb/gadget: f_serial: convert to new function interface with backward

[PATCH 6/9] usb/gadget: f_serial: add configfs support

2013-03-28 Thread Andrzej Pietrasiewicz
Signed-off-by: Andrzej Pietrasiewicz andrze...@samsung.com Signed-off-by: Kyungmin Park kyungmin.p...@samsung.com --- drivers/usb/gadget/f_serial.c | 55 + 1 files changed, 55 insertions(+), 0 deletions(-) diff --git a/drivers/usb/gadget/f_serial.c b

[PATCH 5/9] usb/gadget: f_serial: remove compatibility layer

2013-03-28 Thread Andrzej Pietrasiewicz
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_serial.c | 46 - 1 files

[PATCH 4/9] usb/gadget: serial: convert to new interface of f_serial

2013-03-28 Thread Andrzej Pietrasiewicz
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/serial.c | 25 +++-- 2 files changed, 8 insertions(+), 18 deletions(-) diff --git a/drivers/usb

[PATCH 8/9] usb/gadget: serial: convert to new interface of f_obex

2013-03-28 Thread Andrzej Pietrasiewicz
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/serial.c | 42 +++--- 2 files changed, 4 insertions(+), 39 deletions(-) diff --git

[PATCH 3/9] usb/gadget: f_serial: convert to new function interface with backward compatibility

2013-03-28 Thread Andrzej Pietrasiewicz
of preprocessor conditional directives. After all users are converted, 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/Kconfig|3 + drivers/usb/gadget/Makefile |2

[PATCH 9/9] usb/gadget: f_obex: add configfs support

2013-03-28 Thread Andrzej Pietrasiewicz
Signed-off-by: Andrzej Pietrasiewicz andrze...@samsung.com Signed-off-by: Kyungmin Park kyungmin.p...@samsung.com --- drivers/usb/gadget/f_obex.c | 55 +++ 1 files changed, 55 insertions(+), 0 deletions(-) diff --git a/drivers/usb/gadget/f_obex.c b

[PATCH v2 0/8] Towards configfs - usb OBEX and phonet functions conversion to the new interface

2013-03-25 Thread Andrzej Pietrasiewicz
) = f_uac1 | g_audio f_uac2 | g_audio f_midi | g_midi f_hid| g_hid f_uvc| g_webcam Andrzej Pietrasiewicz (8): usb/gadget: f_obex: convert to new function interface with backward compatibility usb/gadget: serial

[PATCH v2 5/8] usb/gadget: phonet: move global dev variable to its user

2013-03-25 Thread Andrzej Pietrasiewicz
Signed-off-by: Andrzej Pietrasiewicz andrze...@samsung.com Signed-off-by: Kyungmin Park kyungmin.p...@samsung.com --- drivers/usb/gadget/f_phonet.c | 20 +++- drivers/usb/gadget/nokia.c| 14 +- drivers/usb/gadget/u_phonet.h |6 +++--- 3 files changed, 23

[PATCH v2 6/8] usb/gadget: f_phonet: convert to new function interface with backward compatibility

2013-03-25 Thread Andrzej Pietrasiewicz
of preprocessor conditional directives. After all users are converted, 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/Kconfig|3 + drivers/usb/gadget/Makefile |2

[PATCH v2 8/8] usb/gadget: f_phonet: remove compatibility layer

2013-03-25 Thread Andrzej Pietrasiewicz
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_phonet.c | 63 ++-- 1 files

[PATCH v2 7/8] usb/gadget: nokia: convert to new interface of f_phonet

2013-03-25 Thread Andrzej Pietrasiewicz
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/nokia.c | 51 +-- 2 files changed, 35 insertions(+), 17 deletions(-) diff --git

[PATCH 0/4] Towards configfs - usb OBEX function conversion to the new interface

2013-03-22 Thread Andrzej Pietrasiewicz
for USB gadgets and all their users is converting them to the new function interface from Sebastian. This patch series serves the purpose stated above for OBEX. Andrzej Pietrasiewicz (4): usb/gadget: f_obex: convert to new function interface with backward compatibility usb/gadget: serial

[PATCH 1/4] usb/gadget: f_obex: convert to new function interface with backward compatibility

2013-03-22 Thread Andrzej Pietrasiewicz
of preprocessor conditional directives. After all users are converted, 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/Kconfig |3 + drivers/usb/gadget/Makefile |2 + drivers/usb

[PATCH 4/4] usb/gadget: f_obex: remove compatibility layer

2013-03-22 Thread Andrzej Pietrasiewicz
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_obex.c | 54 --- 1 files

<    5   6   7   8   9   10   11   12   >