Re: About resume time optimization for bus resume routine

2012-10-16 Thread Peter Chen
On Fri, Oct 12, 2012 at 11:04:25AM -0400, Alan Stern wrote: On Fri, 12 Oct 2012, Peter Chen wrote: Taking EHCI controller as an example, it just needs to change ehci_bus_resume, if there is any enabled, unsuspended port, set hcd-unsuspended_device_on_port We don't need to do that.

[PATCH v2] usb: renesas_usbhs: gadget: add usb_gadget_ops :: pullup support

2012-10-16 Thread Kuninori Morimoto
This patch adds usbhs_sys_function_pullup() to control D+ line for USB function, and enabled pullup support on mod_gadget. Signed-off-by: Kuninori Morimoto kuninori.morimoto...@renesas.com --- v1 - v2 - add explain on log drivers/usb/renesas_usbhs/common.c |5 +

[PATCH v2] usb: renesas_usbhs: fixup __usbhs_for_each_pipe 1st pos

2012-10-16 Thread Kuninori Morimoto
__usbhs_for_each_pipe() is the macro which moves around each pipe, but it has a bug which didn't care about 1st pipe's position. Because of this bug, it moves around pipe0, pipe2, pipe3 ... even though it requested pipe1, pipe2, pipe3... This patch modifies it. Signed-off-by: Kuninori Morimoto

[PATCH 1/1] USB: EHCI: add condition for delay during the resume

2012-10-16 Thread Peter Chen
Without this condition, all controllers will do this delay, and increase the resume time. Only enabled and unsuspended port needs this delay, but Some buggy hardware(like Synopsys usb controller) will clear suspend bit once they receive/send resume signal, so it takes resume bit as consideration.

Re: usbutils for Mac OS X and Cygwin

2012-10-16 Thread Greg Kroah-Hartman
On Tue, Oct 16, 2012 at 09:57:16AM +0800, Xiaofan Chen wrote: Hi Greg, Sorry the previous email goes to the wrong linux kernel list. Now usbutils git almost builds successfully out of the box under Mac OS Xand Cygwin (using libusbx). Just wondering if you can accept the minor fix for Mac

Re: [RFC PATCH 1/3] mm: teach mm by current context info to not do I/O during memory allocation

2012-10-16 Thread Ming Lei
On Tue, Oct 16, 2012 at 1:49 PM, Minchan Kim minc...@kernel.org wrote: Fair enough but it wouldn't be a good idea that add new unlikely branch in allocator's fast path. Please move the check into slow path which could be in __alloc_pages_slowpath. Thanks for your comment. I have considered

Re: [RFC PATCH 3/3] USB: forbid memory allocation with I/O during bus reset if storage interface exits

