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

[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 m...@genesi-usa.com Tested-by: Steev Klimazewski

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

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

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 richard_hubb...@lavabit.com wrote: On Sun, 23 Dec 2012 11:01:28 -0800 Matthew Dharm

[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

[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

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

[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 bige...@linutronix.de --- 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 bige...@linutronix.de --- 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

[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 bige...@linutronix.de ---

[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: [c11f9555] __list_add+0x25/0xf0 |Call Trace: | [c12d4e21]

[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 bige...@linutronix.de ---

[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

[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

[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

[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 bige...@linutronix.de --- drivers/usb/gadget/composite.c | 17 - drivers/usb/gadget/f_acm.c | 21 - 2 files changed, 20 insertions(+),

[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 bige...@linutronix.de --- drivers/usb/gadget/Kconfig

[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

[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 unsigned int

[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

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