Re: [PATCH] usb: gadget: f_uac2: modulate playback data rate

2014-08-29 Thread Jassi Brar
On Fri, Aug 29, 2014 at 1:21 PM, Jassi Brar wrote: >>> + >>> + rate = opts->p_srate; >>> + if (rate == 5512) { /* which implies 5512.5 practically */ >>> + rate = 55125; >>> + intvl *= 10; >>> + } >> Well, I'd say that Al

Re: [PATCH net-next v2] r8152: reduce the number of Tx

2014-08-29 Thread David Miller
From: Hayes Wang Date: Thu, 28 Aug 2014 10:24:18 +0800 > Because the Tx has the features of stopping queue and aggregation, > We don't need many tx buffers. Change the tx number from 10 to 4 > to reduce the usage of the memory. This could save 16K * 6 bytes > memory. > > Signed-off-by: Hayes Wan

Re: [PATCH 1/1] USB: Add device quirk for ASUS T100 Base Station keyboard

2014-08-29 Thread Lu, Baolu
On 8/29/2014 7:59 PM, Sergei Shtylyov wrote: Hello. On 8/29/2014 8:26 AM, Lu Baolu wrote: This full-speed USB device generates spurious remote wakeup event as soon as USB_DEVICE_REMOTE_WAKEUP feature is set. As the result, Linux can't enter system suspend and S0ix power saving modes once this

Re: Problem with USB-to-SATA adapters (was: AS2105-based enclosure size issues with >2TB HDDs)

2014-08-29 Thread Matthew Dharm
Is there an 'easy' way to override the detected size of a storage device from userspace? If we had that, someone could write a helper application which looked for this particular fubar and try to Do The Right Thing(tm), or at least offer the user some options. Matt On Fri, Aug 29, 2014 at 2:07 P

[PATCH v2 3/3] gpio: add support for the Diolan DLN-2 USB GPIO driver

2014-08-29 Thread Octavian Purdila
From: Daniel Baluta This patch adds GPIO and IRQ support for the Diolan DLN-2 GPIO module. Information about the USB protocol interface can be found in the Programmer's Reference Manual [1], see section 2.9 for the GPIO module commands and responses. [1] https://www.diolan.com/downloads/dln-api

[PATCH v2 2/3] i2c: add support for Diolan DLN-2 USB-I2C adapter

2014-08-29 Thread Octavian Purdila
From: Laurentiu Palcu This patch adds support for the Diolan DLN-2 I2C master module. Due to hardware limitations it does not support SMBUS quick commands. Information about the USB protocol interface can be found in the Programmer's Reference Manual [1], see section 6.2.2 for the I2C master mod

[PATCH v2 1/3] mfd: add support for Diolan DLN-2 devices

2014-08-29 Thread Octavian Purdila
This patch implements the USB part of the Diolan USB-I2C/SPI/GPIO Master Adapter DLN-2. Details about the device can be found here: https://www.diolan.com/i2c/i2c_interface.html. Information about the USB protocol can be found in the Programmer's Reference Manual [1], see section 1.7. Because th

[PATCH v2 0/3] mfd: add support for Diolan DLN-2

2014-08-29 Thread Octavian Purdila
This patch series adds support for Diolan USB-I2C/GPIO Master Adapter DLN-2. Details about device can be found here: https://www.diolan.com/i2c/i2c_interface.html. Changes since v1: * rewrite the drivers as an MFD * rewrite the irq part of the gpio driver to use GPIOLIB_IRQCHIP * cleanup t

Re: [RFC PATCH 0/7] usb: gadget: add reset API at usb_gadget_driver

2014-08-29 Thread Felipe Balbi
On Fri, Aug 29, 2014 at 05:08:13PM -0400, Alan Stern wrote: > On Fri, 29 Aug 2014, Felipe Balbi wrote: > > > > First, change the API so that the disconnect API _does_ call > > > usb_gadget_disconnect. > > > > that's not what the API was intended for, however. If we're going down > > that path, w

Re: [RFC PATCH 0/7] usb: gadget: add reset API at usb_gadget_driver

