Re: [PATCH 4/4] PM: Eliminate CONFIG_PM_RUNTIME

2014-12-19 Thread Geert Uytterhoeven
On Fri, Dec 19, 2014 at 3:03 AM, Rafael J. Wysocki wrote: > --- linux-pm.orig/arch/mips/configs/lemote2f_defconfig > +++ linux-pm/arch/mips/configs/lemote2f_defconfig > @@ -37,7 +37,7 @@ CONFIG_MIPS32_N32=y > CONFIG_PM=y ^^^ > CONFIG_HIBERNATION=y > CONFIG_PM_STD_PARTITION="/dev/hda3"

Re: [PATCH 0/3] usb: chipidea: add one errata for revision 2.40a

2014-12-19 Thread Sanchayan Maity
On 12/19/2014 12:19 PM, Peter Chen wrote: > >> On 12/18/2014 06:47 PM, Matthieu CASTET wrote: >>> Le Wed, 17 Dec 2014 20:40:29 +0800, >>> Peter Chen a écrit : >>> On Wed, Dec 17, 2014 at 05:31:40PM +0530, Sanchayan Maity wrote: > On 12/17/2014 02:05 PM, Peter Chen wrote: >> Hi all,

[PATCH net-next 2/2] r8152: check the status before submitting rx

2014-12-19 Thread Hayes Wang
Don't submit the rx if the device is unplugged, linking down, or stopped. Signed-off-by: Hayes Wang --- drivers/net/usb/r8152.c | 5 + 1 file changed, 5 insertions(+) diff --git a/drivers/net/usb/r8152.c b/drivers/net/usb/r8152.c index 59b70c5..b39b2e4 100644 --- a/drivers/net/usb/r8152.c +

[PATCH net-next 1/2] r8152: adjust set_carrier

2014-12-19 Thread Hayes Wang
Update the tp->speed at the beginning of the function. Then, the other fucntion could use it for checking linking status. Signed-off-by: Hayes Wang --- drivers/net/usb/r8152.c | 11 +-- 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/drivers/net/usb/r8152.c b/drivers/net/us

[PATCH net-next 0/2] r8152: adjust r8152_submit_rx

2014-12-19 Thread Hayes Wang
Avoid r8152_submit_rx() from submitting rx during unexpected moment. This could reduce the time of stopping rx. For patch #1, the tp->speed should be updated early. Then, the patch #2 could use it to check the current linking status. Hayes Wang (2): r8152: adjust set_carrier r8152: check the

[PATCH 2/3] usb: chipidea: Add chipidea revision information

2014-12-19 Thread Sanchayan Maity
Define ci_get_revision API to know the controller revision information according to chipidea 1.1a, 2.0a, 2.4 and 2.5a spec. Besides, add one entry in struct ci_hdrc to indicate revision information. This can be used for adding different code for revisions, implementing erratas. Signed-off-by: Sanc

[PATCH 3/3] usb: chipidea: Add errata for revision 2.40a

2014-12-19 Thread Sanchayan Maity
At chipidea revision 2.40a, there is a below errata: 9000531823 B2-Medium Adding a dTD to a Primed Endpoint May Not Get Recognized Title: Adding a dTD to a Primed Endpoint May Not Get Recognized Impacted Configuration: All device mode configurations. Description: There is an issue with the ad

[PATCH 1/3] usb: chipidea: Add identification registers access APIs

2014-12-19 Thread Sanchayan Maity
Using hw_write_id_reg and hw_read_id_reg to write and read identification registers contents. This can be used to get controller information, change some system configurations and so on. Signed-off-by: Sanchayan Maity --- drivers/usb/chipidea/ci.h | 53 +

[PATCH 0/3] usb: chipidea: add one errata for revision 2.40a

