[U-Boot] [PATCH v3 1/2] cmd_fdt: Actually fix fdt command in sandbox

2015-02-04 Thread Joe Hershberger
Commit 90bac29a76bc8d649b41a55f2786c0abef9bb2c1 claims to fix this bug that was introduced in commit a92fd6577ea17751ead9b50243e3c562125cf581 but doesn't actually make the change that the commit message describes. Actually fix the bug this time. Signed-off-by: Joe Hershberger --- Chang

[U-Boot] [PATCH v3 2/2] cmd_fdt: Print the control fdt in terms of virtual memory

2015-02-04 Thread Joe Hershberger
hat can be copied directly to the 'fdt address ' command. Signed-off-by: Joe Hershberger --- Changes in v3: None Changes in v2: -Reworded commit message common/cmd_fdt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/cmd_fdt.c b/common/cmd_fdt.c index 587

Re: [U-Boot] netconsole: USB Ethernet connection dropping with ping or tftpboot

2015-02-05 Thread Joe Hershberger
On Tue, Feb 3, 2015 at 3:44 PM, Jörg Krause wrote: > But if I use 'ping 10.0.0.1' or 'tftpboot u-boot.sb' the network > connection drops. Both commands work fine if I switch back from > netconsole to serial in-/output. > > This is the output from dmesg: > [31620.215354] usb 3-13: USB disco

Re: [U-Boot] netconsole: USB Ethernet connection dropping with ping or tftpboot

2015-02-05 Thread Joe Hershberger
On Thu, Feb 5, 2015 at 2:39 PM, Jörg Krause wrote: > > Hi Joe, > > On Do, 2015-02-05 at 13:20 -0600, Joe Hershberger wrote: > > On Tue, Feb 3, 2015 at 3:44 PM, Jörg Krause wrote: > > > But if I use 'ping 10.0.0.1' or 'tftpboot u-boot.sb' the net

[U-Boot] [PATCH] sandbox: Return '-c command' exit value as sandbox exit code

2015-02-06 Thread Joe Hershberger
x can know if the command succeeded (tests passed). Also remove the now completely unused "exit_state" in sandbox. Signed-off-by: Joe Hershberger --- arch/sandbox/cpu/start.c | 6 -- arch/sandbox/cpu/state.c | 5 - arch/sandbox/include/asm/state.h | 15

[U-Boot] [RFC PATCH v3 02/14] test: dm: Reorder the objects to build

2015-02-10 Thread Joe Hershberger
Signed-off-by: Joe Hershberger --- Changes in v3: -Reorder dm test makefile Changes in v2: None test/dm/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/dm/Makefile b/test/dm/Makefile index 612aa95..1d9148f 100644 --- a/test/dm/Makefile +++ b/test/dm

[U-Boot] [RFC PATCH v3 03/14] net: Provide a function to get the current MAC address

2015-02-10 Thread Joe Hershberger
The current implementation exposes the eth_device struct to code that needs to access the MAC address. Add a wrapper function for this to abstract away the pointer for this operation. Signed-off-by: Joe Hershberger Reviewed-by: Simon Glass --- Changes in v3: None Changes in v2: None arch

[U-Boot] [RFC PATCH v3 07/14] dm: eth: Add basic driver model support to Ethernet stack

2015-02-10 Thread Joe Hershberger
First just add support for MAC drivers. Signed-off-by: Joe Hershberger --- Changes in v3: -Correct the pre_unbind logic -Correct failure chaining from bind to probe to init --Fail init if not activated --Fail probe if ethaddr not set -Update ethaddr from env unconditionally on init -Use set

[U-Boot] [RFC PATCH v3 11/14] dm: eth: Add support for aliases

2015-02-10 Thread Joe Hershberger
Allow network devices to be referred to as "eth0" instead of "eth@12345678" when specified in ethact. Add tests to verify this behavior. Signed-off-by: Joe Hershberger --- Changes in v3: -Added support for aliases Changes in v2: None include/configs/sandbox.h | 4 ++

[U-Boot] [RFC PATCH v3 06/14] net: Refactor in preparation for driver model

2015-02-10 Thread Joe Hershberger
Move some things around and organize things so that the driver model implementation will fit in more easily. Signed-off-by: Joe Hershberger Reviewed-by: Simon Glass --- Changes in v3: -Move the get_dev_by_* protos to also be !DM_ETH like the impl Changes in v2: None include/net.h | 66

[U-Boot] [RFC PATCH v3 13/14] dm: eth: Add testing for netretry env var

2015-02-10 Thread Joe Hershberger
Make sure that the retry behavior occurs as expected. Signed-off-by: Joe Hershberger --- Changes in v3: -Added testing for netretry Changes in v2: None test/dm/eth.c | 25 + 1 file changed, 25 insertions(+) diff --git a/test/dm/eth.c b/test/dm/eth.c index b39a94a

[U-Boot] [RFC PATCH v3 01/14] dm: core: Allow seq numbers to be resolved before probe

2015-02-10 Thread Joe Hershberger
Before this patch, if the sequence numbers were resolved before probe, this code would insist on defining new non-conflicting-with-itself seq numbers. Now any "non -1" seq number is accepted as already resolved. Signed-off-by: Joe Hershberger --- Changes in v3: -Add seq patch

[U-Boot] [RFC PATCH v3 12/14] dm: eth: Add support for ethprime env var