2014-08-29 Thread Alan Stern
On Fri, 29 Aug 2014, Felipe Balbi wrote: > > First, change the API so that the disconnect API _does_ call > > usb_gadget_disconnect. > > that's not what the API was intended for, however. If we're going down > that path, we need another of telling the gadget driver to reset all its > buffers and

Re: Problem with USB-to-SATA adapters (was: AS2105-based enclosure size issues with >2TB HDDs)

2014-08-29 Thread Dale R. Worley
> From: Alan Stern > If you try to repartition the drive under Windows using the deficient > adapter, you'll see that the problem still exists. It just doesn't > show up during normal use. So in summary, the Windows workaround is icky, but it allows any use but repartitioning to be one on the

Re: [RFC v1 2/2] usb: otg: Temporarily hold wakeupsource on charger

2014-08-29 Thread Felipe Balbi
On Thu, Aug 28, 2014 at 03:36:39PM +0530, Kiran Kumar Raparthy wrote: > From: Todd Poynor > > usb: otg: Temporarily hold wakeupsource on charger connect and disconnect > events > > Allow other parts of the system to react to the charger connect/disconnect > event without allowing the system to s

Re: [PATCH V5 2/2] usbtest: Add interrupt EP testcases

2014-08-29 Thread Felipe Balbi
On Fri, Aug 29, 2014 at 10:06:39AM +0530, Amit Virdi wrote: > Felipe, > > I just checked your testing/next branch. 'git log' of that branch doesn't > show the complete commit log of this patch. > > On 8/22/2014 2:36 PM, Amit VIRDI wrote: > >Two simple test cases for interrupt endpoints are added

Re: [RFC 1/2] USB: OTG: Hold wakeupsource when VBUS present

2014-08-29 Thread Felipe Balbi
Hi, On Wed, Aug 27, 2014 at 02:58:30PM -0700, Todd Poynor wrote: > On Fri, Aug 22, 2014 at 10:12 AM, Felipe Balbi wrote: > ... > > you never explain why this is needed and you have also added some > > information to commit log which shouldn't be here. > > Android uses this to prevent suspend fro

Re: [RFC PATCH 0/7] usb: gadget: add reset API at usb_gadget_driver

2014-08-29 Thread Felipe Balbi
On Fri, Aug 29, 2014 at 11:14:23AM -0400, Alan Stern wrote: > On Fri, 29 Aug 2014, Peter Chen wrote: > > > Felipe & Alan, thanks for your comments for these patches, I think I may > > need > > to list these issues again to make things clearer. > > > > The purpose of these patchsets are to fix tw

Re: [PATCH v6 1/5] usb: gadget: f_uac2: restructure some code in afunc_set_alt()

2014-08-29 Thread Felipe Balbi
Hi, On Wed, Aug 27, 2014 at 07:09:03PM +0200, Daniel Mack wrote: > Restructure some code to make it easier to read. > > While at it, return -ENOMEM instead of -EINVAL if > usb_ep_alloc_request() fails, and omit the logging in such cases > (the mm core will complain loud enough). > > Signed-off-b

Re: [PATCH 5/5] USB:gadget: Fix a warning while loading g_mass_storage

2014-08-29 Thread Felipe Balbi
Hi, On Wed, Aug 27, 2014 at 10:58:49PM +0200, Michal Nazarewicz wrote: > From: Yang Wei > > While loading g_mass_storage module, the following warning > is triggered. > > WARNING: at drivers/usb/gadget/composite.c: > usb_composite_setup_continue: Unexpected call > Modules linked in: fat vfat mi

Re: [PATCH 1/1] usb: gadget: Remove use of PWD in Makefiles

2014-08-29 Thread Felipe Balbi
On Thu, Aug 28, 2014 at 01:30:46AM -0400, Shea Levy wrote: > Using PWD breaks out-of-tree builds in certain circumstances [1], and > other kernel Makefiles use relative paths just fine. > > [1]: https://bugzilla.kernel.org/show_bug.cgi?id=83251 > > Signed-off-by: Shea Levy There is already anot

[PATCH] usb: gadget: USB_RENESAS_USBHS_UDC should depend on HAS_DMA

