Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp3633385imm; Mon, 15 Oct 2018 01:14:13 -0700 (PDT) X-Google-Smtp-Source: ACcGV62ISBolL/nZ51ZvrnoQyNspzzlWsZh6FCRdoyX0lOVcw/wZGWyMRF3Zrzn6EKBxO6nEcjrR X-Received: by 2002:a63:4b25:: with SMTP id y37-v6mr15134590pga.14.1539591253675; Mon, 15 Oct 2018 01:14:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539591253; cv=none; d=google.com; s=arc-20160816; b=GNUlcwxCJvQ4rgrePQ+Tvkdaf8XdB+Dg/9P2mX/c6MeovPT+wBXKjt0S4WroLEWFtM GtaFVcrKOsbxum+J7tXZNWzn1vly6q4XbDaqIZwYzlgiqzr4vq1WVRCg/KyxkzRs/f17 PxY7WV46ZLTz8W2i3487vOio43UktukzBSw4t81PwCrcbBN7hdqYGXV3ocOdHVsEMD6z bgZx8ZkD51EcLupaR+6pqvAQm0ieO16vR0FD7JLdYdgU1qy/Rf6nWojx13N59INWs/9Q He6UBe5qdhgI5UyqcqXuoZF5P40iRruR5eJ3iqpEUGJyqust6ZhDTxVPYRehz65Bp92y 21Tw== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=WVPl4j9Ye/obhL49KJBhkQV5GQDwRHs94eMBC0rXTA0=; b=rc2t1/tiMTmvKHsWdIE1NofVxlZJSrC+SNM6vKLRFJQrY0Pkpb3vtTjekIi6+8kEKW f9OMtZMn0pwj8axvzXCz1uqhfw01MbaaWCL1KZkwaxQaJ7sZR2lLqqb3d3DtrhMhT35w dMa31F8fi3g4VCzENdgSLhOx6BP2xg1z+/HvRL3gIPhesbXV5nOCsyIFR32tUqmAdtG0 IAkJ7MXNckTj5GaI9QPwPE9lsHl3sIhYDnHTDftbSm+w2e4TLPfK7eqisgxBzEgsUwwd lLm0ucFwddEWTmynPnkcu/9Wh4JUZjVRr5rD86k12jNi9jly7IpJLheUhn9yNX0VDKAi cyzw== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w16-v6si9725268pge.9.2018.10.15.01.13.58; Mon, 15 Oct 2018 01:14:13 -0700 (PDT) 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726707AbeJOP4i (ORCPT + 99 others); Mon, 15 Oct 2018 11:56:38 -0400 Received: from mx08-00178001.pphosted.com ([91.207.212.93]:13844 "EHLO mx07-00178001.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726590AbeJOP4i (ORCPT ); Mon, 15 Oct 2018 11:56:38 -0400 Received: from pps.filterd (m0046660.ppops.net [127.0.0.1]) by mx08-.pphosted.com (8.16.0.21/8.16.0.21) with SMTP id w9F88wkb029886; Mon, 15 Oct 2018 10:09:51 +0200 Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by mx08-00178001.pphosted.com with ESMTP id 2n35u5a998-1 (version=TLSv1 cipher=ECDHE-RSA-AES256-SHA bits=256 verify=NOT); Mon, 15 Oct 2018 10:09:51 +0200 Received: from zeta.dmz-eu.st.com (zeta.dmz-eu.st.com [164.129.230.9]) by beta.dmz-eu.st.com (STMicroelectronics) with ESMTP id 0B7783F; Mon, 15 Oct 2018 08:09:50 +0000 (GMT) Received: from Webmail-eu.st.com (sfhdag6node2.st.com [10.75.127.17]) by zeta.dmz-eu.st.com (STMicroelectronics) with ESMTP id C16282587; Mon, 15 Oct 2018 08:09:50 +0000 (GMT) Received: from [10.201.23.29] (10.75.127.49) by SFHDAG6NODE2.st.com (10.75.127.17) with Microsoft SMTP Server (TLS) id 15.0.1347.2; Mon, 15 Oct 2018 10:09:49 +0200 Subject: Re: [PATCH v2 2/3] mtd: rawnand: stm32_fmc2: add STM32 FMC2 NAND flash controller driver To: Boris Brezillon CC: , , , , , , , , , , References: <1538732520-2800-1-git-send-email-christophe.kerello@st.com> <1538732520-2800-3-git-send-email-christophe.kerello@st.com> <20181005115809.55356782@bbrezillon> From: Christophe Kerello Message-ID: Date: Mon, 15 Oct 2018 10:09:49 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: <20181005115809.55356782@bbrezillon> Content-Type: text/plain; charset="utf-8"; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [10.75.127.49] X-ClientProxiedBy: SFHDAG8NODE1.st.com (10.75.127.22) To SFHDAG6NODE2.st.com (10.75.127.17) X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2018-10-15_05:,, signatures=0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 10/05/2018 11:58 AM, Boris Brezillon wrote: > On Fri, 5 Oct 2018 11:41:59 +0200 > wrote: > >> +struct stm32_fmc2 { > > You should inherit from nand_controller even if the nand_chip already > embeds a dummy nand controller object. > > struct nand_controller base; > Hi Boris, Ok, i will add and handle the nand controller structure. Regards, Christophe Kerello. >> + struct stm32_fmc2_nand nand; >> + struct device *dev; >> + void __iomem *io_base; >> + void __iomem *data_base[FMC2_MAX_CE]; >> + void __iomem *cmd_base[FMC2_MAX_CE]; >> + void __iomem *addr_base[FMC2_MAX_CE]; >> + phys_addr_t io_phys_addr; >> + phys_addr_t data_phys_addr[FMC2_MAX_CE]; >> + struct clk *clk; >> + >> + struct dma_chan *dma_tx_ch; >> + struct dma_chan *dma_rx_ch; >> + struct dma_chan *dma_ecc_ch; >> + struct sg_table dma_data_sg; >> + struct sg_table dma_ecc_sg; >> + u8 *ecc_buf; >> + int dma_ecc_len; >> + >> + struct completion complete; >> + struct completion dma_data_complete; >> + struct completion dma_ecc_complete; >> + >> + u8 cs_assigned; >> + int cs_sel; >> +};