2015-02-10 Thread Joe Hershberger
The ethprime env var is used to indicate the starting device if none is specified in ethact. Also support aliases specified in the ethprime var. Signed-off-by: Joe Hershberger --- Changes in v3: -Added support for ethprime Changes in v2: None net/eth.c | 13 - test/dm/eth.c

[U-Boot] [RFC PATCH v3 08/14] dm: eth: Add network support to sandbox

2015-02-10 Thread Joe Hershberger
Add basic network support to sandbox which includes a network driver. Signed-off-by: Joe Hershberger Reviewed-by: Simon Glass --- Changes in v3: -Added 2 more ethaddr to sandbox -Print which device in the debug write hwaddr Changes in v2: -Change printfs to debug in sandbox driver -Remove

[U-Boot] [RFC PATCH v3 09/14] dm: eth: Add ARP and PING response to sandbox driver

2015-02-10 Thread Joe Hershberger
The sandbox driver will now generate response traffic to exercise the ping command even when no network exists. This allows the basic data pathways of the DM to be tested. Signed-off-by: Joe Hershberger Reviewed-by: Simon Glass --- Changes in v3: -Prevent a crash if memory is not allocated

[U-Boot] [RFC PATCH v3 10/14] test: dm: eth: Add tests for the eth dm implementation

2015-02-10 Thread Joe Hershberger
Signed-off-by: Joe Hershberger --- Changes in v3: -Added dm eth testing Changes in v2: None test/dm/Makefile | 1 + test/dm/eth.c| 39 +++ test/dm/test.dts | 18 ++ 3 files changed, 58 insertions(+) create mode 100644 test/dm/eth.c

[U-Boot] [RFC PATCH v3 0/14] Add Driver Model support to network stack

2015-02-10 Thread Joe Hershberger
river -Remove unused priv struct for sandbox driver -Change printfs to debug in sandbox driver -Move static data to priv -Move fake hwaddr to the device tree -Added the raw packet proof-of-concept patch. Joe Hershberger (14): dm: core: Allow seq numbers to be resolved before probe test: dm: Re

[U-Boot] [RFC PATCH v3 05/14] net: Remove unneeded "extern" in net.h

2015-02-10 Thread Joe Hershberger
Many of the functions in net.h were preceded extern needlessly. Removing them to limit the number of checkpatch.pl complaints. Signed-off-by: Joe Hershberger Reviewed-by: Simon Glass --- Changes in v3: None Changes in v2: None include/net.h | 96

[U-Boot] [RFC PATCH v3 14/14] dm: eth: Add a bridge to a real network for sandbox

2015-02-10 Thread Joe Hershberger
needed like so: sudo /sbin/setcap "CAP_NET_RAW+ep" u-boot Signed-off-by: Joe Hershberger --- Changes in v3: -Made the os raw packet support for sandbox eth build and work. Changes in v2: -Added the raw packet proof-of-concept patch. arch/sandbox/dts/sandbox.dts | 6

[U-Boot] [RFC PATCH v3 04/14] net: Rename helper function to be more clear

2015-02-10 Thread Joe Hershberger
Make it clear that the helper is checking the addr, not setting it. Signed-off-by: Joe Hershberger Reviewed-by: Simon Glass --- Changes in v3: None Changes in v2: None net/eth.c | 13 - 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/net/eth.c b/net/eth.c index

Re: [U-Boot] [RFC PATCH v3 01/14] dm: core: Allow seq numbers to be resolved before probe

2015-02-10 Thread Joe Hershberger
Hi Simon, On Tue, Feb 10, 2015 at 10:39 PM, Simon Glass wrote: > > Hi Joe, > > On 10 February 2015 at 18:30, Joe Hershberger wrote: > > Before this patch, if the sequence numbers were resolved before probe, > > this code would insist on defining new non-conflicting-wit

Re: [U-Boot] [RFC PATCH v2 5/8] net: Add basic driver model support to Ethernet stack

2015-02-10 Thread Joe Hershberger
On Fri, Feb 6, 2015 at 7:25 PM, Simon Glass wrote: > > Hi Joe, > > On 2 February 2015 at 17:38, Joe Hershberger wrote: > > First just add support for MAC drivers. > > > > Signed-off-by: Joe Hershberger > > > > --- > > > > Changes in v2

Re: [U-Boot] [PATCH 2/2] net: phy: Add ability to program the ksz9031 skew values from the uboot env

2015-02-11 Thread Joe Hershberger
On Wed, Feb 11, 2015 at 1:08 AM, Stefan Roese wrote: > > (Added Joe Hershberger to Cc, because this discussion is "network" related and not really SoCFPGA related) > > On 10.02.2015 19:51, Marek Vasut wrote: >>>> >>>> We already do this kind of a prog

Re: [U-Boot] Can I load uEnv.txt conditionally, based on the boot source?

2015-02-11 Thread Joe Hershberger
On Tue, Feb 10, 2015 at 7:18 PM, Brian Smucker wrote: > > Hello, > > I was wondering if there is a way to tell what the boot source is? > > My am335x SOC can boot to the mmc or the flash, based on the status of a digital line. I would like to load the uEnv.txt, only if booting from SD card (mmc).

Re: [U-Boot] Can I load uEnv.txt conditionally, based on the boot source?

2015-02-11 Thread Joe Hershberger
ometimes it's not enabled by the default config. As long as the pin is a GPIO as well as a boot-mode selector it should be easiest to just read the state of the line and load the file or not based on that in a shell script. Cheers, -Joe > Thanks, > Brian > > > On 2/11/2015 12:0

Re: [U-Boot] [PATCH] net: keystone_net: move serdes setup to initialization function

2015-02-11 Thread Joe Hershberger
is also eliminates unnecessary serdes initializatin every time when the > keystone2_eth_open is being called. > > Signed-off-by: Vitaly Andrianov > --- Acked-by: Joe Hershberger ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot

Re: [U-Boot] [RFC PATCH v3 01/14] dm: core: Allow seq numbers to be resolved before probe

2015-02-13 Thread Joe Hershberger
On Thu, Feb 12, 2015 at 11:14 PM, Simon Glass wrote: > > Hi Joe, > > On 10 February 2015 at 23:08, Joe Hershberger wrote: > > Hi Simon, > > > > On Tue, Feb 10, 2015 at 10:39 PM, Simon Glass wrote: > >> > >> Hi Joe, > >> >

Re: [U-Boot] [RFC PATCH v2 5/8] net: Add basic driver model support to Ethernet stack

2015-02-13 Thread Joe Hershberger
Hi Simon, On Thu, Feb 12, 2015 at 11:20 PM, Simon Glass wrote: > > Hi Joe, > > On 10 February 2015 at 23:25, Joe Hershberger wrote: > > > > > > On Fri, Feb 6, 2015 at 7:25 PM, Simon Glass wrote: > >> > >> Hi Joe, > >> > >> On 2

Re: [U-Boot] [RFC PATCH v3 01/14] dm: core: Allow seq numbers to be resolved before probe

2015-02-16 Thread Joe Hershberger
Hi Simon, On Sun, Feb 15, 2015 at 9:59 AM, Simon Glass wrote: > > Hi Joe, > > On 13 February 2015 at 19:33, Joe Hershberger wrote: > > On Thu, Feb 12, 2015 at 11:14 PM, Simon Glass wrote: > >> > >> Hi Joe, > >> > >> On 10 February 2015

Re: [U-Boot] [RFC PATCH v3 07/14] dm: eth: Add basic driver model support to Ethernet stack

2015-02-16 Thread Joe Hershberger
Hi Simon, On Sun, Feb 15, 2015 at 9:49 AM, Simon Glass wrote: > > Hi Joe, > > On 10 February 2015 at 18:30, Joe Hershberger wrote: > > First just add support for MAC drivers. > > It has taken me a while to get through all this unfortunately. > > This seems OK t

Re: [U-Boot] [RFC PATCH v3 09/14] dm: eth: Add ARP and PING response to sandbox driver

2015-02-16 Thread Joe Hershberger
On Sun, Feb 15, 2015 at 9:49 AM, Simon Glass wrote: > > Hi Joe, > > On 10 February 2015 at 18:30, Joe Hershberger wrote: > > The sandbox driver will now generate response traffic to exercise the > > ping command even when no network exists. This allows the basic data &

Re: [U-Boot] [RFC PATCH v3 11/14] dm: eth: Add support for aliases

2015-02-16 Thread Joe Hershberger
On Sun, Feb 15, 2015 at 9:50 AM, Simon Glass wrote: > > Hi Joe, > > On 10 February 2015 at 18:30, Joe Hershberger wrote: > > Allow network devices to be referred to as "eth0" instead of > > "eth@12345678" when specified in ethact. > > > >

Re: [U-Boot] [RFC PATCH v3 14/14] dm: eth: Add a bridge to a real network for sandbox

2015-02-16 Thread Joe Hershberger
Hi Simon, On Sun, Feb 15, 2015 at 9:50 AM, Simon Glass wrote: > > Hi Joe, > > On 10 February 2015 at 18:30, Joe Hershberger wrote: > > Implement a bridge between u-boot's network stack and Linux's raw packet > > API allowing the sandbox to send and receive pa

Re: [U-Boot] u-boot tftp problem

2015-02-17 Thread Joe Hershberger
On Fri, Feb 13, 2015 at 8:05 PM, PF4Public wrote: > > Hi all > > I'm asking for your help to figure out what interferes with u-boot's tftp in my setup. > I have a custom board with TI OMAP SoC. I'm trying to download uImage from linux machine via tftp. It fails with timeouts (most of the tries tim

Re: [U-Boot] [RFC PATCH v3 14/14] dm: eth: Add a bridge to a real network for sandbox

2015-02-19 Thread Joe Hershberger
Hi Simon, On Tue, Feb 17, 2015 at 11:02 PM, Simon Glass wrote: > > Hi Joe, > > On 16 February 2015 at 22:16, Joe Hershberger wrote: > > Hi Simon, > > > > On Sun, Feb 15, 2015 at 9:50 AM, Simon Glass wrote: > >> > >> Hi Joe, > >> >

Re: [U-Boot] [PATCH] ar8031/8033/phy:enable autonegotiation for ar8031/8033

2014-02-25 Thread Joe Hershberger
On Mon, Feb 24, 2014 at 5:54 PM, York Sun wrote: > On 12/22/2013 11:51 PM, Zhao Qiang wrote: > > Function "genphy_parse_link()" used "if (mii_reg & BMSR_ANEGCAPABLE)" > before > > while "if (phydev->supported & SUPPORTED_Autoneg)" now. > > So assign "phydev->supported" to "phydev->drv->features"

Re: [U-Boot] net: asix: don't pad odd-length TX packets

