<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel.git/drivers/usb/musb, branch linux-4.7.y</title>
<subtitle>Hosts the 0x221E linux distro kernel.
</subtitle>
<id>https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-4.7.y</id>
<link rel='self' href='https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-4.7.y'/>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/'/>
<updated>2016-06-14T20:36:23Z</updated>
<entry>
<title>usb: musb: sunxi: Remove bogus "Frees glue" comment</title>
<updated>2016-06-14T20:36:23Z</updated>
<author>
<name>Hans de Goede</name>
</author>
<published>2016-06-14T20:13:06Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=1c4bf5ac6a16d9321b51e91acef481b090e5486b'/>
<id>urn:sha1:1c4bf5ac6a16d9321b51e91acef481b090e5486b</id>
<content type='text'>
The comment is wrong, glue is devm_kzalloc-ed mem attached to the
"allwinner,sun4i-a10-musb" compatible platform-dev. Where as
glue-&gt;musb_pdev is a newly created "musb-hdrc" platform-dev.

Signed-off-by: Hans de Goede &lt;hdegoede@redhat.com&gt;
[b-liu@ti.com: revise subject prefix]
Signed-off-by: Bin Liu &lt;b-liu@ti.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>usb: musb: sunxi: Fix NULL ptr deref when gadget is registered before musb</title>
<updated>2016-06-14T20:36:23Z</updated>
<author>
<name>Hans de Goede</name>
</author>
<published>2016-06-14T20:13:05Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=969a132723434f3723cc0606373785d19c1d2f05'/>
<id>urn:sha1:969a132723434f3723cc0606373785d19c1d2f05</id>
<content type='text'>
Stop using the return value of platform_device_register_full() to get to
the struct musb in sunxi_musb_work(). If a gadget has been registered
(insmod-ed) before the musb driver, then musb_start will get called
from the musb_core probe function and sunxi_musb_work() may run before
platform_device_register_full() has returned.

Instead store a pointer to struct musb in struct sunxi_glue when
sunxi_musb_enable gets called. Note that sunxi_musb_enable always gets
called before sunxi_musb_work() can run.

Signed-off-by: Hans de Goede &lt;hdegoede@redhat.com&gt;
[b-liu@ti.com: revise subject prefix]
Signed-off-by: Bin Liu &lt;b-liu@ti.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>usb: musb: Stop bulk endpoint while queue is rotated</title>
<updated>2016-06-01T21:58:59Z</updated>
<author>
<name>Andrew Goodbody</name>
</author>
<published>2016-05-31T15:05:27Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=7b2c17f829545df27a910e8d82e133c21c9a8c9c'/>
<id>urn:sha1:7b2c17f829545df27a910e8d82e133c21c9a8c9c</id>
<content type='text'>
Ensure that the endpoint is stopped by clearing REQPKT before
clearing DATAERR_NAKTIMEOUT before rotating the queue on the
dedicated bulk endpoint.
This addresses an issue where a race could result in the endpoint
receiving data before it was reprogrammed resulting in a warning
about such data from musb_rx_reinit before it was thrown away.
The data thrown away was a valid packet that had been correctly
ACKed which meant the host and device got out of sync.

Signed-off-by: Andrew Goodbody &lt;andrew.goodbody@cambrionix.com&gt;
Cc: stable@vger.kernel.org
Signed-off-by: Bin Liu &lt;b-liu@ti.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>usb: musb: Ensure rx reinit occurs for shared_fifo endpoints</title>
<updated>2016-06-01T21:58:59Z</updated>
<author>
<name>Andrew Goodbody</name>
</author>
<published>2016-05-31T15:05:26Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=f3eec0cf784e0d6c47822ca6b66df3d5812af7e6'/>
<id>urn:sha1:f3eec0cf784e0d6c47822ca6b66df3d5812af7e6</id>
<content type='text'>
shared_fifo endpoints would only get a previous tx state cleared
out, the rx state was only cleared for non shared_fifo endpoints
Change this so that the rx state is cleared for all endpoints.
This addresses an issue that resulted in rx packets being dropped
silently.

Signed-off-by: Andrew Goodbody &lt;andrew.goodbody@cambrionix.com&gt;
Cc: stable@vger.kernel.org
Signed-off-by: Bin Liu &lt;b-liu@ti.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>usb: musb: host: correct cppi dma channel for isoch transfer</title>
<updated>2016-06-01T21:58:59Z</updated>
<author>
<name>Bin Liu</name>
</author>
<published>2016-05-31T15:05:25Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=04471eb8c3158c0ad9df4b24da845a63b2e8f23a'/>
<id>urn:sha1:04471eb8c3158c0ad9df4b24da845a63b2e8f23a</id>
<content type='text'>
Incorrect cppi dma channel is referenced in musb_rx_dma_iso_cppi41(),
which causes kernel NULL pointer reference oops later when calling
cppi41_dma_channel_program().

