Re: [V2 PATCH 00/27] mv-usb fix and enhancement patches

2012-12-03 Thread Haojian Zhuang
On Fri, Nov 30, 2012 at 10:10 PM, Felipe Balbi wrote: > Hi, > > On Tue, Nov 27, 2012 at 10:05:59PM -0500, Chao Xie wrote: >> The patches are divied into 4 parts >> 1. bug fixes >> usb: gadget: mv_udc: use udc_start and udc_stop functions >> usb: gadget: mv_udc: use devm_xxx for probe >> usb:

Re: [RFC PATCH 4/5] arm: omap2: support port power on lan95xx devices

2012-12-03 Thread Andy Green
On 04/12/12 10:39, the mail apparently from Ming Lei included: On Mon, Dec 3, 2012 at 12:52 PM, Andy Green wrote: +static void ehci_hub_power_off(struct power_controller *pc, struct device *dev) +{ + gpio_set_value(GPIO_HUB_NRESET, 0); + gpio_set_value(GPIO_HUB_POWER, 0); +} + +stat

Re: [RFC PATCH 4/5] arm: omap2: support port power on lan95xx devices

2012-12-03 Thread Andy Green
On 04/12/12 01:09, the mail apparently from Alan Stern included: On Mon, 3 Dec 2012, Andy Green wrote: Unless someone NAKs it for sure already (if you're already sure you're going to, please do so to avoid wasting time), I'll issue a try#2 of my code later which demonstrates what I mean. At le

Re: [RFC PATCH 4/5] arm: omap2: support port power on lan95xx devices

2012-12-03 Thread Ming Lei
On Tue, Dec 4, 2012 at 1:09 AM, Alan Stern wrote: > On Mon, 3 Dec 2012, Andy Green wrote: > >> Unless someone NAKs it for sure already (if you're already sure you're >> going to, please do so to avoid wasting time), I'll issue a try#2 of my >> code later which demonstrates what I mean. At least I

Re: [RFC PATCH 4/5] arm: omap2: support port power on lan95xx devices

2012-12-03 Thread Ming Lei
On Mon, Dec 3, 2012 at 12:52 PM, Andy Green wrote: +static void ehci_hub_power_off(struct power_controller *pc, struct device *dev) +{ + gpio_set_value(GPIO_HUB_NRESET, 0); + gpio_set_value(GPIO_HUB_POWER, 0); +} + +static struct usb_port_po

Re: [PATCH 2/2] usb/core: consider link speed while looking at bMaxPower

2012-12-03 Thread Alan Stern
On Mon, 3 Dec 2012, Sarah Sharp wrote: > On Mon, Dec 03, 2012 at 08:07:06PM +0100, Sebastian Andrzej Siewior wrote: > > 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 uni

Re: [PATCH 2/2] usb/core: consider link speed while looking at bMaxPower

2012-12-03 Thread Alan Stern
On Mon, 3 Dec 2012, Sebastian Andrzej Siewior wrote: > 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 adds a helper function usb_get_max_power() which com

Re: [alsa-devel] Missing exactly 3 of 8 audio packets?

2012-12-03 Thread Sarah Sharp
On Tue, Nov 27, 2012 at 12:20:42PM -0500, Alan Stern wrote: > The only thing that's strange is that there are so many dropped packets > and that they seem to fall into a small number of patterns. This > strongly suggests hardware issues. Daniel G., have you tried running > your tests on a diff

Re: [PATCH RESEND] tty: don't dead lock while flushing workqueue

2012-12-03 Thread Peter Hurley
On Tue, 2012-11-27 at 19:01 +0100, Sebastian Andrzej Siewior wrote: > Since commit 89c8d91e31f2 ("tty: localise the lock") I see a dead lock > in one of my dummy_hcd + g_nokia test cases. The first run one was usually > okay, the second often resulted in a splat by lockdep and the third was > usual

Re: [PATCH v2] usb_8dev: Add support for USB2CAN interface from 8 devices

2012-12-03 Thread Wolfgang Grandegger
On 12/03/2012 09:32 PM, krumbo...@universalnet.at wrote: > Hi Wolfgang! > >> >> And please also drop the remaining sysfs files for firmware and >> hardware. I thinks it's enough that the versions are printed when the >> device is probed. > > Systemadministrators often use versions for configurati

