<feed xmlns='http://www.w3.org/2005/Atom'>
<title>linux/drivers/usb/misc, branch v5.17</title>
<subtitle>Mirror of https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/
</subtitle>
<id>https://git.shady.money/linux/atom?h=v5.17</id>
<link rel='self' href='https://git.shady.money/linux/atom?h=v5.17'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/'/>
<updated>2022-01-31T13:22:49Z</updated>
<entry>
<title>usb: usb251xb: add boost-up property support</title>
<updated>2022-01-31T13:22:49Z</updated>
<author>
<name>Tommaso Merciai</name>
<email>tomm.merciai@gmail.com</email>
</author>
<published>2022-01-28T18:17:13Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=5c2b9c61ae5d8ad0a196d33b66ce44543be22281'/>
<id>urn:sha1:5c2b9c61ae5d8ad0a196d33b66ce44543be22281</id>
<content type='text'>
Add support for boost-up register of usb251xb hub.
boost-up property control USB electrical drive strength
This register can be set:

 - Normal mode -&gt; 0x00
 - Low         -&gt; 0x01
 - Medium      -&gt; 0x10
 - High        -&gt; 0x11

(Normal Default)

References:
 - http://www.mouser.com/catalog/specsheets/2514.pdf p29

Reviewed-by: Richard Leitner &lt;richard.leitner@linux.dev&gt;
Signed-off-by: Tommaso Merciai &lt;tomm.merciai@gmail.com&gt;
Link: https://lore.kernel.org/r/20220128181713.96856-1-tomm.merciai@gmail.com
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>usb: misc: ehset: Rework test mode entry</title>
<updated>2021-12-17T16:02:04Z</updated>
<author>
<name>Razvan Heghedus</name>
<email>heghedus.razvan@gmail.com</email>
</author>
<published>2021-12-13T18:36:15Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=f2b42379c57682d4b127283da109fa1a3317966a'/>
<id>urn:sha1:f2b42379c57682d4b127283da109fa1a3317966a</id>
<content type='text'>
The USB2.0 spec chapter 11.24.2.13 says that the USB port which is going
under test needs to be put in suspend state before sending the test
command. Many hubs, don't enforce this precondition and they work fine
without this step. We should follow the specification and put the USB
port in suspend before sending the test command.

Also there are some "special" hubs, which requires to disable the USB
port power instead of putting it in suspend. I found out only three hubs
which requires this step, but if more are found, they can be added to
the list.

Since this changes the default implementation, it raises the posibility
of finding other broken hubs which are not compliant with the spec and
the test command might not work is the port is suspended. If such hubs
are found, a similar workaround like the disable part can be implemented
to skip putting the port in suspend.

Signed-off-by: Razvan Heghedus &lt;heghedus.razvan@gmail.com&gt;
Link: https://lore.kernel.org/r/20211213183617.14156-2-heghedus.razvan@gmail.com
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>usb: ftdi-elan: fix memory leak on device disconnect</title>
<updated>2021-12-17T15:54:12Z</updated>
<author>
<name>Wei Yongjun</name>
<email>weiyongjun1@huawei.com</email>
</author>
<published>2021-12-17T08:34:28Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=1646566b5e0c556f779180a8514e521ac735de1e'/>
<id>urn:sha1:1646566b5e0c556f779180a8514e521ac735de1e</id>
<content type='text'>
'ftdi' is alloced when probe device, but not free on device disconnect,
this cause a memory leak as follows:

