Received: by 10.213.65.68 with SMTP id h4csp179457imn; Thu, 15 Mar 2018 13:23:28 -0700 (PDT) X-Google-Smtp-Source: AG47ELvBdVQgbNFA0zXflbjVUQmmUfMzfQmuvaltSASc2LsTloTNvz3dRxy6MQSLMHsUd9WUCjM9 X-Received: by 10.99.109.139 with SMTP id i133mr7379967pgc.194.1521145408063; Thu, 15 Mar 2018 13:23:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521145408; cv=none; d=google.com; s=arc-20160816; b=ShJLWdaeCFgOkHegI0JcH6AwNJGuJ2/Q71H+mMleDP6v+DDm6Y5Cuj0y6Nci6psXvR L0kN9rVtrBireo8SGwbqJd3g1diAKpOELJltrWz3ShMsfF/6wIp5qwciqnoUjNHRHSD3 YmEy9BQ7PFx0GRWJyrsZa1bdYM80HYeWnnot69xSO1ime0nJCHi3aVbo8ez44C9woRIZ ORfzz/t+EMxAQT2Iwv0+bMfT8rY1bJzfRU/FiziPovwqcRNfvFlyvJ3qJxOAXHAFYoAd sASvXis95aSwveZB9LIxzzPVw9YIT9Dom2s+pOT90yJNs8hG6L0qUofF177RRNkz6Plo xHKA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-language :content-transfer-encoding:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:arc-authentication-results; bh=/FOv18YspZSZwoxR6UR5Z2xzEmy+kdY3Thl/bLejEAw=; b=q8uATUkqKsXNkQ/lGfaTek7fjv6OQGs5j+lbOI+JnhL113NqRSc3r9/X8wKgkdNhJE 03C6a8M1/4m6AfV4hPGbXWpdsis+omtgx0vXXBgL5EczqLmjvk4hl2RnfrRII3X232em QpjS3+l1lL/DZAsaKjDM1lIkO/5mZN9emtS+MaQFEIX7smNu6OZRM8Zlxz/SuWB3tgf0 CweA28xSShX9AnHz51y5PzW7f1PKOT8C9IzpOmwD2q2tvMKPzLA4cFqpFKyv9boC4sdw ZUeD3OLWeYZHl6Maj3SwK92YGUmWp4mV9KF34pafJ1l7ZOZ8i/liBT8n5lRmARwlGWEv QtFg== 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 t10-v6si4564298ply.86.2018.03.15.13.23.11; Thu, 15 Mar 2018 13:23:28 -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 S932472AbeCOUVn (ORCPT + 99 others); Thu, 15 Mar 2018 16:21:43 -0400 Received: from nbd.name ([46.4.11.11]:52132 "EHLO nbd.name" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752011AbeCOUVl (ORCPT ); Thu, 15 Mar 2018 16:21:41 -0400 Subject: Re: [PATCH 00/13] staging: add drivers to support Mediatek mt7621 in gnubee-pc1 To: NeilBrown Cc: Dan Carpenter , Greg Kroah-Hartman , devel@driverdev.osuosl.org, lkml References: <152105892255.22262.1902152685410223215.stgit@noble> <20180315104853.bthffdd4hzklzo6d@mwanda> <87muz9ayjz.fsf@notabene.neil.brown.name> From: John Crispin Message-ID: <9e8e07b4-1a4d-3434-402f-920c19c65122@phrozen.org> Date: Thu, 15 Mar 2018 21:21:38 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: <87muz9ayjz.fsf@notabene.neil.brown.name> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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.     John