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 fo

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 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 to add the branc

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 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 > change needed), is n

Re: usbserial & ftdi_sio problem

2012-10-16 Thread Bjørn Mork
Peter Stuge 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 be ve

[PATCH v2 0/2] USB: dwc3-exynos: Adding device tree support

2012-10-16 Thread Vivek Gautam
Changes from v1: - Removed setting-up of "dev.coherent_dma_mask", since of/platform.c itself takes care of it. Vivek Gautam (2): USB: dwc3-exynos: Add support for device tree USB: DWC3: EXYNOS: Remove platform data for dwc3-exynos drivers/usb/dwc3/dwc3-exynos.c | 36 +++

[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 --- drivers/usb/dwc3/dwc3-exynos.c | 16

[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 --- drivers/usb/dwc3/dwc3-exynos.c | 20 1 files changed, 20 insertions(+), 0 deletions(-) diff --git a/drivers/usb/dwc3/dwc3-exynos.c b/drivers/usb/dwc3/dwc3

[PATCH v3 0/3] USB: dwc3: Add suspend/resume support

2012-10-16 Thread Vikas Sajjan
Changes from v2: - Changed CONFIG_PM to CONFIG_PM_SLEEP - Used SET_SYSTEM_SLEEP_PM_OPS in dev_pm_ops - Modified the commit log for each of the patch - Added dwc3_core_init() during resume and dwc3_core_exit() during suspend in core.c Based on 'usb-next' of greg's tree. Tested USB detection

[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 Signed-off-by: Vikas C Sajjan CC: Doug Anderson

[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 Signed-off-by: Vikas C Sajjan CC: Doug Anderson --- drivers/usb/host/xhci-plat.c

[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 Signed-off-by: Vikas C Sajjan CC: Doug Anderson --- drivers/usb/dwc3/dwc3-exynos.c | 31 +++

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 > --- > drivers/usb/dwc3/dwc3-exynos.c | 20 > 1 files changed, 20 insertions(+), 0 delet

Re: [PATCH REPOST] usb: phy: tegra remove include of

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 > >> > >> Almost nothing from this file is used, and the file will > >> hop

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 > Sign

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 --- drivers/usb/dwc3/dwc3-exynos.c | 20

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. > > Sign

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. > >> > >>Si

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 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 betwe

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 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 see if this > is a v

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 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_slo

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 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 fix for Mac OS X and s

[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 Signed-off-by: Ming Lei --- drivers/usb/class/cdc-acm.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/usb/class/cdc-a

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 wrote: > On Tue, Oct 16, 2012 at 3:07 PM, Greg Kroah-Hartman > 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 wo

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 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 check i

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 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 t

Re: [Celinux-dev] PDF documentation

2012-10-16 Thread Bill Traynor
On Tue, Oct 16, 2012 at 9:22 AM, Constantine Shulyupin 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 > documentation. It is no

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 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 DW

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 to the HID blacklist additions. Thanks, -- Jiri Kosina SUSE Labs -- To unsubscribe from this lis

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 j

Re: usbutils for Mac OS X and Cygwin

2012-10-16 Thread Alan Stern
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 = \ > > usbhid-dump > > > > -AM_LDFLAGS = \ >

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 resu

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

Re: [Celinux-dev] PDF documentation

2012-10-16 Thread Wolfgang Denk
Dear Constantine Shulyupin, In message 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 some issues with such > documentation. It is not so easy to ma

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 cod

Re: PDF documentation

2012-10-16 Thread Mikael Pettersson
On Tue, 16 Oct 2012 15:22:52 +0200, Constantine Shulyupin 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 > documentation. It

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 submitt

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

[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 Cc: Oliver Neukum Cc: Rafael J. Wysocki Signed-off-by: Ming Lei --- drivers/base/power/runtime.c | 14 ++ 1 fi

[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 storag

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

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 disconn

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

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 > 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 libusb

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

Re: [RFC] aio: remove retry and cancel

2012-10-16 Thread Jeff Moyer
Benjamin LaHaise 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 in a

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. Som

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 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 wait until

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 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 back off,

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.

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 posi

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? http:

Re: [PATCH REPOST] usb: phy: tegra remove include of

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 Almost not

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 wrote: > > > Gerry (CC'd) reported a bug to us that since 3.6.1, his illuminated > > > Logitech USB keyboard doesn't

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 disab

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. Mi

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 th

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 L

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 > 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 som

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

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 con

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 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 deadl

Re: usbserial & ftdi_sio problem

2012-10-16 Thread Mostafa Kassem
On Tue, Oct 16, 2012 at 4:22 AM, Bjørn Mork wrote: > Peter Stuge 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 c

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 Syn

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 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. > > > > That's nice,

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 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 4e53e45..e8cb002 10

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 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 described. There are t

[PATCH v2 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: [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 cha

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: devi

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 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 described. OK, there a

Re: Tons of issues with xhci

2012-10-16 Thread Felipe Contreras
Hi, On Tue, Oct 16, 2012 at 7:24 PM, Sarah Sharp 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 a > kernel from his usb-li

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

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

2012-10-16 Thread Rafael J. Wysocki
On Tuesday 16 of October 2012 23:59:42 Ming Lei wrote: > 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 > Cc: Oliver Neukum > Cc: Rafael J. Wysocki > Signed-off-by:

[PATCH] usb: renesas_usbhs: fixup: avoid NULL access on error case pipe detach

2012-10-16 Thread Kuninori Morimoto
If renesas_usbhs or DMAEngine interrupt didn't happen by a certain cause, urb->ep will be NULL by usb time out. Then, host mode will access to it and crash kernel. This patch fixes it. Signed-off-by: Kuninori Morimoto --- drivers/usb/renesas_usbhs/mod_host.c |5 + 1 file changed, 5 inser

[PATCH] usb: renesas_usbhs: fixup dma transfer stall

2012-10-16 Thread Kuninori Morimoto
renesas_usbhs driver can switch DMA/PIO transfer by using handler, and each handler have push/pop direction. But unfortunately, current dma push handler didn't a path which calls usbhs_pipe_enable(). Thus, dma transfer never happened. this patch fixes it. Signed-off-by: Kuninori Morimoto --- dri