Re: [PATCH 2/2] usb/core: consider link speed while looking at bMaxPower

2012-12-03 Thread Sarah Sharp
On Mon, Dec 03, 2012 at 08:07:06PM +0100, Sebastian Andrzej Siewior wrote: > 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. Thanks for catching this, Sebastian! Howev

Re: USB issue with kernel 3.6

2012-12-03 Thread Piergiorgio Sartor
On Sun, Dec 02, 2012 at 03:54:39PM -0500, Alan Stern wrote: > On Sun, 2 Dec 2012, Piergiorgio Sartor wrote: > > > I'll give it another round, with dmesg > > > > How about the registers? Any hint there? > > No, not really. At least, not that I can tell at this point; maybe > later on it will be

Re: [PATCH v2] usb_8dev: Add support for USB2CAN interface from 8 devices

2012-12-03 Thread krumbo...@universalnet.at
Hi Marc! +/* Send open command to device */ +static int usb_8dev_cmd_open(struct usb_8dev *dev) +{ +struct can_bittiming *bt = &dev->can.bittiming; +struct usb_8dev_cmd_msg outmsg; +struct usb_8dev_cmd_msg inmsg; +u32 flags = 0; +u32 beflags; +u16 bebrp; +u32 ctrlmod

Re: [PATCH] usb2can: Add support for USB2CAN interface from 8 devices

2012-12-03 Thread krumbo...@universalnet.at
Hi Wolfgang! The Script checkpatch.pl didn't like this comment style. I'll change it again. I'm confused. Could you please show the comment and the checkpatch.pl message. I hope it does not argue against: http://lxr.linux.no/#linux+v3.6.8/Documentation/CodingStyle#L446 ... /* * Send comma

Re: [PATCH v2] usb_8dev: Add support for USB2CAN interface from 8 devices

2012-12-03 Thread krumbo...@universalnet.at
Hi Wolfgang! And please also drop the remaining sysfs files for firmware and hardware. I thinks it's enough that the versions are printed when the device is probed. Systemadministrators often use versions for configuration scripts. If you insist I will remove. +/* + * CAN driver for UAB "8

Re: AMD SB950 USB 2 don't work on kernel 3.x but worked on 2.6.x

2012-12-03 Thread Alan Stern
On Mon, 3 Dec 2012, dAgeCKo wrote: > > >> It looks to come from a merge. So I couldn't get any sources to check > >> for any diff. > > > > Probably you found the wrong commit. A merge should not cause any > > bugs. > > I bisected directly from drivers/usb. Could it be the reason ? Yes, it coul

[PATCH 2/2] usb/core: consider link speed while looking at bMaxPower

2012-12-03 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 adds a helper function usb_get_max_power() which computes the value based on config & usb_device's speed value. Th

[PATCH 1/2] usb/gadget: consider link speed for bMaxPower

2012-12-03 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

Re: AMD SB950 USB 2 don't work on kernel 3.x but worked on 2.6.x

2012-12-03 Thread dAgeCKo
It looks to come from a merge. So I couldn't get any sources to check for any diff. Probably you found the wrong commit. A merge should not cause any bugs. I bisected directly from drivers/usb. Could it be the reason ? Here is below the log of the bisect. As you could see I got several 'b

Re: [PATCH V2 2/3] Remove VLAIS usage from gadget code

2012-12-03 Thread Behan Webster
On 12-12-03 12:57 PM, Sebastian Andrzej Siewior wrote: On Thu, Nov 01, 2012 at 09:21:16AM +0200, Felipe Balbi wrote: then we can merge to net tree and handle the conflicts when merging to Linus, that'd be fine by me as long as people know how to solve the conflict properly ;-) Felipe please dro

Re: [RFC v2] usb/gadget: the start of the configfs interface

2012-12-03 Thread Michal Nazarewicz
> On Fri, Nov 30, 2012 at 07:40:31PM +0100, Michal Nazarewicz wrote: >> IMO that's actually mute argument since it can be done regardless. You >> can modprobe the module anyway. On Fri, Nov 30 2012, Felipe Balbi wrote: > fair enough, I just want to avoid doing any memory allocations, or HW > init

Re: [RFC v2] usb/gadget: the start of the configfs interface

2012-12-03 Thread Michal Nazarewicz
> On 11/30/2012 07:39 PM, Michal Nazarewicz wrote: >> Yeah, but what Felipe just made me realise is that if that's the case, >> than it makes no sense to have the functions directory outside of the >> gadget. Instead we should have something like: On Mon, Dec 03 2012, Sebastian Andrzej Siewior wr

Re: Add support for 2001:3c1e (D-Link DWA-125 rev B1) USB Wi-Fi adapter

2012-12-03 Thread Greg KH
On Mon, Dec 03, 2012 at 01:55:38PM +0200, Anca Emanuel wrote: > https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1085351 > > Quote: > > D-Link DWA-125/B1 is a relatively new USB Wi-Fi adapter, using a > Ralink chipset supported by the rt2800usb driver. Currently, to work > around the problem

Re: AMD SB950 USB 2 don't work on kernel 3.x but worked on 2.6.x

2012-12-03 Thread Alan Stern
On Mon, 3 Dec 2012, dAgeCKo wrote: > > I could finally find the commit which caused the regression I have: > > b5153163ed580e00c67bdfecb02b2e3843817b3e > > It looks to come from a merge. So I couldn't get any sources to check > for any diff. Probably you found the wrong commit. A merge shoul

Re: strings on the gadget side (was: Re: [RFC v2] usb/gadget: the start of the configfs interface)

2012-12-03 Thread Alan Stern
On Mon, 3 Dec 2012, Sebastian Andrzej Siewior wrote: > I think I can make iteven more complicated: Everything on the gadget > side uses language code 0x409 for en-us. The host-side on Linux takes > the first available language code and falls back to 0x409 if it (the > first reported) didn't work.

Re: [PATCH] hub: handle claim of enabled remote wakeup after reset

2012-12-03 Thread Alan Stern
On Mon, 3 Dec 2012, Oliver Neukum wrote: > Some touchscreens have buggy firmware which claims > remote wakeup to be enabled after a reset. They nevertheless > crash if the feature is cleared by the host. > Add a check for reset resume before checking for > an enabled remote wakeup feature. On comp

Re: [RFC PATCH 4/5] arm: omap2: support port power on lan95xx devices

2012-12-03 Thread Alan Stern
On Mon, 3 Dec 2012, Andy Green wrote: > Unless someone NAKs it for sure already (if you're already sure you're > going to, please do so to avoid wasting time), I'll issue a try#2 of my > code later which demonstrates what I mean. At least I guess it's useful > for comparative purposes. Before

Re: [RFC v2] usb/gadget: the start of the configfs interface

2012-12-03 Thread Alan Stern
On Mon, 3 Dec 2012, Sebastian Andrzej Siewior wrote: > On 11/30/2012 11:07 PM, Felipe Balbi wrote: > > On Fri, Nov 30, 2012 at 08:09:38PM +0100, Sebastian Andrzej Siewior wrote: > >> On 11/30/2012 05:43 PM, Alan Stern wrote: > >>> The iProduct,... names are already defined in the USB spec, and the

Re: [PATCH v2 13/22] mfd: omap-usb-host: override number of ports from platform data

2012-12-03 Thread Roger Quadros
On 12/02/2012 07:14 PM, Sergei Shtylyov wrote: > Hello. > > On 28-11-2012 18:49, Roger Quadros wrote: > >> Both OMAP4 and 5 exhibit the same revision ID in the REVISION register >> but they have different number of ports i.e. 2 and 3 respectively. >> So we can't rely on REVISION register for numb

strings on the gadget side (was: Re: [RFC v2] usb/gadget: the start of the configfs interface)

2012-12-03 Thread Sebastian Andrzej Siewior
On 12/03/2012 03:45 PM, Sebastian Andrzej Siewior wrote: then how about we drop the hungarian notation altogether ? Instead of sManufacturer we follow the host stack and just call it manufacturer. Likewise for all other fields ?? that would be manufacturer, product, serial. Fine by me. Anyone?

Re: [PATCH v2 22/22] mfd: omap-usb-host: Don't spam console on clk_set_parent failure

2012-12-03 Thread Roger Quadros
On 12/03/2012 09:48 AM, Bjørn Mork wrote: > Sergei Shtylyov writes: >> On 28-11-2012 18:49, Roger Quadros wrote: >>> ret = clk_set_parent(omap->utmi_clk[0], >>> omap->xclk60mhsp1_ck); >>> if (ret != 0) >>> - dev_err(dev,

Re: [PATCH v2 22/22] mfd: omap-usb-host: Don't spam console on clk_set_parent failure

2012-12-03 Thread Roger Quadros
On 12/02/2012 07:10 PM, Sergei Shtylyov wrote: > Hello. > > On 28-11-2012 18:49, Roger Quadros wrote: > >> clk_set_parent is expected to fail on OMAP3 platforms. We don't >> consider that as fatal so don't spam console. > >> Signed-off-by: Roger Quadros >> --- >> drivers/mfd/omap-usb-host.c |

Re: [RFC v2] usb/gadget: the start of the configfs interface

2012-12-03 Thread Sebastian Andrzej Siewior
On 11/30/2012 11:07 PM, Felipe Balbi wrote: On Fri, Nov 30, 2012 at 08:09:38PM +0100, Sebastian Andrzej Siewior wrote: On 11/30/2012 05:43 PM, Alan Stern wrote: The iProduct,... names are already defined in the USB spec, and their meanings are different from the way you are using them here. Si

Re: [PATCH] gadget/mass_storage: remove >= 0 check for unsigned type

2012-12-03 Thread Sebastian Andrzej Siewior
On Mon, Dec 03, 2012 at 02:50:31PM +0100, Michal Nazarewicz wrote: > While at it, could you also squash the following into your patch: Done & re-sent but please note that your patch had spaces instead of tabs. Sebastian -- To unsubscribe from this list: send the line "unsubscribe linux-usb" in th

[PATCH v2] gadget/mass_storage: remove >= 0 check for unsigned type

2012-12-03 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

Re: [PATCH v2] usb_8dev: Add support for USB2CAN interface from 8 devices

2012-12-03 Thread Marc Kleine-Budde
On 12/03/2012 01:50 AM, krumbo...@universalnet.at wrote: > Add device driver for USB2CAN interface from "8 devices" > (http://www.8devices.com). > > Signed-off-by: Bernd Krumboeck Please send your patch with git send-email, as with this one all tabs are converted to spaces. > --- > drivers/net

Re: [PATCH] gadget/mass_storage: remove >= 0 check for unsigned type

2012-12-03 Thread Michal Nazarewicz
On Mon, Dec 03 2012, Sebastian Andrzej Siewior wrote: > | 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)

Re: [PATCH v2] ARM: Exynos5250: Enabling dwc3-exynos driver

2012-12-03 Thread Vivek Gautam
Hi Kukjin, On Thu, Nov 8, 2012 at 2:02 PM, Vivek Gautam wrote: > Adding DWC3 device tree node for Exynos5250 along with the > device address and clock support needed for the controller. > Does this change needs looks fine? Any thoughts about this please ? > Signed-off-by: Vivek Gautam > --- >

Re: AMD SB950 USB 2 don't work on kernel 3.x but worked on 2.6.x

2012-12-03 Thread dAgeCKo
I could finally find the commit which caused the regression I have: b5153163ed580e00c67bdfecb02b2e3843817b3e It looks to come from a merge. So I couldn't get any sources to check for any diff. For interested people here is the page of the bug: https://bugzilla.kernel.org/show_bug.cgi?id=477

Re: [PATCH v2 2/2] ARM: Exynos5250: Enabling ohci-exynos driver

2012-12-03 Thread Vivek Gautam
Hi Kukjin, On Thu, Nov 8, 2012 at 1:51 PM, Vivek Gautam wrote: > Adding OHCI device tree node for Exynos5250 along with > the device base address. > Any thoughts about this please ? > Signed-off-by: Vivek Gautam > Acked-by: Jingoo Han > --- > .../devicetree/bindings/usb/exynos-usb.txt

Re: [PATCH v2 1/2] ARM: Exynos5250: Enabling ehci-s5p driver

2012-12-03 Thread Vivek Gautam
Hi Kukjin, On Thu, Nov 8, 2012 at 1:49 PM, Vivek Gautam wrote: > Adding EHCI device tree node for Exynos5250 along with > the device base adress and gpio line for vbus. > Any thoughts about this please ? > Signed-off-by: Vivek Gautam > Acked-by: Jingoo Han > --- > .../devicetree/bindings/usb

Re: cdma (ev-do) device

2012-12-03 Thread Dzianis Kahanovich
Greg KH пишет: > Can you make a patch up by following the directions in > Documentation/SubmittingPatches and send it to me and the mailing list, > so that I can apply it and give you the proper credit for this? Trying to following. I still unsure about correct full vendor name for variable name,

Re: [RFC v2] usb/gadget: the start of the configfs interface

2012-12-03 Thread Sebastian Andrzej Siewior
On 11/30/2012 07:39 PM, Michal Nazarewicz wrote: On Fri, Nov 30 2012, Sebastian Andrzej Siewior wrote: That won't work. You can only symlink an instance to one UDC. It is an instance after all. If you want two ACM ports you need two ACM folder in your functions folder: acm.ttyS0 acm.ttyS1 Ye

[PATCH] hub: handle claim of enabled remote wakeup after reset

2012-12-03 Thread Oliver Neukum
Some touchscreens have buggy firmware which claims remote wakeup to be enabled after a reset. They nevertheless crash if the feature is cleared by the host. Add a check for reset resume before checking for an enabled remote wakeup feature. On compliant devices the feature must be clear after a rese

Re: [RFC v2] usb/gadget: the start of the configfs interface

2012-12-03 Thread Sebastian Andrzej Siewior
On 11/30/2012 05:04 PM, Felipe Balbi wrote: Hi, Hi, # echo acm.2,obex.3,msc> \ /sys/kernel/config/usb_gadget/dwc3.0/gadget0/config0/functions # echo ffs,sourcesink> \ /sys/kernel/config/usb_gadget/dwc3.0/gadget0/config1/functions what is wrong with having the functions withi

Re: [PATCH V2 2/3] Remove VLAIS usage from gadget code

2012-12-03 Thread Sebastian Andrzej Siewior
On Thu, Nov 01, 2012 at 09:21:16AM +0200, Felipe Balbi wrote: > then we can merge to net tree and handle the conflicts when merging to > Linus, that'd be fine by me as long as people know how to solve the > conflict properly ;-) Felipe please drop this patch. I don't like this VLAIS patch and its

Add support for 2001:3c1e (D-Link DWA-125 rev B1) USB Wi-Fi adapter

2012-12-03 Thread Anca Emanuel
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1085351 Quote: D-Link DWA-125/B1 is a relatively new USB Wi-Fi adapter, using a Ralink chipset supported by the rt2800usb driver. Currently, to work around the problem (it's missing in all present kernel versions, up to and including 3.7.x), I

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

2012-12-03 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

Re: [PATCH 06/16] usb/gadget: convert source sink and loopback to new function interface

2012-12-03 Thread Sebastian Andrzej Siewior
On Fri, Nov 30, 2012 at 04:51:16PM +0200, Felipe Balbi wrote: > On Tue, Nov 20, 2012 at 11:53:02PM +0100, Michal Nazarewicz wrote: > > > * Felipe Balbi | 2012-11-20 14:14:47 [+0200]: > > >> now this looks awfully wrong. Why don't you just expose the modules to > > >> userland (in fact they already

Re: [PATCH v2] usb_8dev: Add support for USB2CAN interface from 8 devices

2012-12-03 Thread Wolfgang Grandegger
Hi, at a closer look I see a few more issues: Please use s/dev_warn(netdev->dev.parent,/netdev_warn(/ for dev_warn and friends. You can drop the do_set_bittiming callback if it's not needed. There is no need for a dummy function, IIRC. And please also drop the remaining sysfs files for firmware