From: Boris Brezillon <boris.brezillon@bootlin.com>
To: <christophe.kerello@st.com>
Cc: <miquel.raynal@bootlin.com>, <richard@nod.at>,
<dwmw2@infradead.org>, <computersforpeace@gmail.com>,
<marek.vasut@gmail.com>, <robh+dt@kernel.org>,
<mark.rutland@arm.com>, <linux-mtd@lists.infradead.org>,
<linux-kernel@vger.kernel.org>, <devicetree@vger.kernel.org>,
<linux-stm32@st-md-mailman.stormreply.com>
Subject: Re: [PATCH v2 2/3] mtd: rawnand: stm32_fmc2: add STM32 FMC2 NAND flash controller driver
Date: Fri, 5 Oct 2018 11:58:09 +0200 [thread overview]
Message-ID: <20181005115809.55356782@bbrezillon> (raw)
In-Reply-To: <1538732520-2800-3-git-send-email-christophe.kerello@st.com>
On Fri, 5 Oct 2018 11:41:59 +0200
<christophe.kerello@st.com> 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;
> + 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;
> +};
WARNING: multiple messages have this Message-ID (diff)
From: Boris Brezillon <boris.brezillon@bootlin.com>
To: christophe.kerello@st.com
Cc: miquel.raynal@bootlin.com, richard@nod.at, dwmw2@infradead.org,
computersforpeace@gmail.com, marek.vasut@gmail.com,
robh+dt@kernel.org, mark.rutland@arm.com,
linux-mtd@lists.infradead.org, linux-kernel@vger.kernel.org,
devicetree@vger.kernel.org,
linux-stm32@st-md-mailman.stormreply.com
Subject: Re: [PATCH v2 2/3] mtd: rawnand: stm32_fmc2: add STM32 FMC2 NAND flash controller driver
Date: Fri, 5 Oct 2018 11:58:09 +0200 [thread overview]
Message-ID: <20181005115809.55356782@bbrezillon> (raw)
In-Reply-To: <1538732520-2800-3-git-send-email-christophe.kerello@st.com>
On Fri, 5 Oct 2018 11:41:59 +0200
<christophe.kerello@st.com> 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;
> + 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;
> +};
next prev parent reply other threads:[~2018-10-05 9:58 UTC|newest]
Thread overview: 25+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-10-05 9:41 [PATCH v2 0/3] mtd: rawnand: add STM32 FMC2 NAND flash controller driver christophe.kerello
2018-10-05 9:41 ` christophe.kerello
2018-10-05 9:41 ` [PATCH v2 1/3] dt-bindings: mtd: stm32_fmc2: add STM32 FMC2 NAND controller documentation christophe.kerello
2018-10-05 9:41 ` christophe.kerello
2018-10-05 9:53 ` Boris Brezillon
2018-10-05 9:53 ` Boris Brezillon
2018-10-12 20:32 ` Rob Herring
2018-10-15 7:39 ` Christophe Kerello
2018-10-15 7:39 ` Christophe Kerello
2018-10-05 9:41 ` [PATCH v2 2/3] mtd: rawnand: stm32_fmc2: add STM32 FMC2 NAND flash controller driver christophe.kerello
2018-10-05 9:41 ` christophe.kerello
2018-10-05 9:58 ` Boris Brezillon [this message]
2018-10-05 9:58 ` Boris Brezillon
2018-10-15 8:09 ` Christophe Kerello
2018-10-15 8:09 ` Christophe Kerello
2018-11-05 16:39 ` Boris Brezillon
2018-11-05 16:39 ` Boris Brezillon
2018-11-07 11:08 ` Christophe Kerello
2018-11-07 11:08 ` Christophe Kerello
2018-11-07 12:23 ` Boris Brezillon
2018-11-07 12:23 ` Boris Brezillon
2018-11-07 12:26 ` Miquel Raynal
2018-11-07 12:26 ` Miquel Raynal
2018-10-05 9:42 ` [PATCH v2 3/3] mtd: rawnand: stm32_fmc2: add manual mode christophe.kerello
2018-10-05 9:42 ` christophe.kerello
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20181005115809.55356782@bbrezillon \
--to=boris.brezillon@bootlin.com \
--cc=christophe.kerello@st.com \
--cc=computersforpeace@gmail.com \
--cc=devicetree@vger.kernel.org \
--cc=dwmw2@infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mtd@lists.infradead.org \
--cc=linux-stm32@st-md-mailman.stormreply.com \
--cc=marek.vasut@gmail.com \
--cc=mark.rutland@arm.com \
--cc=miquel.raynal@bootlin.com \
--cc=richard@nod.at \
--cc=robh+dt@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.