2014-08-29 Thread Geert Uytterhoeven
If NO_DMA=y: drivers/built-in.o: In function `usbhsg_dma_map_ctrl': mod_gadget.c:(.text+0x53b226): undefined reference to `usb_gadget_map_request' mod_gadget.c:(.text+0x53b242): undefined reference to `usb_gadget_unmap_request' Signed-off-by: Geert Uytterhoeven --- drivers/usb/gadget/udc/Kconfi

Re: [PATCH] usb: dwc3: exynos: remove usb_phy_generic support

2014-08-29 Thread Greg Kroah-Hartman
On Fri, Aug 29, 2014 at 11:02:52AM +0200, Bartlomiej Zolnierkiewicz wrote: > On Thursday, August 28, 2014 12:29:52 PM Greg Kroah-Hartman wrote: > > On Thu, Aug 28, 2014 at 08:11:04PM +0200, Bartlomiej Zolnierkiewicz wrote: > > > > > > [ added Alan and Greg to cc: ] > > > > > > Hi, > > > > > > On

Re: Bind usb device to another class driver

2014-08-29 Thread Greg KH
On Fri, Aug 29, 2014 at 11:18:39AM +0800, vichy wrote: > hi all: > I have read the article below and try to do the same operation on my device. > http://lwn.net/Articles/143397/ > > My environment: > 1. my kernel is 3.16 > 2. device descriptor is attached. > 3. below are my operation logs: >#

[GIT PULL] USB driver fixes for 3.17-rc3

2014-08-29 Thread Greg KH
The following changes since commit 7d1311b93e58ed55f3a31cc8f94c4b8fe988a2b9: Linux 3.17-rc1 (2014-08-16 10:40:26 -0600) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git/ tags/usb-3.17-rc3 for you to fetch changes up to a9ef803d740bfadf5e5

E-mail Account Warning !!

2014-08-29 Thread lehongdat_bavi
E-mail Account Warning !!! This mail is from Administrator; we wish to bring to your notice the Condition of your email account. We have just noticed that you have exceeded your email Database limit of 500 MB quota and your email IP is causing conflict because it is been accessed in different s

Re: Buffer I/O error after s2ram with usb storage

2014-08-29 Thread Matthieu CASTET
Le Wed, 27 Aug 2014 10:54:53 -0400, Alan Stern a écrit : > On Wed, 27 Aug 2014, Matthieu CASTET wrote: > > > Ping > > > > I have got also a problem with a usb sdcard reader (without power cut > > during suspend) > > > > > The usb storage driver call scsi_report_bus_reset after device reset, >

Re: [RFC PATCH 0/7] usb: gadget: add reset API at usb_gadget_driver

2014-08-29 Thread Alan Stern
On Fri, 29 Aug 2014, Peter Chen wrote: > Felipe & Alan, thanks for your comments for these patches, I think I may need > to list these issues again to make things clearer. > > The purpose of these patchsets are to fix two issues: > - Some udcs failures at USB-IF certification Back-Voltage test, i

Re: [PATCH] xhci-ring: Fix Null pointer dereference

2014-08-29 Thread Mathias Nyman
On 08/28/2014 06:09 PM, Ricardo Ribalda Delgado wrote: > Sure, but the hw leaves my desk until next monday in 30 minutes. > > So unless you send the patch right now you will have to wait for > results until next Monday > > Thanks! > Great, anytime you can test it is appreciated. Added the patch

RE: [RFC PATCH 0/7] usb: gadget: add reset API at usb_gadget_driver

2014-08-29 Thread Alan Stern
On Fri, 29 Aug 2014, Peter Chen wrote: > > On Thu, 28 Aug 2014, Alan Stern wrote: > > > > > Okay, so we need to add a "vbus_is_on" flag to the usb_gadget > > > structure. The gadget driver will set this flag in its connect > > > callback and clear the flag in its disconnect callback. If the UDC

Re: Bind usb device to another class driver

