<feed xmlns='http://www.w3.org/2005/Atom'>
<title>linux-toradex.git/drivers/usb, branch tegra-next</title>
<subtitle>Linux kernel for Apalis and Colibri modules</subtitle>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/'/>
<entry>
<title>tegra_udc.c: fix compilation with gcc 7</title>
<updated>2017-09-20T14:58:16+00:00</updated>
<author>
<name>Max Krummenacher</name>
<email>max.krummenacher@toradex.com</email>
</author>
<published>2017-07-24T09:30:15+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=b203d192da6ffdf0ce66689df97ac1a0719b1e85'/>
<id>b203d192da6ffdf0ce66689df97ac1a0719b1e85</id>
<content type='text'>
With gcc 7 the following compile time error occurs:

| .../drivers/usb/gadget/tegra_udc.c:2565:17: error: 'out' directive writing 3 bytes into a region of size between 2 and 11 [-Werror=format-overflow=]
|    sprintf(name, "ep%dout", i);
|                  ^~~~~~~~~
| .../drivers/usb/gadget/tegra_udc.c:2565:3: note: 'sprintf' output between 7 and 16 bytes into a destination of size 14
|    sprintf(name, "ep%dout", i);
|    ^~~~~~~~~~~~~~~~~~~~~~~~~~~

The last end point will never be greater than 32 but the compiler can
not find this out from the code. Work around this by passing a format
specifier to interpreat i as a signed char.

Signed-off-by: Max Krummenacher &lt;max.krummenacher@toradex.com&gt;
Acked-by: Marcel Ziswiler &lt;marcel.ziswiler@toradex.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
With gcc 7 the following compile time error occurs:

| .../drivers/usb/gadget/tegra_udc.c:2565:17: error: 'out' directive writing 3 bytes into a region of size between 2 and 11 [-Werror=format-overflow=]
|    sprintf(name, "ep%dout", i);
|                  ^~~~~~~~~
| .../drivers/usb/gadget/tegra_udc.c:2565:3: note: 'sprintf' output between 7 and 16 bytes into a destination of size 14
|    sprintf(name, "ep%dout", i);
|    ^~~~~~~~~~~~~~~~~~~~~~~~~~~

The last end point will never be greater than 32 but the compiler can
not find this out from the code. Work around this by passing a format
specifier to interpreat i as a signed char.

Signed-off-by: Max Krummenacher &lt;max.krummenacher@toradex.com&gt;
Acked-by: Marcel Ziswiler &lt;marcel.ziswiler@toradex.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>usb: gadget: android: Use strlcpy instead of sscanf to get string attributes</title>
<updated>2015-10-23T08:04:01+00:00</updated>
<author>
<name>Tobias Klauser</name>
<email>tobias.klauser@zhinst.com</email>
</author>
<published>2015-05-15T15:55:33+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=fec5a5f526e15dbdea4cfb32ecc855506665c7b5'/>
<id>fec5a5f526e15dbdea4cfb32ecc855506665c7b5</id>
<content type='text'>
sscanf() stops at first space it encounters, thus spaces are not represented
i.e. in iManufacturer or iProduct. Fix this by using strlcpy for string
attributes.

[ZI: Backported from upstream android gadget driver]
Signed-off-by: Tobias Klauser &lt;tobias.klauser@zhinst.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
sscanf() stops at first space it encounters, thus spaces are not represented
i.e. in iManufacturer or iProduct. Fix this by using strlcpy for string
attributes.

[ZI: Backported from upstream android gadget driver]
Signed-off-by: Tobias Klauser &lt;tobias.klauser@zhinst.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>USB: option: add Novatel E362 and Dell Wireless 5800 USB IDs</title>
<updated>2013-04-18T12:21:05+00:00</updated>
<author>
<name>Dan Williams</name>
<email>dcbw@redhat.com</email>
</author>
<published>2012-11-08T17:56:42+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=09fafcffd107788e7b6e74e991000db2cf7c94a0'/>
<id>09fafcffd107788e7b6e74e991000db2cf7c94a0</id>
<content type='text'>
The Dell 5800 appears to be a simple rebrand of the Novatel E362.

Signed-off-by: Dan Williams &lt;dcbw@redhat.com&gt;
Cc: stable &lt;stable@vger.kernel.org&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The Dell 5800 appears to be a simple rebrand of the Novatel E362.

Signed-off-by: Dan Williams &lt;dcbw@redhat.com&gt;
Cc: stable &lt;stable@vger.kernel.org&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>USB: option: Add USB ID for Novatel Ovation MC551</title>
<updated>2013-04-18T12:20:59+00:00</updated>
<author>
<name>Forest Bond</name>
<email>forest.bond@rapidrollout.com</email>
</author>
<published>2012-06-22T14:30:38+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=25c31352740143653f169b2ab03d7f17ea30c3df'/>
<id>25c31352740143653f169b2ab03d7f17ea30c3df</id>
<content type='text'>
This device is also known as the Verizon USB551L.

Signed-off-by: Forest Bond &lt;forest.bond@rapidrollout.com&gt;
Acked-by: Dan Williams &lt;dcbw@redhat.com&gt;
Cc: stable &lt;stable@vger.kernel.org&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This device is also known as the Verizon USB551L.

Signed-off-by: Forest Bond &lt;forest.bond@rapidrollout.com&gt;
Acked-by: Dan Williams &lt;dcbw@redhat.com&gt;
Cc: stable &lt;stable@vger.kernel.org&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Conflicts:</title>
<updated>2013-03-02T23:51:24+00:00</updated>
<author>
<name>Marcel Ziswiler</name>
<email>marcel.ziswiler@toradex.com</email>
</author>
<published>2013-03-02T23:51:24+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=d6fa4ec20db6bd0b403d2d99fd9423e6c0f3f845'/>
<id>d6fa4ec20db6bd0b403d2d99fd9423e6c0f3f845</id>
<content type='text'>
	arch/arm/mach-tegra/common.c
	drivers/ata/ahci-tegra.c
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
	arch/arm/mach-tegra/common.c
	drivers/ata/ahci-tegra.c
</pre>
</div>
</content>
</entry>
<entry>
<title>usb: gadget: tegra:change condition for vbus check</title>
<updated>2013-01-14T19:28:51+00:00</updated>
<author>
<name>Rakesh Bodla</name>
<email>rbodla@nvidia.com</email>
</author>
<published>2012-10-17T06:06:21+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=364f8d1cf478a94acdb1bec96614372da0ec883b'/>
<id>364f8d1cf478a94acdb1bec96614372da0ec883b</id>
<content type='text'>
Changing the condition for vbus check. VBUS will be
present when OTG cable is connected, hence vbus
status will be reflected wrong. Correct status
is tracked through vbus_active variable.

Bug 1158853
Bug 1214802

Change-Id: Ic904beb5919ddafef5becf39ddac1767cdda79cd
Signed-off-by: Rakesh Bodla &lt;rbodla@nvidia.com&gt;
Reviewed-on: http://git-master/r/145148
(cherry picked from commit 00777683b05af76f15daa0152fb014183a32fa28)
Reviewed-on: http://git-master/r/190673
Reviewed-by: Automatic_Commit_Validation_User
Tested-by: Preetham Chandru &lt;pchandru@nvidia.com&gt;
GVS: Gerrit_Virtual_Submit
Reviewed-by: Matthew Pedro &lt;mapedro@nvidia.com&gt;
Reviewed-by: Winnie Hsu &lt;whsu@nvidia.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Changing the condition for vbus check. VBUS will be
present when OTG cable is connected, hence vbus
status will be reflected wrong. Correct status
is tracked through vbus_active variable.

Bug 1158853
Bug 1214802

Change-Id: Ic904beb5919ddafef5becf39ddac1767cdda79cd
Signed-off-by: Rakesh Bodla &lt;rbodla@nvidia.com&gt;
Reviewed-on: http://git-master/r/145148
(cherry picked from commit 00777683b05af76f15daa0152fb014183a32fa28)
Reviewed-on: http://git-master/r/190673
Reviewed-by: Automatic_Commit_Validation_User
Tested-by: Preetham Chandru &lt;pchandru@nvidia.com&gt;
GVS: Gerrit_Virtual_Submit
Reviewed-by: Matthew Pedro &lt;mapedro@nvidia.com&gt;
Reviewed-by: Winnie Hsu &lt;whsu@nvidia.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>usb: otg: tegra: Do not free platform data twice</title>
<updated>2013-01-07T21:27:48+00:00</updated>
<author>
<name>Preetham Chandru R</name>
<email>pchandru@nvidia.com</email>
</author>
<published>2012-12-31T14:17:13+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=8acf989d5896b152cc88f8b29afd11d522f903e3'/>
<id>8acf989d5896b152cc88f8b29afd11d522f903e3</id>
<content type='text'>
when platform device is unregistered, the call to platform_device_release()
will kfree the platform data. Hence do not free the platform data again.

Bug 1209618

Change-Id: Ied67f550223ec199da4bc8e38a12e7ee94c2d98a
Signed-off-by: Preetham Chandru R &lt;pchandru@nvidia.com&gt;
Reviewed-on: http://git-master/r/187806
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Kiran Adduri &lt;kadduri@nvidia.com&gt;
Reviewed-by: Rakesh Bodla &lt;rbodla@nvidia.com&gt;
Reviewed-by: Venkat Moganty &lt;vmoganty@nvidia.com&gt;
Reviewed-by: Matthew Pedro &lt;mapedro@nvidia.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
when platform device is unregistered, the call to platform_device_release()
will kfree the platform data. Hence do not free the platform data again.

Bug 1209618

Change-Id: Ied67f550223ec199da4bc8e38a12e7ee94c2d98a
Signed-off-by: Preetham Chandru R &lt;pchandru@nvidia.com&gt;
Reviewed-on: http://git-master/r/187806
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Kiran Adduri &lt;kadduri@nvidia.com&gt;
Reviewed-by: Rakesh Bodla &lt;rbodla@nvidia.com&gt;
Reviewed-by: Venkat Moganty &lt;vmoganty@nvidia.com&gt;
Reviewed-by: Matthew Pedro &lt;mapedro@nvidia.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>usb: tegra: conditionally set wake enable</title>
<updated>2012-12-07T18:17:51+00:00</updated>
<author>
<name>Preetham Chandru R</name>
<email>pchandru@nvidia.com</email>
</author>
<published>2012-11-29T11:38:50+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=3c3574a139f9093d6841b2483c0015060f88ee55'/>
<id>3c3574a139f9093d6841b2483c0015060f88ee55</id>
<content type='text'>
Set wake enable only if remote wakeup is supported
by the platform

Bug 1039143

Signed-off-by: Preetham Chandru R &lt;pchandru@nvidia.com&gt;
Change-Id: I805dd773cdbb5639f59b2f5ba4bcb2e14be74d5b
Reviewed-on: http://git-master/r/147462
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Suresh Mangipudi &lt;smangipudi@nvidia.com&gt;
Reviewed-by: Krishna Yarlagadda &lt;kyarlagadda@nvidia.com&gt;
Reviewed-by: Bitan Biswas &lt;bbiswas@nvidia.com&gt;
Reviewed-by: Matthew Pedro &lt;mapedro@nvidia.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Set wake enable only if remote wakeup is supported
by the platform

Bug 1039143

Signed-off-by: Preetham Chandru R &lt;pchandru@nvidia.com&gt;
Change-Id: I805dd773cdbb5639f59b2f5ba4bcb2e14be74d5b
Reviewed-on: http://git-master/r/147462
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Suresh Mangipudi &lt;smangipudi@nvidia.com&gt;
Reviewed-by: Krishna Yarlagadda &lt;kyarlagadda@nvidia.com&gt;
Reviewed-by: Bitan Biswas &lt;bbiswas@nvidia.com&gt;
Reviewed-by: Matthew Pedro &lt;mapedro@nvidia.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>tegra: udc: fix spurious whitespace in log message</title>
<updated>2012-12-05T13:33:48+00:00</updated>
<author>
<name>Marcel Ziswiler</name>
<email>marcel.ziswiler@toradex.com</email>
</author>
<published>2012-12-05T13:33:48+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=2034faa3dd221a751d347e7830b61a809cf81530'/>
<id>2034faa3dd221a751d347e7830b61a809cf81530</id>
<content type='text'>
Fix spurious whitespace in Tegra's UDC driver log message.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Fix spurious whitespace in Tegra's UDC driver log message.
</pre>
</div>
</content>
</entry>
<entry>
<title>colibri_t20: USB: fix building device controller driver as module</title>
<updated>2012-11-20T15:30:14+00:00</updated>
<author>
<name>Marcel Ziswiler</name>
<email>marcel.ziswiler@toradex.com</email>
</author>
<published>2012-11-20T15:30:14+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=cc22d3d969367d76cebc0b3244bf8d00c364a56d'/>
<id>cc22d3d969367d76cebc0b3244bf8d00c364a56d</id>
<content type='text'>
Trying to build USB device controller driver as a module failed as
follows:

ERROR: "g_usb_high_speed" [drivers/usb/gadget/tegra_udc.ko] undefined!

This is due to a missing export of above mentioned global variable.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Trying to build USB device controller driver as a module failed as
follows:

ERROR: "g_usb_high_speed" [drivers/usb/gadget/tegra_udc.ko] undefined!

This is due to a missing export of above mentioned global variable.
</pre>
</div>
</content>
</entry>
</feed>
