[U-Boot] [PATCH v2 09/10] net: cosmetic: tftp.* checkpatch compliance

2012-03-27 Thread Joe Hershberger
Signed-off-by: Joe Hershberger Cc: Joe Hershberger Cc: Simon Glass Cc: Mike Frysinger --- Changes for v2: - Split into smaller patches include/net.h |4 net/tftp.c| 30 ++ net/tftp.h|2 +- 3 files changed, 19 insertions(+), 17 deletions(-)

[U-Boot] [PATCH v2] net: Allow filtering on debug traces in the net subsystem

2012-03-27 Thread Joe Hershberger
Signed-off-by: Joe Hershberger Cc: Joe Hershberger Cc: Simon Glass Cc: Mike Frysinger --- Changes for v2: - Split from "Add link-local addressing support" patch-series - This patch is dependant on "Add link-local addressing support" patch-series - Knobs for enabling filters moved into

[U-Boot] [PATCH v2 19/21] net: cosmetic: Alphabetize includes in net.c

2012-03-27 Thread Joe Hershberger
Signed-off-by: Joe Hershberger Cc: Joe Hershberger Cc: Simon Glass Cc: Mike Frysinger --- Changes for v2: - Split from "Improve variable names and code readability" net/net.c | 20 ++-- 1 files changed, 10 insertions(+), 10 deletions(-) diff --git a/net/net.c b/net/net.c

[U-Boot] [PATCH v2 18/18] net: Don't copy every packet that waits for an ARP

2012-03-27 Thread Joe Hershberger
Use the NetArpTxPacket for the ARP packet, not to hold what used to be in NetTxPacket. This saves a copy and makes the code easier to understand. Signed-off-by: Joe Hershberger Cc: Joe Hershberger Cc: Simon Glass Cc: Mike Frysinger --- include/net.h |4 ++-- net/arp.c | 24 +

[U-Boot] [PATCH v2 15/18] net: Remove unused parameter from NetInitLoop()

2012-03-27 Thread Joe Hershberger
Signed-off-by: Joe Hershberger Cc: Joe Hershberger Cc: Simon Glass Cc: Mike Frysinger --- Changes for v2: - Split from "Fix net buffer initialization" net/net.c |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/net/net.c b/net/net.c index 0a35858..2cfb115 100644 -

[U-Boot] [PATCH v2 02/21] net: Remove redefinitions of net.h functions

2012-03-27 Thread Joe Hershberger
Some copy/pasted drivers redefine functions defined in include/net.h. Remove these so that the definitions can be changed without error. Signed-off-by: Joe Hershberger Cc: Joe Hershberger Cc: Simon Glass Cc: Mike Frysinger --- Changes for v2: - Split from "Remove volatile from all of net e

[U-Boot] [PATCH v2 07/10] net: cosmetic: rarp.* checkpatch compliance

2012-03-27 Thread Joe Hershberger
Signed-off-by: Joe Hershberger Cc: Joe Hershberger Cc: Simon Glass Cc: Mike Frysinger --- Changes for v2: - Split into smaller patches net/rarp.c | 28 ++-- net/rarp.h |4 ++-- 2 files changed, 16 insertions(+), 16 deletions(-) diff --git a/net/rarp.c b/net/r

[U-Boot] [PATCH v2 05/10] net: cosmetic: net.c checkpatch compliance

2012-03-27 Thread Joe Hershberger
Signed-off-by: Joe Hershberger Cc: Joe Hershberger Cc: Simon Glass Cc: Mike Frysinger --- Changes for v2: - Split into smaller patches common/main.c|1 - include/common.h |4 include/net.h|5 + net/net.c| 22 -- 4 files changed, 17

[U-Boot] [PATCH v2 17/18] net: Make sure NetLoop is initialized when using NetConsole

2012-03-27 Thread Joe Hershberger
Fix NetConsole bug that causes first packet header to claim a source IP address of 0.0.0.0 Signed-off-by: Joe Hershberger Cc: Joe Hershberger Cc: Simon Glass Cc: Mike Frysinger --- drivers/net/netconsole.c |4 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/drivers/net

[U-Boot] [PATCH v2 3/3] net: Work-around for brain-damaged Cisco equipment with arp-proxy

2012-03-27 Thread Joe Hershberger
Cisco's arp-proxy feature fails to ignore the link-local address range This means that a link-local device on a network with this Cisco equipment will reply to ARP requests for our device (in addition to our reply). If we happen to reply first, the requester's ARP table will be populated with our M

[U-Boot] [PATCH v2 2/3] net: Add link-local addressing support

2012-03-27 Thread Joe Hershberger
Code based on networking/zcip.c in busybox commit 8531d76a15890c2c535908ce888b2e2aed35b172 Signed-off-by: Joe Hershberger Cc: Joe Hershberger Cc: Simon Glass Cc: Mike Frysinger --- Changes for v2: - Omitted unrelated whitespace changes - Made do_link_local() static - Pushed #ifdef CON

[U-Boot] [PATCH v2 09/18] net: Refactor to separate the UDP handler from the ARP handler

2012-03-27 Thread Joe Hershberger
Call a built-in dummy if none is registered... don't require protocols to register a handler (eliminating dummies) NetConsole now uses the ARP handler when waiting on arp (instead of needing a #define hack in arp.c) Clear handlers at the end of net loop Signed-off-by: Joe Hershberger Cc: Joe Hers

[U-Boot] [PATCH v2 02/10] net: cosmetic: net.h checkpatch compliance

