<feed xmlns='http://www.w3.org/2005/Atom'>
<title>pm24.git/drivers/usb, branch v3.17-rc5</title>
<subtitle>Unnamed repository; edit this file 'description' to name the repository.
</subtitle>
<id>https://git.kobert.dev/pm24.git/atom?h=v3.17-rc5</id>
<link rel='self' href='https://git.kobert.dev/pm24.git/atom?h=v3.17-rc5'/>
<link rel='alternate' type='text/html' href='https://git.kobert.dev/pm24.git/'/>
<updated>2014-09-11T22:08:14Z</updated>
<entry>
<title>Merge tag 'fixes-for-v3.17-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/balbi/usb into usb-linus</title>
<updated>2014-09-11T22:08:14Z</updated>
<author>
<name>Greg Kroah-Hartman</name>
<email>gregkh@linuxfoundation.org</email>
</author>
<published>2014-09-11T22:08:14Z</published>
<link rel='alternate' type='text/html' href='https://git.kobert.dev/pm24.git/commit/?id=e2c60989dc7e9c6fd28d234f70501a8c93c726aa'/>
<id>urn:sha1:e2c60989dc7e9c6fd28d234f70501a8c93c726aa</id>
<content type='text'>
Felipe writes:

usb: fixes for v3.17-rc4

Some late fixes for dwc3 so we have something more stable
on v3.17-final.

Most bugs have been there for quite a while and nobody
noticed, except for TRB completion when multiple TRBs
are started.

Patches were tested on AM437x SK and J6 EVM and are passing
my tests.

Signed-of-by: Felipe Balbi &lt;balbi@ti.com&gt;
</content>
</entry>
<entry>
<title>xhci: fix oops when xhci resumes from hibernate with hw lpm capable devices</title>
<updated>2014-09-11T21:23:52Z</updated>
<author>
<name>Mathias Nyman</name>
<email>mathias.nyman@linux.intel.com</email>
</author>
<published>2014-09-11T10:55:50Z</published>
<link rel='alternate' type='text/html' href='https://git.kobert.dev/pm24.git/commit/?id=96044694b8511bc2b04df0776b4ba295cfe005c0'/>
<id>urn:sha1:96044694b8511bc2b04df0776b4ba295cfe005c0</id>
<content type='text'>
Resuming from hibernate (S4) will restart and re-initialize xHC.
The device contexts are freed and will be re-allocated later during device reset.

Usb core will disable link pm in device resume before device reset, which will
try to change the max exit latency, accessing the device contexts before they are re-allocated.

There is no need to zero (disable) the max exit latency when disabling hw lpm
for a freshly re-initialized xHC. So check that device context exists before
doing anything. The max exit latency will be set again after device reset when usb core
enables the link pm.

Reported-by: Imre Deak &lt;imre.deak@intel.com&gt;
Tested-by: Imre Deak &lt;imre.deak@intel.com&gt;
Cc: stable &lt;stable@vger.kernel.org&gt;
Signed-off-by: Mathias Nyman &lt;mathias.nyman@linux.intel.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>usb: xhci: Fix OOPS in xhci error handling code</title>
<updated>2014-09-11T21:23:52Z</updated>
<author>
<name>Al Cooper</name>
<email>alcooperx@gmail.com</email>
</author>
<published>2014-09-11T10:55:49Z</published>
<link rel='alternate' type='text/html' href='https://git.kobert.dev/pm24.git/commit/?id=0eda06c7c17ae48d7db69beef57f6e2b20bc3c72'/>
<id>urn:sha1:0eda06c7c17ae48d7db69beef57f6e2b20bc3c72</id>
<content type='text'>
The xhci driver will OOPS on resume from S2/S3 if dma_alloc_coherent()
is out of memory. This is a result of two things:
1. xhci_mem_cleanup() in xhci-mem.c free's xhci-&gt;lpm_command if
it's not NULL, but doesn't set it to NULL after the free.
2. xhci_mem_cleanup() is called twice on resume, once for normal
restart and once from xhci_mem_init() if dma_alloc_coherent() fails,
resulting in a free of xhci-&gt;lpm_command that has already been freed.
The fix is to set xhci-&gt;lpm_command to NULL after freeing it.

Signed-off-by: Al Cooper &lt;alcooperx@gmail.com&gt;
Cc: stable &lt;stable@vger.kernel.org&gt;
Signed-off-by: Mathias Nyman &lt;mathias.nyman@linux.intel.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>xhci: Fix null pointer dereference if xhci initialization fails</title>
<updated>2014-09-11T21:23:52Z</updated>
<author>
<name>Mathias Nyman</name>
<email>mathias.nyman@linux.intel.com</email>
</author>
<published>2014-09-11T10:55:48Z</published>
<link rel='alternate' type='text/html' href='https://git.kobert.dev/pm24.git/commit/?id=c207e7c50f31113c24a9f536fcab1e8a256985d7'/>
<id>urn:sha1:c207e7c50f31113c24a9f536fcab1e8a256985d7</id>
<content type='text'>
If xhci initialization fails before the roothub bandwidth
domains (xhci-&gt;rh_bw[i]) are allocated it will oops when
trying to access rh_bw members in xhci_mem_cleanup().

Reported-by: Manuel Reimer &lt;manuel.reimer@gmx.de&gt;
Cc: stable &lt;stable@vger.kernel.org&gt;
Signed-off-by: Mathias Nyman &lt;mathias.nyman@linux.intel.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>storage: Add single-LUN quirk for Jaz USB Adapter</title>
<updated>2014-09-11T21:22:25Z</updated>
<author>
<name>Mark</name>
<email>markk@clara.co.uk</email>
</author>
<published>2014-09-11T12:15:45Z</published>
<link rel='alternate' type='text/html' href='https://git.kobert.dev/pm24.git/commit/?id=c66f1c62e85927357e7b3f4c701614dcb5c498a2'/>
<id>urn:sha1:c66f1c62e85927357e7b3f4c701614dcb5c498a2</id>
<content type='text'>
The Iomega Jaz USB Adapter is a SCSI-USB converter cable. The hardware
seems to be identical to e.g. the Microtech XpressSCSI, using a Shuttle/
SCM chip set. However its firmware restricts it to only work with Jaz
drives.

On connecting the cable a message like this appears four times in the log:
 reset full speed USB device number 4 using uhci_hcd

That's non-fatal but the US_FL_SINGLE_LUN quirk fixes it.

Signed-off-by: Mark Knibbs &lt;markk@clara.co.uk&gt;
Cc: stable &lt;stable@vger.kernel.org&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>uas: Add missing le16_to_cpu calls to asm1051 / asm1053 usb-id check</title>
<updated>2014-09-11T21:21:43Z</updated>
<author>
<name>Hans de Goede</name>
<email>hdegoede@redhat.com</email>
</author>
<published>2014-09-11T09:06:12Z</published>
<link rel='alternate' type='text/html' href='https://git.kobert.dev/pm24.git/commit/?id=a79e5bc53a9519202dfad7d916761601fcbf8db1'/>
<id>urn:sha1:a79e5bc53a9519202dfad7d916761601fcbf8db1</id>
<content type='text'>
Reported-by: kbuild test robot &lt;fengguang.wu@intel.com&gt;
Cc: stable@vger.kernel.org # 3.16
Signed-off-by: Hans de Goede &lt;hdegoede@redhat.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>usb: chipidea: msm: Initialize PHY on reset event</title>
<updated>2014-09-11T00:30:39Z</updated>
<author>
<name>Ivan T. Ivanov</name>
<email>iivanov@mm-sol.com</email>
</author>
<published>2014-09-11T00:19:00Z</published>
<link rel='alternate' type='text/html' href='https://git.kobert.dev/pm24.git/commit/?id=233c7daf4eecd1e992dc42591182cd4a892e687c'/>
<id>urn:sha1:233c7daf4eecd1e992dc42591182cd4a892e687c</id>
<content type='text'>
Initialize USB PHY after every Link controller reset