2014-03-10 Thread Joe Hershberger
Hi Marek, On Sat, Mar 8, 2014 at 5:32 AM, Marek Vasut wrote: > On Friday, March 07, 2014 at 11:27:37 PM, Tom Rini wrote: > > > > Applied to u-boot/master, thanks! > > Uh, where did Joe disappear to anyway ? > > Best regards, > Marek Vasut > I've been traveling a lot recently and have not had mu

Re: [U-Boot] [PATCH v5] net/phy: Add support for CS4315/CS4340 PHY

2014-07-21 Thread Joe Hershberger
Hi Shengzhou Liu, On Fri, Jul 18, 2014 at 4:33 PM, York Sun wrote: > > On 05/19/2014 01:29 AM, Shengzhou Liu wrote: > > Add support for Cortina CS4315/CS4340 10G PHY. > > - This driver loads CS43xx firmware from NOR/NAND/SPI/SD device > > to initialize Cortina PHY. > > - Cortina PHY has non-sta

Re: [U-Boot] [PATCH 12/12] net: smc911x: Keep MAC programmed

2014-07-22 Thread Joe Hershberger
On Mon, Jul 21, 2014 at 7:34 PM, Marek Vasut wrote: > > Make sure to keep the MAC address programmed in the SMC911x ADDRH > and ADDRL registers. Linux can read those registers to determine > the MAC address on EEPROM-less configurations. > > Signed-off-by: Marek Vasut > Cc:

Re: [U-Boot] [PATCH] pxe: clear Bootfile before returning

2014-07-23 Thread Joe Hershberger
ng: > > $ dhcp filename # downloads "filename" > $ dhcp # downloads $bootfile, i.e. "filename" > > or: > $ setenv bootfile filename > $ dhcp # downloads $bootfile, i.e. "filename" > > ... and I assume someone relies on U-Boot working that way. > > Signed-off-by: Stephen Warren Acked-by: Joe Hershberger ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot

Re: [U-Boot] [PATCH] pxe: clear Bootfile before returning

2014-07-23 Thread Joe Hershberger
On Wed, Jul 23, 2014 at 4:41 PM, Stephen Warren wrote: > > On 07/23/2014 03:37 PM, Joe Hershberger wrote: > > > > On Tue, Jul 22, 2014 at 7:06 PM, Stephen Warren > <mailto:swar...@wwwdotorg.org>> wrote: > >> > >> From: Stephen Warren mail

Re: [U-Boot] [PATCH] drivers: net: remove dead drivers

2014-07-31 Thread Joe Hershberger
On Wed, Jul 30, 2014 at 5:26 AM, Masahiro Yamada wrote: > > The following configs are not defined at all: > > - CONFIG_FTMAC110 > - CONFIG_INCA_IP_SWITCH > - CONFIG_PBL2800_ETHER > - CONFIG_PHY_ICPLUS > > Signed-off-by: Masahiro Yamada > --- > > drivers/net/Makefile | 3 - > drivers/n

Re: [U-Boot] [PATCH] net: BOOTP retry timeout improvements

2014-08-06 Thread Joe Hershberger
e cases. > Having BOOTP retry quickly applies the fix/WAR to every possible > Ethernet device, and is quite simple to implement, so seems a better > solution. > > Signed-off-by: Stephen Warren > --- Acked-by: Joe Hershberger ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot

Re: [U-Boot] [PATCH] net: More BOOTP retry timeout improvements

2014-08-18 Thread Joe Hershberger
Hi Thierry, On Mon, Aug 18, 2014 at 1:45 AM, Thierry Reding wrote: > > From: Thierry Reding > > It's not unusual for DHCP servers to take a couple hundred milliseconds > to respond to DHCP discover messages. One possible reason for the delay > can be that the server checks (typically using an AR

Re: [U-Boot] [PATCH] net: phy: micrel: add support for KSZ8081MNX

2015-03-27 Thread Joe Hershberger
Hi Luca, On Tue, Mar 24, 2015 at 5:32 AM, Luca Ellero wrote: > > This patch adds a support for KSZ8081MNX in MII mode. > > Signed-off-by: Luca Ellero Applied to net/next, thanks! ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailma

Re: [U-Boot] [PATCH v2] mii: add read-modify-write option to mii command

2015-03-27 Thread Joe Hershberger
& ) | ( & ~). > > Signed-off-by: Tim > Cc: Nobuhiro Iwamatsu > Cc: Joe Hershberger > Cc: Jeroen Hofstee > Cc: Tom Rini > Cc: Tim Applied to net/next, thanks! ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot

Re: [U-Boot] [PATCH v2] net: Update hardware MAC address if it changes in env

2015-03-30 Thread Joe Hershberger
Hi Michal, On Tue, Mar 24, 2015 at 2:41 AM, Joe Hershberger wrote: > > When the ethaddr changes in the env, the hardware should also be updated > so that MAC filtering will work properly without resetting U-Boot. > > Also remove the manual calls to set the hwaddr that was incl

[U-Boot] [PATCH] dm: eth: Provide a way for drivers to manage packet buffers

2015-03-30 Thread Joe Hershberger
Some drivers need a chance to manage their receive buffers after the packet has been handled by the network stack. Add an operation that will allow the driver to be called in that case. Reported-by: Simon Glass Signed-off-by: Joe Hershberger --- This patch depends on dm/next include/net.h | 4

Re: [U-Boot] [PATCH] net: Fix incorrect DHCP/BOOTP packet layout on 64-bit systems

2015-03-31 Thread Joe Hershberger
Hi Sergey, On Tue, Mar 31, 2015 at 12:17 PM, Sergey Temerkhanov < s.temerkha...@gmail.com> wrote: > > > This commit fixes incorrect DHCP/BOOTP packet layout caused by > 'ulong' type size difference on 64 and 32-bit architectures. > It also converts protocol header structures to use explicitly > si

Re: [U-Boot] [PATCH] dm: eth: Provide a way for drivers to manage packet buffers

2015-04-01 Thread Joe Hershberger
Hi Simon, On Tue, Mar 31, 2015 at 10:32 PM, Simon Glass wrote: > > Hi Joe, > > On 30 March 2015 at 14:44, Joe Hershberger wrote: > > Some drivers need a chance to manage their receive buffers after the > > packet has been handled by the network stack. Add an operation

[U-Boot] [PATCH 13/23] net: cosmetic: Clean up ping variables and functions

2015-04-03 Thread Joe Hershberger
Make a thorough pass through all variables and function names contained within ping.c and remove CamelCase and improve naming. Signed-off-by: Joe Hershberger --- net/ping.c | 13 +++-- 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/net/ping.c b/net/ping.c index 76e8749

[U-Boot] [PATCH 05/23] net: cosmetic: Cleanup internal packet buffer names

2015-04-03 Thread Joe Hershberger
This patch cleans up the names of internal packet buffer names that are used within the network stack and the functions that use them. Signed-off-by: Joe Hershberger --- arch/powerpc/cpu/mpc8260/ether_fcc.c | 4 ++-- drivers/net/netconsole.c | 13 +-- include/net.h

[U-Boot] [PATCH 21/23] net: cosmetic: Fix checkpatch.pl failures in net.c

2015-04-03 Thread Joe Hershberger
Finish eliminating CamelCase from net.c and other failures Signed-off-by: Joe Hershberger --- README | 6 +- common/cmd_elf.c | 2 +- common/cmd_net.c | 22 +++--- common/spl/spl_net.c | 2 +- common/update.c | 2 +- doc/README.link-local

[U-Boot] [PATCH 11/23] net: cosmetic: Clean up RARP variables and functions

2015-04-03 Thread Joe Hershberger
Make a thorough pass through all variables and function names contained within rarp.c and remove CamelCase and improve naming. Signed-off-by: Joe Hershberger --- net/net.c | 4 ++-- net/rarp.c | 23 +++ net/rarp.h | 6 +++--- 3 files changed, 16 insertions(+), 17

[U-Boot] [PATCH 0/23] net: cosmetic: Fix naming and other checkpatch.pl issues in net/

2015-04-03 Thread Joe Hershberger
pping off a bandage, do it quick and all at once. Joe Hershberger (21): net: cosmetic: Change IPaddr_t to struct in_addr net: cosmetic: Fixup var names related to boot file net: cosmetic: Fixup var names for DHCP strings net: cosmetic: Name ethaddr variables consistently net: cosmetic: Cl

[U-Boot] [PATCH 09/23] net: cosmetic: Clean up DHCP variables and functions

2015-04-03 Thread Joe Hershberger
Make a thorough pass through all variables and function names contained within bootp.c and remove CamelCase and improve naming. Signed-off-by: Joe Hershberger --- net/bootp.c | 119 +--- net/bootp.h | 14 +++ net/net.c | 8

[U-Boot] [PATCH 17/23] net: cosmetic: Clean up cmd_net variables and functions

2015-04-03 Thread Joe Hershberger
Make a thorough pass through all variables and function names contained within common/cmd_net.c and remove CamelCase and improve naming. Signed-off-by: Joe Hershberger --- common/cmd_net.c | 29 ++--- include/net.h| 10 +- net/net.c| 26

[U-Boot] [PATCH 03/23] net: cosmetic: Fixup var names for DHCP strings

2015-04-03 Thread Joe Hershberger
Remove CamelCase variable naming. Move the definition to the same compilation unit as the primary use. Signed-off-by: Joe Hershberger --- common/cmd_net.c | 12 ++-- include/net.h| 6 +++--- net/bootp.c | 51 +++ net/net.c

[U-Boot] [PATCH 23/23] net: Convert protocol structures to use explicit sizes

2015-04-03 Thread Joe Hershberger
From: Sergey Temerkhanov Convert uchar/ushort to u8/u16 respectively. Signed-off-by: Radha Mohan Chintakuntla Signed-off-by: Sergey Temerkhanov Signed-off-by: Joe Hershberger --- include/net.h | 112 +- net/bootp.h | 14

[U-Boot] [PATCH 18/23] net: cosmetic: Fix checkpatch.pl failures in linklocal

2015-04-03 Thread Joe Hershberger
A few new rules in checkpatch.pl since linklocal.c was added. Signed-off-by: Joe Hershberger --- net/link_local.c | 36 +--- 1 file changed, 17 insertions(+), 19 deletions(-) diff --git a/net/link_local.c b/net/link_local.c index 56616d6..e2f14fc 100644 --- a

[U-Boot] [PATCH 15/23] net: cosmetic: Clean up DNS variables and functions

2015-04-03 Thread Joe Hershberger
Make a thorough pass through all variables and function names contained within dns.c and remove CamelCase and improve naming. Signed-off-by: Joe Hershberger --- common/cmd_net.c | 6 +++--- include/net.h| 4 ++-- net/dns.c| 53

[U-Boot] [PATCH 16/23] net: cosmetic: Clean up netconsole variables and functions