2014-12-19 Thread Sanchayan Maity
The first two patches add identification register API's. These can be used to get controller's revision. The third patch implements an errata for revision 2.40a. Not sure which other SOCs implement this version of the Chipidea core but this fixes the usb client issue observed on Vybrids. The patc

Re: USB OTG doesn't work in HOST mode on OMAP3 processor on 3.18-rc5

2014-12-19 Thread Eduard Gavin
Hi Everybody, After several test with IGEPv2 board (OMAP3) and linux kernel 3.17 and 3.18, the OTG works but, (from my point of view) with an weird behaviour. The OTG like a Host only is activated after load a gadget driver, I mean that, If I plug a USB memory dongle in the OTG port before load a

Re: [PATCH 04/29] usb: dwc2: gadget: don't embedded ep0 buffers

2014-12-19 Thread Sergei Shtylyov
Hello. On 12/18/2014 9:53 PM, Mian Yousaf Kaukab wrote: s/embedded/embed/ in the subject. When using DMA, data of the previous setup packet can be read back from cache because ep0 and ctrl buffers are embedded in struct s3c_hsotg. Allocate buffers instead of embeddeding them. s/embedde

Re: [PATCH 05/29] usb: dwc2: gadget: write correct value in ahbcfg register

2014-12-19 Thread Sergei Shtylyov
On 12/18/2014 9:53 PM, Mian Yousaf Kaukab wrote: From: Gregory Herrero Felipe requires some change log in every patch. Signed-off-by: Gregory Herrero [...] WBR, Sergei -- To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to majord...@vger.

Re: [PATCH 07/29] usb: dwc2: gadget: add device tree property to enable dma

2014-12-19 Thread Sergei Shtylyov
On 12/18/2014 9:53 PM, Mian Yousaf Kaukab wrote: From: Gregory Herrero * Add an of specific function to parse device node properties. * Enable dma usage only if device tree property 'g_use_dma' is present. Hyphen is preferred to underscore in the device tree prop names. Signed-off-by:

RE: [PATCH 04/29] usb: dwc2: gadget: don't embedded ep0 buffers

2014-12-19 Thread Kaukab, Yousaf
Hi, Thank you for reviewing these patches. > -Original Message- > From: Sergei Shtylyov [mailto:sergei.shtyl...@cogentembedded.com] > Sent: Friday, December 19, 2014 1:34 PM > To: Kaukab, Yousaf; linux-usb@vger.kernel.org; ba...@ti.com > Cc: Herrero, Gregory; pa...@synopsys.com > Subject:

RE: [PATCH 05/29] usb: dwc2: gadget: write correct value in ahbcfg register

2014-12-19 Thread Kaukab, Yousaf
Hi, > -Original Message- > From: Sergei Shtylyov [mailto:sergei.shtyl...@cogentembedded.com] > Sent: Friday, December 19, 2014 1:36 PM > To: Kaukab, Yousaf; linux-usb@vger.kernel.org; ba...@ti.com > Cc: Herrero, Gregory; pa...@synopsys.com > Subject: Re: [PATCH 05/29] usb: dwc2: gadget: wr

Re: [PATCH v2] renesas_usbhs: fix platform init error message

2014-12-19 Thread Sergei Shtylyov
Hello. On 12/19/2014 4:33 AM, yoshihiro shimoda wrote: [...] There is a typo ("prove" instead of "probe") in the error message printed when the platform initialization fails. Replace that word with more fitting "init". Signed-off-by: Sergei Shtylyov this actually goes through me, I'll t

Re: [RESEND PATCH] usb: gadget: at91_udc: move prepare clk into process context

2014-12-19 Thread Luis Henriques
Hi Felipe, On Thu, Nov 20, 2014 at 01:50:49PM -0600, Felipe Balbi wrote: > On Wed, Nov 19, 2014 at 04:37:27PM +0100, Nicolas Ferre wrote: > > From: Ronald Wahl > > > > Commit 7628083227b6bc4a7e33d7c381d7a4e558424b6b (usb: gadget: at91_udc: > > prepare clk before calling enable) added clock prepa