2012-03-27 Thread Joe Hershberger
Signed-off-by: Joe Hershberger Cc: Joe Hershberger Cc: Simon Glass Cc: Mike Frysinger --- Changes for v2: - Split into smaller patches include/net.h | 114 + 1 files changed, 58 insertions(+), 56 deletions(-) diff --git a/include/ne

[U-Boot] [PATCH v2 10/21] net: cosmetic: Un-typedef Ethernet_t

2012-03-27 Thread Joe Hershberger
Separate the Ethernet header from the 802 header. Base the size constants on the structs. Signed-off-by: Joe Hershberger Cc: Joe Hershberger Cc: Simon Glass Cc: Mike Frysinger --- Changes for v2: - Split apart from "Un-typedef variables in net" - Created a new E802_hdr struct and removed

[U-Boot] [PATCH v2 01/10] net: Remove volatile from net API

2012-03-27 Thread Joe Hershberger
Signed-off-by: Joe Hershberger Cc: Joe Hershberger Cc: Simon Glass Cc: Mike Frysinger --- Changes for v2: - Remove volatile from eth driver API - Not using global NetRxPacket (since not casting away volatile) include/net.h | 25 + net/bootp.c |4 ++-- net

[U-Boot] [PATCH v2 02/18] net: Refactor NetSendUDPPacket to share more code

2012-03-27 Thread Joe Hershberger
Share more of the code that is common between ARP vs not. Signed-off-by: Joe Hershberger Cc: Joe Hershberger Cc: Simon Glass Cc: Mike Frysinger --- net/net.c | 44 +--- 1 files changed, 25 insertions(+), 19 deletions(-) diff --git a/net/net.c b/net/n

[U-Boot] [PATCH v2 00/10] Network stack checkpatch.pl compliance

2012-03-27 Thread Joe Hershberger
This patch-series addresses checkpatch compliance issues throughout the networking stack. One particularly intrusive change is the removal of "volatile" from the Ethernet driver API. All network drivers need to be updated to not use volatile pointers when calling into the network stack. This is

[U-Boot] [PATCH v2 06/21] net: Move ARP out of net.c

2012-03-27 Thread Joe Hershberger
Signed-off-by: Joe Hershberger Cc: Joe Hershberger Cc: Simon Glass Cc: Mike Frysinger --- include/net.h |3 +- net/Makefile |1 + net/arp.c | 213 + net/arp.h | 30 net/net.c | 209 ---

[U-Boot] [PATCH v2 15/21] net: cosmetic: Add a more explicit comment about 802.2

2012-03-27 Thread Joe Hershberger
Signed-off-by: Joe Hershberger Cc: Joe Hershberger Cc: Simon Glass Cc: Mike Frysinger --- Changes for v2: - Split from "Improve variable names and code readability" - Fixed comment indention include/net.h |2 +- net/net.c |3 ++- 2 files changed, 3 insertions(+), 2 deletions

[U-Boot] [PATCH v2 13/18] net: Add option CONFIG_BOOTP_MAY_FAIL

2012-03-27 Thread Joe Hershberger
This is useful if you want to look for a DHCP server, but try some other settings if not available. Signed-off-by: Joe Hershberger Cc: Joe Hershberger Cc: Simon Glass Cc: Mike Frysinger --- Changes for v2: - Renamed to CONFIG_BOOTP_MAY_FAIL README |7 +++ net/bootp.c |5 +

[U-Boot] [PATCH v2 08/10] net: cosmetic: sntp.* checkpatch compliance

2012-03-27 Thread Joe Hershberger
Signed-off-by: Joe Hershberger Cc: Joe Hershberger Cc: Simon Glass Cc: Mike Frysinger --- Changes for v2: - Split into smaller patches net/sntp.c | 31 +-- net/sntp.h |2 +- 2 files changed, 18 insertions(+), 15 deletions(-) diff --git a/net/sntp.c b/net/

[U-Boot] [PATCH v2 21/21] net: cosmetic: Replace magic numbers in arp.c with constants

2012-03-27 Thread Joe Hershberger
Signed-off-by: Joe Hershberger Cc: Joe Hershberger Cc: Simon Glass Cc: Mike Frysinger --- Changes for v2: - Split from "Improve variable names and code readability" include/net.h |6 ++ net/arp.c | 34 +- 2 files changed, 23 insertions(+), 17 d

[U-Boot] [PATCH v2 07/18] net: Refactor to use NetSendPacket instead of eth_send directly

2012-03-27 Thread Joe Hershberger
Use this entry-point consistently across the net/ code Use a static inline function to preserve code size Signed-off-by: Joe Hershberger Cc: Joe Hershberger Cc: Simon Glass Cc: Mike Frysinger --- Changes for v2: - Change NetSendPacket into a static inline include/net.h |5 - net/a

[U-Boot] [PATCH v2 01/21] net: Remove CMD_PING where there's no CMD_NET

2012-03-27 Thread Joe Hershberger
Some boards claim to need ping, but don't support net. That makes no sense, and causes problems now that ping is in a separate file. Signed-off-by: Joe Hershberger Cc: Joe Hershberger Cc: Simon Glass Cc: Mike Frysinger --- Changes for v2: - Separated from "Move PING out of net.c" include/

[U-Boot] [PATCH v2 04/10] net: cosmetic: eth.c checkpatch compliance

2012-03-27 Thread Joe Hershberger
Signed-off-by: Joe Hershberger Cc: Joe Hershberger Cc: Simon Glass Cc: Mike Frysinger --- Changes for v2: - Split into smaller patches net/eth.c | 67 +--- 1 files changed, 32 insertions(+), 35 deletions(-) diff --git a/net/eth.c b

[U-Boot] [PATCH v2 11/21] net: cosmetic: Un-typedef VLAN_Ethernet_t

