* [U-Boot] [PATCH] ARM: Add support for displaying second ethaddr in 'bdinfo' command @ 2011-03-29 21:16 Gray Remlin 2011-03-29 21:49 ` Wolfgang Denk 0 siblings, 1 reply; 6+ messages in thread From: Gray Remlin @ 2011-03-29 21:16 UTC (permalink / raw) To: u-boot Signed-off-by: Gray Remlin <gryrmln@gmail.com> --- common/cmd_bdinfo.c | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/common/cmd_bdinfo.c b/common/cmd_bdinfo.c index bba7374..c0553d5 100644 --- a/common/cmd_bdinfo.c +++ b/common/cmd_bdinfo.c @@ -340,6 +340,9 @@ int do_bdinfo ( cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]) #if defined(CONFIG_CMD_NET) print_eth(0); +#if defined(CONFIG_HAS_ETH1) + print_eth(1); +#endif printf ("ip_addr = %pI4\n", &bd->bi_ip_addr); #endif printf ("baudrate = %d bps\n", bd->bi_baudrate); -- 1.7.4 ^ permalink raw reply related [flat|nested] 6+ messages in thread
* [U-Boot] [PATCH] ARM: Add support for displaying second ethaddr in 'bdinfo' command 2011-03-29 21:16 [U-Boot] [PATCH] ARM: Add support for displaying second ethaddr in 'bdinfo' command Gray Remlin @ 2011-03-29 21:49 ` Wolfgang Denk 2011-03-29 22:36 ` Gray Remlin 0 siblings, 1 reply; 6+ messages in thread From: Wolfgang Denk @ 2011-03-29 21:49 UTC (permalink / raw) To: u-boot Dear Gray Remlin, In message <1301433395-25203-1-git-send-email-gryrmln@gmail.com> you wrote: > Signed-off-by: Gray Remlin <gryrmln@gmail.com> > --- > common/cmd_bdinfo.c | 3 +++ > 1 files changed, 3 insertions(+), 0 deletions(-) Why limit this to eth1addr? What's the chances that ARM systems may have more than 2 network interfaces? Best regards, Wolfgang Denk -- DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de "Everything should be made as simple as possible, but not simpler." - Albert Einstein ^ permalink raw reply [flat|nested] 6+ messages in thread
* [U-Boot] [PATCH] ARM: Add support for displaying second ethaddr in 'bdinfo' command 2011-03-29 21:49 ` Wolfgang Denk @ 2011-03-29 22:36 ` Gray Remlin 2011-03-30 11:34 ` Albert ARIBAUD 2011-03-30 12:47 ` Detlev Zundel 0 siblings, 2 replies; 6+ messages in thread From: Gray Remlin @ 2011-03-29 22:36 UTC (permalink / raw) To: u-boot On 03/29/2011 10:49 PM, Wolfgang Denk wrote: > Dear Gray Remlin, > > In message<1301433395-25203-1-git-send-email-gryrmln@gmail.com> you wrote: >> Signed-off-by: Gray Remlin<gryrmln@gmail.com> >> --- >> common/cmd_bdinfo.c | 3 +++ >> 1 files changed, 3 insertions(+), 0 deletions(-) > Why limit this to eth1addr? What's the chances that ARM systems may > have more than 2 network interfaces? > > Best regards, > > Wolfgang Denk > Good question, I have already asked myself this, so I have stuck with what I do know. 1. It has had the one ethaddr limit for a (relatively) long time, which it seems no-one else 'required'\'submitted a patch' to change it. 2. I only know (with my very limited knowledge) of ARM boards with a maximum of two interfaces as standard. 3. Why limit it to six (as in other parts of the source) ? My answer: It is not my place to dictate policy, that is the role of the Project Manager. And no, that is not a 'cop-out', it is the only way to avoid anarchy. ^ permalink raw reply [flat|nested] 6+ messages in thread
* [U-Boot] [PATCH] ARM: Add support for displaying second ethaddr in 'bdinfo' command 2011-03-29 22:36 ` Gray Remlin @ 2011-03-30 11:34 ` Albert ARIBAUD 2011-03-30 13:35 ` Gray Remlin 2011-03-30 12:47 ` Detlev Zundel 1 sibling, 1 reply; 6+ messages in thread From: Albert ARIBAUD @ 2011-03-30 11:34 UTC (permalink / raw) To: u-boot Le 30/03/2011 00:36, Gray Remlin a ?crit : > On 03/29/2011 10:49 PM, Wolfgang Denk wrote: >> Dear Gray Remlin, >> >> In message<1301433395-25203-1-git-send-email-gryrmln@gmail.com> you wrote: >>> Signed-off-by: Gray Remlin<gryrmln@gmail.com> >>> --- >>> common/cmd_bdinfo.c | 3 +++ >>> 1 files changed, 3 insertions(+), 0 deletions(-) >> Why limit this to eth1addr? What's the chances that ARM systems may >> have more than 2 network interfaces? >> >> Best regards, >> >> Wolfgang Denk >> > Good question, I have already asked myself this, so I have stuck with > what I do know. > > 1. It has had the one ethaddr limit for a (relatively) long time, which > it seems no-one else 'required'\'submitted a patch' to change it. > 2. I only know (with my very limited knowledge) of ARM boards with a > maximum of two interfaces as standard. > 3. Why limit it to six (as in other parts of the source) ? > > My answer: > It is not my place to dictate policy, that is the role of the Project > Manager. > And no, that is not a 'cop-out', it is the only way to avoid anarchy. There is no ARM board right now which defined CONFIG_HAS_ETH2 or higher, and I have seen no ARM code which assumes otherwise (readers feel free to prove me wrong, of course). Besides, while contributors are always welcome to generalize their patches beyond their needs if they so accept, by no means are they forced to do so against their will when their contribution is consistent with the existing code state. I thus consider Gray's patch is OK and, unless some review is requested in the near future, will pull it in u-boot-arm (*not* for inclusion in 2011-03, of course). If someone wants support for CONFIG_HAS_ETH2 or higher on ARM, they are welcome to extend Gray's work, even to merge some ARM and PPC parts of common/cmd_bd_info.c. Amicalement, -- Albert. ^ permalink raw reply [flat|nested] 6+ messages in thread
* [U-Boot] [PATCH] ARM: Add support for displaying second ethaddr in 'bdinfo' command 2011-03-30 11:34 ` Albert ARIBAUD @ 2011-03-30 13:35 ` Gray Remlin 0 siblings, 0 replies; 6+ messages in thread From: Gray Remlin @ 2011-03-30 13:35 UTC (permalink / raw) To: u-boot On 03/30/2011 12:34 PM, Albert ARIBAUD wrote: > Le 30/03/2011 00:36, Gray Remlin a ?crit : >> On 03/29/2011 10:49 PM, Wolfgang Denk wrote: >>> Dear Gray Remlin, >>> >>> In message<1301433395-25203-1-git-send-email-gryrmln@gmail.com> you wrote: >>>> Signed-off-by: Gray Remlin<gryrmln@gmail.com> >>>> --- >>>> common/cmd_bdinfo.c | 3 +++ >>>> 1 files changed, 3 insertions(+), 0 deletions(-) >>> Why limit this to eth1addr? What's the chances that ARM systems may >>> have more than 2 network interfaces? >>> >>> Best regards, >>> >>> Wolfgang Denk >>> >> Good question, I have already asked myself this, so I have stuck with >> what I do know. >> >> 1. It has had the one ethaddr limit for a (relatively) long time, which >> it seems no-one else 'required'\'submitted a patch' to change it. >> 2. I only know (with my very limited knowledge) of ARM boards with a >> maximum of two interfaces as standard. >> 3. Why limit it to six (as in other parts of the source) ? >> >> My answer: >> It is not my place to dictate policy, that is the role of the Project >> Manager. >> And no, that is not a 'cop-out', it is the only way to avoid anarchy. > There is no ARM board right now which defined CONFIG_HAS_ETH2 or higher, > and I have seen no ARM code which assumes otherwise (readers feel free > to prove me wrong, of course). > > Besides, while contributors are always welcome to generalize their > patches beyond their needs if they so accept, by no means are they > forced to do so against their will when their contribution is consistent > with the existing code state. > > I thus consider Gray's patch is OK and, unless some review is requested > in the near future, will pull it in u-boot-arm (*not* for inclusion in > 2011-03, of course). > > If someone wants support for CONFIG_HAS_ETH2 or higher on ARM, they are > welcome to extend Gray's work, even to merge some ARM and PPC parts of > common/cmd_bd_info.c. > > Amicalement, I hold regard for 'small is beautiful' and want to see u-boot both 'complete' and 'concise', sometimes a difficult juggling act. There are two different variants of the same ARM board that I am working with, the variant I have has two ethernet ports, the other only one. I am considering releasing a patch for the configuration header file with the differences commented to make it obvious, until u-boot supports this, there is no point in submitting the patch other than to confuse people. There is a new recently released ARM board that also has two ethernet ports, but as this differs in memory configuration, will not likely share the same configuration header, but will still require support. These three ARM boards are all Kirkwood family. If they release another with more ports, I will most likely submit the patch myself (providing I can test it first of course, any freebies Globalscale ?). ^ permalink raw reply [flat|nested] 6+ messages in thread
* [U-Boot] [PATCH] ARM: Add support for displaying second ethaddr in 'bdinfo' command 2011-03-29 22:36 ` Gray Remlin 2011-03-30 11:34 ` Albert ARIBAUD @ 2011-03-30 12:47 ` Detlev Zundel 1 sibling, 0 replies; 6+ messages in thread From: Detlev Zundel @ 2011-03-30 12:47 UTC (permalink / raw) To: u-boot Hi Gray, > On 03/29/2011 10:49 PM, Wolfgang Denk wrote: >> Dear Gray Remlin, >> >> In message<1301433395-25203-1-git-send-email-gryrmln@gmail.com> you wrote: >>> Signed-off-by: Gray Remlin<gryrmln@gmail.com> >>> --- >>> common/cmd_bdinfo.c | 3 +++ >>> 1 files changed, 3 insertions(+), 0 deletions(-) >> Why limit this to eth1addr? What's the chances that ARM systems may >> have more than 2 network interfaces? >> >> Best regards, >> >> Wolfgang Denk >> > Good question, I have already asked myself this, so I have stuck with > what I do know. > > 1. It has had the one ethaddr limit for a (relatively) long time, which > it seems no-one else 'required'\'submitted a patch' to change it. > 2. I only know (with my very limited knowledge) of ARM boards with a > maximum of two interfaces as standard. > 3. Why limit it to six (as in other parts of the source) ? Because todays CPUs get drowned with six saturated links? ;) > My answer: > It is not my place to dictate policy, that is the role of the Project > Manager. > And no, that is not a 'cop-out', it is the only way to avoid anarchy. If we extend something, it is a good idea to sync to other places in the sources. Cheers Detlev -- Question : If you were redesigning UNIX, what would you do differently? Ken Thompson: I'd spell creat with an e. -- DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-40 Fax: (+49)-8142-66989-80 Email: dzu at denx.de ^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2011-03-30 13:35 UTC | newest] Thread overview: 6+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2011-03-29 21:16 [U-Boot] [PATCH] ARM: Add support for displaying second ethaddr in 'bdinfo' command Gray Remlin 2011-03-29 21:49 ` Wolfgang Denk 2011-03-29 22:36 ` Gray Remlin 2011-03-30 11:34 ` Albert ARIBAUD 2011-03-30 13:35 ` Gray Remlin 2011-03-30 12:47 ` Detlev Zundel
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox