new device for option and qmi_wwan

2012-12-23 Thread Thomas Schäfer
Hello the device called: Telekom Speedstick LTE II Alcatel Alcatel One Touch L100V LTE an may be more. With the ID idVendor=1bbb, idProduct=f017 (cdrom-dummy) and after eject /dev/sr0 idVendor=1bbb, idProduct=011e (network-mode) works well with option and qmi_wwan . echo "1bbb 011e" > /s

[PATCH] ehci-mxc: remove Efika MX-specific CHRGVBUS hack

2012-12-23 Thread Matt Sealey
Since Efika MX platform support (pre-devicetree) was removed from the tree this code no longer has any possibility of running and clutters up the driver which is being replaced by the chipidea host in the future anyway. Signed-off-by: Matt Sealey Tested-by: Steev Klimazewski CC: Sascha Hauer CC

Re: [PATCH 001/001] Adding support "PSC Scanning, Magellan 800i" in cdc-acm

2012-12-23 Thread Johan Hovold
On Tue, Dec 18, 2012 at 05:53:38PM +0500, Den Ladin wrote: > Very simple, but very necessary. > Suitable for all versions of the kernel > 2.6 Your patch looks good (included below for reference), but could you please resubmit it inline to linux-usb@vger.kernel.org? Have a look at Documentation/Su

Re: usb card reader broken

2012-12-23 Thread Matthew Dharm
If I had to guess, it looks like you have an SDHC card in an older SDSC reader. The older readers can't read the higher-capacity SDHC cards. Try the reader/card combo on a recent windows system to see if they are compatible. Or, look for a specific SDHC or SDXC compatibility marking on the reade

Re: usb card reader broken

2012-12-23 Thread Matthew Dharm
The breakpoint between SDSC and SDHC is, in fact, 4GB for 512-byte sectors. So, your data supports my theory that your cardreader is non-SDHC compatible. Matt On Sun, Dec 23, 2012 at 11:19 AM, rh wrote: > On Sun, 23 Dec 2012 11:01:28 -0800 > Matthew Dharm > wrote: > >> If I had to guess, it lo

[PATCH 02/30] usb/gadget: remove u32 castings of address passed to readl()

2012-12-23 Thread Sebastian Andrzej Siewior
Removes a couple of: |drivers/usb/gadget/s3c-hsudc.c: In function 's3c_hsudc_epin_intr': |drivers/usb/gadget/s3c-hsudc.c:438:2: warning: passing argument 1 of '__raw_readl' makes pointer from integer without a cast |arch/arm/include/asm/io.h:104:19: note: expected 'const volatile void *' but argu

[PATCH 03/30] usb/gadget: provide a wrapper around SourceSink's setup function

2012-12-23 Thread Sebastian Andrzej Siewior
The setup request can be sent to an interface/endpoint or to the device itself. If it is sent to an interface / endpoint then we forward it to the function that is mapped to that interface / endpoint. If the device is the target of the setup request then we forward it to the ->setup() callback of t

my pending queue including configfs for the gadgets

2012-12-23 Thread Sebastian Andrzej Siewior
The queue ends with the configfs interface. It was tested with f_acm and multiple configifs. In order to move a function over to the configfs interface: - convert to function interface, i.e. use DECLARE_USB_FUNCTION_INIT() - use usb_gstrings_attach() to allocate the USB ids for a given function.

[PATCH 06/30] usb/gadget: add some infracture to register/unregister functions

2012-12-23 Thread Sebastian Andrzej Siewior
This patch provides an infrastructure to register & unregister a USB function. This allows to turn a function into a module and avoid the '#include "f_.*.c"' magic and we get a clear API / cut between the bare gadget and its functions. The concept is simple: Each function defines the DECLARE_USB_FU

[PATCH 04/30] usb/gadget: move source sink's config descriptor out of f_sourcesink

2012-12-23 Thread Sebastian Andrzej Siewior
f_sourcesink should only include the bare function but it also includes the config descriptor. This patch moves the config descriptor into zero.c, the only user of this function. Signed-off-by: Sebastian Andrzej Siewior --- drivers/usb/gadget/f_sourcesink.c | 48 +++

[PATCH 05/30] usb/gadget: move loopback's config descriptor out of f_loopback

2012-12-23 Thread Sebastian Andrzej Siewior
f_loopback should only include the bare function but it also includes the config descriptor. This patch moves the config descriptor into zero.c, the only user of this function. Signed-off-by: Sebastian Andrzej Siewior --- drivers/usb/gadget/f_loopback.c | 44 ++-

[PATCH 09/30] usb/gadget: split the three possible function in g_serial into three bind functions