2012-03-27 Thread Joe Hershberger
Signed-off-by: Joe Hershberger Cc: Joe Hershberger Cc: Simon Glass Cc: Mike Frysinger --- Changes for v2: - Split apart from "Un-typedef variables in net" - Renamed structs from *_t to *_hdr since they are nolonger types include/net.h |7 --- net/net.c |6 -- 2 files

[U-Boot] [PATCH v2 06/18] net: Refactor ping receive handler

2012-03-27 Thread Joe Hershberger
There is no need to call through the handler... inline it Signed-off-by: Joe Hershberger Cc: Joe Hershberger Cc: Simon Glass Cc: Mike Frysinger --- net/ping.c | 18 ++ 1 files changed, 2 insertions(+), 16 deletions(-) diff --git a/net/ping.c b/net/ping.c index 93942bc..eb0f

[U-Boot] [PATCH v2 16/21] net: cosmetic: Rename "x" to "eth_proto"

2012-03-27 Thread Joe Hershberger
x is a poor variable name Signed-off-by: Joe Hershberger Cc: Joe Hershberger Cc: Simon Glass Cc: Mike Frysinger --- Changes for v2: - Split from "Improve variable names and code readability" net/net.c | 24 1 files changed, 12 insertions(+), 12 deletions(-) dif

[U-Boot] [PATCH v2 08/21] net: Move RARP receive logic out of net.c

2012-03-27 Thread Joe Hershberger
Signed-off-by: Joe Hershberger Cc: Joe Hershberger Cc: Simon Glass Cc: Mike Frysinger --- Changes for v2: - Moved void to the same line as function - Eliminate CamelCase in new function name net/net.c | 27 +-- net/rarp.c | 45 +--

[U-Boot] [PATCH v2 08/18] net: Refactor to protect access to the NetState variable

2012-03-27 Thread Joe Hershberger
Changes to NetState now go through an accessor function called net_set_state() Signed-off-by: Joe Hershberger Cc: Joe Hershberger Cc: Simon Glass Cc: Mike Frysinger --- Changes for v2: - net_set_state changed to static inline - States changed to an enum - Eliminate CamelCase in new fu

[U-Boot] [PATCH v2 06/10] net: cosmetic: nfs.* checkpatch compliance

2012-03-27 Thread Joe Hershberger
Signed-off-by: Joe Hershberger Cc: Joe Hershberger Cc: Simon Glass Cc: Mike Frysinger --- Changes for v2: - Split into smaller patches net/nfs.c | 300 ++--- net/nfs.h |2 +- 2 files changed, 150 insertions(+), 152 deletions(-)

[U-Boot] [PATCH v2 14/18] net: Remove static allocation for MAC address in PingSend()

2012-03-27 Thread Joe Hershberger
Don't force ARP clients to return the MAC address if they don't care (such as ping) Signed-off-by: Joe Hershberger Cc: Joe Hershberger Cc: Simon Glass Cc: Mike Frysinger --- net/arp.c |9 + net/ping.c | 10 +++--- 2 files changed, 8 insertions(+), 11 deletions(-) diff --gi

[U-Boot] [PATCH v2 11/18] net: Don't write the "serverip" env var if configured not to

2012-03-27 Thread Joe Hershberger
Before this patch, bootp would not overwrite the value, but the value was still clobbered in the env Signed-off-by: Joe Hershberger Cc: Joe Hershberger Cc: Simon Glass Cc: Mike Frysinger --- Changes for v2: - Added a comment common/cmd_net.c |6 -- 1 files changed, 4 insertions(+)

[U-Boot] [PATCH v2 05/18] net: Move debug trace to point of action

2012-03-27 Thread Joe Hershberger
Signed-off-by: Joe Hershberger Cc: Joe Hershberger Cc: Simon Glass Cc: Mike Frysinger --- Changes for v2: - Split from "Refactor bootp packet length computations" net/bootp.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/net/bootp.c b/net/bootp.c index caa6d03..

[U-Boot] [PATCH v2 16/18] net: Fix net buffer initialization

2012-03-27 Thread Joe Hershberger
A new non-static function net_init() will initialize buffers and read from the environment. Only update from the env on each entry to NetLoop(). Signed-off-by: Joe Hershberger Cc: Joe Hershberger Cc: Simon Glass Cc: Mike Frysinger --- Changes for v2: - Unadded explicit parameter name in ne

[U-Boot] [PATCH v2 20/21] net: cosmetic: Rename tmp to reply_ip_addr in arp.c

2012-03-27 Thread Joe Hershberger
Signed-off-by: Joe Hershberger Cc: Joe Hershberger Cc: Simon Glass Cc: Mike Frysinger --- Changes for v2: - Split from "Improve variable names and code readability" net/arp.c |6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/net/arp.c b/net/arp.c index 3d5dc83..

[U-Boot] [PATCH v2 1/3] net: Separate ArpRequest() into lower-level func

2012-03-27 Thread Joe Hershberger
Link-local support will need to send ARP packets, but needs more fine-grained control over the contents. Split the implementation into 2 parts so link-local can share the code. Signed-off-by: Joe Hershberger Cc: Joe Hershberger Cc: Simon Glass Cc: Mike Frysinger --- Changes for v2: - Split

[U-Boot] [PATCH v2 0/3] Add link-local addressing support

2012-03-27 Thread Joe Hershberger
Link-local support allows the bootloader to get a usable network address regardless of network environment. Given that bootloaders may not always have access to a DHCP server, this functionality makes accessing it in those environments easier. It is also referred to as zero-configuration IP. Tes

[U-Boot] [PATCH v2 00/21] Network stack cosmetic improvements