Re: [RESEND PATCH] usb: gadget: at91_udc: move prepare clk into process context

2014-12-19 Thread Ronald Wahl
On 19.12.2014 14:51, Luis Henriques wrote: Hi Felipe, On Thu, Nov 20, 2014 at 01:50:49PM -0600, Felipe Balbi wrote: On Wed, Nov 19, 2014 at 04:37:27PM +0100, Nicolas Ferre wrote: From: Ronald Wahl Commit 7628083227b6bc4a7e33d7c381d7a4e558424b6b (usb: gadget: at91_udc: prepare clk before call

Re: [RESEND PATCH] usb: gadget: at91_udc: move prepare clk into process context

2014-12-19 Thread Nicolas Ferre
Le 19/12/2014 15:02, Ronald Wahl a écrit : > On 19.12.2014 14:51, Luis Henriques wrote: >> Hi Felipe, >> >> On Thu, Nov 20, 2014 at 01:50:49PM -0600, Felipe Balbi wrote: >>> On Wed, Nov 19, 2014 at 04:37:27PM +0100, Nicolas Ferre wrote: From: Ronald Wahl Commit 7628083227b6bc4a7e33d

Re: [RESEND PATCH] usb: gadget: at91_udc: move prepare clk into process context

2014-12-19 Thread Luis Henriques
On Fri, Dec 19, 2014 at 03:08:15PM +0100, Nicolas Ferre wrote: > Le 19/12/2014 15:02, Ronald Wahl a écrit : > > On 19.12.2014 14:51, Luis Henriques wrote: > >> Hi Felipe, > >> > >> On Thu, Nov 20, 2014 at 01:50:49PM -0600, Felipe Balbi wrote: > >>> On Wed, Nov 19, 2014 at 04:37:27PM +0100, Nicolas

Re: [PATCH 05/29] usb: dwc2: gadget: write correct value in ahbcfg register

2014-12-19 Thread Sergei Shtylyov
On 12/19/2014 3:45 PM, Kaukab, Yousaf wrote: [...] On 12/18/2014 9:53 PM, Mian Yousaf Kaukab wrote: From: Gregory Herrero Felipe requires some change log in every patch. We thought the patch is simple enough to be described by the subject. If this is required, I will add some de

Re: Proper delay function in host driver

2014-12-19 Thread Alan Stern
On Fri, 19 Dec 2014, vichy wrote: > hi all: > For HW bug, we have to mdelay(100) in getting root hub port status. That's quite a bug! 100 ms is a very long delay. With a bug that big, it's questionable whether the hardware will work correctly at all. > But it suffer system performance. > (The

RE: [DISCUSSION] USB device remote wakeup is not working for S3 case

2014-12-19 Thread Alan Stern
On Fri, 19 Dec 2014, Du, Changbin wrote: > > There's a simple solution: Call device_set_wakeup_enable() for the device! > > You can do this from the command line by: > > > > echo auto >/sys/bus/usb/devices/.../power/control > > > > where the "..." is the pathname for your device. > > > Yes,

USB Creative Soundcard non-functioning on 3.13 kernel and above

2014-12-19 Thread robtongue
Hello, I was told to email this to this list... I filed a kernel bug here: https://bugzilla.kernel.org/show_bug.cgi?id=90101 With the following content: "I have done extensive testing on this issue, and basically on any kernel version higher than or equal to 3.13, I am unable to use my USB Creat

Re: [PATCH net] r8152: drop the tx packet with invalid length

2014-12-19 Thread Eric Dumazet
On Fri, 2014-12-19 at 06:42 +, Hayes Wang wrote: > Excuse me. I try to implement ndo_gso_check() with kernel 3.18. > However, I still get packets with gso and their skb lengths are more > than the acceptable one. Do I miss something? > > +static bool rtl8152_gso_check(struct sk_buff *skb, str

Re: USB Creative Soundcard non-functioning on 3.13 kernel and above

2014-12-19 Thread Alan Stern
On Fri, 19 Dec 2014 robton...@gmail.com wrote: > Hello, I was told to email this to this list... I filed a kernel bug here: > > https://bugzilla.kernel.org/show_bug.cgi?id=90101 > > With the following content: > "I have done extensive testing on this issue, and basically on any kernel > version

Re: [PATCH net] r8152: drop the tx packet with invalid length

2014-12-19 Thread Eric Dumazet
On Fri, 2014-12-19 at 09:36 -0800, Eric Dumazet wrote: > On Fri, 2014-12-19 at 06:42 +, Hayes Wang wrote: > > > Excuse me. I try to implement ndo_gso_check() with kernel 3.18. > > However, I still get packets with gso and their skb lengths are more > > than the acceptable one. Do I miss someth

usb: musb: Scheduling of interrupt endpoints

2014-12-19 Thread Carsten Behling
Hi all, Long time ago, TI shipped a kernel named linux-2.6.32.17-psp03.01.01.39 with an additional kernel option for scheduling of interrupt endpoints. AFAIK, this seems to be the only possibility to attach more that 4 in endpoints to MUSB (at least on a DM368). This feature reserves one ha

Re: [PATCH net-next 2/2] r8152: check the status before submitting rx

2014-12-19 Thread David Miller
From: Hayes Wang Date: Fri, 19 Dec 2014 16:56:00 +0800 > Don't submit the rx if the device is unplugged, linking down, > or stopped. ... > @@ -1789,6 +1789,11 @@ int r8152_submit_rx(struct r8152 *tp, struct rx_agg > *agg, gfp_t mem_flags) > { > int ret; > > + /* The rx would be sto

Re: [PATCH 4/4] PM: Eliminate CONFIG_PM_RUNTIME

2014-12-19 Thread Rafael J. Wysocki
On Friday, December 19, 2014 09:13:29 AM Geert Uytterhoeven wrote: > On Fri, Dec 19, 2014 at 3:03 AM, Rafael J. Wysocki wrote: > > --- linux-pm.orig/arch/mips/configs/lemote2f_defconfig > > +++ linux-pm/arch/mips/configs/lemote2f_defconfig > > @@ -37,7 +37,7 @@ CONFIG_MIPS32_N32=y > > CONFIG_PM=y

Re: [PATCH 4/4] PM: Eliminate CONFIG_PM_RUNTIME

2014-12-19 Thread Kevin Hilman
"Rafael J. Wysocki" writes: [...] > Fixed up patch is appended, thanks! > > > --- > From: Rafael J. Wysocki > Subject: PM: Eliminate CONFIG_PM_RUNTIME > > Having switched over all of the users of CONFIG_PM_RUNTIME to use > CONFIG_PM directly, turn the latter into a user-selectable option > and

Re: [PATCH 4/4] PM: Eliminate CONFIG_PM_RUNTIME

2014-12-19 Thread Rafael J. Wysocki
On Friday, December 19, 2014 01:49:34 PM Kevin Hilman wrote: > "Rafael J. Wysocki" writes: > > [...] > > > Fixed up patch is appended, thanks! > > > > > > --- > > From: Rafael J. Wysocki > > Subject: PM: Eliminate CONFIG_PM_RUNTIME > > > > Having switched over all of the users of CONFIG_PM_RUNT

Re: USB Creative Soundcard non-functioning on 3.13 kernel and above

2014-12-19 Thread Alan Stern
> You'll have to collect a bunch of additional information. I'd like to > see the entry in /sys/kernel/debug/usb/devices that describes the sound > card, and the contents of the files under > /sys/kernel/debug/usb/ehci/:00:1a.0/. /sys/kernel/debug/usb/devices: - http://paste.ubuntu.com/95737