[PATCH 1/5] usb: xhci: Prefer endpoint context dequeue pointer over stopped_trb

2014-04-22 Thread Mathias Nyman
ae636747146ea97efa18e04576acd3416e2514f5 "USB: xhci: URB cancellation support." Signed-off-by: Julius Werner Signed-off-by: Mathias Nyman --- drivers/usb/host/xhci-ring.c | 67 drivers/usb/host/xhci.c | 1 - drivers/usb/host/xhci.h | 2 -

[PATCH 2/5] xhci: Use pci_enable_msix_exact() instead of pci_enable_msix()

2014-04-22 Thread Mathias Nyman
() or pci_enable_msix_exact() interfaces. Signed-off-by: Alexander Gordeev Cc: Sarah Sharp Cc: Greg Kroah-Hartman Cc: linux-...@vger.kernel.org Cc: linux-...@vger.kernel.org Signed-off-by: Mathias Nyman --- drivers/usb/host/xhci.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/usb

[PATCH 3/5] xhci: Switch Intel Lynx Point ports to EHCI on shutdown.

2014-04-22 Thread Mathias Nyman
, the Intense-PC2. The bug can be avoided if the USB ports are switched back to EHCI on shutdown. Signed-off-by: Denis Turischev Signed-off-by: Mathias Nyman --- drivers/usb/host/xhci-pci.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/usb/host/xhci-pci.c b/drivers/usb/host/xhci-pci.c index

[PATCH 4/5] xhci: extend quirk for Renesas cards

2014-04-22 Thread Mathias Nyman
. [1912] SDevice:uPD720202 USB 3.0 Host Controller [0015] Rev:02 ProgIf: 30 Reported-and-tested-by: Anatoly Kharchenko Reference: http://redmine.russianfedora.pro/issues/1315 Signed-off-by: Igor Gnatenko Signed-off-by: Mathias Nyman --- drivers/usb/host/xhci-pci.c | 4 +--- 1 file

[PATCH 0/5] xhci: fixes for 3.15-rc usb-linus

2014-04-22 Thread Mathias Nyman
Hi Greg Here are the xhci fixes for 3.15-rc usb-linus. Most of them are very small fixes that didn't make it to 3.14, sitting and waiting for 3.15-rc1 to come out. Only the "Prefer endpoint context.." patch by Julius has a bit more content. These patches are picked together with Sarah, they

[PATCH 5/5] usb/xhci: fix compilation warning when !CONFIG_PCI && !CONFIG_PM

2014-04-22 Thread Mathias Nyman
. Signed-off-by: David Cohen Signed-off-by: Mathias Nyman --- drivers/usb/host/xhci.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/usb/host/xhci.c b/drivers/usb/host/xhci.c index b0b8399..9e7e9ae 100644 --- a/drivers/usb/host/xhci.c +++ b/drivers/usb/host/xhci.c

[PATCH 5/5] usb/xhci: fix compilation warning when !CONFIG_PCI !CONFIG_PM

2014-04-22 Thread Mathias Nyman
the xHCI PCI stubs as inline. Signed-off-by: David Cohen david.a.co...@linux.intel.com Signed-off-by: Mathias Nyman mathias.ny...@linux.intel.com --- drivers/usb/host/xhci.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/usb/host/xhci.c b/drivers/usb/host/xhci.c

[PATCH 3/5] xhci: Switch Intel Lynx Point ports to EHCI on shutdown.

2014-04-22 Thread Mathias Nyman
is Compulab's mini-desktop, the Intense-PC2. The bug can be avoided if the USB ports are switched back to EHCI on shutdown. Signed-off-by: Denis Turischev de...@compulab.co.il Signed-off-by: Mathias Nyman mathias.ny...@linux.intel.com --- drivers/usb/host/xhci-pci.c | 2 ++ 1 file changed, 2 insertions

[PATCH 4/5] xhci: extend quirk for Renesas cards

2014-04-22 Thread Mathias Nyman
-by: Mathias Nyman mathias.ny...@linux.intel.com --- drivers/usb/host/xhci-pci.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/usb/host/xhci-pci.c b/drivers/usb/host/xhci-pci.c index 1715063..35d4477 100644 --- a/drivers/usb/host/xhci-pci.c +++ b/drivers/usb/host

[PATCH 0/5] xhci: fixes for 3.15-rc usb-linus

2014-04-22 Thread Mathias Nyman
Hi Greg Here are the xhci fixes for 3.15-rc usb-linus. Most of them are very small fixes that didn't make it to 3.14, sitting and waiting for 3.15-rc1 to come out. Only the Prefer endpoint context.. patch by Julius has a bit more content. These patches are picked together with Sarah, they are

[PATCH 2/5] xhci: Use pci_enable_msix_exact() instead of pci_enable_msix()

2014-04-22 Thread Mathias Nyman
() or pci_enable_msix_exact() interfaces. Signed-off-by: Alexander Gordeev agord...@redhat.com Cc: Sarah Sharp sarah.a.sh...@linux.intel.com Cc: Greg Kroah-Hartman gre...@linuxfoundation.org Cc: linux-...@vger.kernel.org Cc: linux-...@vger.kernel.org Signed-off-by: Mathias Nyman mathias.ny

[PATCH 1/5] usb: xhci: Prefer endpoint context dequeue pointer over stopped_trb

