From: NeilBrown <neil@brown.name>
To: John Crispin <john@phrozen.org>
Cc: devel@driverdev.osuosl.org,
Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
lkml <linux-kernel@vger.kernel.org>,
Dan Carpenter <dan.carpenter@oracle.com>
Subject: Re: [PATCH 00/13] staging: add drivers to support Mediatek mt7621 in gnubee-pc1
Date: Fri, 16 Mar 2018 09:58:59 +1100 [thread overview]
Message-ID: <87efklaqto.fsf@notabene.neil.brown.name> (raw)
In-Reply-To: <9e8e07b4-1a4d-3434-402f-920c19c65122@phrozen.org>
[-- Attachment #1.1: Type: text/plain, Size: 4028 bytes --]
On Thu, Mar 15 2018, John Crispin wrote:
> On 15/03/18 21:12, NeilBrown wrote:
>> On Thu, Mar 15 2018, John Crispin wrote:
>>
>>> On 15/03/18 11:48, Dan Carpenter wrote:
>>>> This all seems fine. Generally the requirements for staging are that it
>>>> has a TODO, someone to work on it, and it doesn't break the build. But
>>>> some of the patches don't have commit message and those are required and
>>>> some of the commit messages are just the changes you have made not don't
>>>> describe the actual code...
>>>>
>>>> John Crispin's email is john@phrozen.org.
>>>>
>>>> regards,
>>>> dan carpenter
>>>>
>>> Hi All,
>>>
>>> looks like i was CC'ed on the openwrt addr, which no longer exists. This
>>> series makes no sense. None of the stuff posted is anywhere near ready
>>> to be upstreamed.
>>>
>>> * we dont need a dedicated pinctrl driver, pinctrl-single will work fine
>>> on these SoCs
>>> * the DMA/sdhci driver is a hacked up version of the SDK driver.
>>> * drivers/net/ethernet/mediatek/* works on mt7623 and is easily portable
>>> to mt7621, same goes for the gsw driver.
>> Hi John,
>> I think it makes sense in that, with the patches, the hardware works, and
>> without the patches (at least the first) you cannot even build with
>> CONFIG_SOC_MT7621=y as pcibios_map_irq() is undefined. Having
>> working code is a great starting point for further development.
>> It certainly isn't ready for upstream, which is why it is heading for
>> drivers/staging. This is explicitly for code that isn't yet ready.
>> By putting the code there it should be safe from bit-rot, and can be
>> worked on by multiple people. It gets increased visibility so people
>> can say how bad it is (as you have done - thanks). This feed back is a
>> valuable part of improving the code and getting it out of staging.
>>
>> I'll add notes to various TODO files based on your comments. If you
>> have anything else to add, it would be most welcome. Thank you for
>> making these patches available in the first place, so that my hardware
>> can work!
>>
>> Thanks,
>> NeilBrown
>
> Hi Neil,
>
> I understand your reasoning, however ...
> only the pcie driver is worth merging. all other drivers are already
> inside the kernel for mt7623 and can be easily adapted to work on
> mt7621. having duplicate drivers is a certain no-go.
> cleaning up the pci driver is a matter of a few days work. merging a
> shitty pci driver just to postpone doing the 3-5 days work involved to
> polish it seems a rally bad trade-off.
> i strongly oppose having any of this code merged into the kernel, even
> if it is only the staging area.
Hi John,
I don't understand why you would want to deny people easy access to code
which makes their hardware work. I'm sure that isn't your intention,
but it could well be the effect. If you think you can make it work in
3-5 days, then please go right ahead. I will happily test anything you
submit. I suspect the most likely outcome, however, is that I'll end
up doing all the work, and I'm sure it will take a lot more than 3-5
days and will involve a lot of learning. I'll be happy if I can get
all of this back out of staging in 6 months. That is an extra 6 months
(at least) that people will be able to use a mainline kernel on their
gnubee.
With respect to your suggestion that "having duplicate drivers is a
certain no-go", I don't think that is correct. As an approximate
counter-point, I'm in the process of cleaning up the
drivers/staging/lustre filesystem with the hope of eventually moving it
out of staging. It had duplicate wait_event() code, duplicate PRNG,
duplicate workqueues, duplicate resizeable hashtable, duplicate tracing
infrastructure, and more that I haven't had a chance to look closely at
yet. This duplication certainly kept it out of linux/fs/, but has no
bearing on whether it belong in linux/drivers/staging/.
Thanks,
NeilBrown
[-- Attachment #1.2: signature.asc --]
[-- Type: application/pgp-signature, Size: 832 bytes --]
[-- Attachment #2: Type: text/plain, Size: 169 bytes --]
_______________________________________________
devel mailing list
devel@linuxdriverproject.org
http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel
prev parent reply other threads:[~2018-03-15 22:58 UTC|newest]
Thread overview: 26+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-03-14 20:22 NeilBrown
2018-03-14 20:22 ` [PATCH 04/13] staging: mt7621-spi: add mt7621 support NeilBrown
2018-03-14 20:22 ` [PATCH 01/13] staging: mt7621-pci: MIPS/ralink: add MT7621 pcie driver NeilBrown
2018-03-15 10:43 ` Dan Carpenter
2018-03-14 20:22 ` [PATCH 03/13] staging: mt7621-gpio: ralink: add mt7621 gpio controller NeilBrown
2018-03-14 20:22 ` [PATCH 02/13] staging: mt7621-pinctrl: ralink: add pinctrl driver NeilBrown
2018-03-14 20:22 ` [PATCH 06/13] staging: mt7621-mmc: MIPS: ralink: add sdhci for mt7620a SoC NeilBrown
2018-03-14 20:22 ` [PATCH 05/13] staging: mt7621-dma: ralink: add rt2880 dma engine NeilBrown
2018-03-14 20:22 ` [PATCH 09/13] staging: mt7621-eth: add gigabit switch driver (GSW) NeilBrown
2018-03-14 20:22 ` [PATCH 08/13] staging: mt7621-eth: add the drivers core files NeilBrown
2018-03-14 20:22 ` [PATCH 07/13] staging: mt7621-eth: Document ralink/mediatek SoC ethernet binding NeilBrown
2018-03-14 20:22 ` [PATCH 13/13] staging: mt7621-dts: add dts files NeilBrown
2018-03-14 20:22 ` [PATCH 10/13] staging: mt7621-eth: add mdio support for mt762X family NeilBrown
2018-03-14 20:22 ` [PATCH 11/13] staging: mt7621-eth: add support for mt7621 NeilBrown
2018-03-14 20:22 ` [PATCH 12/13] staging: mt7621-eth: mediatek: add Kconfig and Makefile NeilBrown
2018-03-14 23:45 ` [PATCH 00/13] staging: add drivers to support Mediatek mt7621 in gnubee-pc1 NeilBrown
2018-03-15 10:48 ` Dan Carpenter
2018-03-15 11:04 ` NeilBrown
2018-03-15 11:24 ` Dan Carpenter
2018-03-15 20:02 ` NeilBrown
2018-03-16 7:42 ` Dan Carpenter
2018-03-15 11:07 ` John Crispin
2018-03-15 11:29 ` Dan Carpenter
2018-03-15 20:12 ` NeilBrown
2018-03-15 20:21 ` John Crispin
2018-03-15 22:58 ` NeilBrown [this message]
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=87efklaqto.fsf@notabene.neil.brown.name \
--to=neil@brown.name \
--cc=dan.carpenter@oracle.com \
--cc=devel@driverdev.osuosl.org \
--cc=gregkh@linuxfoundation.org \
--cc=john@phrozen.org \
--cc=linux-kernel@vger.kernel.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
Powered by JetHome