Received: by 2002:a25:31c3:0:0:0:0:0 with SMTP id x186csp4927103ybx; Sun, 10 Nov 2019 03:42:16 -0800 (PST) X-Google-Smtp-Source: APXvYqwR7lch7++as1GVMhENxq/VH8DcM7l+X4YZl4JvGOhyFjnatHe/yKrM5JCNyGf2hwC5le4g X-Received: by 2002:aa7:d7d7:: with SMTP id e23mr19762101eds.236.1573386136303; Sun, 10 Nov 2019 03:42:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573386136; cv=none; d=google.com; s=arc-20160816; b=Stz2YdhqRJEsoB4DuqddX5Npm/FHpzTMksZHL7Hr2PUycp7yiLIaHDMYPE+6TPNr+7 qq3DWuPtwAl+EfnFN9Jpr2jCPEuPHL4/glc+Lc7pZ+gBhFOP+lEDQomXglYXhD5RM2HF GzjJ/t3zVqCJbBh+hTs1pNMNKlIRGeortjm7JVwLnGNWhkeDKaGRGakiQLj9UTB0zyH9 694H+obGABQhdXyb2NQyYbqmT5IDWz9DmqYcL31TtV+j3hAc8u6Tm8D/XOjqug36MKdd I635kMw0mB3P/MPI6fRPNHRBDJLMjuTPJCnBSr6cNKN6RblG0SaE2N3jlMxgCiatINXI 7qMA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :organization:references:in-reply-to:message-id:subject:cc:to:from :date; bh=Aa8yUtTrwSxEmHd7MKQz3FM3RpYWDJJ/GGr0hOaoxWE=; b=reUvH1Xh71MPX7VT027+pWjBljh5+U5i9OQbaojVWC3vYOyPZyyrS+G65jbBg5gZiM SmqT5mISivBob2+3yNehe+6O57Hjkd97CoizlOhV7m81uKkovjJyghv5A4DTVjhqMlyx 67lkdsJcCgaFYVJEkwu5C1E8Q2a76Vi96N7MTYGvqaRqAQLQNGd1V4HTzyPk+TkjQJ7m lP5xJ2ujS5E+yBP+AiT/9cIAzOzGwq0e8LZ/6n7PT6UnItOO+QSLdhoKwaOO4dUR7esc eyvddpKnGD54fhKCE3FWV9f9nYZjwvQa3gKS8/6imGa0waKw2MfyhWl0hD/UmrOTESSA ZBuA== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id ay3si7299134ejb.408.2019.11.10.03.41.53; Sun, 10 Nov 2019 03:42:16 -0800 (PST) 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726700AbfKJLjY (ORCPT + 99 others); Sun, 10 Nov 2019 06:39:24 -0500 Received: from bhuna.collabora.co.uk ([46.235.227.227]:52796 "EHLO bhuna.collabora.co.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726617AbfKJLjY (ORCPT ); Sun, 10 Nov 2019 06:39:24 -0500 Received: from localhost (unknown [IPv6:2a01:e0a:2c:6930:5cf4:84a1:2763:fe0d]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: bbrezillon) by bhuna.collabora.co.uk (Postfix) with ESMTPSA id 716C828DA46; Sun, 10 Nov 2019 11:39:22 +0000 (GMT) Date: Sun, 10 Nov 2019 12:39:19 +0100 From: Boris Brezillon To: Greg KH Cc: gerg@kernel.org, devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org, linux-mtd@lists.infradead.org, neil@brown.name, linux-mediatek@lists.infradead.org, blogic@openwrt.org Subject: Re: [PATCH] mtd: rawnand: driver for Mediatek MT7621 SoC NAND flash controller Message-ID: <20191110123919.5c998839@collabora.com> In-Reply-To: <20191107084007.GA1203521@kroah.com> References: <20191107073521.11413-1-gerg@kernel.org> <20191107084007.GA1203521@kroah.com> Organization: Collabora X-Mailer: Claws Mail 3.17.4 (GTK+ 2.24.32; x86_64-redhat-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 7 Nov 2019 09:40:07 +0100 Greg KH wrote: > On Thu, Nov 07, 2019 at 05:35:21PM +1000, gerg@kernel.org wrote: > > From: Greg Ungerer > > > > Add a driver to support the NAND flash controller of the MediaTek MT7621 > > System-on-Chip device. (This one is the MIPS based parts from Mediatek). > > > > This code is a re-working of the earlier patches for this hardware that > > have been floating around the internet for years: > > > > https://github.com/ReclaimYourPrivacy/cloak/blob/master/target/linux/ramips/patches-3.18/0045-mtd-add-mt7621-nand-support.patch > > > > This is a much cleaned up version, put in staging to start with. > > It does still have some problems, mainly that it still uses a lot of the > > mtd raw nand legacy support. > > Is that an issue? Well, yes that's an issue since we decided that all new drivers should implement ->exec_op() instead of the legacy hooks. But that would be an issue even if we were merging the driver in staging. > Why not just put it in the "real" part of the kernel > then, if those apis are still in use? > > > The driver not only compiles, but it works well on the small range of > > hardware platforms that it has been used on so far. I have been using > > for quite a while now, cleaning up as I get time. > > > > So... I am looking for comments on the best approach forward with this. > > At least in staging it can get some more eyeballs going over it. > > staging will just nit-pick it to death for coding style issues, it's not > going to be get any major api changes/cleanups there usually. I'd > recommend just merging this to the "real" part of the kernel now if it's > working for you. I agree on that point: we should merge this driver directly in the NAND framework after it's been reworked to implement ->exec_op() instead of the legacy hooks.