2012-10-16 Thread Ming Lei
On Tue, Oct 16, 2012 at 12:48 AM, Greg Kroah-Hartman gre...@linuxfoundation.org wrote: No, don't limit us for no good reason, that's not acceptable at all. Patching old kernels when new devices show up that work on those old kernels (like USB network devices that follow the spec with no driver

Re: usbserial ftdi_sio problem

2012-10-16 Thread Bjørn Mork
Peter Stuge pe...@stuge.se writes: Greg KH wrote: But, if Mostafa is stuck at RHEL 6, there's nothing that we can do here to help out at all, sorry. Maybe he can help test a driver on an up-to-date kernel.org release, and then perhaps he can ask RH to backport the driver. It should also not

[PATCH v2 2/2] USB: DWC3: EXYNOS: Remove platform data for dwc3-exynos

2012-10-16 Thread Vivek Gautam
We are removing plat data which was used till now to init and exit phy. We no longer need this since dwc3-core takes care of initializing and shutting-down the phy using usb_phy_init() and usb_phy_shutdown(). Signed-off-by: Vivek Gautam gautam.vi...@samsung.com --- drivers/usb/dwc3/dwc3-exynos.c

[PATCH v2 1/2] USB: dwc3-exynos: Add support for device tree

2012-10-16 Thread Vivek Gautam
This patch adds support to parse probe data for dwc3-exynos driver using device tree. Signed-off-by: Vivek Gautam gautam.vi...@samsung.com --- drivers/usb/dwc3/dwc3-exynos.c | 20 1 files changed, 20 insertions(+), 0 deletions(-) diff --git

[PATCH v3 1/3] usb: dwc3: Add the suspend/resume functionality

2012-10-16 Thread Vikas Sajjan
Adds suspend and resume callbacks as part of the power management support to DWC3 controller Driver. This patch facilitates transition of DWC3 controller between D0 and D3 power states during suspend/resume cycles. Signed-off-by: Abhilash Kesavan a.kesa...@samsung.com Signed-off-by: Vikas C

[PATCH v3 2/3] usb: xhci: Add the suspend/resume functionality

2012-10-16 Thread Vikas Sajjan
Adds power management support to XHCI platform driver. This patch facilitates the transition of xHCI host controller between S0 and S3/S4 power states, during suspend/resume cycles. Signed-off-by: Abhilash Kesavan a.kesa...@samsung.com Signed-off-by: Vikas C Sajjan vikas.saj...@linaro.org CC:

[PATCH v3 3/3] exynos5: usb: dwc3: Add suspend/resume functionality

2012-10-16 Thread Vikas Sajjan
Adds suspend and resume callbacks to exynos dwc3 driver as part of power management support. This change does gating of dwc3 clock during suspend/resume cycles. Signed-off-by: Abhilash Kesavan a.kesa...@samsung.com Signed-off-by: Vikas C Sajjan vikas.saj...@linaro.org CC: Doug Anderson

Re: [PATCH v2 1/2] USB: dwc3-exynos: Add support for device tree

2012-10-16 Thread Felipe Balbi
On Tue, Oct 16, 2012 at 02:15:56PM +0530, Vivek Gautam wrote: This patch adds support to parse probe data for dwc3-exynos driver using device tree. Signed-off-by: Vivek Gautam gautam.vi...@samsung.com --- drivers/usb/dwc3/dwc3-exynos.c | 20 1 files changed, 20

Re: [PATCH REPOST] usb: phy: tegra remove include of mach/iomap.h

2012-10-16 Thread Felipe Balbi
Hi, On Mon, Oct 15, 2012 at 03:22:07PM -0600, Stephen Warren wrote: On 10/15/2012 01:22 PM, Felipe Balbi wrote: hi, On Mon, Oct 15, 2012 at 12:16:36PM -0600, Stephen Warren wrote: From: Stephen Warren swar...@nvidia.com Almost nothing from this file is used, and the file will

Re: [PATCH v3 2/3] usb: xhci: Add the suspend/resume functionality

2012-10-16 Thread Felipe Balbi
Hi, On Tue, Oct 16, 2012 at 03:15:37PM +0530, Vikas Sajjan wrote: Adds power management support to XHCI platform driver. This patch facilitates the transition of xHCI host controller between S0 and S3/S4 power states, during suspend/resume cycles. Signed-off-by: Abhilash Kesavan

Re: [PATCH v2 1/2] USB: dwc3-exynos: Add support for device tree

2012-10-16 Thread kishon
Hi, On Tuesday 16 October 2012 03:23 PM, Felipe Balbi wrote: On Tue, Oct 16, 2012 at 02:15:56PM +0530, Vivek Gautam wrote: This patch adds support to parse probe data for dwc3-exynos driver using device tree. Signed-off-by: Vivek Gautam gautam.vi...@samsung.com ---

Re: [PATCH v3 1/3] usb: dwc3: Add the suspend/resume functionality

2012-10-16 Thread Felipe Balbi
Hi, On Tue, Oct 16, 2012 at 03:15:36PM +0530, Vikas Sajjan wrote: Adds suspend and resume callbacks as part of the power management support to DWC3 controller Driver. This patch facilitates transition of DWC3 controller between D0 and D3 power states during suspend/resume cycles.

Re: [PATCH v2 1/2] USB: dwc3-exynos: Add support for device tree

2012-10-16 Thread Felipe Balbi
Hi, On Tue, Oct 16, 2012 at 03:36:43PM +0530, kishon wrote: Hi, On Tuesday 16 October 2012 03:23 PM, Felipe Balbi wrote: On Tue, Oct 16, 2012 at 02:15:56PM +0530, Vivek Gautam wrote: This patch adds support to parse probe data for dwc3-exynos driver using device tree. Signed-off-by:

Re: [PATCH v3 1/3] usb: dwc3: Add the suspend/resume functionality

2012-10-16 Thread Vikas Sajjan
Hi Felipe, On 16 October 2012 15:36, Felipe Balbi ba...@ti.com wrote: Hi, On Tue, Oct 16, 2012 at 03:15:36PM +0530, Vikas Sajjan wrote: Adds suspend and resume callbacks as part of the power management support to DWC3 controller Driver. This patch facilitates transition of DWC3 controller

Re: usbutils for Mac OS X and Cygwin

2012-10-16 Thread Xiaofan Chen
On Tue, Oct 16, 2012 at 3:07 PM, Greg Kroah-Hartman gre...@linuxfoundation.org wrote: On Tue, Oct 16, 2012 at 09:57:16AM +0800, Xiaofan Chen wrote: I only need one fix for Mac OS X as Apple's gcc compiler does not like --as-needed. I didn't think Apple used gcc anymore. How about testing to

Re: [RFC PATCH 1/3] mm: teach mm by current context info to not do I/O during memory allocation

2012-10-16 Thread Minchan Kim
On Tue, Oct 16, 2012 at 03:08:41PM +0800, Ming Lei wrote: On Tue, Oct 16, 2012 at 1:49 PM, Minchan Kim minc...@kernel.org wrote: Fair enough but it wouldn't be a good idea that add new unlikely branch in allocator's fast path. Please move the check into slow path which could be in

Re: usbutils for Mac OS X and Cygwin

2012-10-16 Thread Xiaofan Chen
On Tue, Oct 16, 2012 at 3:07 PM, Greg Kroah-Hartman gre...@linuxfoundation.org wrote: On Tue, Oct 16, 2012 at 09:57:16AM +0800, Xiaofan Chen wrote: Now usbutils git almost builds successfully out of the box under Mac OS Xand Cygwin (using libusbx). Just wondering if you can accept the minor

[PATCH] USB: cdc-acm: fix pipe type of write endpoint

2012-10-16 Thread Ming Lei
If the write endpoint is interrupt type, usb_sndintpipe() should be passed to usb_fill_int_urb() instead of usb_sndbulkpipe(). Cc: Oliver Neukum oli...@neukum.org Signed-off-by: Ming Lei ming@canonical.com --- drivers/usb/class/cdc-acm.c |2 +- 1 file changed, 1 insertion(+), 1

PDF documentation

2012-10-16 Thread Constantine Shulyupin
Hi, I have some questions and ideas about documentation in PDF format. During embedded SW development I often work with documentation, especially datasheets in PDF format. I have some issues with such documentation. It is not so easy to manage a lot of PDF documents sometimes with strange code in

Re: usbutils for Mac OS X and Cygwin

2012-10-16 Thread Xiaofan Chen
On Tue, Oct 16, 2012 at 9:15 PM, Xiaofan Chen xiaof...@gmail.com wrote: On Tue, Oct 16, 2012 at 3:07 PM, Greg Kroah-Hartman gre...@linuxfoundation.org wrote: On Tue, Oct 16, 2012 at 09:57:16AM +0800, Xiaofan Chen wrote: Now usbutils git almost builds successfully out of the box under Mac OS

Re: [RFC PATCH 1/3] mm: teach mm by current context info to not do I/O during memory allocation

2012-10-16 Thread Ming Lei
On Tue, Oct 16, 2012 at 9:09 PM, Minchan Kim minc...@kernel.org wrote: Good point. You can check it in __zone_reclaim and change gfp_mask of scan_control because it's never hot path. So could you make sure it is safe to move the branch into __alloc_pages_slowpath()? If so, I will add the

Re: [RFC PATCH 1/3] mm: teach mm by current context info to not do I/O during memory allocation

2012-10-16 Thread Minchan Kim
On Tue, Oct 16, 2012 at 09:47:03PM +0800, Ming Lei wrote: On Tue, Oct 16, 2012 at 9:09 PM, Minchan Kim minc...@kernel.org wrote: Good point. You can check it in __zone_reclaim and change gfp_mask of scan_control because it's never hot path. So could you make sure it is safe to move

Re: [Celinux-dev] PDF documentation

2012-10-16 Thread Bill Traynor
On Tue, Oct 16, 2012 at 9:22 AM, Constantine Shulyupin co...@makelinux.com wrote: Hi, I have some questions and ideas about documentation in PDF format. During embedded SW development I often work with documentation, especially datasheets in PDF format. I have some issues with such

Re: [PATCH v3 1/3] usb: dwc3: Add the suspend/resume functionality

2012-10-16 Thread Felipe Balbi
Hi, On Tue, Oct 16, 2012 at 05:10:39PM +0530, Vikas Sajjan wrote: Hi Felipe, On 16 October 2012 15:36, Felipe Balbi ba...@ti.com wrote: Hi, On Tue, Oct 16, 2012 at 03:15:36PM +0530, Vikas Sajjan wrote: Adds suspend and resume callbacks as part of the power management support to DWC3

Re: [ebeam PATCH v2 1/2] hid: Blacklist eBeam devices

2012-10-16 Thread Jiri Kosina
On Wed, 10 Oct 2012, Dmitry Torokhov wrote: Jiri, Are you OK with this change? Yes, please take it through your tree together with the proper driver and add Acked-by: Jiri Kosina jkos...@suse.cz to the HID blacklist additions. Thanks, -- Jiri Kosina SUSE Labs -- To unsubscribe

Re: PDF documentation

2012-10-16 Thread Peter Stuge
Constantine Shulyupin wrote: It is not so easy to manage a lot of PDF documents sometimes with strange code in file names. I tend to rename them in some way that allows me to find them quickly when I need them. It is not easy to store and share links to documentation. Storing is easy, I

Re: About resume time optimization for bus resume routine

2012-10-16 Thread Alan Stern
On Tue, 16 Oct 2012, Peter Chen wrote: --- usb-3.6.orig/drivers/usb/core/hcd.c +++ usb-3.6/drivers/usb/core/hcd.c @@ -2023,6 +2023,7 @@ int hcd_bus_resume(struct usb_device *rh struct usb_hcd *hcd = container_of(rhdev-bus, struct usb_hcd, self); int status;

Re: [PATCH 1/1] USB: EHCI: add condition for delay during the resume

2012-10-16 Thread Alan Stern
On Tue, 16 Oct 2012, Peter Chen wrote: Without this condition, all controllers will do this delay, and increase the resume time. Only enabled and unsuspended port needs this delay, but Some buggy hardware(like Synopsys usb controller) will clear suspend bit once they receive/send resume

Re: uhci irq race before term_td is allocated

2012-10-16 Thread Don Zickus
On Mon, Oct 15, 2012 at 05:31:01PM -0400, Alan Stern wrote: uhci_scan_schedule- uhci_clear_next_interrupt- uhci-term_td-status = ~cpu_to_hc32(uhci, TD_CTRL_IOC); This panics becase term_td is not allocated yet. Now I could be wrong about the interrupts and the uhci_start

Re: [Celinux-dev] PDF documentation

2012-10-16 Thread Wolfgang Denk
Dear Constantine Shulyupin, In message cae7jhc83bizy7tnysr+-x85tpenqtahuwso47q-6+xrf0fu...@mail.gmail.com you wrote: I have some questions and ideas about documentation in PDF format. During embedded SW development I often work with documentation, especially datasheets in PDF format. I have

Re: musb/musb_dsps.c:533]: (error) Buffer is accessed out of bounds

2012-10-16 Thread Daniel Mack
On 15.10.2012 23:23, David Binderman wrote: hello there, I just ran the static analyser cppcheck over the source code of the linux kernel version 3.7-rc1 It said [linux-3.7-rc1/drivers/usb/musb/musb_dsps.c:533]: (error) Buffer is accessed out of bounds The source code is

Re: PDF documentation

2012-10-16 Thread Mikael Pettersson
On Tue, 16 Oct 2012 15:22:52 +0200, Constantine Shulyupin co...@makelinux.com wrote: Hi, I have some questions and ideas about documentation in PDF format. During embedded SW development I often work with documentation, especially datasheets in PDF format. I have some issues with such

Re: [RFC] aio: remove retry and cancel

2012-10-16 Thread Benjamin LaHaise
On Mon, Oct 15, 2012 at 05:27:44PM -0700, Zach Brown wrote: The possibility of removing retry and cancelation came up a few times plumbers this year. I finally gave it a try. Removing retry is a good iea. It's of little value because retry happens in a kernel thread, not in the submitter's

Re: usb audio race at disconnect time

2012-10-16 Thread Takashi Iwai
At Mon, 15 Oct 2012 20:45:44 +0200, Takashi Iwai wrote: At Mon, 15 Oct 2012 19:41:40 +0200, Matthieu CASTET wrote: Hi Takashi, Takashi Iwai a écrit : At Fri, 12 Oct 2012 17:42:19 +0200, Matthieu CASTET wrote: Hi, Takashi Iwai a écrit : [Added Daniel and Clemens

[RFC PATCH v1 0/3] mm/PM/USB: memory allocation with no io in need

2012-10-16 Thread Ming Lei
Hi, This patch set introduces one process flag and trys to fix one deadlock problem on block device during runtime resume or usb bus reset. The 1st one is the change on include/sched.h and mm. The other 2 patches are applied again PM and USB subsystem to demo how to use the introduced mechanism

[RFC PATCH v1 1/3] mm: teach mm by current context info to not do I/O during memory allocation

2012-10-16 Thread Ming Lei
This patch introduces PF_MEMALLOC_NOIO on process flag('flags' field of 'struct task_struct'), so that the flag can be set by one task to avoid doing I/O inside memory allocation in the task's context. The patch trys to solve one deadlock problem caused by block device, and the problem may happen

[RFC PATCH v1 2/3] PM / Runtime: force memory allocation with no I/O during runtime_resume callbcack

2012-10-16 Thread Ming Lei
This patch applies the introduced memalloc_noio_save() and memalloc_noio_restore() to force memory allocation with no I/O during runtime_resume callback. Cc: Alan Stern st...@rowland.harvard.edu Cc: Oliver Neukum oneu...@suse.de Cc: Rafael J. Wysocki r...@sisk.pl Signed-off-by: Ming Lei

[RFC PATCH v1 3/3] USB: forbid memory allocation with I/O during bus reset

2012-10-16 Thread Ming Lei
If one storage interface or usb network interface(iSCSI case) exists in current configuration, memory allocation with GFP_KERNEL during usb_device_reset() might trigger I/O transfer on the storage interface itself and cause deadlock because the 'us-dev_mutex' is held in .pre_reset() and the

Re: usb audio race at disconnect time

2012-10-16 Thread Matthieu CASTET
Takashi Iwai a écrit : At Mon, 15 Oct 2012 19:41:40 +0200, Matthieu CASTET wrote: Hi Takashi, But I believe I found other races in the alsa char device handling. With the attached patch, if you disconnect the usb audio device between msleep o and msleep o+, you will free the card resource

Re: uhci irq race before term_td is allocated

2012-10-16 Thread Alan Stern
On Tue, 16 Oct 2012, Don Zickus wrote: I dislike adding an extra test to a hot path, but there doesn't seem to be any way around it. Some of the other HCDs may need a similar change. I understand your concern. I was curious in uhci_irq, I see the following fragment:

Re: usb audio race at disconnect time

2012-10-16 Thread Takashi Iwai
At Tue, 16 Oct 2012 18:01:13 +0200, Matthieu CASTET wrote: Takashi Iwai a écrit : At Mon, 15 Oct 2012 19:41:40 +0200, Matthieu CASTET wrote: Hi Takashi, But I believe I found other races in the alsa char device handling. With the attached patch, if you disconnect the usb audio

Re: [Libusbx-devel] usbutils for Mac OS X and Cygwin

2012-10-16 Thread Sean McBride
On Tue, 16 Oct 2012 21:01:28 +0800, Xiaofan Chen said: I didn't think Apple used gcc anymore. How about testing to see if this is a valid option before trying to use it instead of just removing it? Apple calls its compiler gcc. But yes it is llvm based. Apple used to use gcc, or rather their

Re: usbutils for Mac OS X and Cygwin

2012-10-16 Thread Greg Kroah-Hartman
On Tue, Oct 16, 2012 at 09:15:43PM +0800, Xiaofan Chen wrote: On Tue, Oct 16, 2012 at 3:07 PM, Greg Kroah-Hartman gre...@linuxfoundation.org wrote: On Tue, Oct 16, 2012 at 09:57:16AM +0800, Xiaofan Chen wrote: Now usbutils git almost builds successfully out of the box under Mac OS Xand

Re: usbutils for Mac OS X and Cygwin

2012-10-16 Thread Greg Kroah-Hartman
On Tue, Oct 16, 2012 at 10:08:48AM -0400, Alan Stern wrote: On Tue, 16 Oct 2012, Greg Kroah-Hartman wrote: mymacmini:usbutils xiaofanc$ git diff diff --git a/Makefile.am b/Makefile.am index 4e53e45..e8cb002 100644 --- a/Makefile.am +++ b/Makefile.am @@ -1,8 +1,7 @@ SUBDIRS

Re: [RFC] aio: remove retry and cancel

2012-10-16 Thread Jeff Moyer
Benjamin LaHaise b...@kvack.org writes: On Mon, Oct 15, 2012 at 05:27:44PM -0700, Zach Brown wrote: The possibility of removing retry and cancelation came up a few times plumbers this year. I finally gave it a try. Removing retry is a good iea. It's of little value because retry happens

Re: Hibernation with LPM, was: Re: xhci: LPM issues using Western Digital harddrive

2012-10-16 Thread Sarah Sharp
On Fri, Oct 12, 2012 at 04:07:43PM -0400, Alan Stern wrote: On Thu, 11 Oct 2012, Alan Stern wrote: On Thu, 11 Oct 2012, Sarah Sharp wrote: Thinking about this further, USB 2.1 devices need to be brought out of their low power link state (L1) before they are suspended. Some xHCI

Re: [RFC] aio: remove retry and cancel

2012-10-16 Thread Benjamin LaHaise
On Tue, Oct 16, 2012 at 12:33:42PM -0400, Jeff Moyer wrote: Benjamin LaHaise b...@kvack.org writes: Canellation *cannot* be removed. If you remove cancellation, processes with outstanding ios at exit() time will never release their resources. Please explain. wait_for_active_reqs will

Re: USB keyboard backlight powering down.

2012-10-16 Thread Greg Kroah-Hartman
On Tue, Oct 16, 2012 at 12:45:56PM -0400, Michael Spang wrote: On Tue, Oct 16, 2012 at 11:20 AM, Dave Jones da...@redhat.com wrote: Gerry (CC'd) reported a bug to us that since 3.6.1, his illuminated Logitech USB keyboard doesn't light up until he hits a key, and then it immediately powers

Re: [RFC] aio: remove retry and cancel

2012-10-16 Thread Zach Brown
Not all IOs will complete within a bounded amount of time. Think of things like pipes, network send/receive, even the USB gadget code. Yes, I know. That's the theoretical position. But reality doesn't match that view. People aren't using it. If the usb gadget code can do without then the

Re: [RFC] aio: remove retry and cancel

2012-10-16 Thread Benjamin LaHaise
On Tue, Oct 16, 2012 at 10:00:54AM -0700, Zach Brown wrote: Not all IOs will complete within a bounded amount of time. Think of things like pipes, network send/receive, even the USB gadget code. Yes, I know. That's the theoretical position. But reality doesn't match that view. People

Re: [RFC] aio: remove retry and cancel

2012-10-16 Thread Jens Axboe
On 2012-10-16 19:15, Benjamin LaHaise wrote: On Tue, Oct 16, 2012 at 10:00:54AM -0700, Zach Brown wrote: Not all IOs will complete within a bounded amount of time. Think of things like pipes, network send/receive, even the USB gadget code. Yes, I know. That's the theoretical position.

Re: Tons of issues with xhci

2012-10-16 Thread Sarah Sharp
Hi Felipe, The 3.5 kernel added USB 3.0 Link Power Management for Intel Panther Point xHCI hosts. We've had some issues with devices not supporting LPM properly, and some fixes have been sent to Greg KH. Can you build a kernel from his usb-linus branch and see if your issues are resolved?

Re: [PATCH REPOST] usb: phy: tegra remove include of mach/iomap.h

2012-10-16 Thread Stephen Warren
On 10/16/2012 03:54 AM, Felipe Balbi wrote: Hi, On Mon, Oct 15, 2012 at 03:22:07PM -0600, Stephen Warren wrote: On 10/15/2012 01:22 PM, Felipe Balbi wrote: hi, On Mon, Oct 15, 2012 at 12:16:36PM -0600, Stephen Warren wrote: From: Stephen Warren swar...@nvidia.com Almost nothing from

Re: USB keyboard backlight powering down.

2012-10-16 Thread Sarah Sharp
On Tue, Oct 16, 2012 at 09:54:36AM -0700, Greg Kroah-Hartman wrote: On Tue, Oct 16, 2012 at 12:45:56PM -0400, Michael Spang wrote: On Tue, Oct 16, 2012 at 11:20 AM, Dave Jones da...@redhat.com wrote: Gerry (CC'd) reported a bug to us that since 3.6.1, his illuminated Logitech USB keyboard

Re: Hibernation with LPM, was: Re: xhci: LPM issues using Western Digital harddrive

2012-10-16 Thread Alan Stern
On Tue, 16 Oct 2012, Sarah Sharp wrote: The kernel support we have now for USB-2 LPM doesn't make any sense. usb_port_suspend() disables LPM before changing the link state out of L0, and usb_port_resume() enables LPM after changing the state back to L0. Thus LPM is disabled

Re: [RFC] aio: remove retry and cancel

2012-10-16 Thread Zach Brown
Gadget cannot. The code has no control over when a request completes. Think of things like talking to a USB serial port or keyboard directly. Well, boo. That'd do it. The patch was crossing its fingers for the usb reqs to complete promptly :). - z -- To unsubscribe from this list: send

Re: [RFC] aio: remove retry and cancel

2012-10-16 Thread Benjamin LaHaise
On Tue, Oct 16, 2012 at 07:23:25PM +0200, Jens Axboe wrote: Let's address the lack of support issue before deprecating required parts of the API. Or make the case to rip everything out. Come on, this has been the case for, what, 10 years? Or for however long that we've had this aio

RE: musb/musb_dsps.c:533]: (error) Buffer is accessed out of bounds

2012-10-16 Thread David Binderman
Hello there, I make that at least 11 chars into res_name. Suggest increase size. That is very true. Are you planning to release a patch for this? Sadly no. My success rate with patches is very low and I wouldn't know a good new size anyway. Mind

Re: Hibernation with LPM, was: Re: xhci: LPM issues using Western Digital harddrive

2012-10-16 Thread Alan Stern
On Tue, 16 Oct 2012, Alan Stern wrote: On Tue, 16 Oct 2012, Sarah Sharp wrote: The kernel support we have now for USB-2 LPM doesn't make any sense. usb_port_suspend() disables LPM before changing the link state out of L0, and usb_port_resume() enables LPM after changing the state

Re: Hibernation with LPM, was: Re: xhci: LPM issues using Western Digital harddrive

2012-10-16 Thread Sarah Sharp
On Tue, Oct 16, 2012 at 01:38:06PM -0400, Alan Stern wrote: On Tue, 16 Oct 2012, Sarah Sharp wrote: The kernel support we have now for USB-2 LPM doesn't make any sense. usb_port_suspend() disables LPM before changing the link state out of L0, and usb_port_resume() enables LPM after

Re: [Celinux-dev] PDF documentation

2012-10-16 Thread Tim Bird
On 10/16/2012 07:35 AM, Wolfgang Denk wrote: Dear Constantine Shulyupin, In message cae7jhc83bizy7tnysr+-x85tpenqtahuwso47q-6+xrf0fu...@mail.gmail.com you wrote: I have some questions and ideas about documentation in PDF format. During embedded SW development I often work with

Re: Hibernation with LPM, was: Re: xhci: LPM issues using Western Digital harddrive

2012-10-16 Thread Alan Stern
On Tue, 16 Oct 2012, Sarah Sharp wrote: Okay. But that still leaves a question: Is it reasonable to call xhci-hcd's bus_suspend method without first putting all the devices on the bus into U3? If it is then generic_suspend() can avoid calling usb_port_suspend() for the FREEZE and

Re: Hibernation with LPM, was: Re: xhci: LPM issues using Western Digital harddrive

2012-10-16 Thread Sarah Sharp
On Tue, Oct 16, 2012 at 02:42:20PM -0400, Alan Stern wrote: On Tue, 16 Oct 2012, Sarah Sharp wrote: Okay. But that still leaves a question: Is it reasonable to call xhci-hcd's bus_suspend method without first putting all the devices on the bus into U3? If it is then generic_suspend()

Re: uhci irq race before term_td is allocated

2012-10-16 Thread Don Zickus
On Tue, Oct 16, 2012 at 12:01:29PM -0400, Alan Stern wrote: On Tue, 16 Oct 2012, Don Zickus wrote: I dislike adding an extra test to a hot path, but there doesn't seem to be any way around it. Some of the other HCDs may need a similar change. I understand your concern. I was

Re: [RFC PATCH v1 1/3] mm: teach mm by current context info to not do I/O during memory allocation

2012-10-16 Thread Andrew Morton
On Tue, 16 Oct 2012 23:59:41 +0800 Ming Lei ming@canonical.com wrote: This patch introduces PF_MEMALLOC_NOIO on process flag('flags' field of 'struct task_struct'), so that the flag can be set by one task to avoid doing I/O inside memory allocation in the task's context. The patch trys

Re: usbserial ftdi_sio problem

2012-10-16 Thread Mostafa Kassem
On Tue, Oct 16, 2012 at 4:22 AM, Bjørn Mork bj...@mork.no wrote: Peter Stuge pe...@stuge.se writes: Greg KH wrote: But, if Mostafa is stuck at RHEL 6, there's nothing that we can do here to help out at all, sorry. Maybe he can help test a driver on an up-to-date kernel.org release, and then

isp1760: Abort mechanism when alloc_mem() failed?

2012-10-16 Thread Richard Retanubun
Hi Arvid, I am working on isp1763-hcd (a smaller, kind-of-sort-of variant of isp1760) The driver was adapted from the original isp1760 before you worked on it a bunch. I am looking at my adapted driver again because we have a case where isp1763 is connected to two modem (one on each port) and

Re: [PATCH 1/1] USB: EHCI: add condition for delay during the resume

2012-10-16 Thread Peter Chen
On Tue, Oct 16, 2012 at 10:14:43AM -0400, Alan Stern wrote: On Tue, 16 Oct 2012, Peter Chen wrote: Without this condition, all controllers will do this delay, and increase the resume time. Only enabled and unsuspended port needs this delay, but Some buggy hardware(like Synopsys usb

Re: usbutils for Mac OS X and Cygwin

2012-10-16 Thread Xiaofan Chen
On Wed, Oct 17, 2012 at 12:14 AM, Greg Kroah-Hartman gre...@linuxfoundation.org wrote: Might it just be easier to patch usbutils to be something like USB_IDS_DATADIR instead when building on these systems? Good idea. Here is the patch based on your suggestion and it works fine. snip

Re: usbutils for Mac OS X and Cygwin

2012-10-16 Thread Xiaofan Chen
On Wed, Oct 17, 2012 at 12:17 AM, Greg Kroah-Hartman gre...@linuxfoundation.org wrote: On Tue, Oct 16, 2012 at 10:08:48AM -0400, Alan Stern wrote: On Tue, 16 Oct 2012, Greg Kroah-Hartman wrote: mymacmini:usbutils xiaofanc$ git diff diff --git a/Makefile.am b/Makefile.am index

Re: [RFC PATCH v1 1/3] mm: teach mm by current context info to not do I/O during memory allocation

2012-10-16 Thread Ming Lei
On Wed, Oct 17, 2012 at 4:19 AM, Andrew Morton a...@linux-foundation.org wrote: The patch seems reasonable to me. I'd like to see some examples of these resume-time callsite which are performing the GFP_KERNEL allocations, please. You have found some kernel bugs, so those should be fully

Re: [PATCH v4 1/1] usb: phy: change phy notify functions

2012-10-16 Thread Peter Chen
On Tue, Oct 16, 2012 at 09:36:46AM +0800, Peter Chen wrote: Hi Felipe Alex, Do you have any comments for this patch? The patch includes both API change and caller change. The main changes like below: - add notify_suspend/notify_resume callback This let usb phy driver has the chance to

Re: Etron USB 3.0 xHCI

2012-10-16 Thread Gary E. Miller
Yo All! In my search for an Etron replacement, I thought I had a win in a VLI VL80x based USB 3.0 card. After double checking I find I can't get that chip to work at all. Sorry for making a bad recommendation. The card keep giving messages like this: Oct 15 19:16:24 kong kernel: usb 11-3:

Re: [RFC PATCH v1 1/3] mm: teach mm by current context info to not do I/O during memory allocation

2012-10-16 Thread Ming Lei
On Wed, Oct 17, 2012 at 4:19 AM, Andrew Morton a...@linux-foundation.org wrote: The patch seems reasonable to me. I'd like to see some examples of these resume-time callsite which are performing the GFP_KERNEL allocations, please. You have found some kernel bugs, so those should be fully

Re: Tons of issues with xhci

2012-10-16 Thread Felipe Contreras
Hi, On Tue, Oct 16, 2012 at 7:24 PM, Sarah Sharp sarah.a.sh...@linux.intel.com wrote: The 3.5 kernel added USB 3.0 Link Power Management for Intel Panther Point xHCI hosts. We've had some issues with devices not supporting LPM properly, and some fixes have been sent to Greg KH. Can you build

Re: [RFC PATCH v1 1/3] mm: teach mm by current context info to not do I/O during memory allocation

2012-10-16 Thread Kamezawa Hiroyuki
(2012/10/17 0:59), Ming Lei wrote: This patch introduces PF_MEMALLOC_NOIO on process flag('flags' field of 'struct task_struct'), so that the flag can be set by one task to avoid doing I/O inside memory allocation in the task's context. The patch trys to solve one deadlock problem caused by