2015-04-03 Thread Joe Hershberger
Make a thorough pass through all variables and function names contained within netconsole.c and remove CamelCase and improve naming. Signed-off-by: Joe Hershberger --- drivers/net/netconsole.c | 32 +--- include/net.h| 2 +- net/net.c

[U-Boot] [PATCH 07/23] net: cosmetic: Clean up TFTP variables and functions

2015-04-03 Thread Joe Hershberger
Make a thorough pass through all variables and function names contained within tftp and remove CamelCase and improve naming. Signed-off-by: Joe Hershberger --- common/update.c | 16 +- net/net.c | 6 +- net/tftp.c | 483

[U-Boot] [PATCH 02/23] net: cosmetic: Fixup var names related to boot file

2015-04-03 Thread Joe Hershberger
The variables around the bootfile were inconsistent and used CamelCase. Update them to make the code more readable. Signed-off-by: Joe Hershberger --- common/cmd_net.c | 9 ++--- common/cmd_pxe.c | 2 +- common/update.c | 7 --- include/net.h| 9 + net/bootp.c

[U-Boot] [PATCH 12/23] net: cosmetic: Clean up SNTP variables and functions

2015-04-03 Thread Joe Hershberger
Make a thorough pass through all variables and function names contained within sntp.c and remove CamelCase and improve naming. Signed-off-by: Joe Hershberger --- net/net.c | 2 +- net/sntp.c | 25 +++-- net/sntp.h | 2 +- 3 files changed, 13 insertions(+), 16 deletions

[U-Boot] [PATCH 19/23] net: cosmetic: Fix checkpatch.pl failures in eth.c

2015-04-03 Thread Joe Hershberger
There were still a few failures in net/eth.c, especially in the legacy part of the code. Signed-off-by: Joe Hershberger --- net/eth.c | 26 -- 1 file changed, 16 insertions(+), 10 deletions(-) diff --git a/net/eth.c b/net/eth.c index e936ca0..953b6a6 100644 --- a/net

[U-Boot] [PATCH 10/23] net: cosmetic: Clean up NFS variables and functions

2015-04-03 Thread Joe Hershberger
Make a thorough pass through all variables and function names contained within nfs.c and remove CamelCase and improve naming. Signed-off-by: Joe Hershberger --- net/net.c | 4 +- net/nfs.c | 173 +++--- net/nfs.h | 2 +- 3 files

[U-Boot] [PATCH 20/23] net: cosmetic: Fix checkpatch.pl failures in net.h

2015-04-03 Thread Joe Hershberger
There were still a few remaining complains in the legacy eth_device definition that hadn't been addressed. Signed-off-by: Joe Hershberger --- include/net.h | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/include/net.h b/include/net.h index c4a534c..06

[U-Boot] [PATCH 04/23] net: cosmetic: Name ethaddr variables consistently

2015-04-03 Thread Joe Hershberger
Use "_ethaddr" at the end of variables and drop CamelCase. Make constant values actually 'const'. Signed-off-by: Joe Hershberger --- arch/arm/mach-davinci/misc.c | 2 +- arch/powerpc/cpu/mpc8260/ether_fcc.c | 14 +-- arch/powerpc/cpu/mpc8xx/fec

[U-Boot] [PATCH 01/23] net: cosmetic: Change IPaddr_t to struct in_addr

2015-04-03 Thread Joe Hershberger
This patch is simply clean-up to make the IPv4 type that is used match what Linux uses. It also attempts to move all variables that are IP addresses use good naming instead of CamelCase. No functional change. Signed-off-by: Joe Hershberger --- common/cmd_net.c | 50

[U-Boot] [PATCH 08/23] net: cosmetic: Clean up ARP variables and functions

2015-04-03 Thread Joe Hershberger
Make a thorough pass through all variables and function names contained within arp and remove CamelCase and improve naming. Signed-off-by: Joe Hershberger --- net/arp.c | 69 +++--- net/arp.h | 16 +++ net/net.c | 16

[U-Boot] [PATCH 22/23] net: Fix incorrect DHCP/BOOTP packets on 64-bit systems

2015-04-03 Thread Joe Hershberger
ned-off-by: Sergey Temerkhanov Signed-off-by: Joe Hershberger --- include/net.h | 10 +- net/bootp.c | 33 - net/bootp.h | 4 ++-- 3 files changed, 23 insertions(+), 24 deletions(-) diff --git a/include/net.h b/include/net.h index e9131f7..def1fd9 10

[U-Boot] [PATCH 14/23] net: cosmetic: Clean up CDP variables and functions

2015-04-03 Thread Joe Hershberger
Make a thorough pass through all variables and function names contained within cdp.c and remove CamelCase and improve naming. Signed-off-by: Joe Hershberger --- common/cmd_net.c | 17 +++--- include/net.h| 4 ++-- net/cdp.c| 70

[U-Boot] [PATCH 06/23] net: cosmetic: Fix var naming net <-> eth drivers

2015-04-03 Thread Joe Hershberger
the scope of this patch to fix (drivers that are in gross violation of checkpatch.pl). Signed-off-by: Joe Hershberger --- arch/mips/mach-au1x00/au1x00_eth.c | 12 ++- arch/powerpc/cpu/mpc8260/ether_fcc.c | 4 ++-- arch/powerpc/cpu/mpc8260/ether_scc.c | 4 ++-- arch/powerpc/cpu

[U-Boot] [PATCH v2] dm: eth: Provide a way for drivers to manage packet buffers

