<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel.git/drivers/usb/gadget/composite.c, branch linux-4.3.y</title>
<subtitle>Hosts the 0x221E linux distro kernel.
</subtitle>
<id>https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-4.3.y</id>
<link rel='self' href='https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-4.3.y'/>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/'/>
<updated>2015-07-29T14:59:20Z</updated>
<entry>
<title>usb: gadget: composite: add USB_DT_OTG request handling</title>
<updated>2015-07-29T14:59:20Z</updated>
<author>
<name>Macpaul Lin</name>
</author>
<published>2015-07-09T07:18:42Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=53e6242db8d60da0587d36951cc9434d1a1c21dd'/>
<id>urn:sha1:53e6242db8d60da0587d36951cc9434d1a1c21dd</id>
<content type='text'>
Copy usb_otg_descriptor from config's descriptor if host requests
USB_DT_OTG.

Signed-off-by: Macpaul Lin &lt;macpaul@gmail.com&gt;
Signed-off-by: Li Jun &lt;jun.li@freescale.com&gt;
Reviewed-by: Roger Quadros &lt;rogerq@ti.com&gt;
Signed-off-by: Felipe Balbi &lt;balbi@ti.com&gt;
</content>
</entry>
<entry>
<title>usb: composite: add bind_deactivated flag to usb_function</title>
<updated>2015-07-29T14:59:19Z</updated>
<author>
<name>Robert Baldyga</name>
</author>
<published>2015-05-04T12:55:13Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=d5bb9b81dbfa35d117ecb58022ee6e7e41e4772d'/>
<id>urn:sha1:d5bb9b81dbfa35d117ecb58022ee6e7e41e4772d</id>
<content type='text'>
This patch introduces 'bind_deactivated' flag in struct usb_function.
Functions which don't want to be activated automatically after bind should
set this flag, and when they start to be ready to work they should call
usb_function_activate().

When USB function sets 'bind_deactivated' flag, initial deactivation
counter is incremented automatically, so there is no need to call
usb_function_deactivate() in function bind.

Signed-off-by: Robert Baldyga &lt;r.baldyga@samsung.com&gt;
Signed-off-by: Felipe Balbi &lt;balbi@ti.com&gt;
</content>
</entry>
<entry>
<title>usb: composite: fix usb_function_activate/deactivate functions</title>
<updated>2015-07-29T14:59:19Z</updated>
<author>
<name>Robert Baldyga</name>
</author>
<published>2015-05-04T12:55:12Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=5601250bb1b4e736cf487d332f2d8d8833a84209'/>
<id>urn:sha1:5601250bb1b4e736cf487d332f2d8d8833a84209</id>
<content type='text'>
Using usb_gadget_disconnect to make gadget temporarily invisible to host
doesn't provide desired result, because gadget is connected immediately
after binding regardless to previous usb_gadget_disconnect() calls.

For this reason we use usb_gadget_deactivate() instead of
usb_gadget_disconnect() to make it working as expected.

Signed-off-by: Robert Baldyga &lt;r.baldyga@samsung.com&gt;
Signed-off-by: Felipe Balbi &lt;balbi@ti.com&gt;
</content>
</entry>
<entry>
<title>usb: gadget: composite.c: i18n is not an acronym</title>
<updated>2015-07-29T14:59:18Z</updated>
<author>
<name>Diego Viola</name>
</author>
<published>2015-05-31T18:52:41Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=ad4676ab58ae38e5597a2d6bc0d12e9b5e0b0d18'/>
<id>urn:sha1:ad4676ab58ae38e5597a2d6bc0d12e9b5e0b0d18</id>
<content type='text'>
I18N should be spelled as i18n because it's not
an acronym

Signed-off-by: Diego Viola &lt;diego.viola@gmail.com&gt;
Signed-off-by: Felipe Balbi &lt;balbi@ti.com&gt;
</content>
</entry>
<entry>
<title>usb: gadget: composite: Fix NULL pointer dereference</title>
<updated>2015-07-06T17:34:08Z</updated>
<author>
<name>Kishon Vijay Abraham I</name>
</author>
<published>2015-06-11T16:42:11Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=b4c21f0bdd2c0cd5d5be1bb56f0a28dae5041eed'/>
<id>urn:sha1:b4c21f0bdd2c0cd5d5be1bb56f0a28dae5041eed</id>
<content type='text'>
commit f563d230903210acc ("usb: gadget: composite: add req_match method
to usb_function") accesses cdev-&gt;config even before set config
is invoked causing a NULL pointer dereferencing error while running
Lecroy Mass Storage Compliance test.

Fix it here by accessing cdev-&gt;config only if it is non NULL.

Fixes: commit f563d230903210acc ("usb: gadget: composite: add req_match
method to usb_function").

Signed-off-by: Kishon Vijay Abraham I &lt;kishon@ti.com&gt;
Signed-off-by: Felipe Balbi &lt;balbi@ti.com&gt;
</content>
</entry>
<entry>
<title>usb: gadget: Fix typo fond in Documentation/Docbook/gadget.xml</title>
<updated>2015-03-11T15:19:35Z</updated>
<author>
<name>Masanari Iida</name>
</author>
<published>2015-03-10T13:37:46Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=06ed0de5188c9ef6553b2824b6cdd767ad46ece5'/>
<id>urn:sha1:06ed0de5188c9ef6553b2824b6cdd767ad46ece5</id>
<content type='text'>
This patch fix some spelling typo found in gadget.xml.
It is because this file is generated from comments in sources,
I had to fix comments in the source, instead of xml file itself.

Signed-off-by: Masanari Iida &lt;standby24x7@gmail.com&gt;
Signed-off-by: Felipe Balbi &lt;balbi@ti.com&gt;
</content>
</entry>
<entry>
<title>usb: gadget: composite: add req_match method to usb_function</title>
<updated>2015-03-10T20:33:39Z</updated>
<author>
<name>Andrzej Pietrasiewicz</name>
</author>
<published>2015-03-03T09:52:23Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=f563d230903210acc2336af58e422216b68ded76'/>
<id>urn:sha1:f563d230903210acc2336af58e422216b68ded76</id>
<content type='text'>
Non-standard requests can encode the actual interface number in a
non-standard way. For example composite_setup() assumes
that it is w_index &amp;&amp; 0xFF, but the printer function encodes the interface
number in a context-dependet way (either w_index or w_index &gt;&gt; 8).
This can lead to such requests being directed to wrong functions.

This patch adds req_match() method to usb_function. Its purpose is to
verify that a given request can be handled by a given function.
If any function within a configuration provides the method and it returns
true, then it is assumed that the right function is found.

If a function uses req_match(), it should try as hard as possible to
determine if the request is meant for it.

If no functions in a configuration provide req_match or none of them
returns true, then fall back to the usual approach.

Signed-off-by: Andrzej Pietrasiewicz &lt;andrzej.p@samsung.com&gt;
Signed-off-by: Felipe Balbi &lt;balbi@ti.com&gt;
</content>
</entry>
<entry>
<title>usb: gadget: composite: don't try standard handling for non-standard requests</title>
<updated>2015-03-10T20:33:33Z</updated>
<author>
<name>Andrzej Pietrasiewicz</name>
</author>
<published>2015-03-03T09:52:04Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=232c0102e84b7fce634c8902a5fa30ca2b3342ac'/>
<id>urn:sha1:232c0102e84b7fce634c8902a5fa30ca2b3342ac</id>
<content type='text'>
If a non-standard request is processed and its parameters just happen
to match those of some standard request, the logic of composite_setup()
can be fooled, so don't even try any switch cases, just go to the
proper place where unknown requests are handled.

Signed-off-by: Andrzej Pietrasiewicz &lt;andrzej.p@samsung.com&gt;
Signed-off-by: Felipe Balbi &lt;balbi@ti.com&gt;
</content>
</entry>
<entry>
<title>usb: gadget: Fix os desc test</title>
<updated>2015-01-27T15:34:58Z</updated>
<author>
<name>Mario Schuknecht</name>
</author>
<published>2015-01-26T19:30:27Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=df6738d0d23321da834e9025845e26e09b0f6615'/>
<id>urn:sha1:df6738d0d23321da834e9025845e26e09b0f6615</id>
<content type='text'>
USB vendor type is encoded in field bmRequestType. Make test USB_TYPE_VENDOR
with bRequestType instead of bRequest.

Signed-off-by: Mario Schuknecht &lt;mario.schuknecht@dresearch-fe.de&gt;
Signed-off-by: Felipe Balbi &lt;balbi@ti.com&gt;
</content>
</entry>
<entry>
<title>usb: gadget: configfs: add suspend/resume</title>
<updated>2014-11-03T16:00:59Z</updated>
<author>
<name>Andrzej Pietrasiewicz</name>
</author>
<published>2014-10-08T10:03:36Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=3a571870856f63064a3a45d7ffa2526d597b7fbe'/>
<id>urn:sha1:3a571870856f63064a3a45d7ffa2526d597b7fbe</id>
<content type='text'>
USB gadgets composed with configfs lack suspend and resume
methods. This patch uses composite_suspend()/composite_resume()
the same way e.g. composite_setup() or composite_disconnect()
are used in a configfs-based gadget.

Signed-off-by: Andrzej Pietrasiewicz &lt;andrzej.p@samsung.com&gt;
Signed-off-by: Felipe Balbi &lt;balbi@ti.com&gt;
</content>
</entry>
</feed>
