Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp3273002pxk; Mon, 7 Sep 2020 08:09:25 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxS0jEEnqQ7CVdiIlTsHtJ661dvFj0o/VA3B/WdyfHGjVRALUvWdy4xXMbbFf60Cx/xx+rX X-Received: by 2002:aa7:d68c:: with SMTP id d12mr22845836edr.274.1599491365737; Mon, 07 Sep 2020 08:09:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599491365; cv=none; d=google.com; s=arc-20160816; b=hcQSjnR9CGsHufuRY4VB/Ax6v1ME+ZYeYpmRPanErDnpz0wAvQAAGYOBVFU3+pMrSq F3EW0xJw/grC05Amok1v7/I1l6fGZEFvXwL+ZjBqkp/f90dYfvKXcEJbng8oLwEz7Pir PCEPFq6yJIf8RtflfYPWOZcf16naVQOsWpDHDHGsQ+w15vdmP/5UHYCVedIvGTerLKwm /o04b2cpGgxHhJPAW06TQqUtXk1vuNXkVWdVLcdGAVP9rrYeMD2MxyzI8zKIr5tcmmJe K4d7+2+Z+dTjeD5BlbD9UwfBTktjAsuSc2wBh5W8J/T7LEMqzD41dw7GVZzqP4Oo4SXV icMg== 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=GX3rc2E0yBiaox7J7hpS58zzhCXmsVUGKdG5SO+fKfI=; b=voskk0JLcc6JHfIjjc/tfoZzf4lJtlq6iTyxMINvVGuw4MDqaCrrHL1nkNzWIsVk4H 0UNpgxDMI2U0Km60gk14mn/ArT89M4MWSRAve/PvwrqTMBdKEiE9XORMuiXtTtJSwhRy 9Yc5EdqkO0xhCWCnC5h2rwf8zp47Q2TMvZT0ZNJFMVNJoibidfauyKafMt+At2F6K71b d6tUEPLc4bltnRjS/2XqQRyrr3ohhyxR6RW+wrXV2r5bgvODxW/+pANfDRILJjawalUe 1pJxtXDqFTYBK4KJZppkrWs52OTW09gdbUzLLjyhWgeudVMXASIJK+b7n7gtI94mbsxp aK4w== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id rh6si10179441ejb.709.2020.09.07.08.09.02; Mon, 07 Sep 2020 08:09:25 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730116AbgIGPEh convert rfc822-to-8bit (ORCPT + 99 others); Mon, 7 Sep 2020 11:04:37 -0400 Received: from relay3-d.mail.gandi.net ([217.70.183.195]:41665 "EHLO relay3-d.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730068AbgIGO4Z (ORCPT ); Mon, 7 Sep 2020 10:56:25 -0400 X-Originating-IP: 91.224.148.103 Received: from xps13 (unknown [91.224.148.103]) (Authenticated sender: miquel.raynal@bootlin.com) by relay3-d.mail.gandi.net (Postfix) with ESMTPSA id 4ED6660006; Mon, 7 Sep 2020 14:56:14 +0000 (UTC) Date: Mon, 7 Sep 2020 16:56:13 +0200 From: Miquel Raynal To: "Ramuthevar,Vadivel MuruganX" Cc: linux-kernel@vger.kernel.org, linux-mtd@lists.infradead.org, devicetree@vger.kernel.org, richard@nod.at, vigneshr@ti.com, arnd@arndb.de, brendanhiggins@google.com, tglx@linutronix.de, boris.brezillon@collabora.com, anders.roxell@linaro.org, masonccyang@mxic.com.tw, robh+dt@kernel.org, linux-mips@vger.kernel.org, hauke.mehrtens@intel.com, andriy.shevchenko@intel.com, cheol.yong.kim@intel.com, qi-ming.wu@intel.com Subject: Re: [RESEND PATCH v12 2/2] mtd: rawnand: Add NAND controller support on Intel LGM SoC Message-ID: <20200907165613.79f44c58@xps13> In-Reply-To: <20200907152025.66c18f5e@xps13> References: <20200817052709.47035-1-vadivel.muruganx.ramuthevar@linux.intel.com> <20200817052709.47035-3-vadivel.muruganx.ramuthevar@linux.intel.com> <20200907152025.66c18f5e@xps13> Organization: Bootlin X-Mailer: Claws Mail 3.17.4 (GTK+ 2.24.32; x86_64-pc-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 Miquel Raynal wrote on Mon, 7 Sep 2020 15:20:25 +0200: > Hi Murugan, > > A few more comments below, but I guess the driver looks better now. > > > +struct ebu_nand_controller { > > + struct nand_controller controller; > > + struct nand_chip chip; > > + struct device *dev; > > + void __iomem *ebu; > > + void __iomem *hsnand; > > + struct dma_chan *dma_tx; > > + struct dma_chan *dma_rx; > > + struct completion dma_access_complete; > > + unsigned long clk_rate; > > + struct clk *clk; > > + u32 nd_para0; > > + u8 cs_num; > > + struct ebu_nand_cs cs[MAX_CS]; > > +}; > > + > > +static inline struct ebu_nand_controller *nand_to_ebu(struct nand_chip *chip) > > +{ > > + return container_of(chip, struct ebu_nand_controller, chip); > > +} > > + > > +static u8 ebu_nand_readb(struct nand_chip *chip) > > Can't you prefix with intel_ instead of ebu_ ? Actually not, as the IP is shared with MIPS IIUC, just ignore this comment. Thanks, Miquèl