Received: by 10.213.65.68 with SMTP id h4csp40066imn; Thu, 15 Mar 2018 16:01:01 -0700 (PDT) X-Google-Smtp-Source: AG47ELvwElOXSQs2AiyLcCwEMwHrYUdTXlJKi0iE0HiTMwhocSGMI50yaWqRNIzAMr5VYAu3HPi5 X-Received: by 2002:a17:902:42e:: with SMTP id 43-v6mr9775388ple.186.1521154861581; Thu, 15 Mar 2018 16:01:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521154861; cv=none; d=google.com; s=arc-20160816; b=fp1CVaDmPFocYFXd36m/3T3Cm1Ik/Ujaib5cMbtr7DCS1HfCXZUHFobBNcDbf6jXL+ rNvZlqkX6RS6zaoGy8LZhnrBFeWRG5z8ZkAAQmYXakJEPtk4CjYJ3uytM4RGygqH2X1a +bw4M0xyEotfguRpdBHiec5fMfJxWL5txbSyvSzOK8dXyqNg7AfFCkyRus2e9ttaQBxO PHkYuoQLfn0inxRqT1dBCxJIiZrvrot/2+xxIJxEcUrrZ7naEgpoO4aMcdYvr4p0e/IF NQQ40H/nIdG92nfHmCH3xzUiVr89t51WRLoacIeBYMe4OIgqN5x9yuln+/sTYHzlyBDg xYjQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:references :in-reply-to:subject:cc:date:to:from:arc-authentication-results; bh=8QXx/XRyVakvL/oIAfIP5IZFQtrczWm2F9QevRYktro=; b=WI4T30VfXP4mwG7P9appY+GYMfoIeh2xwUw8fenz7r47Q5POdEfbWxOx7I+m1GLQnO yHfZmLwwvVVSGcz9oFcw4qj56wj+FTk9uRfBzb6D9m5lvMquCDJm8p2r+FF57GEAulZJ mxZ+P+f7Qb65Q6VCIsDP0fFqUOJ7fpHakBW+C+8KYiECJQ2lDk7mcCL28wIFLthJZV/F P+l/PXTWNxrtPX+pXNj9awleDpE/l+iXlthvphKDJtFVo8TXXgz2hpDswApKV0JliAZb V3tH7PSfNE2rS5ZtmfHOUqwKNaGxDXgwhPX41Bwu0nAfxqAmrkbyyZmX4GaCmu3yvE7u k/CA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c193si4484718pfc.356.2018.03.15.16.00.45; Thu, 15 Mar 2018 16:01:01 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932979AbeCOW7M (ORCPT + 99 others); Thu, 15 Mar 2018 18:59:12 -0400 Received: from mx2.suse.de ([195.135.220.15]:58212 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932743AbeCOW7L (ORCPT ); Thu, 15 Mar 2018 18:59:11 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay1.suse.de (charybdis-ext.suse.de [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id E5C31AD26; Thu, 15 Mar 2018 22:59:09 +0000 (UTC) From: NeilBrown To: John Crispin Date: Fri, 16 Mar 2018 09:58:59 +1100 Cc: Dan Carpenter , Greg Kroah-Hartman , devel@driverdev.osuosl.org, lkml Subject: Re: [PATCH 00/13] staging: add drivers to support Mediatek mt7621 in gnubee-pc1 In-Reply-To: <9e8e07b4-1a4d-3434-402f-920c19c65122@phrozen.org> References: <152105892255.22262.1902152685410223215.stgit@noble> <20180315104853.bthffdd4hzklzo6d@mwanda> <87muz9ayjz.fsf@notabene.neil.brown.name> <9e8e07b4-1a4d-3434-402f-920c19c65122@phrozen.org> Message-ID: <87efklaqto.fsf@notabene.neil.brown.name> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable 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 a= nd >>>> 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=3Dy 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=20 > inside the kernel for mt7623 and can be easily adapted to work on=20 > mt7621. having duplicate drivers is a certain no-go. > cleaning up the pci driver is a matter of a few days work. merging a=20 > shitty pci driver just to postpone doing the 3-5 days work involved to=20 > polish it seems a rally bad trade-off. > i strongly oppose having any of this code merged into the kernel, even=20 > 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 --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEG8Yp69OQ2HB7X0l6Oeye3VZigbkFAlqq+rQACgkQOeye3VZi gbk2Pg//as1Du5z35UlPj7WIRrrxfcpszMR6olXn8yjzZVD1x9Oj20xfKvX3F+I0 4UrXPFKUCh8xFjcAPwSU4/dq09j8b63ajGdnz+NNqQtvDCrhHNXgHbRxb7UXO9PB NQyaR6Yv85zn9fJLsKYeWG2wZ7zADAcS3yH9VxNjpqlouQ6LqtAb0Y9VQX4hXAp1 763kfX3uXbCozsh/KkeUPv7xpaeza3ak4KDx8hqAxGfiH6/ahGTR2XyazSmzHVA/ 2KmYP81MegdcNORPBwNAhaOxKYbkDthoPv8o+FA4SCNDiRsPToMiDH6qmxOIjYWV BvA98dh+mvtfeeiWMsC1x4EGTsERQ7t28BMQQuhpJKJ1zMFtYxShQwLaGKKfAePW wklHvSoIM9GMU5iwMx9B9iDZsqWSP2XOECBiH7LmK17lqqtW3oxXIdim3ZXipUyr aSNAhGSc7S6GbDCMPIcZOKklhDDKX2oh6oBtn1bHNs01p8BM0/J8JBnywP4FiUun m4FNDlmRwSUcE9KwiaBCFyQTGbzY0hxu2m4GpEklJ+M0wiPX2tPa33YysSXGTVUB 6YlI/u8Gx/VJnZYvFTOBzq6r/YjINwLrO71i6o3IaYoeae6DK28020mdnKlmU4N1 ke++Z/QxGAwt690la3F4jf2DYF/nYWWBkJF4wy+CbsJG1oc0Twc= =5bwv -----END PGP SIGNATURE----- --=-=-=--