unreferenced object 0xffff88800d584000 (size 8400):
  comm "kworker/0:2", pid 3809, jiffies 4295453055 (age 13.784s)
  hex dump (first 32 bytes):
    00 40 58 0d 80 88 ff ff 00 40 58 0d 80 88 ff ff  .@X......@X.....
    00 00 00 00 00 00 00 00 00 00 00 00 ad 4e ad de  .............N..
  backtrace:
    [&lt;000000000d47f947&gt;] kmalloc_order_trace+0x19/0x110 mm/slab_common.c:960
    [&lt;000000008548ac68&gt;] ftdi_elan_probe+0x8c/0x880 drivers/usb/misc/ftdi-elan.c:2647
    [&lt;000000007f73e422&gt;] usb_probe_interface+0x31b/0x800 drivers/usb/core/driver.c:396
    [&lt;00000000fe8d07fc&gt;] really_probe+0x299/0xc30 drivers/base/dd.c:517
    [&lt;0000000005da7d32&gt;] __driver_probe_device+0x357/0x500 drivers/base/dd.c:751
    [&lt;000000003c2c9579&gt;] driver_probe_device+0x4e/0x140 drivers/base/dd.c:781

Fix it by freeing 'ftdi' after nobody use it.

Fixes: a5c66e4b2418 ("USB: ftdi-elan: client driver for ELAN Uxxx adapters")
Reported-by: Hulk Robot &lt;hulkci@huawei.com&gt;
Signed-off-by: Wei Yongjun &lt;weiyongjun1@huawei.com&gt;
Link: https://lore.kernel.org/r/20211217083428.2441-1-weiyongjun1@huawei.com
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>USB: iowarrior: fix control-message timeouts</title>
<updated>2021-10-26T17:12:28Z</updated>
<author>
<name>Johan Hovold</name>
<email>johan@kernel.org</email>
</author>
<published>2021-10-25T11:51:59Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=79a4479a17b83310deb0b1a2a274fe5be12d2318'/>
<id>urn:sha1:79a4479a17b83310deb0b1a2a274fe5be12d2318</id>
<content type='text'>
USB control-message timeouts are specified in milliseconds and should
specifically not vary with CONFIG_HZ.

Use the common control-message timeout define for the five-second
timeout and drop the driver-specific one.

Fixes: 946b960d13c1 ("USB: add driver for iowarrior devices.")
Cc: stable@vger.kernel.org      # 2.6.21
Signed-off-by: Johan Hovold &lt;johan@kernel.org&gt;
Link: https://lore.kernel.org/r/20211025115159.4954-3-johan@kernel.org
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>Revert "usb: misc: ehset: Workaround for "special" hubs"</title>
<updated>2021-10-07T10:48:54Z</updated>
<author>
<name>Johan Hovold</name>
<email>johan@kernel.org</email>
</author>
<published>2021-10-07T09:06:01Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=2c52ad743fee10c0815db77a4e47f2416d407123'/>
<id>urn:sha1:2c52ad743fee10c0815db77a4e47f2416d407123</id>
<content type='text'>
This reverts commit ce3e90d5a0cdbcb2ddebbf9e4363e59fa779ad3a.

The commit in question added list of quirky hubs, but the match
implementation clearly hasn't been tested at all.

First, hub_udev-&gt;dev.parent does not represent a USB interface so using
to_usb_interface() makes no sense and we'd be passing a random pointer
to usb_match_id().

Second, if hub_udev is a root hub it doesn't even even represent a USB
device.

Signed-off-by: Johan Hovold &lt;johan@kernel.org&gt;
Fixes: ce3e90d5a0cd ("usb: misc: ehset: Workaround for "special" hubs")
Cc: Razvan Heghedus &lt;heghedus.razvan@gmail.com&gt;
Link: https://lore.kernel.org/r/20211007090601.19156-1-johan@kernel.org
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>usb: misc: ehset: Workaround for "special" hubs</title>
<updated>2021-10-05T10:39:46Z</updated>
<author>
<name>Razvan Heghedus</name>
<email>heghedus.razvan@gmail.com</email>
</author>
<published>2021-09-15T12:16:13Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=ce3e90d5a0cdbcb2ddebbf9e4363e59fa779ad3a'/>
<id>urn:sha1:ce3e90d5a0cdbcb2ddebbf9e4363e59fa779ad3a</id>
<content type='text'>
The USB2.0 spec chapter 11.24.2.13 says that the USB port which is going
under test needs to be put in suspend state before sending the test
command. Many hubs, don't enforce this precondition and they work fine
without this step. But there are some "special" hubs, which requires to
disable the port power before sending the test command.

