All of lore.kernel.org
 help / color / mirror / Atom feed
From: Michal Simek <monstr@monstr.eu>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH] net: axi_ethernet: Add driver to u-boot
Date: Thu, 01 Sep 2011 13:04:45 +0200	[thread overview]
Message-ID: <4E5F66CD.5060504@monstr.eu> (raw)
In-Reply-To: <201109011207.01868.marek.vasut@gmail.com>

Marek Vasut wrote:
> On Thursday, September 01, 2011 10:55:31 AM Michal Simek wrote:
> 
> [...]
> 
>>>> I am fine to use 1 << n solution but definitely in our repo I will use
>>>> in way I like.
>>> Well I see it both ways ... 0x40000000 == 1 << 30 ... it's the same
>>> thing. On the other note, it's hard to count the zeroes in there AND you
>>> can mistake 0 and 8 in a huge series of those.
>>>
>>> Also, you can have whatever you want in your repo if you seriously care
>>> to invest the energy into maintaining it just because you need to be
>>> stubborn. But it'd really be great if you invested that energy in a more
>>> productive manner ;-)
>> There are two points of view. And both have con & pro.
>> I don't want to argue. Net custodian should decided if is OK or not.
>>
>> Look at tsec.h and probably others.
> 
> That something's in mainline doesn't mean it's obviously correct !
> 

Make no sense to argue with you. Two equal solutions.


>>>>> "currently", so there's possibility, in future this won't hold?
>>>> BTW: I am also sharing rx/tx buffer descriptors for dma.
>>>>
>>>> When do you expect that u-boot will be able to use several MACs in one
>>>> time?
>>> It's not a matter of when, but -- write a correct code, it's much less
>>> burden to fix it later.
>> Agree in general.
>> It is always question of when. You can always do it in better way. The
>> question is if someone will pay you for doing it in better way.
> 
> And if the code isn't accepted, they won't pay you ;-)

I don't need to add these drivers to mainline. For me is much easier to keep
it just for me and don't care about others.

> 
>> If this
>> feature is not important for us, make no sense to invest our time/money to
>> it.
> 
> I guess having the code mainline is important ?

Partially yes. It depends how often is API changed. If API change is so often
it is better to be in mainline because others fixed your driver too. If not,
you can easily fix your driver yourself.
If you are out of mainline, you don't need to spend your time to keep it alive
on the latest version. Most of our customers don't need u-boot for final products too.


>>>>>>>> +	/* Write new speed setting out to Axi Ethernet */
>>>>>>>> +	aximac_out32(dev->iobase, XAE_EMMC_OFFSET, emmc_reg);
>>>>>>> Use clrsetbits() here.
>>>>>> Not defined for Microblaze - just for ARM/PPC.
>>>>>> Not going to use it.
>>>>> Please fix then. You're the microblaze maintainer, right?
>>>> Custodian.
>>> Oh come on ...
>>>
>>>> But I won't do that.
>>> I think you should.
>>>
>>>> If you think that all archs should have it then move it to generic
>>>> location which clean code duplication and I will include it.
>>> That's not the point, it's platform specific.
>> Just compare ppc/arm implementation and they are the same. It is even pure
>> generic code. Adding it to microblaze is just code duplication which is
>> also not good way to go. Then in future someone will move it to generic
>> location.
>> There were a lot of examples in linux kernel and includes.
> 
> Ok, if it's a generic code, please submit a patch putting it into a generic 
> place and the fix this driver to use it.

It it the same point to you.

Michal

-- 
Michal Simek, Ing. (M.Eng)
w: www.monstr.eu p: +42-0-721842854
Maintainer of Linux kernel 2.6 Microblaze Linux - http://www.monstr.eu/fdt/
Microblaze U-BOOT custodian

  reply	other threads:[~2011-09-01 11:04 UTC|newest]

Thread overview: 38+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-08-30 12:05 [U-Boot] [PATCH v2] net: ll_temac: Add LL TEMAC driver to u-boot Michal Simek
2011-08-30 12:05 ` [U-Boot] [PATCH] net: axi_ethernet: Add " Michal Simek
2011-08-31 12:19   ` Marek Vasut
2011-08-31 14:46     ` Michal Simek
2011-08-31 15:19       ` Marek Vasut
2011-09-01  7:17         ` Michal Simek
2011-09-01  8:18           ` Marek Vasut
2011-09-01  8:55             ` Michal Simek
2011-09-01 10:07               ` Marek Vasut
2011-09-01 11:04                 ` Michal Simek [this message]
2011-09-01 12:47               ` Wolfgang Denk
2011-08-31 20:13       ` Wolfgang Denk
2011-08-31 19:24   ` Mike Frysinger
2011-09-01  6:52     ` Michal Simek
2011-08-31 19:26 ` [U-Boot] [PATCH v2] net: ll_temac: Add LL TEMAC " Mike Frysinger
2011-08-31 20:01   ` Marek Vasut
2011-09-01  9:21   ` Michal Simek
2011-08-31 21:52 ` Marek Vasut
2011-09-01 11:11   ` Michal Simek
  -- strict thread matches above, loose matches on Subject: below --
2011-02-28  9:40 [U-Boot] [PATCH] net: axi_ethernet: Add " Michal Simek
2011-02-28 17:36 ` Mike Frysinger
2011-02-28 18:50   ` Michal Simek
2011-02-28 19:29     ` Mike Frysinger
2011-03-01  8:00       ` Michal Simek
2011-03-01  8:18         ` Mike Frysinger
2011-03-01  8:34           ` Michal Simek
2011-03-01  8:48             ` Mike Frysinger
2011-03-01  9:29               ` Michal Simek
2011-03-03 21:51                 ` Mike Frysinger
2011-03-04 10:09                   ` Michal Simek
2011-03-09  7:34                     ` Mike Frysinger
2011-03-09  7:38                     ` Mike Frysinger
2011-03-01  8:37       ` Michal Simek
2011-03-01  8:58         ` Mike Frysinger
2011-03-01  8:19   ` Michal Simek
2011-03-01  8:28     ` Mike Frysinger
2011-03-01  8:46       ` Michal Simek
2011-03-01  9:10         ` Mike Frysinger

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=4E5F66CD.5060504@monstr.eu \
    --to=monstr@monstr.eu \
    --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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.