Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp1531684ybz; Thu, 16 Apr 2020 10:48:48 -0700 (PDT) X-Google-Smtp-Source: APiQypKAs5yui6BTCK6h6UzpK5ZTKnDCw9JdHaHd6TcCd0hy5htkElhKMTnOf91rfkp7ofxGNXWd X-Received: by 2002:a05:6402:356:: with SMTP id r22mr11184714edw.3.1587059328176; Thu, 16 Apr 2020 10:48:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587059328; cv=none; d=google.com; s=arc-20160816; b=n+Nt76Oi/UalF+ONtkL58SmA8mGiyUcaA21ryDih+98GrjE+q3Vd0Dt6dJTX02H7lu mOoPpmalvv63R7w3a/4+XwNMgw4lmkMdM52QM7BMJCE6Log4T837chFDwra1IZdNt/Q5 PGQAakrB/Us1MuDvj8779zU/Ndxps05rVkK1ZTzZi1HQpL4ZHrgchZscKKdkEJfFDKU/ do5aS8+gW8RCcWRJiWak2O5rzMSB47cNiXlgwhctqWIVFv53ifEESH/W9qCUplleni0N entFXNbpWf8MAlm7DsBAKK6VhIAJ57vhDInRcKo7GWMHiKnqDhD8ZymoZPJ68SqsUUXQ rL3w== 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=26f4XnkCLOHUfQ3/19QfBeD7JI3cN21dHicVStRLPbg=; b=Kehsg8Qrmg0H+OsQs8tjMpAQjSVO8PsbkMUzgiiBKo5EMR+PpEnddsSY6bBdiM/jCh 41WOP3jFvjBlZ3TR0KgdgHwkNrH9P/Op/KNVHA2D9DBMV7AYrE9NEA/7kNvyqhOZJjOy zX9sGcS12DgwzFBGjAXV7sV8gLOxNxZ8fjUar74uWvUT6c/iCNtVxtdAE/MKhnux5fEC y0OptE3K7mCrIzPbLujV3vAxyvIltvVRDK2TcwwHfrD5v3pQXUDXt/VFaanlOeTqN/Lb vCa0O9L59pBwOE2RJuCfhcToF85nUq9AchLslTDCLX7woj1O46vWxRS9JENQiSif25MR dDgQ== 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 e8si13845831edl.2.2020.04.16.10.48.24; Thu, 16 Apr 2020 10:48:48 -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 S2635653AbgDPMk7 (ORCPT + 99 others); Thu, 16 Apr 2020 08:40:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48382 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S2635883AbgDPMkq (ORCPT ); Thu, 16 Apr 2020 08:40:46 -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 F1FE5C061A0C; Thu, 16 Apr 2020 05:40:43 -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 750ED2A20B2; Thu, 16 Apr 2020 13:40:40 +0100 (BST) Date: Thu, 16 Apr 2020 14:40:36 +0200 From: Boris Brezillon To: Andy Shevchenko Cc: "Ramuthevar, Vadivel MuruganX" , Martin Blumenstingl , Anders Roxell , Andriy Shevchenko , Arnd Bergmann , Brendan Higgins , cheol.yong.kim@intel.com, devicetree , Linux Kernel Mailing List , "open list:MEMORY TECHNOLOGY..." , masonccyang@mxic.com.tw, Miquel Raynal , piotrs@cadence.com, qi-ming.wu@intel.com, Richard Weinberger , Rob Herring , Vignesh R Subject: Re: [PATCH v1 2/2] mtd: rawnand: Add NAND controller support on Intel LGM SoC Message-ID: <20200416144036.3ce8432f@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> <20200416135711.039ba85c@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 15:26:51 +0300 Andy Shevchenko wrote: > On Thu, Apr 16, 2020 at 3:03 PM Boris Brezillon > wrote: > > 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: > > ... > > > > 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. > > Don't we rather insist to have a MAINTAINERS record for new code to > avoid (or delay at least) the fate of the legacy drivers? > Well, that's what we do for new drivers, but the xway driver has been added in 2012 and the policy was not enforced at that time. BTW, that goes for most of the legacy drivers in have in the NAND subsystems (some of them even predate the git era). To be clear, I just checked and there's no official maintainer for this driver. Best option would be to Cc the original author and contributors who proposed functional changes to the code, as well as the MIPS maintainers (Xway is a MIPS platform).