Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp1089852ybz; Thu, 16 Apr 2020 02:40:01 -0700 (PDT) X-Google-Smtp-Source: APiQypJGyHpavO0tlTAvg6KDoS/Z586HS2u5ZIgmEiJboy6hagwd6m+L9r3IfUDMDO+r/gqVkOj1 X-Received: by 2002:aa7:cac6:: with SMTP id l6mr29196694edt.265.1587030000877; Thu, 16 Apr 2020 02:40:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587030000; cv=none; d=google.com; s=arc-20160816; b=up5/q94H6hyWxWXecMJ1ONswphfUEEA3R/e7b44TBwqfAN0DrhtVR7hbxRCaSmwKBn KFEYZB8KQCdF/h+uzU6lYWOeI6aQrfYYgg3RcwRHcikAp/KYVY9KVNPoEPZK4ijQVexn VLgOUC5wVwA3MwtwUk118JmkiTO04VCGbFW9yCtf9YN884kxtygUWWeo9FQIfIEtX4CW +FKzAGMZXLDNFNy0xkj5kuDnBHQ4z+VMtsfmxIrkhxI+WbMCpqWn7Gc56Kv/La7Igx65 ZYBCmFeDOU86f/arYHXe5che1T7pZDYRGvBGLsYs8JmFwXUxe/lpSw28xygcZgk7s143 Walw== 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=+Ang4UjDNBstm1TuS6kL72FWy/lotYj55a6Sf1HQ80U=; b=inSQ8uHCB6gBxeUNKBBEZ0gJoqmYGNNUQErKRdvVKHiwg2yWlhk4pJjOFHKH/MBuax 90uGVAU1xdd0FsJDTdy+57lTkWZZYqA68OPJD78E67eH/4fj6rD7WMhcFwXK2cW3CGon OwwvFZ0JdRfYtIQF9ahot2tH/TBzdzr5xT1idFKK1S6Artoe7xwFct7+fmShTg+XncxR n1kztAb6KSZCGBqNK0AJ32ByuwmBNbBlt2MWbNRozLVxtovuOMXgfaJONoRrfyVEOPcW lidzoeDIo9zpUZhV6UxK51r0q9pEaP04FioVUwoHyC0TUocGb0VqwECY/52DMUjGCNlb lAkw== 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 jz23si11105853ejb.306.2020.04.16.02.39.38; Thu, 16 Apr 2020 02:40:00 -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 S2503663AbgDPJig convert rfc822-to-8bit (ORCPT + 99 others); Thu, 16 Apr 2020 05:38:36 -0400 Received: from bhuna.collabora.co.uk ([46.235.227.227]:37342 "EHLO bhuna.collabora.co.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2503607AbgDPJia (ORCPT ); Thu, 16 Apr 2020 05:38:30 -0400 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 DED562A1115; Thu, 16 Apr 2020 10:38:26 +0100 (BST) Date: Thu, 16 Apr 2020 11:38:22 +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: <20200416113822.2ef326cb@collabora.com> In-Reply-To: References: <20200414022433.36622-3-vadivel.muruganx.ramuthevar@linux.intel.com> <20200415220533.733834-1-martin.blumenstingl@googlemail.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=UTF-8 Content-Transfer-Encoding: 8BIT Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 16 Apr 2020 17:35:26 +0800 "Ramuthevar, Vadivel MuruganX" wrote: > Hi Martin, > >     Thank you so much for review comments and your time... > > On 16/4/2020 6:05 am, Martin Blumenstingl wrote: > > Hi, > > > > first of all: thank you for working on upstreaming this. > > Especially since you are going to use the new exec_op style in v2 as > > Boris suggested. > > > >> From: Ramuthevar Vadivel Murugan > >> > >> This patch adds the new IP of Nand Flash Controller(NFC) support > >> on Intel's Lightning Mountain(LGM) SoC. > >> > >> DMA is used for burst data transfer operation, also DMA HW supports > >> aligned 32bit memory address and aligned data access by default. > >> DMA burst of 8 supported. Data register used to support the read/write > >> operation from/to device. > > I am wondering how this new hardware is different from the Lantiq NAND > > controller IP - for which there is already a driver in mainline (it's > > in drivers/mtd/nand/raw/xway_nand.c). > > The CON and WAIT registers look suspiciously similar. > > > > As far as I understand the "old" SoCs (VRX200 and earlier) don't have > > a built-in ECC engine. This seems to have changed with ARX300 though > > (again, AFAIK). > > > > A bit of lineage on these SoCs (initially these were developed by > > Infineon. Lantiq then started as an Infineon spin-off in 2009 and > > was then acquired by Intel in 2015): > > - Danube > > - ARX100 from 2008/2009 > > - VRX200 from 2009/2010 > > - ARX300 from 2014 > > - GRX350 from 2015/2016 > > - GRX550 from 2017 > > - and now finally: LGM from 2020 (est.) > > > > The existing xway_nand driver supports the Danube, ARX100 and VRX200 > > SoCs. > Lantiq upstreamed a driver for an older version of this IP core 8 years > ago, see here: > https://elixir.bootlin.com/linux/v5.5.6/source/drivers/mtd/nand/raw/xway_nand.c > It does not support DMA and ECC. Then let's just extend this driver to support the new features. Plus, we'll be happy to have one more of the existing driver converted to ->exec_op() ;-). > This upstream driver works with the xrx200, I do not know how well it > works with other SoCs. > > Regards > Vadivel > > > > > > Best regards, > > Martin