Historic archive of defunct list bloat-devel@lists.bufferbloat.net
 help / color / mirror / Atom feed
From: Hartmut Knaack <knaack.h@gmx.de>
To: OpenWrt Development List <openwrt-devel@lists.openwrt.org>
Cc: bloat-devel <bloat-devel@lists.bufferbloat.net>
Subject: Re: [OpenWrt-Devel] ar71xx support in mainline kernel?
Date: Tue, 13 Dec 2011 00:28:51 +0100	[thread overview]
Message-ID: <4EE68E33.90909@gmx.de> (raw)
In-Reply-To: <4ED1A557.2090404@openwrt.org>

Felix Fietkau schrieb:
> On 2011-11-26 1:33 PM, Dave Taht wrote:
>> I am curious as to if anyone was working on getting the ar71xx arch and
>> drivers upstream?
>>
>> It appears that the ath79 arch was intended to be the same thing, but has
>> nearly no users in the upstream kernel aside from two boards, and was last
>> worked on back in april...
>>
>> the ar71xx patches in openwrt supports 43 boards at present and a
>> great deal of additional (and possibly duplicated) functionality.
>>
>> http://nbd.name/gitweb.cgi?p=openwrt.git;a=tree;f=target/linux/ar71xx/files/arch/mips/ar71xx;h=878ba990e3b04c98e5e244011a82177e465f405a;hb=HEAD
>>
>> So I'm curious as to what were the show-stoppers aside from the name change
>> and the huge backlog of boards and specialized devices?
>>
>> (I see that the usb drivers are different, and I have no idea if the ag71xx
>>  ethernet driver is actually in there in some form under some name)
>>
>> (msg somewhat triggered by seeing the drivers/net directory getting
>> re-organized in linux 3.2 and trying to hack in BQL on top of the
>> existing patchset)
> I think it does not make much sense to try to integrate the code from
> our ar71xx into ath79 and pushing that upstream. The mips-machine way of
> supporting different boards with one kernel is somewhat cumbersome, a
> much better way to deal with it is adding device tree support and using
> that. Proper device tree support is currently being worked on for the
> lantiq target. Once that's functional, I'll look into adapting it to
> ath79 as well.
>
> - Felix
>
Maybe we could distribute the work to some volunteers around here (you can count on me, and Dave also seems to be motivated). I've had a peek into the device tree topic and came up with http://devicetree.org/Device_Tree_Usage and http://devicetree.org/Linux as some kind of reference manual. So, what needs to be done? I'd say:
    - change device drivers to query their properties from device tree instead of some platform_data structs (do we need those structs any longer?)
    - convert the mach-*.c files to dtb
    - ... (insert whatever I missed)
I'm not quite sure where to start, so it would be best if you could lay out a schedule. And it would probably help a lot to see a reference device driver, to know how to implement it properly. So, what do you think?

  reply	other threads:[~2011-12-12 23:28 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-11-26  6:33 Dave Taht
2011-11-27  2:49 ` [OpenWrt-Devel] " Felix Fietkau
2011-12-12 23:28   ` Hartmut Knaack [this message]
2011-12-13 12:31     ` Dave Taht

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=4EE68E33.90909@gmx.de \
    --to=knaack.h@gmx.de \
    --cc=bloat-devel@lists.bufferbloat.net \
    --cc=openwrt-devel@lists.openwrt.org \
    /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