[U-Boot] Design principles (was: Re: [PATCH] net, fec_mxc: use mac address stored in env before looking in eeprom)
Detlev Zundel
dzu at denx.de
Fri Mar 26 09:39:59 CET 2010
Hi Wolfgang,
> Dear Detlev Zundel,
>
> In message <m2tys4k0c8.fsf at ohwell.denx.de> you wrote:
>>
>> > The question to me is why fec_probe() is called at all, even in cases
>> > where U-Boot does not use any network related commands. This is IMO
>> > wrong. Eventually somebody comes up with patches to fix this?
>>
>> As I said before, this is documented in doc/README.drivers.eth. If you
>> want to change this, then maybe one should first fix the documentation
>
> I think the documentation should be changed when the code gets
> changed, not sooner nor later.
I'd much rather write up what I want to see in code than to document the
mess we have in some drivers, but as you keep saying - YMMV.
Actually the existance of a design document shows me that this thought
is not so wild as it sounds.
>> to know what is actually wanted. I certainly have lost track of what is
>> wanted and what is sensible.
>
> We do not want to touch interfaces that we don't use. If we don't use
> Ethernet in U-Boot, there is no need to probe or initialize it.
Ok, I still don't get it. Is this "we do not touch interfaces" a truth
not to be questioned or is it the essence of other goals we want to
achieve summed up in a nice fashion?
Because what I still fail to see is how writing 6 bytes into an SRAM
area is "touching a device". Yet the absence of this code means that
there is no working solution at all to the problem at hand as you may
well know.
So can you please enlighten me why as to how initializing SRAM is
"touching a device" - or why exactly you oppose this so strict.
Thanks
Detlev
--
1. What is the best thing about Unix?
A: The community.
2. What is the worst thing about Unix?
A: That there are so many communities. (Rob Pike)
--
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
More information about the U-Boot
mailing list