<feed xmlns='http://www.w3.org/2005/Atom'>
<title>u-boot.git/drivers/usb/gadget/ether.c, branch v2015.07</title>
<subtitle>Unnamed repository; edit this file 'description' to name the repository.</subtitle>
<id>http://cgit.235523.xyz/u-boot.git/atom/drivers/usb/gadget/ether.c?h=v2015.07</id>
<link rel='self' href='http://cgit.235523.xyz/u-boot.git/atom/drivers/usb/gadget/ether.c?h=v2015.07'/>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/'/>
<updated>2015-04-18T17:11:33Z</updated>
<entry>
<title>net: cosmetic: Fix var naming net &lt;-&gt; eth drivers</title>
<updated>2015-04-18T17:11:33Z</updated>
<author>
<name>Joe Hershberger</name>
<email>joe.hershberger@ni.com</email>
</author>
<published>2015-04-08T06:41:06Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=1fd92db83d399ff7918e51ba84bc73d2466b5eb6'/>
<id>urn:sha1:1fd92db83d399ff7918e51ba84bc73d2466b5eb6</id>
<content type='text'>
Update the naming convention used in the network stack functions and
variables that Ethernet drivers use to interact with it.

This cleans up the temporary hacks that were added to this interface
along with the DM support.

This patch has a few remaining checkpatch.pl failures that would be out
of the scope of this patch to fix (drivers that are in gross violation
of checkpatch.pl).

Signed-off-by: Joe Hershberger &lt;joe.hershberger@ni.com&gt;
Acked-by: Simon Glass &lt;sjg@chromium.org&gt;
</content>
</entry>
<entry>
<title>net: cosmetic: Name ethaddr variables consistently</title>
<updated>2015-04-18T17:11:32Z</updated>
<author>
<name>Joe Hershberger</name>
<email>joe.hershberger@ni.com</email>
</author>
<published>2015-04-08T06:41:04Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=0adb5b761f4c789ae47d8abb015f5e017263d3f2'/>
<id>urn:sha1:0adb5b761f4c789ae47d8abb015f5e017263d3f2</id>
<content type='text'>
Use "_ethaddr" at the end of variables and drop CamelCase.
Make constant values actually 'const'.

Signed-off-by: Joe Hershberger &lt;joe.hershberger@ni.com&gt;
Acked-by: Simon Glass &lt;sjg@chromium.org&gt;
</content>
</entry>
<entry>
<title>usb: modify usb_gadget_handle_interrupts to take controller index</title>
<updated>2015-04-14T03:48:11Z</updated>
<author>
<name>Kishon Vijay Abraham I</name>
<email>kishon@ti.com</email>
</author>
<published>2015-02-23T13:10:23Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=2d48aa69bd2e0164a22b253733564701ed3381a1'/>
<id>urn:sha1:2d48aa69bd2e0164a22b253733564701ed3381a1</id>
<content type='text'>
Since we support multiple dwc3 controllers to be existent at the same
time, in order to handle the interrupts of a particular dwc3 controller
usb_gadget_handle_interrutps should take controller index as an
argument.

Hence the API of usb_gadget_handle_interrupts is modified to take
controller index as an argument and made the corresponding changes to all
the usb_gadget_handle_interrupts calls.

Signed-off-by: Kishon Vijay Abraham I &lt;kishon@ti.com&gt;
Reviewed-by: Lukasz Majewski &lt;l.majewski@samsung.com&gt;
</content>
</entry>
<entry>
<title>usb: gadget: defer setting maxpacket till -&gt;setup()</title>
<updated>2015-04-14T03:48:11Z</updated>
<author>
<name>Kishon Vijay Abraham I</name>
<email>kishon@ti.com</email>
</author>
<published>2015-02-23T13:10:17Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=04afd5b59b2edcb0bd035f126bdbe27c31782772'/>
<id>urn:sha1:04afd5b59b2edcb0bd035f126bdbe27c31782772</id>
<content type='text'>
Taken from linux kernel with commit
commit 765f5b830e547229bb752e7b232ee83e2b3d49d5
Author: Sebastian Andrzej Siewior &lt;bigeasy@linutronix.de&gt;
Date:   Thu Jun 23 14:26:11 2011 +0200

usb: gadget: defer setting maxpacket till -&gt;setup()

Signed-off-by: Kishon Vijay Abraham I &lt;kishon@ti.com&gt;
Reviewed-by: Lukasz Majewski &lt;l.majewski@samsung.com&gt;
</content>
</entry>
<entry>
<title>net: Add ethernet FCS length macro in net.h</title>
<updated>2015-03-25T03:22:37Z</updated>
<author>
<name>Bin Meng</name>
<email>bmeng.cn@gmail.com</email>
</author>
<published>2015-03-20T09:12:18Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=a7c3d5e2a9f4d0feb1e21733434e6d29f5ac566b'/>
<id>urn:sha1:a7c3d5e2a9f4d0feb1e21733434e6d29f5ac566b</id>
<content type='text'>
Some ethernet drivers use their own version of ethernet FCS length
macro which is really common. We define ETH_FCS_LEN in net.h and
replace those custom versions in various places.

Signed-off-by: Bin Meng &lt;bmeng.cn@gmail.com&gt;
Acked-by: Joe Hershberger &lt;joe.hershberger@ni.com&gt;
</content>
</entry>
<entry>
<title>lib: string: move strlcpy() to a common place</title>
<updated>2014-12-11T20:18:41Z</updated>
<author>
<name>Masahiro Yamada</name>
<email>yamada.m@jp.panasonic.com</email>
</author>
<published>2014-11-20T12:20:32Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=80d9ef8d40b2aa35c4a3483f5cf3549215187a7c'/>
<id>urn:sha1:80d9ef8d40b2aa35c4a3483f5cf3549215187a7c</id>
<content type='text'>
Move strlcpy() definition from drivers/usb/gadget/ether.c to
lib/string.c because it is a very useful function.
Let's add the prototype to include/linux/string.h too.

Signed-off-by: Masahiro Yamada &lt;yamada.m@jp.panasonic.com&gt;
Acked-by: Simon Glass &lt;sjg@chromium.org&gt;
</content>
</entry>
<entry>
<title>lib, linux: move linux specific defines to linux/compat.h</title>
<updated>2014-08-25T23:25:03Z</updated>
<author>
<name>Heiko Schocher</name>
<email>hs@denx.de</email>
</author>
<published>2014-06-24T08:10:03Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=0c06db59836746c5caf397e642cd0f2bf1cc20a6'/>
<id>urn:sha1:0c06db59836746c5caf397e642cd0f2bf1cc20a6</id>
<content type='text'>
- move linux specific defines from usb and video code
  into linux/compat.h
- move common linux specific defines from include/ubi_uboot.h
  to linux/compat.h
- add for new mtd/ubi/ubifs sync new needed linux specific
  defines to linux/compat.h

Signed-off-by: Heiko Schocher &lt;hs@denx.de&gt;
Cc: Marek Vasut &lt;marex@denx.de&gt;
Cc: Anatolij Gustschin &lt;agust@denx.de&gt;
[trini: Add spin_lock_irqsave/spin_unlock_irqrestore dummies from
usb/lin_gadet_compat.h]
Signed-off-by: Tom Rini &lt;trini@ti.com&gt;
</content>
</entry>
<entry>
<title>usb: gadget: ether: return error from rx_submit if no request</title>
<updated>2013-10-20T21:42:39Z</updated>
<author>
<name>Troy Kisky</name>
<email>troy.kisky@boundarydevices.com</email>
</author>
<published>2013-09-26T01:41:05Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=71fc5f91d20ea6466fd6e45235257bec6eb5f413'/>
<id>urn:sha1:71fc5f91d20ea6466fd6e45235257bec6eb5f413</id>
<content type='text'>
This prevents a crash if tftpboot is given a bad filename.

rx_req will be released by eth_reset_config
which is called by eth_disconnect,
which is called using the .disconnect member of usb_gadget_driver by mv_pullup in mv_udc
which is called using the .pullup member of usb_gadget_ops by usb_gadget_disconnect
which is called by usb_eth_halt
which is called using the .halt member of eth_device by eth_halt
which is called by TftpHandler when TFTP_ERR_FILE_NOT_FOUND or TFTP_ERR_ACCESS_DENIED occurs

I trigger this with the following commands
setenv ipaddr 10.0.0.2 &amp;&amp; setenv netmask 255.255.255.0 &amp;&amp; setenv serverip 10.0.0.1
setenv usbnet_devaddr 00:11:22:33:44:55 &amp;&amp; setenv usbnet_hostaddr 00:aa:bb:cc:dd:ee
setenv ethprime usb_ether &amp;&amp; setenv ethact usb_ether &amp;&amp; setenv ncip 10.0.0.1
tftpboot 10800000 10.0.0.1:missing_file

Signed-off-by: Troy Kisky &lt;troy.kisky@boundarydevices.com&gt;
</content>
</entry>
<entry>
<title>usb: gadget: ether set wMaxPacketSize</title>
<updated>2013-10-20T21:42:39Z</updated>
<author>
<name>Troy Kisky</name>
<email>troy.kisky@boundarydevices.com</email>
</author>
<published>2013-09-26T01:41:04Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=43880ce5be8e6e5c26d88705be08161bde55deeb'/>
<id>urn:sha1:43880ce5be8e6e5c26d88705be08161bde55deeb</id>
<content type='text'>
set wMaxPacketSize for full speed descriptors
fs_source_desc, fs_sink_desc to 64.

Full-speed bulk endpoint can have a maximum packet size of
8, 16, 32, or 64 bytes, so choice 64.

The hs_source_desc, hs_sink_desc, already have their wMaxPacketSize
set to 512. That is the only legal value for high speed bulk endpoints.

Strictly speaking, this patch is not needed because
usb_ep_autoconfig will call ep_matches which will
override wMaxPacketSize for BULK endpoints only with
the size associated with the endpoint setup by the udc driver.
But if you want to rely on this, you may as well combine the
full speed descriptor with the high speed descriptor to
minimize confusion.

Signed-off-by: Troy Kisky &lt;troy.kisky@boundarydevices.com&gt;
</content>
</entry>
<entry>
<title>usb: gadget: Fix data aborts during USB ethernet boot</title>
<updated>2013-09-24T15:51:34Z</updated>
<author>
<name>Joel Fernandes</name>
<email>joelf@ti.com</email>
</author>
<published>2013-09-04T23:55:14Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=5290759cc4008075fb9333b32b49d74b8b5c3258'/>
<id>urn:sha1:5290759cc4008075fb9333b32b49d74b8b5c3258</id>
<content type='text'>
As seen on GCC 4.6 Linaro compiler, control_req buffer is not aligned
on 4 byte boundaray causing data aborts in eth_setup -&gt; conf_buf
during dhcp boot over usb_ether. Fix the issue my aligning control_req
buffer using DEFINE_CACHE_ALIGN_BUFFER.

Tested on am335x_evm platform (beaglebone).
Applies on 2013.10-rc1 branch.

Cc: Tom Rini &lt;trini@ti.com&gt;
Cc: Marek Vasut &lt;marex@denx.de&gt;
Signed-off-by: Joel Fernandes &lt;joelf@ti.com&gt;
</content>
</entry>
</feed>