2015-04-03 Thread Joe Hershberger
Some drivers need a chance to manage their receive buffers after the packet has been handled by the network stack. Add an operation that will allow the driver to be called in that case. Reported-by: Simon Glass Signed-off-by: Joe Hershberger Acked-by: Simon Glass Tested-by: Simon Glass Tested

Re: [U-Boot] [PATCH 0/23] net: cosmetic: Fix naming and other checkpatch.pl issues in net/

2015-04-06 Thread Joe Hershberger
Hi Simon, On Fri, Apr 3, 2015 at 4:14 PM, Joe Hershberger wrote: > > This series is fairly disruptive in naming, so hopefully there aren't > many network stack changes in flight that will conflict with this. This > is based on top of dm/next for now so that the dm/eth series i

Re: [U-Boot] [PATCH v2 09/11] dm: net: Adjust designware driver to support driver model

2015-04-06 Thread Joe Hershberger
Hi Simon, On Sun, Apr 5, 2015 at 5:07 PM, Simon Glass wrote: > > Add driver model support to the designware driver. This reuses most of the > existing code except for some duplication in the probe() method. > > Signed-off-by: Simon Glass > --- Acked-by: Joe Hershberger

Re: [U-Boot] [PATCH] net/phy: fixup for get_phy_id

2015-04-07 Thread Joe Hershberger
Hi Shengzhou Liu, On Tue, Apr 7, 2015 at 5:46 AM, Shengzhou Liu wrote: > > commit 3c6928fd7b0f84 "net: phy: fix warnings with W=1" caused > some PHYs(e.g. CS4315/CS4340) not working. This patch fixes the > warning and make those special PHYs working as well. > > Signed-off-by: Shengzhou Liu App

[U-Boot] [PATCH v2 19/25] net: cosmetic: Fix checkpatch.pl failures in eth.c

2015-04-07 Thread Joe Hershberger
There were still a few failures in net/eth.c, especially in the legacy part of the code. Signed-off-by: Joe Hershberger --- Changes in v2: None net/eth.c | 26 -- 1 file changed, 16 insertions(+), 10 deletions(-) diff --git a/net/eth.c b/net/eth.c index e936ca0

[U-Boot] [PATCH v2 04/25] net: cosmetic: Name ethaddr variables consistently

2015-04-07 Thread Joe Hershberger
Use "_ethaddr" at the end of variables and drop CamelCase. Make constant values actually 'const'. Signed-off-by: Joe Hershberger --- Changes in v2: None arch/arm/mach-davinci/misc.c | 2 +- arch/powerpc/cpu/mpc8260/ether_fcc.c | 14 +-- arc

[U-Boot] [PATCH v2 18/25] net: cosmetic: Fix checkpatch.pl failures in linklocal

2015-04-07 Thread Joe Hershberger
A few new rules in checkpatch.pl since linklocal.c was added. Signed-off-by: Joe Hershberger --- Changes in v2: None net/link_local.c | 36 +--- 1 file changed, 17 insertions(+), 19 deletions(-) diff --git a/net/link_local.c b/net/link_local.c index 2bca7de

[U-Boot] [PATCH v2 15/25] net: cosmetic: Clean up DNS variables and functions

2015-04-07 Thread Joe Hershberger
Make a thorough pass through all variables and function names contained within dns.c and remove CamelCase and improve naming. Signed-off-by: Joe Hershberger --- Changes in v2: None common/cmd_net.c | 6 +++--- include/net.h| 4 ++-- net/dns.c| 53

[U-Boot] [PATCH v2 23/25] net: Convert protocol structures to use explicit sizes

2015-04-07 Thread Joe Hershberger
From: Sergey Temerkhanov Convert uchar/ushort to u8/u16 respectively. Signed-off-by: Radha Mohan Chintakuntla Signed-off-by: Sergey Temerkhanov Signed-off-by: Joe Hershberger --- Changes in v2: None include/net.h | 112 +- net

[U-Boot] [PATCH v2 08/25] net: cosmetic: Clean up ARP variables and functions

2015-04-07 Thread Joe Hershberger
Make a thorough pass through all variables and function names contained within arp and remove CamelCase and improve naming. Signed-off-by: Joe Hershberger --- Changes in v2: None net/arp.c | 69 +++--- net/arp.h | 16

[U-Boot] [PATCH v2 05/25] net: cosmetic: Cleanup internal packet buffer names

2015-04-07 Thread Joe Hershberger
This patch cleans up the names of internal packet buffer names that are used within the network stack and the functions that use them. Signed-off-by: Joe Hershberger --- Changes in v2: None arch/powerpc/cpu/mpc8260/ether_fcc.c | 4 ++-- drivers/net/netconsole.c | 13

[U-Boot] [PATCH v2 25/25] sandbox: Enable more network features for sandbox

2015-04-07 Thread Joe Hershberger
More net features enabled and supported on sandbox to allow more testing Signed-off-by: Joe Hershberger --- Changes in v2: -New to series include/configs/sandbox.h | 9 + 1 file changed, 9 insertions(+) diff --git a/include/configs/sandbox.h b/include/configs/sandbox.h index c49a847

[U-Boot] [PATCH v2 10/25] net: cosmetic: Clean up NFS variables and functions

2015-04-07 Thread Joe Hershberger
Make a thorough pass through all variables and function names contained within nfs.c and remove CamelCase and improve naming. Signed-off-by: Joe Hershberger --- Changes in v2: None net/net.c | 4 +- net/nfs.c | 173 +++--- net/nfs.h