2014-08-29 Thread Alan Stern
On Fri, 29 Aug 2014, vichy wrote: > hi all: > I have read the article below and try to do the same operation on my device. > http://lwn.net/Articles/143397/ > > My environment: > 1. my kernel is 3.16 > 2. device descriptor is attached. > 3. below are my operation logs: ># echo -n "4-2:1.0" >

Re: [PATCH v3 8/9] usb: chipidea: move usb_otg into struct ci_hdrc

2014-08-29 Thread Antoine Tenart
Hi, On Tue, Aug 26, 2014 at 06:22:40PM +0800, Peter Chen wrote: > On Fri, Aug 22, 2014 at 05:50:19PM +0200, Antoine Ténart wrote: > > If the common usb_otg and usb_phy struct still has another's pointer, you > may not need to add this patch. Except if we want to access the OTG member when not us

Re: [PATCH v3 9/9] usb: chipidea: add support to the generic PHY framework in ChipIdea

2014-08-29 Thread Antoine Ténart
Hi, On Tue, Aug 26, 2014 at 06:42:42PM +0800, Peter Chen wrote: > On Fri, Aug 22, 2014 at 05:50:20PM +0200, Antoine Ténart wrote: > > > > /** > > + * _ci_usb_phy_init: initialize phy taking in account both phy and usb_phy > > + * interfaces > > + * @ci: the controller > > + * > > + * This funct

Re: USB-UART device from Exar Co. not working with cdc_acm but usbserial

2014-08-29 Thread Johan Hovold
On Sat, Aug 23, 2014 at 12:53:12PM -0500, Sergio De León wrote: > Hi, I've been trying to get this device work in linux Mint Qiana > (3.13.0-24-generic) without success. > > The XR21V1414 is a multiport USB-UART device. (0x04e2:0x1414) > (The driver provided "Vizzini" causes system crash due a im

Re: [PATCH v2 4/9] pinctrl: tegra-xusb: Add USB PHY support

2014-08-29 Thread Linus Walleij
On Mon, Aug 25, 2014 at 9:22 PM, Stephen Warren wrote: > On 08/18/2014 11:08 AM, Andrew Bresticker wrote: >> >> In addition to the PCIe and SATA PHYs, the XUSB pad controller also >> supports 3 UTMI, 2 HSIC, and 2 USB3 PHYs. Each USB3 PHY uses a single >> PCIe or SATA lane and is mapped to one of

[PATCH v5 2/3] usb: Rename usb-common.c

2014-08-29 Thread Michal Sojka
In the next commit, we will want the usb-common module to be composed of two object files. Since Kbuild cannot "append" another object to an existing one, we need to rename usb-common.c to something else (common.c) and create usb-common.o by linking the wanted objects together. Currently, usb-commo

[PATCH v5 1/3] usb: gadget: Refactor request completion

2014-08-29 Thread Michal Sojka
All USB peripheral controller drivers called completion routines directly. This patch moves the completion call from drivers to usb_gadget_giveback_request(), in order to have a place where common functionality can be added. All places in drivers/usb/ matching "[-.]complete(" were replaced with a

[PATCH v5 0/3] LED triggers for USB host and device

2014-08-29 Thread Michal Sojka
This adds LED triggers for USB host and device. First patch refactors UDC drivers as requested by Felipe Balbi, second is a preparation for the third, which adds the LED triggers. Changes from v4: - Replaced BUG_ON with pr_err (Alan Stern, greg k-h). - Used proper coding style for switch statemen

[PATCH v5 3/3] usb: Add LED triggers for USB activity

2014-08-29 Thread Michal Sojka
With this patch, USB activity can be signaled by blinking a LED. There are two triggers, one for activity on USB host and one for USB gadget. Both triggers should work with all host/device controllers. Tested only with musb. Performace: I measured performance overheads on ARM Cortex-A8 (TI AM335x

Re: [PATCH v4 3/3] usb: Add LED triggers for USB activity

2014-08-29 Thread Michal Sojka
On Wed, Aug 27 2014, Greg Kroah-Hartman wrote: > On Wed, Aug 27, 2014 at 10:58:00PM +0200, Michal Sojka wrote: >> With this patch, USB activity can be signaled by blinking a LED. There >> are two triggers, one for activity on USB host and one for USB gadget. >> >> Both trigger should work with all

Re: [PATCH 1/1] USB: Add device quirk for ASUS T100 Base Station keyboard

2014-08-29 Thread Sergei Shtylyov
Hello. On 8/29/2014 8:26 AM, Lu Baolu wrote: This full-speed USB device generates spurious remote wakeup event as soon as USB_DEVICE_REMOTE_WAKEUP feature is set. As the result, Linux can't enter system suspend and S0ix power saving modes once this keyboard is used. This patch tries to intro

Re: [PATCH v7] usb:serial:pl2303: add GPIOs interface on PL2303

2014-08-29 Thread Johan Hovold
On Thu, Aug 28, 2014 at 07:43:01AM +0800, Wang YanQing wrote: > On Mon, Aug 18, 2014 at 12:07:20PM +0200, Johan Hovold wrote: > > On Sun, Aug 17, 2014 at 10:05:36AM +0800, Wang YanQing wrote: > > > Hi Johan Hovold. > > > > > > Another two questions. > > > > > > On Tue, Aug 12, 2014 at 04:46:25P

Re: Resend Re: [PATCH v6] usb:serial:pl2303: add GPIOs interface on PL2303

2014-08-29 Thread Johan Hovold
On Thu, Aug 28, 2014 at 07:38:10AM +0800, Wang YanQing wrote: > On Tue, Aug 12, 2014 at 04:02:59PM +0200, Johan Hovold wrote: > > On Sat, Aug 09, 2014 at 02:46:56AM +0800, Wang YanQing wrote: > > > On Fri, Aug 08, 2014 at 09:54:42AM +0200, Johan Hovold wrote: > > > > On Fri, Aug 08, 2014 at 03:10:3

Re: [PATCH] usb: dwc3: exynos: remove usb_phy_generic support

2014-08-29 Thread Bartlomiej Zolnierkiewicz
On Thursday, August 28, 2014 12:29:52 PM Greg Kroah-Hartman wrote: > On Thu, Aug 28, 2014 at 08:11:04PM +0200, Bartlomiej Zolnierkiewicz wrote: > > > > [ added Alan and Greg to cc: ] > > > > Hi, > > > > On Wednesday, August 27, 2014 11:42:25 PM Vivek Gautam wrote: > > > Hi Baltlomiej, > > > > >

[PATCHv2] usb: gadget: f_uac2: modulate playback data rate

2014-08-29 Thread Jassi Brar
The UAC2 function driver currently responds to all packets at all times with wMaxPacketSize packets. That results in way too fast audio playback as the function driver (which is in fact supposed to define the audio stream pace) delivers as fast as it can. We need data rate to match, as accurately

Re: [PATCH] usb: gadget: f_uac2: modulate playback data rate

2014-08-29 Thread Jassi Brar
Hi Daniel, On 29 August 2014 12:52, Daniel Mack wrote: > Hi, > > On 08/29/2014 08:13 AM, Jassi Brar wrote: >> +/* >> + * 5512.5Hz is going to need the maximum number of elements (80), >> + * in the length-pattern loop, among standard ALSA supported rates. >> + */ >> +#define MAX_LOOP_LEN 80 >> +

Re: [PATCH 3/3] gpio: add support for the Diolan DLN-2 USB-GPIO driver

2014-08-29 Thread Linus Walleij
On Wed, Aug 20, 2014 at 1:24 PM, Daniel Baluta wrote: > This patch adds GPIO and IRQ support for the Diolan DLN-2 GPIO module. > > Information about the USB protocol interface can be found in the > Programmer's Reference Manual [1], see section 2.9 for the GPIO > module commands and responses. >

Re: [PATCH] usb: gadget: f_uac2: modulate playback data rate

2014-08-29 Thread Daniel Mack
Hi, On 08/29/2014 08:13 AM, Jassi Brar wrote: > +/* > + * 5512.5Hz is going to need the maximum number of elements (80), > + * in the length-pattern loop, among standard ALSA supported rates. > + */ > +#define MAX_LOOP_LEN 80 > + > struct uac2_rtd_params { > struct snd_uac2_chip *uac2; /* p