<feed xmlns='http://www.w3.org/2005/Atom'>
<title>starfive-tech/linux.git/drivers/usb, branch VF2_v3.4.5</title>
<subtitle>StarFive Tech Linux Kernel for VisionFive (JH7110) boards (mirror)</subtitle>
<id>https://git.radix-linux.su/starfive-tech/linux.git/atom?h=VF2_v3.4.5</id>
<link rel='self' href='https://git.radix-linux.su/starfive-tech/linux.git/atom?h=VF2_v3.4.5'/>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/starfive-tech/linux.git/'/>
<updated>2023-07-03T09:16:55+00:00</updated>
<entry>
<title>usb: xhci: using dma_alloc_noncoherent to alloc low memory pool</title>
<updated>2023-07-03T09:16:55+00:00</updated>
<author>
<name>Minda Chen</name>
<email>minda.chen@starfivetech.com</email>
</author>
<published>2023-07-03T08:14:20+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/starfive-tech/linux.git/commit/?id=19b64491d3ac9025661081347b3bf358daf5dea2'/>
<id>urn:sha1:19b64491d3ac9025661081347b3bf358daf5dea2</id>
<content type='text'>
For RISCV_NONCACHEHERENT is set, using dma_alloc_noncoherent
to alloc cached large block low memory buffer. And set default
size to 4M. (largest size of continuous memory can be supported)

Signed-off-by: Minda Chen &lt;minda.chen@starfivetech.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'CR_3137_usb_hiber_notify_minda' into 'jh7110-5.15.y-devel'</title>
<updated>2023-02-03T11:51:36+00:00</updated>
<author>
<name>andy.hu</name>
<email>andy.hu@starfivetech.com</email>
</author>
<published>2023-02-03T11:51:36+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/starfive-tech/linux.git/commit/?id=cdf52b60e62eac9aa951f7b85123350fbd1471b5'/>
<id>urn:sha1:cdf52b60e62eac9aa951f7b85123350fbd1471b5</id>
<content type='text'>
CR_3137 usb: cdns3: add hibernation pm notifier to set roothub wakeup

See merge request sdk/linux!679</content>
</entry>
<entry>
<title>usb: cdns3: add hibernation pm notifier to set roothub wakeup</title>
<updated>2023-02-01T06:48:04+00:00</updated>
<author>
<name>minda.chen</name>
<email>minda.chen@starfivetech.com</email>
</author>
<published>2023-01-30T09:12:36+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/starfive-tech/linux.git/commit/?id=dbb6aa5ac8670fc5ae576a2422bc5957e3297d69'/>
<id>urn:sha1:dbb6aa5ac8670fc5ae576a2422bc5957e3297d69</id>
<content type='text'>
In hibernation resume case. usb devices maybe not emulated,
roothub is suspended, In this case, usb devices will be resume
fail. Set roothub active while hibernation resume.

Signed-off-by: minda.chen &lt;minda.chen@starfivetech.com&gt;
</content>
</entry>
<entry>
<title>usb:xhci:To improve performance,usb using lowmem for bulk xfer.</title>
<updated>2023-01-29T01:17:24+00:00</updated>
<author>
<name>minda.chen</name>
<email>minda.chen@starfivetech.com</email>
</author>
<published>2022-10-18T01:57:39+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/starfive-tech/linux.git/commit/?id=ca21eaca26c42c1f77e5ba7b313b6303ca892e3d'/>
<id>urn:sha1:ca21eaca26c42c1f77e5ba7b313b6303ca892e3d</id>
<content type='text'>
Generate an usb low memory pool for usb 3.0 host
read/write transfer, default size is 8M.

Signed-off-by: minda.chen &lt;minda.chen@starfivetech.com&gt;
</content>
</entry>
<entry>
<title>usb: phy: init phy in resume function</title>
<updated>2023-01-11T09:41:12+00:00</updated>
<author>
<name>minda.chen</name>
<email>minda.chen@starfivetech.com</email>
</author>
<published>2023-01-11T08:58:11+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/starfive-tech/linux.git/commit/?id=b861c91f0ceda34de8993e84c7aee62510fdfdb1'/>
<id>urn:sha1:b861c91f0ceda34de8993e84c7aee62510fdfdb1</id>
<content type='text'>
usb phy will be reset in suspend procedure. After resume.
Some devices can not work. In usb resume, init phy again.

Signed-off-by: minda.chen &lt;minda.chen@starfivetech.com&gt;
</content>
</entry>
<entry>
<title>USB: core: Fix bug in resuming hub's handling of wakeup requests</title>
<updated>2022-11-10T09:05:37+00:00</updated>
<author>
<name>Alan Stern</name>
<email>stern@rowland.harvard.edu</email>
</author>
<published>2022-01-01T19:52:14+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/starfive-tech/linux.git/commit/?id=1ffe8d94b711c207eb2857159d8aecf3ef42ad9f'/>
<id>urn:sha1:1ffe8d94b711c207eb2857159d8aecf3ef42ad9f</id>
<content type='text'>
Bugzilla #213839 reports a 7-port hub that doesn't work properly when
devices are plugged into some of the ports; the kernel goes into an
unending disconnect/reinitialize loop as shown in the bug report.

