From: Ajay Bhargav <ajay.bhargav@einfochips.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH v2 1/3] net: Adds Fast Ethernet Controller driver for Armada100
Date: Fri, 26 Aug 2011 11:03:38 +0530 (IST) [thread overview]
Message-ID: <1009978001.6657.1314336818632.JavaMail.root@ahm.einfochips.com> (raw)
In-Reply-To: <1826454834.6634.1314336622428.JavaMail.root@ahm.einfochips.com>
----- "Mike Frysinger" <vapier@gentoo.org> wrote:
> On Thursday, August 25, 2011 01:10:30 Ajay Bhargav wrote:
> > ----- "Mike Frysinger" <vapier@gentoo.org> wrote:
> > > On Wednesday, August 24, 2011 09:07:18 Ajay Bhargav wrote:
> > > > + /* Read mac from env if available */
> > > > + eth_getenv_enetaddr("ethaddr", dev->enetaddr);
> > >
> > > you shouldnt need to do this. the higher layers will take care
> of
> > > this for
> > > you when you set write_hwaddr
> >
> > I do not have a hardware storage for MAC on my controller.
> write_hwaddr
> > is not needed for me.
>
> ok, but you should not be touching dev->enetaddr in your registration
>
> function. the main net/eth.c:eth_initialize() takes care of this for
> you.
>
> > > > +int armada100_fec_initialize()
> > > > +{
> > > > ...
> > > > + darmdfec->regs = (void *) ARMD1_FEC_BASE;
> > >
> > > make the reg base a parameter to armada100_fec_initialize()
> >
> > This driver is for Armada100 series and base address is same for
> > the whole series, so i did not feel passing it as a parameter. Can
> > you please tell me if there is any specific reason for the same?
>
> drivers should be written for the IP they control, not for specific
> SoCs or
> boards. and what people often start off with "this SoC only has one
> MAC so
> screw multi-instance" quite frequently turns into "this next SoC
> supports
> multiple MACs!".
>
> i'm not familiar with the Armada100, or the MAC IP that is in that
> SoC, but
> this story repeats itself constantly in the SoC world because people
> focus on
> the one specific SoC they have in their hand and not the bigger
> picture.
> simply witness the ARM hell that Linux is currently in and is being
> cleaned up
> through the Linaro organization.
> -mike
Hi Mike,
I got your point.. Thanks for clearing this. I will make sure that this
kind of problem does not happen in my case :)
Regards,
Ajay
next parent reply other threads:[~2011-08-26 5:33 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <1826454834.6634.1314336622428.JavaMail.root@ahm.einfochips.com>
2011-08-26 5:33 ` Ajay Bhargav [this message]
[not found] <583672539.2717.1314270415380.JavaMail.root@ahm.einfochips.com>
2011-08-25 11:07 ` [U-Boot] [PATCH v2 1/3] net: Adds Fast Ethernet Controller driver for Armada100 Ajay Bhargav
2011-08-25 12:19 ` Marek Vasut
2011-08-25 12:12 ` Ajay Bhargav
[not found] <569776325.496.1314249408394.JavaMail.root@ahm.einfochips.com>
2011-08-25 5:21 ` Ajay Bhargav
2011-08-25 12:15 ` Marek Vasut
2011-08-24 13:07 Ajay Bhargav
2011-08-24 15:42 ` Mike Frysinger
2011-08-24 16:38 ` Marek Vasut
2011-08-25 5:24 ` Ajay Bhargav
2011-08-25 12:14 ` Marek Vasut
2011-08-25 5:10 ` Ajay Bhargav
2011-08-25 14:13 ` Mike Frysinger
2011-08-24 16:36 ` Marek Vasut
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1009978001.6657.1314336818632.JavaMail.root@ahm.einfochips.com \
--to=ajay.bhargav@einfochips.com \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox