Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp1527900ybz; Thu, 16 Apr 2020 10:44:29 -0700 (PDT) X-Google-Smtp-Source: APiQypLXvavI8BIROh1HA/De0QZ/gRwMNpDPh5kCTnEAktYlCEzALpyWErfKM6gI2JVN/CChz0/c X-Received: by 2002:a05:6402:17a7:: with SMTP id j7mr31527044edy.334.1587059069687; Thu, 16 Apr 2020 10:44:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587059069; cv=none; d=google.com; s=arc-20160816; b=aJVfhpSTD7t+skFZnQ3CnlMrbQ4UXqcSTcedNuNTEYmhq8oDXoAVAGPHAq1ejzZuDz MBRxIQVWKrALoDMXyjAOpVwoiOZyD8iIaTFLBleF2mro3eUE6yw8nK3NagOTGKnkpcPv WfCaodL9Npp9Mu357koYwaLZPG2XsFZas0GvyOIrUS2QhrISoHHWBz+ZuH6IOKG/vwr8 Fcar8pRuGG6c1YdOLATP7xTqtCR/w8e+5Gipy+5D1I6WvhllJVXWX1TyhHFwF8pkgHjw 8eQV9qTf/LDue3sbxLb+6SwQ5ONmgmbg1xkCjmoLD5WEmxuxrpDDmm+Bu8+LNtK3Rxie XNoQ== 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=FK26tXqqCJsLBruZMpeJf5RWWmTwBL5+QyHGyLJCtO0=; b=yio2AA3y9eqFM/7VM6LJquUJpnb8TlZ78LJLjqE06EBF2Jj7opgWZd88devKh59AUJ Y+YnlnD7ryMUxEmsAbIUaOOeezD7nAJEze6JzX7iIkJil4MGk7sHejQBsTJMHTZQMIwb tRJYhG4LrZZvKENBjC0G32knv6P+/5qnO3gJI+2B89KU9xwUfKXcqQ2RRSeaaDgaLK/g ZkLQ1/w2OQtZNMVf7FZrOanb7pMDEgqlRinwS5/oMUtZFBLob3QtpriV3JTsHXCv4jbA rlLTaDXX1NBqWWLL1V4B8hrs3NCFgnQUg8FAde1vqdHKsZ0WGEzFZS3v0LGZImIe9j/D 2kgA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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. [23.128.96.18]) by mx.google.com with ESMTP id h14si12520430edf.57.2020.04.16.10.44.07; Thu, 16 Apr 2020 10:44:29 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S2634636AbgDPL6m (ORCPT + 99 others); Thu, 16 Apr 2020 07:58:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41614 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2634515AbgDPL5Q (ORCPT ); Thu, 16 Apr 2020 07:57:16 -0400 Received: from bhuna.collabora.co.uk (bhuna.collabora.co.uk [IPv6:2a00:1098:0:82:1000:25:2eeb:e3e3]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 27E91C061A0C; Thu, 16 Apr 2020 04:57:16 -0700 (PDT) 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 0630D2A0A54; Thu, 16 Apr 2020 12:57:13 +0100 (BST) Date: Thu, 16 Apr 2020 13:57:11 +0200 From: Boris Brezillon To: "Ramuthevar, Vadivel MuruganX" Cc: Martin Blumenstingl , anders.roxell@linaro.org, andriy.shevchenko@intel.com, arnd@arndb.de, brendanhiggins@google.com, cheol.yong.kim@intel.com, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mtd@lists.infradead.org, masonccyang@mxic.com.tw, miquel.raynal@bootlin.com, piotrs@cadence.com, qi-ming.wu@intel.com, richard@nod.at, robh+dt@kernel.org, tglx@linutronix.de, vigneshr@ti.com Subject: Re: [PATCH v1 2/2] mtd: rawnand: Add NAND controller support on Intel LGM SoC Message-ID: <20200416135711.039ba85c@collabora.com> In-Reply-To: References: <20200414022433.36622-3-vadivel.muruganx.ramuthevar@linux.intel.com> <20200415220533.733834-1-martin.blumenstingl@googlemail.com> <20200416113822.2ef326cb@collabora.com> <18568cf6-2955-472e-7b68-eb35e654a906@linux.intel.com> <20200416122619.2c481792@collabora.com> <20200416131725.51259573@collabora.com> Organization: Collabora X-Mailer: Claws Mail 3.17.5 (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, 16 Apr 2020 19:38:03 +0800 "Ramuthevar, Vadivel MuruganX" wrote: > On 16/4/2020 7:17 pm, Boris Brezillon wrote: > > On Thu, 16 Apr 2020 18:40:53 +0800 > > "Ramuthevar, Vadivel MuruganX" > > wrote: > > > >>>>> we'll be happy to have one more of the existing driver converted to > >>>>> ->exec_op() ;-). > >>>> I have completely adapted to ->exec_op() hook up to replace the legacy > >>>> call-back. > >>> I suspect porting what you've done to the xway driver shouldn't be too > >>> complicated. > >> Not ported from xway_nand.c driver , we have developed from the scratch > >> to make it work on > >> Intel LGM SoC , it's new x86 ATOM based SoC, IP itself completely > >> different and most of the registers won't match. > >> if we port then it would be ugly and also what are the problem may occur > >> we do not know. > > Sorry but IMO they look similar enough to try to merge them. > > Thanks! Boris, need suggestion from you since you are maintainer and > also expertise on mtd-subsystem. I *was* the maintainer :). > > There are different features involved and lines of code is more, if we > add new driver patches over xway-nand driver How about retro-fitting the xway logic into your driver then? I mean, adding a 100 lines of code to your driver to get rid of the 500+ lines we have in xway_nand.c is still a win. > > is completely looks ugly and it may disturb the existing functionality > as well since we don't have platform to validate:'(. How ugly? Can you show us? Maybe we can come with a solution to make it less ugly. As for the testing part, there are 4 scenarios: 1/ Your changes work perfectly fine on older platforms. Yay \o/! 2/ You break the xway driver and existing users notice it before this series gets merged. Now you found someone to validate your changes. 3/ You break the xway driver and none of the existing users notice it before the driver is merged, but they notice it afterwards. Too bad this happened after we've merged the driver, but now you've found someone to help you fix the problem :P. 4/ You break things for old platforms but no one ever complains about it, either because there's no users left or because they never update their kernels. In any case, that's no longer your problem. Someone will remove those old platforms one day and get rid of the unneeded code in the NAND driver. What's more likely to happen is #3 or #4, and I think the NAND maintainer would be fine with both. Note that the NAND subsystem is full of unmaintained legacy drivers, so every time we see someone who could help us get rid or update one of them we have to take this opportunity.