Because the USB spec mention that the port should be suspended, also
do this step before sending the test command. This could rise the
problem with other hubs which are not compliant with the spec and the
test command will not work if the port is suspend. If such hubs are
found, a similar workaround like the disable part could be implemented
to skip the suspend port command.

Signed-off-by: Razvan Heghedus &lt;heghedus.razvan@gmail.com&gt;
Link: https://lore.kernel.org/r/20210915121615.3790-1-heghedus.razvan@gmail.com
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>usb: misc: brcmstb-usb-pinmap: add IRQ check</title>
<updated>2021-08-13T11:05:50Z</updated>
<author>
<name>Sergey Shtylyov</name>
<email>s.shtylyov@omp.ru</email>
</author>
<published>2021-08-09T20:45:15Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=711087f342914e831269438ff42cf59bb0142c71'/>
<id>urn:sha1:711087f342914e831269438ff42cf59bb0142c71</id>
<content type='text'>
The driver neglects to check the result of platform_get_irq()'s call and
blithely passes the negative error codes to devm_request_irq() (which takes
*unsigned* IRQ #), causing it to fail with -EINVAL, overriding an original
error code.  Stop calling devm_request_irq() with the invalid IRQ #s.

Fixes: 517c4c44b323 ("usb: Add driver to allow any GPIO to be used for 7211 USB signals")
Reviewed-by: Florian Fainelli &lt;f.fainelli@gmail.com&gt;
Signed-off-by: Sergey Shtylyov &lt;s.shtylyov@omp.ru&gt;
Link: https://lore.kernel.org/r/806d0b1a-365b-93d9-3fc1-922105ca5e61@omp.ru
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>usb: misc: adutux: use swap()</title>
<updated>2021-08-05T10:31:34Z</updated>
<author>
<name>Salah Triki</name>
<email>salah.triki@gmail.com</email>
</author>
<published>2021-08-03T00:53:43Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=e21dd90eb86488fb2689c766311eb6fce98b2eb7'/>
<id>urn:sha1:e21dd90eb86488fb2689c766311eb6fce98b2eb7</id>
<content type='text'>
Use swap() in order to make code cleaner. Issue found by coccinelle.

Signed-off-by: Salah Triki &lt;salah.triki@gmail.com&gt;
Link: https://lore.kernel.org/r/20210803005343.GA1578854@pc
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>usb: ftdi-elan: remove redundant continue statement in a while-loop</title>
<updated>2021-06-24T12:12:09Z</updated>
<author>
<name>Colin Ian King</name>
<email>colin.king@canonical.com</email>
</author>
<published>2021-06-21T09:55:45Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=269072a3d9073aa975f4f16bdfd828c6ab15e755'/>
<id>urn:sha1:269072a3d9073aa975f4f16bdfd828c6ab15e755</id>
<content type='text'>
The continue statement at the end of the while-loop is redundant,
remove it.

Signed-off-by: Colin Ian King &lt;colin.king@canonical.com&gt;
Addresses-Coverity: ("Continue has no effect")
Link: https://lore.kernel.org/r/20210621095545.9659-1-colin.king@canonical.com
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>Revert "USB: misc: Add onboard_usb_hub driver"</title>
<updated>2021-06-18T06:39:24Z</updated>
<author>
<name>Greg Kroah-Hartman</name>
<email>gregkh@linuxfoundation.org</email>
</author>
<published>2021-06-18T06:39:24Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=04d72afa34edd14d99db7536d22819cdbb2b2e4c'/>
<id>urn:sha1:04d72afa34edd14d99db7536d22819cdbb2b2e4c</id>
<content type='text'>
This reverts commit b4e326165e21d6a11483f6a4de2174b933413554 as the
patch series is causing build issues in linux-next at the moment.

Cc: Matthias Kaehlcke &lt;mka@chromium.org&gt;
Link: https://lore.kernel.org/r/YMuRcrE8xlWnFSWW@google.com
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
</entry>
</feed>