Fixes: 069a3fd (usb: musb: Remove ifdefs for musb_host_rx in musb_host.c
part1)

Cc: &lt;stable@vger.kernel.org&gt; # v4.2+
Reported-by: Matwey V. Kornilov &lt;matwey@sai.msu.ru&gt;
Acked-by: Tony Lindgren &lt;tony@atomide.com&gt;
Signed-off-by: Bin Liu &lt;b-liu@ti.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>usb: musb: only restore devctl when session was set in backup</title>
<updated>2016-06-01T21:58:59Z</updated>
<author>
<name>Bin Liu</name>
</author>
<published>2016-05-31T15:05:24Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=84ac5d1140f716a616522f952734e850448d2556'/>
<id>urn:sha1:84ac5d1140f716a616522f952734e850448d2556</id>
<content type='text'>
If the session bit was not set in the backup of devctl register,
restoring devctl would clear the session bit. Therefor, only restore
devctl register when the session bit was set in the backup.

This solves the device enumeration failure in otg mode exposed by commit
56f487c (PM / Runtime: Update last_busy in rpm_resume).

Cc: &lt;stable@vger.kernel.org&gt; # v4.2+
Signed-off-by: Bin Liu &lt;b-liu@ti.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>usb: musb: Use normal module_init for 2430 glue</title>
<updated>2016-06-01T21:58:59Z</updated>
<author>
<name>Tony Lindgren</name>
</author>
<published>2016-05-31T15:05:22Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=aec373c1e5d87d791525a675fe726c11d64b84a8'/>
<id>urn:sha1:aec373c1e5d87d791525a675fe726c11d64b84a8</id>
<content type='text'>
There's no longer any need for custom initcall level for
musb.

Signed-off-by: Tony Lindgren &lt;tony@atomide.com&gt;
Signed-off-by: Bin Liu &lt;b-liu@ti.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>usb: musb: Remove pm_runtime_set_irq_safe</title>
<updated>2016-06-01T21:58:59Z</updated>
<author>
<name>Tony Lindgren</name>
</author>
<published>2016-05-31T15:05:21Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=1c4d0b4e18068b49e0eb9bf5125ff25c6d1452cd'/>
<id>urn:sha1:1c4d0b4e18068b49e0eb9bf5125ff25c6d1452cd</id>
<content type='text'>
With the pull up being handled with delayed work, we can
now finally remove pm_runtime_set_irq_safe that blocks the
MUSB glue from idling.

Signed-off-by: Tony Lindgren &lt;tony@atomide.com&gt;
Signed-off-by: Bin Liu &lt;b-liu@ti.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>usb: musb: Remove extra PM runtime calls from 2430 glue layer</title>
<updated>2016-06-01T21:58:59Z</updated>
<author>
<name>Tony Lindgren</name>
</author>
<published>2016-05-31T15:05:20Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=87326e858448c40e32f142c0b8dcc59d7b27c641'/>
<id>urn:sha1:87326e858448c40e32f142c0b8dcc59d7b27c641</id>
<content type='text'>
With PM runtime behaving, these are all now unnecessary.
Doing pm_runtime_get(musb-&gt;controller) will keep the parent
glue layer also active.

Signed-off-by: Tony Lindgren &lt;tony@atomide.com&gt;
Signed-off-by: Bin Liu &lt;b-liu@ti.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>usb: musb: Return error value from musb_mailbox</title>
<updated>2016-06-01T21:58:59Z</updated>
<author>
<name>Tony Lindgren</name>
</author>
<published>2016-05-31T15:05:19Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=12b7db2bf8b88938798c60416172b53225207b1f'/>
<id>urn:sha1:12b7db2bf8b88938798c60416172b53225207b1f</id>
<content type='text'>
At least on n900 we have phy-twl4030-usb only generating cable
interrupts, and then have a separate USB PHY.

In order for musb to know the real cable status, we need to
clear any cached state until musb is ready. Otherwise the cable
status interrupts will get just ignored if the status does
not change from the initial state.

To do this, let's add a return value to musb_mailbox(), and
reset cached linkstat to MUSB_UNKNOWN on error. Sorry to cause
a bit of churn here, I should have added that already last time
patching musb_mailbox().

Signed-off-by: Tony Lindgren &lt;tony@atomide.com&gt;
Signed-off-by: Bin Liu &lt;b-liu@ti.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
</entry>
</feed>