[U-Boot] [PATCH v2 20/25] net: cosmetic: Fix checkpatch.pl failures in net.h

2015-04-07 Thread Joe Hershberger
There were still a few remaining complains in the legacy eth_device definition that hadn't been addressed. Signed-off-by: Joe Hershberger --- Changes in v2: None include/net.h | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/include/net.h b/include/net.h

[U-Boot] [PATCH v2 02/25] net: cosmetic: Fixup var names related to boot file

2015-04-07 Thread Joe Hershberger
The variables around the bootfile were inconsistent and used CamelCase. Update them to make the code more readable. Signed-off-by: Joe Hershberger --- Changes in v2: None common/cmd_net.c | 9 ++--- common/cmd_pxe.c | 2 +- common/update.c | 7 --- include/net.h| 9

[U-Boot] [PATCH v2 07/25] net: cosmetic: Clean up TFTP variables and functions

2015-04-07 Thread Joe Hershberger
Make a thorough pass through all variables and function names contained within tftp and remove CamelCase and improve naming. Signed-off-by: Joe Hershberger --- Changes in v2: None common/update.c | 16 +- net/net.c | 6 +- net/tftp.c | 483

[U-Boot] [PATCH v2 0/25] net: cosmetic: Fix naming and other checkpatch.pl issues in net/

2015-04-07 Thread Joe Hershberger
pping off a bandage, do it quick and all at once. Changes in v2: -Fixed build failures in ip conversion patch -New to series Joe Hershberger (23): net: cosmetic: Change IPaddr_t to struct in_addr net: cosmetic: Fixup var names related to boot file net: cosmetic: Fixup var names for DHCP st

[U-Boot] [PATCH v2 16/25] net: cosmetic: Clean up netconsole variables and functions

2015-04-07 Thread Joe Hershberger
Make a thorough pass through all variables and function names contained within netconsole.c and remove CamelCase and improve naming. Signed-off-by: Joe Hershberger --- Changes in v2: None drivers/net/netconsole.c | 32 +--- include/net.h| 2 +- net

[U-Boot] [PATCH v2 21/25] net: cosmetic: Fix checkpatch.pl failures in net.c

2015-04-07 Thread Joe Hershberger
Finish eliminating CamelCase from net.c and other failures Signed-off-by: Joe Hershberger --- Changes in v2: None README | 6 +- common/cmd_elf.c | 2 +- common/cmd_net.c | 22 +++--- common/spl/spl_net.c | 2 +- common/update.c | 2

[U-Boot] [PATCH v2 22/25] net: Fix incorrect DHCP/BOOTP packets on 64-bit systems

2015-04-07 Thread Joe Hershberger
ned-off-by: Sergey Temerkhanov Signed-off-by: Joe Hershberger --- Changes in v2: None include/net.h | 10 +- net/bootp.c | 33 - net/bootp.h | 4 ++-- 3 files changed, 23 insertions(+), 24 deletions(-) diff --git a/include/net.h b/include/net.h ind

[U-Boot] [PATCH v2 12/25] net: cosmetic: Clean up SNTP variables and functions

2015-04-07 Thread Joe Hershberger
Make a thorough pass through all variables and function names contained within sntp.c and remove CamelCase and improve naming. Signed-off-by: Joe Hershberger --- Changes in v2: None net/net.c | 2 +- net/sntp.c | 25 +++-- net/sntp.h | 2 +- 3 files changed, 13

[U-Boot] [PATCH v2 03/25] net: cosmetic: Fixup var names for DHCP strings

2015-04-07 Thread Joe Hershberger
Remove CamelCase variable naming. Move the definition to the same compilation unit as the primary use. Signed-off-by: Joe Hershberger --- Changes in v2: None common/cmd_net.c | 12 ++-- include/net.h| 6 +++--- net/bootp.c | 51

[U-Boot] [PATCH v2 24/25] net: Fix compile errors when SNTP enabled and not DATE

2015-04-07 Thread Joe Hershberger
When SNTP is enabled and DATE is not, to_tm() is not built in. It could be defined when TIMESTAMP is defined, so check for that. Signed-off-by: Joe Hershberger --- Changes in v2: -New to series net/sntp.c | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/net/sntp.c b

[U-Boot] [PATCH v2 14/25] net: cosmetic: Clean up CDP variables and functions

2015-04-07 Thread Joe Hershberger
Make a thorough pass through all variables and function names contained within cdp.c and remove CamelCase and improve naming. Signed-off-by: Joe Hershberger --- Changes in v2: None common/cmd_net.c | 17 +++--- include/net.h| 4 ++-- net/cdp.c| 70

[U-Boot] [PATCH v2 17/25] net: cosmetic: Clean up cmd_net variables and functions

2015-04-07 Thread Joe Hershberger
Make a thorough pass through all variables and function names contained within common/cmd_net.c and remove CamelCase and improve naming. Signed-off-by: Joe Hershberger --- Changes in v2: None common/cmd_net.c | 29 ++--- include/net.h| 10 +- net/net.c

[U-Boot] [PATCH v2 01/25] net: cosmetic: Change IPaddr_t to struct in_addr

2015-04-07 Thread Joe Hershberger
This patch is simply clean-up to make the IPv4 type that is used match what Linux uses. It also attempts to move all variables that are IP addresses use good naming instead of CamelCase. No functional change. Signed-off-by: Joe Hershberger --- Changes in v2: -Fixed build failures in ip

<    1   2   3   4   5   6   7   8   9   10   >