2014-04-22 Thread Mathias Nyman
the commit ae636747146ea97efa18e04576acd3416e2514f5 USB: xhci: URB cancellation support. Signed-off-by: Julius Werner jwer...@chromium.org Signed-off-by: Mathias Nyman mathias.ny...@linux.intel.com --- drivers/usb/host/xhci-ring.c | 67 drivers/usb

Re: [RESEND] [PATCH] xhci: Switch Intel Lynx Point ports to EHCI on shutdown.

2014-04-22 Thread Mathias Nyman
On 04/22/2014 02:04 PM, Denis Turischev wrote: Hi Mathias, Just want to remind you about the patch, thanks. Sent to Greg a minute ago, thanks -Mathias -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to majord...@vger.kernel.org More

Re: [PATCH] usb: xhci: Prefer endpoint context dequeue pointer over stopped_trb

2014-04-15 Thread Mathias Nyman
On 04/03/2014 12:29 AM, Julius Werner wrote: Hi Mathias, The patch looks fine. Mathias is taking over for xHCI driver maintainership in 3.15. He's currently handling queuing bug fix patches for 3.14 while I finish queueing feature patches for 3.15. Mathias, will you test and queue this up

Re: [PATCH v3 1/1] pinctrl: add Intel BayTrail GPIO/pinctrl support

2014-04-15 Thread Mathias Nyman
On 04/14/2014 06:11 PM, Timur Tabi wrote: On 04/14/2014 02:52 AM, Mathias Nyman wrote: This was the conclusion we reached after some discussion with Linus W. Initially this was just a GPIO driver, but Linus correctly spotted that Baytrail has many pinctrl-like features (like pin muxing, etc

Re: [PATCH v3 1/1] pinctrl: add Intel BayTrail GPIO/pinctrl support

2014-04-15 Thread Mathias Nyman
On 04/14/2014 06:11 PM, Timur Tabi wrote: On 04/14/2014 02:52 AM, Mathias Nyman wrote: This was the conclusion we reached after some discussion with Linus W. Initially this was just a GPIO driver, but Linus correctly spotted that Baytrail has many pinctrl-like features (like pin muxing, etc

Re: [PATCH] usb: xhci: Prefer endpoint context dequeue pointer over stopped_trb

2014-04-15 Thread Mathias Nyman
On 04/03/2014 12:29 AM, Julius Werner wrote: Hi Mathias, The patch looks fine. Mathias is taking over for xHCI driver maintainership in 3.15. He's currently handling queuing bug fix patches for 3.14 while I finish queueing feature patches for 3.15. Mathias, will you test and queue this up

Re: [PATCH v3 1/1] pinctrl: add Intel BayTrail GPIO/pinctrl support

2014-04-14 Thread Mathias Nyman
On 04/12/2014 01:54 AM, Timur Tabi wrote: On Tue, Jun 18, 2013 at 6:33 AM, Mathias Nyman wrote: Pins may be muxed to alternate function instead of gpio by firmware. This driver does not touch the pin muxing and expect firmare to set pin muxing and pullup/down properties properly. Signed-off

Re: [PATCH v3 1/1] pinctrl: add Intel BayTrail GPIO/pinctrl support

2014-04-14 Thread Mathias Nyman
On 04/12/2014 01:54 AM, Timur Tabi wrote: On Tue, Jun 18, 2013 at 6:33 AM, Mathias Nyman mathias.ny...@linux.intel.com wrote: Pins may be muxed to alternate function instead of gpio by firmware. This driver does not touch the pin muxing and expect firmare to set pin muxing and pullup/down

[RFC v5 4/4] xhci: rework command timeout and cancellation,

2014-04-03 Thread Mathias Nyman
o-op right away. All these changes allows us to remove the entire cancel_cmd_list code. The functions waiting for a command to finish no longer have their own timeouts. They will wait either until the command completes normally, or until the whole command abortion is done. Signed-off-by: Mat

[RFC v5 2/4] xhci: Add a global command queue

2014-04-03 Thread Mathias Nyman
are freed in the command completion event handler. Also add a check that prevents queuing commands if host is dying Signed-off-by: Mathias Nyman --- drivers/usb/host/xhci-mem.c | 2 ++ drivers/usb/host/xhci-ring.c | 34 ++ drivers/usb/host/xhci.c | 2

[RFC v5 3/4] xhci: Use completion and status in global command queue

2014-04-03 Thread Mathias Nyman
Remove the per-device command list and handle_cmd_in_cmd_wait_list() and use the completion and status variables found in the command structure in the global command list. Signed-off-by: Mathias Nyman --- drivers/usb/host/xhci-hub.c | 11 -- drivers/usb/host/xhci-mem.c | 1 - drivers/usb

[RFC v5 1/4] xhci: Use command structures when queuing commands on the command ring

2014-04-03 Thread Mathias Nyman
d queue up.(Just so that we won't leak memory in the middle of the patch set) Signed-off-by: Mathias Nyman --- drivers/usb/host/xhci-hub.c | 21 +++-- drivers/usb/host/xhci-ring.c | 106 --- drivers/usb/host/xhci.c | 194 --- d

[RFC v5 0/4] xhci: re-work command queue management

2014-04-03 Thread Mathias Nyman
iting for an aborted command to finish are called after the command abortion is completed. Mathias Nyman (4): xhci: Use command structures when queuing commands on the command ring xhci: Add a global command queue xhci: Use completion and status in global command queue xhci: rework command time

Re: [PATCH] usb: xhci: Prefer endpoint context dequeue pointer over stopped_trb

2014-04-03 Thread Mathias Nyman
Hi On 04/03/2014 12:29 AM, Julius Werner wrote: Hi Mathias, The patch looks fine. Mathias is taking over for xHCI driver maintainership in 3.15. He's currently handling queuing bug fix patches for 3.14 while I finish queueing feature patches for 3.15. Mathias, will you test and queue this

[RFC v5 0/4] xhci: re-work command queue management

2014-04-03 Thread Mathias Nyman
to finish are called after the command abortion is completed. Mathias Nyman (4): xhci: Use command structures when queuing commands on the command ring xhci: Add a global command queue xhci: Use completion and status in global command queue xhci: rework command timeout and cancellation

[RFC v5 1/4] xhci: Use command structures when queuing commands on the command ring

2014-04-03 Thread Mathias Nyman
.(Just so that we won't leak memory in the middle of the patch set) Signed-off-by: Mathias Nyman mathias.ny...@linux.intel.com --- drivers/usb/host/xhci-hub.c | 21 +++-- drivers/usb/host/xhci-ring.c | 106 --- drivers/usb/host/xhci.c | 194

[RFC v5 2/4] xhci: Add a global command queue

2014-04-03 Thread Mathias Nyman
are freed in the command completion event handler. Also add a check that prevents queuing commands if host is dying Signed-off-by: Mathias Nyman mathias.ny...@linux.intel.com --- drivers/usb/host/xhci-mem.c | 2 ++ drivers/usb/host/xhci-ring.c | 34 ++ drivers

[RFC v5 3/4] xhci: Use completion and status in global command queue

2014-04-03 Thread Mathias Nyman
Remove the per-device command list and handle_cmd_in_cmd_wait_list() and use the completion and status variables found in the command structure in the global command list. Signed-off-by: Mathias Nyman mathias.ny...@linux.intel.com --- drivers/usb/host/xhci-hub.c | 11 -- drivers/usb/host

[RFC v5 4/4] xhci: rework command timeout and cancellation,

2014-04-03 Thread Mathias Nyman
away. All these changes allows us to remove the entire cancel_cmd_list code. The functions waiting for a command to finish no longer have their own timeouts. They will wait either until the command completes normally, or until the whole command abortion is done. Signed-off-by: Mathias Nyman

Re: [PATCH] usb: xhci: Prefer endpoint context dequeue pointer over stopped_trb

2014-04-03 Thread Mathias Nyman
Hi On 04/03/2014 12:29 AM, Julius Werner wrote: Hi Mathias, The patch looks fine. Mathias is taking over for xHCI driver maintainership in 3.15. He's currently handling queuing bug fix patches for 3.14 while I finish queueing feature patches for 3.15. Mathias, will you test and queue this

Re: [PATCH v2 RESEND 4/4] xhci: Use pci_enable_msix_exact() instead of pci_enable_msix()

2014-04-02 Thread Mathias Nyman
On 04/02/2014 02:41 PM, Alexander Gordeev wrote: On Tue, Mar 25, 2014 at 03:27:30PM +0100, Alexander Gordeev wrote: On Thu, Mar 06, 2014 at 01:56:46PM -0800, Sarah Sharp wrote: What do you mean by this sentence? Are you fixing some bug in those two functions, or just cleaning up how they

Re: [PATCH v2 RESEND 4/4] xhci: Use pci_enable_msix_exact() instead of pci_enable_msix()

2014-04-02 Thread Mathias Nyman
On 04/02/2014 02:41 PM, Alexander Gordeev wrote: On Tue, Mar 25, 2014 at 03:27:30PM +0100, Alexander Gordeev wrote: On Thu, Mar 06, 2014 at 01:56:46PM -0800, Sarah Sharp wrote: What do you mean by this sentence? Are you fixing some bug in those two functions, or just cleaning up how they

Re: [PATCH] usb: xhci: Correct last context entry calculation for Configure Endpoint

2014-03-28 Thread Mathias Nyman
On 03/25/2014 08:42 PM, Julius Werner wrote: The current XHCI driver recalculates the Context Entries field in the Slot Context on every add_endpoint() and drop_endpoint() call. In the case of drop_endpoint(), it seems to assume that the add_flags will always contain every endpoint for the new

Re: [PATCH] usb: xhci: Correct last context entry calculation for Configure Endpoint

2014-03-28 Thread Mathias Nyman
On 03/25/2014 08:42 PM, Julius Werner wrote: The current XHCI driver recalculates the Context Entries field in the Slot Context on every add_endpoint() and drop_endpoint() call. In the case of drop_endpoint(), it seems to assume that the add_flags will always contain every endpoint for the new

[PATCH] gpio-lynxpoint: force gpio_get() to return "1" and "0" only

2014-03-27 Thread Mathias Nyman
Don't return the IN_LVL_BIT directly, a high gpio line returned value "1073741824" intestead of "1" because IN_LVL_BIT is BIT(30) Tested-by: Jerome Blin Signed-off-by: Mathias Nyman --- drivers/gpio/gpio-lynxpoint.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)

[PATCH] gpio-lynxpoint: force gpio_get() to return 1 and 0 only

2014-03-27 Thread Mathias Nyman
Don't return the IN_LVL_BIT directly, a high gpio line returned value 1073741824 intestead of 1 because IN_LVL_BIT is BIT(30) Tested-by: Jerome Blin jerome.b...@intel.com Signed-off-by: Mathias Nyman mathias.ny...@linux.intel.com --- drivers/gpio/gpio-lynxpoint.c | 2 +- 1 file changed, 1

Re: [PATCH v2] usb/xhci: fix compilation warning when !CONFIG_PCI && !CONFIG_PM

2014-03-24 Thread Mathias Nyman
On 03/21/2014 11:41 PM, David Cohen wrote: Hi Mathias, Thanks for commenting. That would be actually the v1 of my patch :) I changed after I see the proper function has __maybe_unused flag. But I'm fine with Sarah picking any of the patch's versions. Guess you're handling the review of

Re: [PATCH v2] usb/xhci: fix compilation warning when !CONFIG_PCI !CONFIG_PM

2014-03-24 Thread Mathias Nyman
On 03/21/2014 11:41 PM, David Cohen wrote: Hi Mathias, Thanks for commenting. That would be actually the v1 of my patch :) I changed after I see the proper function has __maybe_unused flag. But I'm fine with Sarah picking any of the patch's versions. Guess you're handling the review of

Re: [RFC v4 4/4] xhci: rework command timeout and cancellation,

2014-03-21 Thread Mathias Nyman
On 03/21/2014 11:35 AM, Mathias Nyman wrote: +void xhci_handle_command_timeout(unsigned long data) +{ + struct xhci_hcd *xhci; + int ret; + unsigned long flags; + xhci = (struct xhci_hcd *) data; + /* mark this command to be cancelled

Re: [RESEND] [PATCH] xhci: Switch Intel Lynx Point ports to EHCI on shutdown.

2014-03-21 Thread Mathias Nyman
On 03/21/2014 12:01 PM, Denis Turischev wrote: The same issue like with Panther Point chipsets. If the USB ports are switched to xHCI on shutdown, the xHCI host will send a spurious interrupt, which will wake the system. Some BIOS have work around for this, but not all. One example is Compulab's

[RFC v4 1/4] xhci: Use command structures when queuing commands on the command ring

2014-03-21 Thread Mathias Nyman
d queue up.(Just so that we won't leak memory in the middle of the patch set) Signed-off-by: Mathias Nyman --- drivers/usb/host/xhci-hub.c | 21 +++-- drivers/usb/host/xhci-ring.c | 106 --- drivers/usb/host/xhci.c | 194 --- d

[RFC v4 2/4] xhci: Add a global command queue

2014-03-21 Thread Mathias Nyman
are freed in the command completion event handler. Also add a check that prevents queuing commands if host is dying Signed-off-by: Mathias Nyman --- drivers/usb/host/xhci-mem.c | 2 ++ drivers/usb/host/xhci-ring.c | 34 ++ drivers/usb/host/xhci.c | 2

[RFC v4 4/4] xhci: rework command timeout and cancellation,

2014-03-21 Thread Mathias Nyman
will wait either until the command completes normally, or until the whole command abortion is done. Signed-off-by: Mathias Nyman --- drivers/usb/host/xhci-hub.c | 11 +- drivers/usb/host/xhci-mem.c | 15 +- drivers/usb/host/xhci-ring.c | 337 +-- d

[RFC v4 3/4] xhci: Use completion and status in global command queue

2014-03-21 Thread Mathias Nyman
Remove the per-device command list and handle_cmd_in_cmd_wait_list() and use the completion and status variables found in the command structure in the global command list. Signed-off-by: Mathias Nyman --- drivers/usb/host/xhci-hub.c | 11 -- drivers/usb/host/xhci-mem.c | 1 - drivers/usb

[RFC v4 0/4] xhci: re-work command queue management

2014-03-21 Thread Mathias Nyman
t the ring abortion process. Functions waiting for an aborted command to finish are called after the command abortion is completed. Mathias Nyman (4): xhci: Use command structures when queuing commands on the command ring xhci: Add a global command queue xhci: Use completion and status in glob

[RFC v4 0/4] xhci: re-work command queue management

2014-03-21 Thread Mathias Nyman
process. Functions waiting for an aborted command to finish are called after the command abortion is completed. Mathias Nyman (4): xhci: Use command structures when queuing commands on the command ring xhci: Add a global command queue xhci: Use completion and status in global command queue

[RFC v4 3/4] xhci: Use completion and status in global command queue

2014-03-21 Thread Mathias Nyman
Remove the per-device command list and handle_cmd_in_cmd_wait_list() and use the completion and status variables found in the command structure in the global command list. Signed-off-by: Mathias Nyman mathias.ny...@linux.intel.com --- drivers/usb/host/xhci-hub.c | 11 -- drivers/usb/host

[RFC v4 4/4] xhci: rework command timeout and cancellation,

2014-03-21 Thread Mathias Nyman
either until the command completes normally, or until the whole command abortion is done. Signed-off-by: Mathias Nyman mathias.ny...@linux.intel.com --- drivers/usb/host/xhci-hub.c | 11 +- drivers/usb/host/xhci-mem.c | 15 +- drivers/usb/host/xhci-ring.c | 337

[RFC v4 2/4] xhci: Add a global command queue

2014-03-21 Thread Mathias Nyman
are freed in the command completion event handler. Also add a check that prevents queuing commands if host is dying Signed-off-by: Mathias Nyman mathias.ny...@linux.intel.com --- drivers/usb/host/xhci-mem.c | 2 ++ drivers/usb/host/xhci-ring.c | 34 ++ drivers

[RFC v4 1/4] xhci: Use command structures when queuing commands on the command ring

2014-03-21 Thread Mathias Nyman
.(Just so that we won't leak memory in the middle of the patch set) Signed-off-by: Mathias Nyman mathias.ny...@linux.intel.com --- drivers/usb/host/xhci-hub.c | 21 +++-- drivers/usb/host/xhci-ring.c | 106 --- drivers/usb/host/xhci.c | 194

Re: [RESEND] [PATCH] xhci: Switch Intel Lynx Point ports to EHCI on shutdown.

2014-03-21 Thread Mathias Nyman
On 03/21/2014 12:01 PM, Denis Turischev wrote: The same issue like with Panther Point chipsets. If the USB ports are switched to xHCI on shutdown, the xHCI host will send a spurious interrupt, which will wake the system. Some BIOS have work around for this, but not all. One example is Compulab's

Re: [RFC v4 4/4] xhci: rework command timeout and cancellation,

2014-03-21 Thread Mathias Nyman
On 03/21/2014 11:35 AM, Mathias Nyman wrote: +void xhci_handle_command_timeout(unsigned long data) +{ + struct xhci_hcd *xhci; + int ret; + unsigned long flags; + xhci = (struct xhci_hcd *) data; + /* mark this command to be cancelled

Re: [PATCH] pinctrl-baytrail: add function mux checking in gpio pin request

2014-03-11 Thread Mathias Nyman
side of this hardware forever. ;-) Hate to admit it but so it seems :) Mika/Mathias: any comments? Patch looks fine Acked-by: Mathias Nyman -Mathias -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kerne

Re: [PATCH] pinctrl-baytrail: add function mux checking in gpio pin request

2014-03-11 Thread Mathias Nyman
. This confirms my suspicion that you will not be able to hide the pin control interface side of this hardware forever. ;-) Hate to admit it but so it seems :) Mika/Mathias: any comments? Patch looks fine Acked-by: Mathias Nyman mathias.ny...@linux.intel.com -Mathias -- To unsubscribe from

[PATCH 2/2] Revert "USBNET: ax88179_178a: enable tso if usb host supports sg dma"

2014-03-07 Thread Mathias Nyman
e TD fragment rules for xHCI 1.0 hosts, but for now, revert this patch until scatter gather can be properly supported. Signed-off-by: Mathias Nyman Cc: stable --- drivers/net/usb/ax88179_178a.c | 8 1 file changed, 8 deletions(-) diff --git a/drivers/net/usb/ax88179_178a.c b/dr

[PATCH 0/2] xhci, usbnet: fixes for 3.14

2014-03-07 Thread Mathias Nyman
253=2 http://marc.info/?l=linux-usb=139361293103188=2 -Mathias Mathias Nyman (2): Revert "xhci 1.0: Limit arbitrarily-aligned scatter gather." Revert "USBNET: ax88179_178a: enable tso if usb host supports sg dma" drivers/net/usb/ax88179_178a.c | 8 drive

[PATCH 1/2] Revert "xhci 1.0: Limit arbitrarily-aligned scatter gather."

2014-03-07 Thread Mathias Nyman
lement the TD fragment rules required, but for now this patch needs to be reverted to get USB 3.0 mass storage devices working at the level they used to. Signed-off-by: Mathias Nyman Cc: stable --- drivers/usb/host/xhci.c | 14 +++--- 1 file changed, 3 insertions(+), 11 deletions(-

[PATCH 2/2] Revert USBNET: ax88179_178a: enable tso if usb host supports sg dma

2014-03-07 Thread Mathias Nyman
for xHCI 1.0 hosts, but for now, revert this patch until scatter gather can be properly supported. Signed-off-by: Mathias Nyman mathias.ny...@linux.intel.com Cc: stable sta...@vger.kernel.org --- drivers/net/usb/ax88179_178a.c | 8 1 file changed, 8 deletions(-) diff --git a/drivers/net

[PATCH 0/2] xhci, usbnet: fixes for 3.14

2014-03-07 Thread Mathias Nyman
://marc.info/?l=linux-usbm=139361293103188w=2 -Mathias Mathias Nyman (2): Revert xhci 1.0: Limit arbitrarily-aligned scatter gather. Revert USBNET: ax88179_178a: enable tso if usb host supports sg dma drivers/net/usb/ax88179_178a.c | 8 drivers/usb/host/xhci.c| 14

[PATCH 1/2] Revert xhci 1.0: Limit arbitrarily-aligned scatter gather.

2014-03-07 Thread Mathias Nyman
fragment rules required, but for now this patch needs to be reverted to get USB 3.0 mass storage devices working at the level they used to. Signed-off-by: Mathias Nyman mathias.ny...@linux.intel.com Cc: stable sta...@vger.kernel.org --- drivers/usb/host/xhci.c | 14 +++--- 1 file changed, 3

Re: [PATCH v3 1/1] xhci: Prevent runtime pm from autosuspending during initialization

2014-03-04 Thread Mathias Nyman
On 03/03/2014 08:37 PM, Greg KH wrote: On Mon, Mar 03, 2014 at 07:30:17PM +0200, Mathias Nyman wrote: xHCI driver has its own pci probe function that will call usb_hcd_pci_probe to register its usb-2 bus, and then continue to manually register the usb-3 bus. usb_hcd_pci_probe does

Re: [PATCH v3 1/1] xhci: Prevent runtime pm from autosuspending during initialization

2014-03-04 Thread Mathias Nyman
On 03/03/2014 08:37 PM, Greg KH wrote: On Mon, Mar 03, 2014 at 07:30:17PM +0200, Mathias Nyman wrote: xHCI driver has its own pci probe function that will call usb_hcd_pci_probe to register its usb-2 bus, and then continue to manually register the usb-3 bus. usb_hcd_pci_probe does

[PATCH v3 1/1] xhci: Prevent runtime pm from autosuspending during initialization

2014-03-03 Thread Mathias Nyman
the runtime suspend by increasing the usage count in the beginning of xhci_pci_probe, and decrease it once the usb-3 bus is ready. xhci-platform driver is not using usb_hcd_pci_probe to set up busses and should not need to have it's usage count increased during probe. Signed-off-by: Mathias Nyman

[PATCH 0/1] xhci: fixes for 3.14

2014-03-03 Thread Mathias Nyman
Mathias Nyman (1): xhci: Prevent runtime pm from autosuspending during initialization drivers/usb/host/xhci-pci.c | 11 ++- 1 file changed, 10 insertions(+), 1 deletion(-) -- 1.8.1.2 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of

[PATCH 0/1] xhci: fixes for 3.14

2014-03-03 Thread Mathias Nyman
Mathias Nyman (1): xhci: Prevent runtime pm from autosuspending during initialization drivers/usb/host/xhci-pci.c | 11 ++- 1 file changed, 10 insertions(+), 1 deletion(-) -- 1.8.1.2 -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message

[PATCH v3 1/1] xhci: Prevent runtime pm from autosuspending during initialization

2014-03-03 Thread Mathias Nyman
the runtime suspend by increasing the usage count in the beginning of xhci_pci_probe, and decrease it once the usb-3 bus is ready. xhci-platform driver is not using usb_hcd_pci_probe to set up busses and should not need to have it's usage count increased during probe. Signed-off-by: Mathias Nyman

[RFCv3 3/4] xhci: Use completion and status in global command queue

2014-02-26 Thread Mathias Nyman
Remove the per-device command list and handle_cmd_in_cmd_wait_list() and use the completion and status variables found in the command structure in the global command list. Signed-off-by: Mathias Nyman --- drivers/usb/host/xhci-hub.c | 11 --- drivers/usb/host/xhci-mem.c | 1 - drivers

[RFCv3 1/4] xhci: Use command structures when queuing commands on the command ring

2014-02-26 Thread Mathias Nyman
d queue up.(Just so that we won't leak memory in the middle of the patch set) Signed-off-by: Mathias Nyman --- drivers/usb/host/xhci-hub.c | 21 +++-- drivers/usb/host/xhci-ring.c | 105 --- drivers/usb/host/xhci.c | 194 --- d

[RFCv3 2/4] xhci: Add a global command queue

2014-02-26 Thread Mathias Nyman
are freed in the command completion event handler. Signed-off-by: Mathias Nyman --- drivers/usb/host/xhci-mem.c | 8 drivers/usb/host/xhci-ring.c | 21 + drivers/usb/host/xhci.c | 2 -- drivers/usb/host/xhci.h | 1 + 4 files changed, 26 insertions(+), 6

[RFCv3 4/4] xhci: rework command timeout and cancellation,

2014-02-26 Thread Mathias Nyman
will wait either until the command completes normally, or until the whole command abortion is done. Signed-off-by: Mathias Nyman --- drivers/usb/host/xhci-hub.c | 11 +- drivers/usb/host/xhci-mem.c | 15 +- drivers/usb/host/xhci-ring.c | 335 +-- d

[RFCv3 0/4] xhci: re-work command queue management

2014-02-26 Thread Mathias Nyman
as "ABORTED" and start the ring abortion process. Functions waiting for an aborted command to finish are called after the command abortion is completed. Mathias Nyman (4): xhci: Use command structures when queuing commands on the command ring xhci: Add a global command queue

[RFCv3 0/4] xhci: re-work command queue management

2014-02-26 Thread Mathias Nyman
as ABORTED and start the ring abortion process. Functions waiting for an aborted command to finish are called after the command abortion is completed. Mathias Nyman (4): xhci: Use command structures when queuing commands on the command ring xhci: Add a global command queue xhci: Use

[RFCv3 4/4] xhci: rework command timeout and cancellation,

2014-02-26 Thread Mathias Nyman
either until the command completes normally, or until the whole command abortion is done. Signed-off-by: Mathias Nyman mathias.ny...@linux.intel.com --- drivers/usb/host/xhci-hub.c | 11 +- drivers/usb/host/xhci-mem.c | 15 +- drivers/usb/host/xhci-ring.c | 335

[RFCv3 1/4] xhci: Use command structures when queuing commands on the command ring

2014-02-26 Thread Mathias Nyman
.(Just so that we won't leak memory in the middle of the patch set) Signed-off-by: Mathias Nyman mathias.ny...@linux.intel.com --- drivers/usb/host/xhci-hub.c | 21 +++-- drivers/usb/host/xhci-ring.c | 105 --- drivers/usb/host/xhci.c | 194

[RFCv3 2/4] xhci: Add a global command queue

2014-02-26 Thread Mathias Nyman
are freed in the command completion event handler. Signed-off-by: Mathias Nyman mathias.ny...@linux.intel.com --- drivers/usb/host/xhci-mem.c | 8 drivers/usb/host/xhci-ring.c | 21 + drivers/usb/host/xhci.c | 2 -- drivers/usb/host/xhci.h | 1 + 4 files

[RFCv3 3/4] xhci: Use completion and status in global command queue

2014-02-26 Thread Mathias Nyman
Remove the per-device command list and handle_cmd_in_cmd_wait_list() and use the completion and status variables found in the command structure in the global command list. Signed-off-by: Mathias Nyman mathias.ny...@linux.intel.com --- drivers/usb/host/xhci-hub.c | 11 --- drivers/usb/host

[RFC PATCH v2] xhci: Prevent runtime pm from autosuspending during initialization

2014-02-24 Thread Mathias Nyman
the runtime suspend by increasing the usage count in the beginning of xhci_pci_probe, and decrease it once the usb-3 bus is ready. xhci-platform driver is not using usb_hcd_pci_probe to set up busses and should not need to have it's usage count increased during probe. Signed-off-by: Mathias Nyman

[RFC PATCH v2] xhci: Prevent runtime pm from autosuspending during initialization

2014-02-24 Thread Mathias Nyman
the runtime suspend by increasing the usage count in the beginning of xhci_pci_probe, and decrease it once the usb-3 bus is ready. xhci-platform driver is not using usb_hcd_pci_probe to set up busses and should not need to have it's usage count increased during probe. Signed-off-by: Mathias Nyman

Re: [RFC/PATCH] usb/xhci: avoid kernel panic on xhci_suspend()

2014-02-21 Thread Mathias Nyman
On 01/08/2014 09:53 PM, David Cohen wrote: On Wed, Jan 08, 2014 at 10:48:06AM -0500, Alan Stern wrote: On Tue, 7 Jan 2014, Greg KH wrote: On Tue, Jan 07, 2014 at 05:44:26PM -0800, David Cohen wrote: From: jianqian There is a possible kernel panic faced on xhci_suspend(). Due to kernel

Re: [RFC/PATCH] usb/xhci: avoid kernel panic on xhci_suspend()

2014-02-21 Thread Mathias Nyman
On 01/08/2014 09:53 PM, David Cohen wrote: On Wed, Jan 08, 2014 at 10:48:06AM -0500, Alan Stern wrote: On Tue, 7 Jan 2014, Greg KH wrote: On Tue, Jan 07, 2014 at 05:44:26PM -0800, David Cohen wrote: From: jianqian jianqiang.t...@intel.com There is a possible kernel panic faced on

Re: [RFCv2 01/10] xhci: Use command structures when calling xhci_configure_endpoint

2014-02-05 Thread Mathias Nyman
On 02/05/2014 04:21 AM, Dan Williams wrote: Hi Mathias, comments below: s/xhci_check_bandwith/xhci_check_bandwidth/ s/strucure/structure/ s/strucure/structure/ s/requre/require/ s/strucure/structure/ Thanks I guess I need to start using a spell checker for commit messages. One cleanup we

Re: [RFCv2 01/10] xhci: Use command structures when calling xhci_configure_endpoint

2014-02-05 Thread Mathias Nyman
On 02/05/2014 04:21 AM, Dan Williams wrote: Hi Mathias, comments below: s/xhci_check_bandwith/xhci_check_bandwidth/ s/strucure/structure/ s/strucure/structure/ s/requre/require/ s/strucure/structure/ Thanks I guess I need to start using a spell checker for commit messages. One cleanup we

[RFCv2 00/10] xhci: re-work command queue management

2014-01-30 Thread Mathias Nyman
he command abortion is completed. Mathias Nyman (10): xhci: Use command structures when calling xhci_configure_endpoint xhci: use a command structure internally in xhci_address_device() xhci: use command structures for xhci_queue_slot_control() xhci: use command structures for xhci_queue_sto

[RFCv2 03/10] xhci: use command structures for xhci_queue_slot_control()

2014-01-30 Thread Mathias Nyman
Preparing for the global command queue by changing functions calling xhci_queue_slot_control() to internally use command structures Signed-off-by: Mathias Nyman --- drivers/usb/host/xhci.c | 34 +- 1 file changed, 29 insertions(+), 5 deletions(-) diff --git

[RFCv2 04/10] xhci: use command structures for xhci_queue_stop_endpoint()

2014-01-30 Thread Mathias Nyman
Prepare for the global command ring by using command structures internally in functions calling xhci_queue_stop_endpoint() Signed-off-by: Mathias Nyman --- drivers/usb/host/xhci-hub.c | 15 +-- drivers/usb/host/xhci.c | 3 +++ 2 files changed, 16 insertions(+), 2 deletions

[RFCv2 01/10] xhci: Use command structures when calling xhci_configure_endpoint

2014-01-30 Thread Mathias Nyman
) Signed-off-by: Mathias Nyman --- drivers/usb/host/xhci-ring.c | 10 ++--- drivers/usb/host/xhci.c | 97 2 files changed, 56 insertions(+), 51 deletions(-) diff --git a/drivers/usb/host/xhci-ring.c b/drivers/usb/host/xhci-ring.c index 1e2f3f4

[RFCv2 07/10] xhci: Use command structured when queuing commands

2014-01-30 Thread Mathias Nyman
a "command handled" event in a later patch. Signed-off-by: Mathias Nyman --- drivers/usb/host/xhci-hub.c | 8 ++-- drivers/usb/host/xhci-ring.c | 94 ++-- drivers/usb/host/xhci.c | 47 +++--- drivers/usb/host/xhci.h

[RFCv2 08/10] xhci: Add a global command queue

2014-01-30 Thread Mathias Nyman
Create a list to store command structures, add a strucure to it every time a command is submitted, and remove it from the list once we get a command completion event matching the command. Signed-off-by: Mathias Nyman --- drivers/usb/host/xhci-mem.c | 8 drivers/usb/host/xhci-ring.c

[RFCv2 10/10] xhci: rework command timeout and cancellation,

2014-01-30 Thread Mathias Nyman
n timeouts. They will wait either until the command completes normally, or until the whole command abortion is done. Signed-off-by: Mathias Nyman --- drivers/usb/host/xhci-hub.c | 11 +- drivers/usb/host/xhci-mem.c | 15 +- drivers/usb/host/xhci-ring.c | 336 +-- d

[RFCv2 09/10] xhci: Use completion and status in global command queue

2014-01-30 Thread Mathias Nyman
Remove the per-device command list and handle_cmd_in_cmd_wait_list() and use the completion and status variables found in the command structure in the global command list. Signed-off-by: Mathias Nyman --- drivers/usb/host/xhci-hub.c | 11 -- drivers/usb/host/xhci-mem.c | 1 - drivers/usb

[RFCv2 06/10] xhci: use command structures for xhci_queue_reset_ep()

2014-01-30 Thread Mathias Nyman
Prepare for the global command ring by using command structures internally in functions calling xhci_queue_reset_ep() Signed-off-by: Mathias Nyman --- drivers/usb/host/xhci-ring.c | 5 + drivers/usb/host/xhci.c | 6 ++ 2 files changed, 11 insertions(+) diff --git a/drivers/usb

[RFCv2 05/10] xhci: use command structure for xhci_queue_new_dequeue_state()

2014-01-30 Thread Mathias Nyman
Prepare for the global command ring by using command structures internally in functions calling xhci_queue_new_dequeue_state() Signed-off-by: Mathias Nyman --- drivers/usb/host/xhci-ring.c | 3 +++ drivers/usb/host/xhci.c | 6 ++ 2 files changed, 9 insertions(+) diff --git a/drivers

[RFCv2 02/10] xhci: use a command structure internally in xhci_address_device()

2014-01-30 Thread Mathias Nyman
Preparing for the global command queue by using command strucure in xhci_address_device Signed-off-by: Mathias Nyman --- drivers/usb/host/xhci.c | 22 +- 1 file changed, 17 insertions(+), 5 deletions(-) diff --git a/drivers/usb/host/xhci.c b/drivers/usb/host/xhci.c index

[RFCv2 02/10] xhci: use a command structure internally in xhci_address_device()

2014-01-30 Thread Mathias Nyman
Preparing for the global command queue by using command strucure in xhci_address_device Signed-off-by: Mathias Nyman mathias.ny...@linux.intel.com --- drivers/usb/host/xhci.c | 22 +- 1 file changed, 17 insertions(+), 5 deletions(-) diff --git a/drivers/usb/host/xhci.c b

[RFCv2 05/10] xhci: use command structure for xhci_queue_new_dequeue_state()

2014-01-30 Thread Mathias Nyman
Prepare for the global command ring by using command structures internally in functions calling xhci_queue_new_dequeue_state() Signed-off-by: Mathias Nyman mathias.ny...@linux.intel.com --- drivers/usb/host/xhci-ring.c | 3 +++ drivers/usb/host/xhci.c | 6 ++ 2 files changed, 9

[RFCv2 09/10] xhci: Use completion and status in global command queue

2014-01-30 Thread Mathias Nyman
Remove the per-device command list and handle_cmd_in_cmd_wait_list() and use the completion and status variables found in the command structure in the global command list. Signed-off-by: Mathias Nyman mathias.ny...@linux.intel.com --- drivers/usb/host/xhci-hub.c | 11 -- drivers/usb/host

[RFCv2 06/10] xhci: use command structures for xhci_queue_reset_ep()

2014-01-30 Thread Mathias Nyman
Prepare for the global command ring by using command structures internally in functions calling xhci_queue_reset_ep() Signed-off-by: Mathias Nyman mathias.ny...@linux.intel.com --- drivers/usb/host/xhci-ring.c | 5 + drivers/usb/host/xhci.c | 6 ++ 2 files changed, 11 insertions

[RFCv2 10/10] xhci: rework command timeout and cancellation,

2014-01-30 Thread Mathias Nyman
either until the command completes normally, or until the whole command abortion is done. Signed-off-by: Mathias Nyman mathias.ny...@linux.intel.com --- drivers/usb/host/xhci-hub.c | 11 +- drivers/usb/host/xhci-mem.c | 15 +- drivers/usb/host/xhci-ring.c | 336

[RFCv2 08/10] xhci: Add a global command queue

2014-01-30 Thread Mathias Nyman
Create a list to store command structures, add a strucure to it every time a command is submitted, and remove it from the list once we get a command completion event matching the command. Signed-off-by: Mathias Nyman mathias.ny...@linux.intel.com --- drivers/usb/host/xhci-mem.c | 8

<    3   4   5   6   7   8   9   10   >