2012-03-27 Thread Joe Hershberger
This patch-series reorganizes some of the net code to make it easier to navigate and easier to leverage common functionality while encapsulating private implementation details. It also makes simple readability clean-ups. This is dependant on the "Network stack checkpatch.pl compliance" patch-seri

[U-Boot] [PATCH v2 14/21] net: cosmetic: Rename parameter len to payload_len

2012-03-27 Thread Joe Hershberger
This name more explicitly claims that it does not include the header size Signed-off-by: Joe Hershberger Cc: Joe Hershberger Cc: Simon Glass Cc: Mike Frysinger --- Changes for v2: - Split from "Improve variable names and code readability" include/net.h |2 +- net/net.c | 14

[U-Boot] [PATCH v2 03/18] net: Refactor packet length computations

2012-03-27 Thread Joe Hershberger
Signed-off-by: Joe Hershberger Cc: Joe Hershberger Cc: Simon Glass Cc: Mike Frysinger --- net/arp.c | 13 - net/ping.c |7 --- net/rarp.c |6 -- 3 files changed, 16 insertions(+), 10 deletions(-) diff --git a/net/arp.c b/net/arp.c index 6e3d7ab..6cb3c10 100644 -

[U-Boot] [PATCH v2 00/18] Network stack refactoring

2012-03-27 Thread Joe Hershberger
This patch-series fixes a number of bugs in the network stack as well as improve the readability and maintainability of the network stack by eliminating duplicated code. These are more substantial changes than those in the "Network stack cosmetic improvements" series. This is dependant on the "Ne

[U-Boot] [PATCH v2 04/18] net: Refactor bootp packet length computations

2012-03-27 Thread Joe Hershberger
Eliminate pointer subtraction that recovers values computed earlier Signed-off-by: Joe Hershberger Cc: Joe Hershberger Cc: Simon Glass Cc: Mike Frysinger --- Changes for v2: - Split debug message move to a separate commit net/bootp.c | 24 +--- 1 files changed, 13 in

[U-Boot] [PATCH v2 10/18] net: Add NetUpdateEther() to handle ARP and Ping replies

2012-03-27 Thread Joe Hershberger
When the network is VLAN or SNAP, NetUpdateEther() will preserve the original Ethernet packet header and simply replace the src and dest MACs and the protocol Signed-off-by: Joe Hershberger Cc: Joe Hershberger Cc: Simon Glass Cc: Mike Frysinger --- include/net.h |1 + net/arp.c |2

[U-Boot] [PATCH v2 10/10] net: cosmetic: netconsole.c checkpatch compliance

2012-03-27 Thread Joe Hershberger
Requires: --ignore CONSIDER_KSTRTO Signed-off-by: Joe Hershberger Cc: Joe Hershberger Cc: Simon Glass Cc: Mike Frysinger --- Changes for v2: - Split into smaller patches drivers/net/netconsole.c | 122 +++-- 1 files changed, 62 insertions(+), 60 de

[U-Boot] [PATCH v2 03/10] net: cosmetic: net.c checkpatch compliance

2012-03-27 Thread Joe Hershberger
Signed-off-by: Joe Hershberger Cc: Joe Hershberger Cc: Simon Glass Cc: Mike Frysinger --- Changes for v2: - Split into smaller patches net/bootp.c | 340 ++- net/bootp.h | 56 +- 2 files changed, 203 insertions(+), 193 dele

[U-Boot] [PATCH v2 12/18] net: Fix unused variable compile warning

2012-03-27 Thread Joe Hershberger
If CONFIG_BOOTP_SERVERIP is not defined, unused variable warning is reported. This was fixed in origin using a compiler feature instead of a simple reorder of the statements. Signed-off-by: Joe Hershberger Cc: Joe Hershberger Cc: Simon Glass Cc: Mike Frysinger --- net/bootp.c |7 +++

[U-Boot] [PATCH v2 03/21] net: Move MAC-seeded rand out of bootp.c

2012-03-27 Thread Joe Hershberger
Make the MAC-seeded random number generator available to /net in general. MAC-seeded rand will be needed by link-local as well, so give it an interface. Signed-off-by: Joe Hershberger Cc: Joe Hershberger Cc: Simon Glass Cc: Mike Frysinger --- net/Makefile |1 + net/bootp.c| 69 ++

[U-Boot] [PATCH v2 18/21] net: cosmetic: Rename OPT_SIZE to OPT_FIELD_SIZE

2012-03-27 Thread Joe Hershberger
Clearer constant name. Also remove related BOOTP_SIZE which was unused and doesn't take into account VLAN packets. Signed-off-by: Joe Hershberger Cc: Joe Hershberger Cc: Simon Glass Cc: Mike Frysinger --- Changes for v2: - Split from "Improve variable names and code readability" net/bootp

[U-Boot] [PATCH v2 13/21] net: cosmetic: Un-typedef ICMP_t

2012-03-27 Thread Joe Hershberger
Signed-off-by: Joe Hershberger Cc: Joe Hershberger Cc: Simon Glass Cc: Mike Frysinger --- Changes for v2: - Split apart from "Un-typedef variables in net" - Renamed structs from *_t to *_hdr since they are nolonger types include/net.h |6 -- net/net.c |2 +- net/ping.c

[U-Boot] [PATCH v2 04/21] net: Move CDP out of net.c

2012-03-27 Thread Joe Hershberger
Signed-off-by: Joe Hershberger Cc: Joe Hershberger Cc: Simon Glass Cc: Mike Frysinger --- Changes for v2: - Moved is_cdp_packet to a separate patch - Fixed blank newline at the end of cdp.h - Pushed #ifdef CONFIG_CMD_CDP into header include/net.h |8 +- net/Makefile |1 + ne

[U-Boot] [PATCH v2 12/21] net: cosmetic: Un-typedef ARP_t

2012-03-27 Thread Joe Hershberger
Signed-off-by: Joe Hershberger Cc: Joe Hershberger Cc: Simon Glass Cc: Mike Frysinger --- Changes for v2: - Split apart from "Un-typedef variables in net" - Renamed structs from *_t to *_hdr since they are nolonger types include/net.h |5 ++--- net/arp.c |8 net/rar

[U-Boot] [PATCH v2 09/21] net: cosmetic: Un-typedef IP_t

2012-03-27 Thread Joe Hershberger
Rename IP header related things to IP_UDP. The existing definition of IP_t includes UDP header, so name it to accurately describe the structure. Also add a structure that only contains IP header fields to be used by functions that don't need UDP. Signed-off-by: Joe Hershberger Cc: Joe Hershberger

[U-Boot] [PATCH v2 07/21] net: Move PING out of net.c

2012-03-27 Thread Joe Hershberger
Signed-off-by: Joe Hershberger Cc: Joe Hershberger Cc: Simon Glass Cc: Mike Frysinger --- Changes for v2: - Moved config fixes to a separate patch - Pushed #ifdef CONFIG_CMD_PING into header - Eliminated CamelCase net/Makefile |1 + net/net.c| 133 ++-

[U-Boot] [PATCH v2 01/18] net: Refactor IP, UPD, and ICMP header writing functions

2012-03-27 Thread Joe Hershberger
ICMP (ping) was reimplementing IP header code... it now shares code. Signed-off-by: Joe Hershberger Cc: Joe Hershberger Cc: Simon Glass Cc: Mike Frysinger --- Changes for v2: - Eliminate CamelCase in new functions include/net.h |4 +++- net/bootp.c |8 net/net.c |

[U-Boot] [PATCH v2 17/21] net: cosmetic: Rename CDPHandler to CDPReceive

2012-03-27 Thread Joe Hershberger
This is not called as a handler, so don't name it that way Signed-off-by: Joe Hershberger Cc: Joe Hershberger Cc: Simon Glass Cc: Mike Frysinger --- Changes for v2: - Split from "Improve variable names and code readability" net/cdp.c |2 +- net/cdp.h |2 +- net/net.c |2 +- 3

[U-Boot] [PATCH v2 05/21] net: Encapsulate CDP packet identification

2012-03-27 Thread Joe Hershberger
Checking for CDP packets should be encapsulated, not copied code. Signed-off-by: Joe Hershberger Cc: Joe Hershberger Cc: Simon Glass Cc: Mike Frysinger --- Changes for v2: - Split from patch "Move CDP out of net.c" - Changed to static inline arch/powerpc/cpu/mpc8xx/fec.c |2 +- inc

Re: [U-Boot] [PATCH 1/2] FSL/eSDHC: enable the peripheral clock to detect the card

2012-03-27 Thread Huang Changming-R66093
Thanks Jerry Huang > -Original Message- > From: Stefano Babic [mailto:sba...@denx.de] > Sent: Wednesday, March 28, 2012 1:17 AM > To: Dirk Behme > Cc: Huang Changming-R66093; u-boot@lists.denx.de; Andy Fleming > Subject: Re: [U-Boot] [PATCH 1/2] FSL/eSDHC: enable the peripheral clock >

Re: [U-Boot] [PATCH] EXYNOS: Detect cpuid based on Exynos product codes

2012-03-27 Thread Minkyu Kang
Dear Chander Kashyap, On 14 March 2012 15:42, Chander Kashyap wrote: > Exynos based SoC's have two different naming conventions. > One is S5PC_ and other is EXXX_. This patch adds > generic code to handle EXXX_ connvention. > > Signed-off-by: Chander Kashyap > --- >  arch/arm/include

Re: [U-Boot] [PATCH 1/2] FSL/eSDHC: enable the peripheral clock to detect the card

2012-03-27 Thread Huang Changming-R66093
Thanks Jerry Huang > -Original Message- > From: Stefano Babic [mailto:sba...@denx.de] > Sent: Wednesday, March 28, 2012 1:13 AM > To: Huang Changming-R66093 > Cc: u-boot@lists.denx.de; Andy Fleming > Subject: Re: [U-Boot] [PATCH 1/2] FSL/eSDHC: enable the peripheral clock > to detect th

Re: [U-Boot] [PATCH 0/6] add zip command support for uboot

2012-03-27 Thread Lei Wen
Hi Tom, On Wed, Mar 28, 2012 at 2:12 AM, Tom Rini wrote: > On Tue, Mar 27, 2012 at 04:04:29PM +0800, Lei Wen wrote: >> Hi, >> >> On Sun, Mar 25, 2012 at 11:53 PM,   wrote: >> > From: Lei Wen >> > >> > This patch set add zip command support for uboot. >> > The first two patches import deflate and

[U-Boot] [PATCH v5] kirkwood: add support for Cloud Engines Pogoplug E02

2012-03-27 Thread Dave Purdy
This patch adds support for Cloud Engines Pogoplug E02 Information regarding the CE Pogoplug E02 board can be found at: http://archlinuxarm.org/platforms/armv5/pogoplug-v2-pinkgray Signed-off-by: Dave Purdy Cc: prafu...@marvell.com Cc: albert.u.b...@aribaud.net --- Changes for v5: - eliminated

Re: [U-Boot] BIOS EMULATOR driver

2012-03-27 Thread Marek Vasut
Dear Graeme Russ, > Marek, > > > Perfection is reached, not when there is no longer anything to add, but > > when there is no longer anything to take away. > > > > -- Antoine de Saint-Exupery > > And: > > Not all that is simple is perfect. However, all that is perfect is simple > > -- Unkown

Re: [U-Boot] BIOS EMULATOR driver

2012-03-27 Thread Graeme Russ
Marek, > Perfection is reached, not when there is no longer anything to add, but when > there is no longer anything to take away. > >  -- Antoine de Saint-Exupery And: Not all that is simple is perfect. However, all that is perfect is simple -- Unkown :) __

Re: [U-Boot] BIOS EMULATOR driver

2012-03-27 Thread Marek Vasut
Dear Graeme Russ, > Hi Marek, > > On Wed, Mar 28, 2012 at 10:46 AM, Marek Vasut wrote: > > Dear Graeme Russ, > > > >> Hi Viktor, > >> > >> On Wed, Mar 28, 2012 at 9:46 AM, Viktor Křivák > > > > wrote: > >> > Dear Timur Tabi, > >> > > >> > 2012/3/27 Marek Vasut : > >> >> Dear Timur Tabi, > >

Re: [U-Boot] BIOS EMULATOR driver

2012-03-27 Thread Graeme Russ
Hi Marek, On Wed, Mar 28, 2012 at 10:46 AM, Marek Vasut wrote: > Dear Graeme Russ, > >> Hi Viktor, >> >> On Wed, Mar 28, 2012 at 9:46 AM, Viktor Křivák > wrote: >> > Dear Timur Tabi, >> > >> > 2012/3/27 Marek Vasut : >> >> Dear Timur Tabi, >> >> >> >>> Marek Vasut wrote: >> >>> > Agreed, but I e

Re: [U-Boot] BIOS EMULATOR driver

2012-03-27 Thread Marek Vasut
Dear Graeme Russ, > Hi Viktor, > > On Wed, Mar 28, 2012 at 9:46 AM, Viktor Křivák wrote: > > Dear Timur Tabi, > > > > 2012/3/27 Marek Vasut : > >> Dear Timur Tabi, > >> > >>> Marek Vasut wrote: > >>> > Agreed, but I expected there was some dead code and that was the > >>> > point I was trying

Re: [U-Boot] BIOS EMULATOR driver

2012-03-27 Thread Graeme Russ
Hi Viktor, On Wed, Mar 28, 2012 at 9:46 AM, Viktor Křivák wrote: > Dear Timur Tabi, > > 2012/3/27 Marek Vasut : >> Dear Timur Tabi, >> >>> Marek Vasut wrote: >>> > Agreed, but I expected there was some dead code and that was the point I >>> > was trying to express ;-) >>> >>> Well, until you do a

Re: [U-Boot] BIOS EMULATOR driver

2012-03-27 Thread Viktor Křivák
Dear Timur Tabi, 2012/3/27 Marek Vasut : > Dear Timur Tabi, > >> Marek Vasut wrote: >> > Agreed, but I expected there was some dead code and that was the point I >> > was trying to express ;-) >> >> Well, until you do a thorough analysis, you really have no idea if there >> is any dead code at all

Re: [U-Boot] [PATCH V4 1/2] ext4fs ls load support

2012-03-27 Thread Graeme Russ
Hi Manjunatha & Rob On Wed, Mar 28, 2012 at 12:46 AM, Rob Herring wrote: > On 03/27/2012 08:13 AM, manjunatha wrote: >> Dear Rob Herring/ Wolfgang, >> >> As discussed in earlier mail chain, our current ext4 implementation is >> capable enough to list(ls) and read(load) ext2 partitons as well. >>

Re: [U-Boot] Using qemu-system-ppc to boot U-Boot

2012-03-27 Thread Marek Vasut
Dear Scott Wood, > On 03/27/2012 03:53 PM, Wolfgang Denk wrote: > > Dear Frank, > > > > In message you wrote: > >> I'm trying to figure out if anyone has ported a PPC system to QEMU > >> that is capable of booting U-Boot. Similar to the ARM versatilepb > >> target, but for PPC instead. I've tri

Re: [U-Boot] Using qemu-system-ppc to boot U-Boot

2012-03-27 Thread Scott Wood
On 03/27/2012 04:55 PM, Tom Rini wrote: > On Tue, Mar 27, 2012 at 03:59:48PM -0500, Scott Wood wrote: >> On 03/27/2012 03:53 PM, Wolfgang Denk wrote: >>> Dear Frank, >>> >>> In message >>> you >>> wrote: I'm trying to figure out if anyone has ported a PPC system to QEMU that is ca

Re: [U-Boot] Using qemu-system-ppc to boot U-Boot

2012-03-27 Thread Tom Rini
On Tue, Mar 27, 2012 at 03:59:48PM -0500, Scott Wood wrote: > On 03/27/2012 03:53 PM, Wolfgang Denk wrote: > > Dear Frank, > > > > In message > > you > > wrote: > >> > >> I'm trying to figure out if anyone has ported a PPC system to QEMU > >> that is capable of booting U-Boot. Similar to the AR

Re: [U-Boot] [PATCH v2] lsxl: add support for lschlv2 and lsxhl

2012-03-27 Thread Wolfgang Denk
Dear Michael, In message <201203272255.59259.mich...@walle.cc> you wrote: > > Wolfgang, what do you think about relaxing this policy a bit and allowing > this > class of devices (no service port/serial port available, no storage for the > MAC address besides the environment) to use hardcoded v

Re: [U-Boot] Using qemu-system-ppc to boot U-Boot

2012-03-27 Thread Scott Wood
On 03/27/2012 03:53 PM, Wolfgang Denk wrote: > Dear Frank, > > In message > you > wrote: >> >> I'm trying to figure out if anyone has ported a PPC system to QEMU >> that is capable of booting U-Boot. Similar to the ARM versatilepb >> target, but for PPC instead. I've tried the Bamboo and MPC854

Re: [U-Boot] [PATCH v2] lsxl: add support for lschlv2 and lsxhl

2012-03-27 Thread Michael Walle
Hi, Am Dienstag 27 März 2012, 13:05:05 schrieb Prafulla Wadaskar: > > I removed the hardcoded values from the environment and put it into a > > special rescue mode, so it won't show up until the user is explicitly > > choosing that mode. I can understand, that hardcoded values are bad > > but in >

Re: [U-Boot] Using qemu-system-ppc to boot U-Boot

2012-03-27 Thread Wolfgang Denk
Dear Frank, In message you wrote: > > I'm trying to figure out if anyone has ported a PPC system to QEMU > that is capable of booting U-Boot. Similar to the ARM versatilepb > target, but for PPC instead. I've tried the Bamboo and MPC8544DS but > it seems they only use stubs to OS calls and pars

Re: [U-Boot] [PATCH v2] lsxl: add support for lschlv2 and lsxhl

2012-03-27 Thread Michael Walle
Am Dienstag 27 März 2012, 09:27:49 schrieb Prafulla Wadaskar: > Is the chip 6281/6282 or 6192? It' a 88F6281-A1. -- Michael ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot

Re: [U-Boot] [PATCHv5 1/7] mkenvimage: correct and clarify comments and error messages

2012-03-27 Thread David Wagner
On 27/03/2012 10:32, Anatolij Gustschin wrote: [...] > > I'll queue them in my staging branch. > > Thanks, > Anatolij Thanks a lot ! David. ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot

[U-Boot] [ARM] Status for 2012.03

2012-03-27 Thread Albert ARIBAUD
Hi all, I have been away from the list quite a few days, and will have a very tricky time catching up, so with my apologies, I ask people who need me to apply patches or pull requests for the upcoming release to please send me a private e-mail and point me to the list message that I should be

[U-Boot] [ARM] Status for 2012.03

2012-03-27 Thread Albert ARIBAUD
Hi all, I have been away from the list quite a few days, and will have a very trycky time catching up, so with my apologies, I ask people who need me to apply patches or pull requests for the upcoming release to please send me a private e-mail and point me to the list message that I should be

Re: [U-Boot] BIOS EMULATOR driver

2012-03-27 Thread Marek Vasut
Dear Timur Tabi, > Marek Vasut wrote: > > Agreed, but I expected there was some dead code and that was the point I > > was trying to express ;-) > > Well, until you do a thorough analysis, you really have no idea if there > is any dead code at all. I don't ... but Viktor probably does and I beli

Re: [U-Boot] please pull u-boot-samsung/master

2012-03-27 Thread Albert ARIBAUD
Hi Minkyu, Le 27/03/2012 11:44, Minkyu Kang a écrit : Albert, Please check this pull request. Please let me know if need the rebase. On 8 March 2012 19:14, Minkyu Kang wrote: Dear Albert, The following changes since commit 32ec258f829808dd7cf74fd83ba999fdaaeab715: IXP: Fix GPIO_INT_ACT_L

Re: [U-Boot] [GIT PULL] Update - Pull request: u-boot-imx

2012-03-27 Thread Albert ARIBAUD
Hi Stefano, Le 27/03/2012 09:46, Stefano Babic a écrit : Hi Albert, please pull from u-boot-imx (rebased on current u-boot-arm). The following changes since commit cd207cde948ecf9ff50a0fa1ae2650f65579c9c9: IXP: Fix GPIO_INT_ACT_LOW_SET() (2012-03-26 23:09:26 +0200) are available in the gi

Re: [U-Boot] Please pull u-boot-ti/master

2012-03-27 Thread Albert ARIBAUD
Hi Tom, Le 27/03/2012 00:40, Tom Rini a écrit : Hello, I've resolved the conflict with the SPL Linux series. The following changes since commit cd207cde948ecf9ff50a0fa1ae2650f65579c9c9: Marek Vasut (1): IXP: Fix GPIO_INT_ACT_LOW_SET() are available in the git repository at: gi

[U-Boot] [PATCH V2] i.MX6: add enable_sata_clock()

2012-03-27 Thread Eric Nelson
Signed-off-by: Eric Nelson --- This patch requires Stefano's driver for MX5/MX6 to be useful. http://lists.denx.de/pipermail/u-boot/2012-February/118530.html This is the first and board-independent part of what's needed to enable SATA on an i.MX6 board as discussed in this thread:

[U-Boot] Using qemu-system-ppc to boot U-Boot

2012-03-27 Thread Frank Svendsbøe
Hi, I'm trying to figure out if anyone has ported a PPC system to QEMU that is capable of booting U-Boot. Similar to the ARM versatilepb target, but for PPC instead. I've tried the Bamboo and MPC8544DS but it seems they only use stubs to OS calls and parses a DTB for info. If there's no target su

Re: [U-Boot] [PATCH V2] fs/fat: align disk buffers on cache line to enable DMA and cache

2012-03-27 Thread Tom Rini
On Tue, Mar 27, 2012 at 06:40:33PM +0200, Anatolij Gustschin wrote: > On Tue, 27 Mar 2012 18:28:21 +0200 > Dirk Behme wrote: > ... > > >> Anybody likes to comment/apply this patch? > > > > > > Both, this patch and the patch referenced by the above link were > > > submitted when the merge window wa