This "7-port hub" comprises two four-port hubs with one plugged into
the other; the failures occur when a device is plugged into one of the
downstream hub's ports.  (These hubs have other problems too.  For
example, they bill themselves as USB-2.0 compliant but they only run
at full speed.)

It turns out that the failures are caused by bugs in both the kernel
and the hub.  The hub's bug is that it reports a different
bmAttributes value in its configuration descriptor following a remote
wakeup (0xe0 before, 0xc0 after -- the wakeup-support bit has
changed).

The kernel's bug is inside the hub driver's resume handler.  When
hub_activate() sees that one of the hub's downstream ports got a
wakeup request from a child device, it notes this fact by setting the
corresponding bit in the hub-&gt;change_bits variable.  But this variable
is meant for connection changes, not wakeup events; setting it causes
the driver to believe the downstream port has been disconnected and
then connected again (in addition to having received a wakeup
request).

Because of this, the hub driver then tries to check whether the device
currently plugged into the downstream port is the same as the device
that had been attached there before.  Normally this check succeeds and
wakeup handling continues with no harm done (which is why the bug
remained undetected until now).  But with these dodgy hubs, the check
fails because the config descriptor has changed.  This causes the hub
driver to reinitialize the child device, leading to the
disconnect/reinitialize loop described in the bug report.

The proper way to note reception of a downstream wakeup request is
to set a bit in the hub-&gt;event_bits variable instead of
hub-&gt;change_bits.  That way the hub driver will realize that something
has happened to the port but will not think the port and child device
have been disconnected.  This patch makes that change.

Cc: &lt;stable@vger.kernel.org&gt;
Tested-by: Jonathan McDowell &lt;noodles@earth.li&gt;
Signed-off-by: Alan Stern &lt;stern@rowland.harvard.edu&gt;
Link: https://lore.kernel.org/r/YdCw7nSfWYPKWQoD@rowland.harvard.edu
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
Signed-off-by: minda.chen &lt;minda.chen@starfivetech.com&gt;
</content>
</entry>
<entry>
<title>usb: cdns: add pm and runtume pm ops</title>
<updated>2022-10-27T05:56:12+00:00</updated>
<author>
<name>minda.chen</name>
<email>minda.chen@starfivetech.com</email>
</author>
<published>2022-10-08T11:07:06+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/starfive-tech/linux.git/commit/?id=7f10362dfcf51fe7018d9b0b26db8d9b0baf7e39'/>
<id>urn:sha1:7f10362dfcf51fe7018d9b0b26db8d9b0baf7e39</id>
<content type='text'>
add starfive pm supend/resume and runtime pm runtime
suspend and resume ops

Signed-off-by: minda.chen &lt;minda.chen@starfivetech.com&gt;
</content>
</entry>
<entry>
<title>usb: gadget: add usb device mass storage and functinfs support</title>
<updated>2022-08-01T02:06:41+00:00</updated>
<author>
<name>minda.chen</name>
<email>minda.chen@starfivetech.com</email>
</author>
<published>2022-07-29T05:29:18+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/starfive-tech/linux.git/commit/?id=2039c204733705acb39bf35e32f756d0c6fa67db'/>
<id>urn:sha1:2039c204733705acb39bf35e32f756d0c6fa67db</id>
<content type='text'>
USB mass storage and functionfs activated by configfs.
Support both 2.0 and 3.0.

Signed-off-by: minda.chen &lt;minda.chen@starfivetech.com&gt;
</content>
</entry>
<entry>
<title>usb: cdns3: Enable LS keep-alive signal</title>
<updated>2022-07-29T03:43:13+00:00</updated>
<author>
<name>mason.huo</name>
<email>mason.huo@starfivetech.com</email>
</author>
<published>2022-07-29T02:44:45+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/starfive-tech/linux.git/commit/?id=b531495da231905b67b730f69be7075b896799df'/>
<id>urn:sha1:b531495da231905b67b730f69be7075b896799df</id>
<content type='text'>
The default naneng phy setting of LS keep-alive
is not enabled, that will cause some usb mouse
(Lenovo sm8823) does not work properly.
Also some usb keyboards can not enumerated.

Signed-off-by: mason.huo &lt;mason.huo@starfivetech.com&gt;
</content>
</entry>
<entry>
<title>usb: cdns3: Configuare phy as down-spread-spectrum</title>
<updated>2022-07-08T05:15:28+00:00</updated>
<author>
<name>mason.huo</name>
<email>mason.huo@starfivetech.com</email>
</author>
<published>2022-07-08T03:24:21+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/starfive-tech/linux.git/commit/?id=0660567dc11b608575834adbc6c5cebf27e6fba8'/>
<id>urn:sha1:0660567dc11b608575834adbc6c5cebf27e6fba8</id>
<content type='text'>
The default phy spread-spectrum mode is up-spread-spectrum,
which is violated the usb3 spec.
The up-spread-spectrum mode leads to phy buffers overrun.

Signed-off-by: mason.huo &lt;mason.huo@starfivetech.com&gt;
</content>
</entry>
</feed>