2012-12-23 Thread Sebastian Andrzej Siewior
This patch factors out the three possible functions into three possible bind functions which are passed as an argument to usb_add_config(). This will ease the step by step converting of the individual functions to the new function registration method. Signed-off-by: Sebastian Andrzej Siewior ---

[PATCH 07/30] usb/gadget: convert source sink and loopback to new function interface

2012-12-23 Thread Sebastian Andrzej Siewior
This patch converts the f_sourcesink and f_loopback file to the USB-function module. Both functions shares a few common utility functions which are currently implemented in g_zero.c itself. This patch moves the common code into the sourcesink file and creates one module out of the the two functions

[PATCH 08/30] usb/gadget: remove empty function in f_acm

2012-12-23 Thread Sebastian Andrzej Siewior
The significant part of this function was removed in 90f7976 ("USB: Remove unsupported usb gadget drivers"). I would move this to function bind time but I don't see the point in moving an empty function. Therefore bye bye. Signed-off-by: Sebastian Andrzej Siewior --- drivers/usb/gadget/f_acm.c |

[PATCH 01/30] usb/gadget: composite: don't call driver's unbind() if bind() failed

2012-12-23 Thread Sebastian Andrzej Siewior
Lets assume nokia_bind() starts with "return -EINVAL". After loading the gadget we end up with: |udc dummy_udc.0: registering UDC driver [g_nokia] |BUG: unable to handle kernel NULL pointer dereference at 0040 |IP: [] __list_add+0x25/0xf0 |Call Trace: | [] rollback_registered+0x21/0x40 | [] un

[PATCH 27/30] usb/gadget: export composite's setup & disconnect function

2012-12-23 Thread Sebastian Andrzej Siewior
The configfs can't use all of composite's hooks because ->bind() and ->unbind() has to be done a little differently. ->disconnect() and ->setup() on the hand can be recycled. This patch exports them both so configfs can use them. Signed-off-by: Sebastian Andrzej Siewior --- drivers/usb/gadget/co

[PATCH 21/30] usb/gadget: add a forward pointer from usb_functioon to its "instance"

2012-12-23 Thread Sebastian Andrzej Siewior
We can have multiple usb_functions which origin is the same "instance". Within one USB configuration there should be only one function of an instance. This back pointer helps configfs to recoginze to which instance a given usb_function belongs. Signed-off-by: Sebastian Andrzej Siewior --- driver

[PATCH 12/30] usb/gadget: allocate & giveback serial ports instead hard code them

2012-12-23 Thread Sebastian Andrzej Siewior
This patch removes gserial_setup() and gserial_cleanup() and adds gserial_alloc_line() and gserial_free_line() to replace them. The initial setup of u_serial happens now on module load time. A maximum of four TTY ports can be requested which is the current limit. In theory we could extend this lim

[PATCH 24/30] usb/gadget: push tty port allocation from gadget into f_acm

2012-12-23 Thread Sebastian Andrzej Siewior
It possible to allocate the tty port number within the "instance" structure of the function and there is no need to expose this information within the gadget and therefore it is removed here. This patch converts only f_acm and all its users. The other gadgets will follow once the function is conver

[PATCH 26/30] usb/gadget: factor out two helper functions out got composite_bind()

2012-12-23 Thread Sebastian Andrzej Siewior
This patch factors out two helper functions out got composite_bind() that is composite_dev_prepare() and its counterpart composite_dev_cleanup(). This will be used by the configfs which requries a slightly different bind/setup code because part of its configurations (i.e. config descripts, cdev, …)

[PATCH 29/30] usb/gadget: use usb_gstrings_attach() in f_acm

2012-12-23 Thread Sebastian Andrzej Siewior
Use usb_gstrings_attach() to assign strings in f_acm to assign strings ids. Signed-off-by: Sebastian Andrzej Siewior --- drivers/usb/gadget/composite.c | 17 - drivers/usb/gadget/f_acm.c | 21 - 2 files changed, 20 insertions(+), 18 deletions(-) diff

[PATCH 17/30] usb/gadget: nokia: use function framework for ACM

2012-12-23 Thread Sebastian Andrzej Siewior
This patch converts the acm_ms gadget to make use of the function framework to request the ACM function. The "old" include interface for acm is now removed since nokia was the last user of it (for ACM). Signed-off-by: Sebastian Andrzej Siewior --- drivers/usb/gadget/Kconfig|1 + drivers

[PATCH 30/30] usb/gadget: the start of the configfs interface

2012-12-23 Thread Sebastian Andrzej Siewior
|# modprobe dummy_hcd num=2 |# modprobe libcomposite |# lsmod |Module Size Used by |libcomposite 31648 0 |dummy_hcd 19871 0 |# mkdir /sys/kernel/config/usb_gadget/oha |# cd /sys/kernel/config/usb_gadget/oha |# mkdir configs/def.1 |# mkdir configs/def.2 |