Re: [U-Boot] [PATCH 0/6] add zip command support for uboot

2012-03-27 Thread Tom Rini
On Tue, Mar 27, 2012 at 04:04:29PM +0800, Lei Wen wrote: > Hi, > > On Sun, Mar 25, 2012 at 11:53 PM, wrote: > > From: Lei Wen > > > > This patch set add zip command support for uboot. > > The first two patches import deflate and trees functions from zlib 1.2.5 > > without any change. While the

Re: [U-Boot] BIOS EMULATOR driver

2012-03-27 Thread Timur Tabi
Marek Vasut wrote: > Agreed, but I expected there was some dead code and that was the point I was > trying to express ;-) Well, until you do a thorough analysis, you really have no idea if there is any dead code at all. -- Timur Tabi Linux kernel developer at Freescale

Re: [U-Boot] BIOS EMULATOR driver

2012-03-27 Thread Marek Vasut
Dear Timur Tabi, > Marek Vasut wrote: > > Sure, but I see no point in keeping such dead code in U-Boot code base. > > Aka. why keep functions in U-Boot that are never used? > > I think what Wolfgang is trying to say is that no one has proven that > there actually IS any unused code. The ATI driv

Re: [U-Boot] BIOS EMULATOR driver

2012-03-27 Thread Timur Tabi
Marek Vasut wrote: > Sure, but I see no point in keeping such dead code in U-Boot code base. Aka. > why > keep functions in U-Boot that are never used? I think what Wolfgang is trying to say is that no one has proven that there actually IS any unused code. The ATI driver needs the BIOS emulator

Re: [U-Boot] BIOS EMULATOR driver

2012-03-27 Thread Marek Vasut
Dear Wolfgang Denk, > Dear =?ISO-8859-2?Q?Viktor_K=F8iv=E1k?=, > > In message you wrote: > > >> And even if it was, the combination of -ffunction-sections / > > >> -fdata-sections with --gc-sections should prevent any damages. > > ... > > > Yes that's the main problem. Lots of code i unused. B

Re: [U-Boot] BIOS EMULATOR driver

2012-03-27 Thread Wolfgang Denk
Dear =?ISO-8859-2?Q?Viktor_K=F8iv=E1k?=, In message you wrote: > > >> And even if it was, the combination of -ffunction-sections / > >> -fdata-sections with --gc-sections should prevent any damages. ... > Yes that's the main problem. Lots of code i unused. Basically > everything except BootVideo

Re: [U-Boot] [PATCH 1/2] FSL/eSDHC: enable the peripheral clock to detect the card

2012-03-27 Thread Stefano Babic
On 27/03/2012 13:01, Dirk Behme wrote: > On 27.03.2012 12:25, chang-ming.hu...@freescale.com wrote: >> From: Jerry Huang >> >> According to the card detection of p1/p2 paltform RM, > > typo => platform > >> we should set SYSCTL[PEREN] to enable the clock. >> Otherwise, after booting the u-boot,

Re: [U-Boot] [PATCH 1/2] FSL/eSDHC: enable the peripheral clock to detect the card

2012-03-27 Thread Stefano Babic
On 27/03/2012 12:25, chang-ming.hu...@freescale.com wrote: > From: Jerry Huang > > According to the card detection of p1/p2 paltform RM, > we should set SYSCTL[PEREN] to enable the clock. > Otherwise, after booting the u-boot, and then inserting the SD card, > the SD card can't be detected. > >

Re: [U-Boot] [PATCH 7/9] Remove CONFIG_SYS_EXTBDINFO from snapper9260.h

2012-03-27 Thread Anatolij Gustschin
On Thu, 5 Jan 2012 19:54:55 -0800 Simon Glass wrote: > This feature is not available on ARM, so it is an error to define it. > > Signed-off-by: Simon Glass > --- > include/configs/snapper9260.h |1 - > 1 files changed, 0 insertions(+), 1 deletions(-) Applied to u-boot-staging/ag...@denx.

Re: [U-Boot] [PATCH V2] fs/fat: align disk buffers on cache line to enable DMA and cache

2012-03-27 Thread Anatolij Gustschin
On Tue, 27 Mar 2012 18:28:21 +0200 Dirk Behme wrote: ... > >> Anybody likes to comment/apply this patch? > > > > Both, this patch and the patch referenced by the above link were > > submitted when the merge window was closed. So, the patches will > > probably be applied to next when rc1 is out, un

Re: [U-Boot] [PATCH V2] fs/fat: align disk buffers on cache line to enable DMA and cache

2012-03-27 Thread Dirk Behme
On 27.03.2012 16:20, Anatolij Gustschin wrote: Hello Dirk, On Sat, 24 Mar 2012 08:18:38 +0100 Dirk Behme wrote: On 13.03.2012 02:24, Eric Nelson wrote: On 03/04/2012 02:46 PM, Eric Nelson wrote: Signed-off-by: Eric Nelson Acked-by: Mike Frysinger --- fs/fat/fat.c | 14 -- 1 files

Re: [U-Boot] [PATCH 1/4] net: ll_temac: Add LL TEMAC driver to u-boot

2012-03-27 Thread Joe Hershberger
Hi Michal, On Tue, Mar 27, 2012 at 7:25 AM, Michal Simek wrote: > Dear Stephan, > > > Stephan Linz wrote: >> >> Xilinx LocalLink Tri-Mode Ether MAC driver can be >> used by Xilinx Microblaze or Xilinx ppc405/440 in >> SDMA and FIFO mode. DCR or XPS bus can be used. > > Joe, Wolfgang: I don't agre

  1   2   >