Cc: 3.16+ &lt;stable@vger.kernel.org&gt;
Cc: Tim Bird &lt;tbird20d@gmail.com&gt;
Signed-off-by: Peter Chen &lt;peter.chen@freescale.com&gt;
Signed-off-by: Ivan T. Ivanov &lt;iivanov@mm-sol.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>usb: chipidea: msm: Use USB PHY API to control PHY state</title>
<updated>2014-09-11T00:30:39Z</updated>
<author>
<name>Ivan T. Ivanov</name>
<email>iivanov@mm-sol.com</email>
</author>
<published>2014-09-11T00:18:59Z</published>
<link rel='alternate' type='text/html' href='https://git.kobert.dev/pm24.git/commit/?id=ea290056d7c46f7781ff13801048ed957b96d1a5'/>
<id>urn:sha1:ea290056d7c46f7781ff13801048ed957b96d1a5</id>
<content type='text'>
PHY drivers keep track of the current state of the hardware,
so don't change PHY settings under it.

Cc: 3.16+ &lt;stable@vger.kernel.org&gt;
Cc: Tim Bird &lt;tbird20d@gmail.com&gt;
Signed-off-by: Peter Chen &lt;peter.chen@freescale.com&gt;
Signed-off-by: Ivan T. Ivanov &lt;iivanov@mm-sol.com&gt;
Acked-by: Felipe Balbi &lt;balbi@ti.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>usb: hub: take hub-&gt;hdev reference when processing from eventlist</title>
<updated>2014-09-10T20:32:35Z</updated>
<author>
<name>Joe Lawrence</name>
<email>joe.lawrence@stratus.com</email>
</author>
<published>2014-09-10T19:07:50Z</published>
<link rel='alternate' type='text/html' href='https://git.kobert.dev/pm24.git/commit/?id=c605f3cdff53a743f6d875b76956b239deca1272'/>
<id>urn:sha1:c605f3cdff53a743f6d875b76956b239deca1272</id>
<content type='text'>
During surprise device hotplug removal tests, it was observed that
hub_events may try to call usb_lock_device on a device that has already
been freed. Protect the usb_device by taking out a reference (under the
hub_event_lock) when hub_events pulls it off the list, returning the
reference after hub_events is finished using it.

Signed-off-by: Joe Lawrence &lt;joe.lawrence@stratus.com&gt;
Suggested-by: David Bulkow &lt;david.bulkow@stratus.com&gt; for using kref
Suggested-by: Alan Stern &lt;stern@rowland.harvard.edu&gt; for placement
Acked-by: Alan Stern &lt;stern@rowland.harvard.edu&gt;
Cc: stable &lt;stable@vger.kernel.org&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>uas: Disable uas on ASM1051 devices</title>
<updated>2014-09-10T20:32:35Z</updated>
<author>
<name>Hans de Goede</name>
<email>hdegoede@redhat.com</email>
</author>
<published>2014-09-10T08:51:36Z</published>
<link rel='alternate' type='text/html' href='https://git.kobert.dev/pm24.git/commit/?id=a9c54caa456dccba938005f6479892b589975e6a'/>
<id>urn:sha1:a9c54caa456dccba938005f6479892b589975e6a</id>
<content type='text'>
There are a large numbers of issues with ASM1051 devices in uas mode:

1) They do not support REPORT SUPPORTED OPERATION CODES

2) They use out of spec 8 byte status iu-s when they have no sense data,
   switching to normal 16 byte status iu-s when they do have sense data.

3) They hang / crash when combined with some disks, e.g. a Crucial M500 ssd.

4) They hang / crash when stressed (through e.g. sg_reset --bus) with disks
   with which then normally do work (once 1 &amp; 2 are worked around).

Where as in BOT mode they appear to work fine, so the best way forward with
these devices is to just blacklist them for uas usage.

Unfortunately this is easier said then done. as older versions of the ASM1053
(which works fine) use the same usb-id as the ASM1051.

When connected over USB-3 the 2 can be told apart by the number of streams
they support. So this patch adds some less then pretty code to disable uas for
the ASM1051. When connected over USB-2, simply disable uas alltogether for
devices with the shared usb-id.

Cc: stable@vger.kernel.org # 3.16
Signed-off-by: Hans de Goede &lt;hdegoede@redhat.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
</entry>
</feed>