[PATCH 13/30] usb/gadget: convert f_acm to new function interface with backwards compatibility

2012-12-23 Thread Sebastian Andrzej Siewior
This patch converts f_acm into a module which uses the new function interface. It also converts one of its users that is g_serial to make use of it. The other users of it (g_nokia for instance) are still using the old include file system and should not notice the change at all. So they can be conve

[PATCH 22/30] usb/gadget: mass_storage: remove >= 0 check for unsigned type

2012-12-23 Thread Sebastian Andrzej Siewior
| In file included from drivers/usb/gadget/acm_ms.c:43: | f_mass_storage.c:2199:18: warning: comparison of unsigned expression >= 0 is always true [-Wtautological-compare] | if (common->lun >= 0 && common->lun < common->nluns) | ~~~ ^ ~ common->lun is defined as "uns

[PATCH 28/30] usb/gadget: introduce usb_gstrings_attach()

2012-12-23 Thread Sebastian Andrzej Siewior
The USB strings don't (yet) fully work in multiple configs/gadet environment. The string id is assigned to the descriptor and the struct usb_strings. We create a copy of the individual descriptor so we don't clash if we use a function more than once. However, we have only one struct usb_string for

[PATCH 10/30] usb/gadget: convert u_serial into a module

2012-12-23 Thread Sebastian Andrzej Siewior
Every user of u_serial has now to select the U_SERIAL symbol instead of including the file. There is one limition with this: ports and and gs_tty_driver are global variables in u_serial. Since all users share them, there can be only one user loaded at a time i.e. either g_serial or g_nokia. Signed

[PATCH 16/30] usb/gadget: multi: use function framework for ACM

2012-12-23 Thread Sebastian Andrzej Siewior
This patch converts the acm_ms gadget to make use of the function framework to request the ACM function. Signed-off-by: Sebastian Andrzej Siewior --- drivers/usb/gadget/Kconfig |1 + drivers/usb/gadget/multi.c | 62 +--- 2 files changed, 53 insertion

[PATCH 11/30] usb/gadget: add usb_remove_function()

2012-12-23 Thread Sebastian Andrzej Siewior
This will be used to remove a single function from a given config. Right now "ignore" that an error at ->bind() time and cleanup later during composite_unbind() / remove_config(). Signed-off-by: Sebastian Andrzej Siewior --- drivers/usb/gadget/composite.c | 12 include/linux/usb/c

[PATCH 18/30] usb/gadget: move the global the_dev variable to their users

2012-12-23 Thread Sebastian Andrzej Siewior
the u_ether.c file has a global variable named the_dev which keeps a pointer to the network device after it has been created via gether_setup_name(). It is only used internally by u_ether. This patches moves the variable to its users and passes it via the port.ioport where it is saved later anyway.

[PATCH 19/30] usb/gadget: remove last pieces of file_storage gadget

2012-12-23 Thread Sebastian Andrzej Siewior
This patch removes the last pieces of the file_storage gadget hidden in storage_common behind __maybe_unused bars. The CBI bits have no user on the gadget side. Only file_storage implemented the obsolte protocol. The additional USB3.0 descriptors were served by file_storage, the other gadgets are u

[PATCH 20/30] usb/gadget: make NCM's global variable ndp*_opts read only

2012-12-23 Thread Sebastian Andrzej Siewior
There is ndp16_opts and ndp32_opts which are both global and only one member is ever written. This patch makes the variable read-only and moves the one member that is ever written into the private struct f_ncm. Signed-off-by: Sebastian Andrzej Siewior --- drivers/usb/gadget/f_ncm.c | 18 ++

[PATCH 23/30] usb/gadget: consider link speed for bMaxPower

2012-12-23 Thread Sebastian Andrzej Siewior
The USB 2.0 specification says that bMaxPower is the maximum power consumption expressed in 2 mA units and the USB 3.0 specification says that it is expressed in 8 mA units. This patch renames bMaxPower to MaxPower and the various /2 and *2 are removed. Before reporting the config descriptor, the p

[PATCH 14/30] usb/gadget: acm_ms: use function framework for ACM

2012-12-23 Thread Sebastian Andrzej Siewior
This patch converts the acm_ms gadget to make use of the function framework to request the ACM function. Signed-off-by: Sebastian Andrzej Siewior --- drivers/usb/gadget/Kconfig |1 + drivers/usb/gadget/acm_ms.c | 33 +++-- 2 files changed, 28 insertions(+), 6 d

[PATCH 25/30] usb/gadget: introduce UDC binding by name

2012-12-23 Thread Sebastian Andrzej Siewior
This patch adds udc_attach_driver() which allows to bind an UDC which is specified by name to a driver. The name of available UDCs can be obtained from /sys/class/udc. This interface is intended for configfs interface. Signed-off-by: Sebastian Andrzej Siewior --- drivers/usb/gadget/udc-core.c |

[PATCH 15/30] usb/gadget: cdc2: use function framework for ACM

2012-12-23 Thread Sebastian Andrzej Siewior
This patch converts the acm_ms gadget to make use of the function framework to request the ACM function. Signed-off-by: Sebastian Andrzej Siewior --- drivers/usb/gadget/Kconfig |1 + drivers/usb/gadget/cdc2.c | 28 +++- 2 files changed, 24 insertions(+), 5 deletion

[PATCH 2/2] USB: gadget: at91_adc: fix pullup pin validity check

2012-12-23 Thread Jean-Christophe PLAGNIOL-VILLARD
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD Cc: linux-usb@vger.kernel.org --- drivers/usb/gadget/at91_udc.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/usb/gadget/at91_udc.c b/drivers/usb/gadget/at91_udc.c index 89d90b5..888cb2a 100644 --- a/drivers/usb/gad

Re: Linux 3.8-rc1 - another regression on USB :-(

2012-12-23 Thread Linus Torvalds
Woody, Any chance you can bisect this? It's not going to be hugely pleasant (with 11k+ commits in between 3.7 and 3.8-rc1 you'll have to compile and test at least 14 kernels), but it would help enormously. Of course, maybe some USB person can guess what would cause the device to go offline.. Adde

RE: [PATCH 0/2] usb: exynos: Fix compatible strings used for device

2012-12-23 Thread Kukjin Kim
Kukjin Kim wrote: > Re-sending due to e-mail client problem... > Doug Anderson wrote: > > > > On Fri, Dec 21, 2012 at 12:14 AM, Vivek Gautam > > wrote: > > > On Wed, Dec 19, 2012 at 7:16 PM, Vivek Gautam > > wrote: > > >> > > >> On Sat, Dec 15, 2012 at 12:50 PM, Grant Likely > > >> wrote: > >

Re: Linux 3.8-rc1 - another regression on USB :-(

2012-12-23 Thread Greg Kroah-Hartman
On Sun, Dec 23, 2012 at 02:35:49PM -0800, Linus Torvalds wrote: > Woody, > Any chance you can bisect this? It's not going to be hugely pleasant > (with 11k+ commits in between 3.7 and 3.8-rc1 you'll have to compile > and test at least 14 kernels), but it would help enormously. Of > course, maybe s

[PATCH 14/29] uwb: rename random32() to prandom_u32()

2012-12-23 Thread Akinobu Mita
Use more preferable function name which implies using a pseudo-random number generator. Signed-off-by: Akinobu Mita Cc: linux-usb@vger.kernel.org --- drivers/uwb/rsv.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/uwb/rsv.c b/drivers/uwb/rsv.c index 0b0d8bc..f4a

Re: Linux 3.8-rc1 - another regression on USB :-(

2012-12-23 Thread Woody Suwalski
Greg Kroah-Hartman wrote: On Sun, Dec 23, 2012 at 02:35:49PM -0800, Linus Torvalds wrote: Woody, Any chance you can bisect this? It's not going to be hugely pleasant (with 11k+ commits in between 3.7 and 3.8-rc1 you'll have to compile and test at least 14 kernels), but it would help enormously

RE: [PATCH v3] usb: phy: use kzalloc to allocate struct tegra_usb_phy

2012-12-23 Thread Venu Byravarasu
Thanks Stephen. Venu > -Original Message- > From: Stephen Warren [mailto:swar...@wwwdotorg.org] > Sent: Saturday, December 22, 2012 2:25 AM > To: Venu Byravarasu > Cc: ba...@ti.com; gre...@linuxfoundation.org; sshtyl...@mvista.com; > linux-ker...@vger.kernel.org; linux-usb@vger.kernel.org

RE: [PATCH] usb: tegra: Removing dependency on PHY instance number

2012-12-23 Thread Venu Byravarasu
> -Original Message- > From: Stephen Warren [mailto:swar...@wwwdotorg.org] > Sent: Saturday, December 22, 2012 2:32 AM > To: Venu Byravarasu > Cc: st...@rowland.harvard.edu; gre...@linuxfoundation.org; > ba...@ti.com; linux-usb@vger.kernel.org; linux-ker...@vger.kernel.org > Subject: Re: [P

Fwd: [PATCH 001/001] Adding support "PSC Scanning, Magellan 800i" in cdc-acm

2012-12-23 Thread Den Ladin
Adding support "PSC Scanning, Magellan 800i" in cdc-acm Very simple, but very necessary. Suitable for all versions of the kernel > 2.6 patch-3.2.0-magellan-800i Description: Binary data patch-3.7.1-magellan-800i Description: Binary data