From: Boris Brezillon <boris.brezillon@free-electrons.com>
To: Boris Brezillon <boris.brezillon@free-electrons.com>,
Richard Weinberger <richard@nod.at>,
linux-mtd@lists.infradead.org
Cc: Marek Vasut <marek.vasut@gmail.com>,
Brian Norris <computersforpeace@gmail.com>,
David Woodhouse <dwmw2@infradead.org>,
Cyrille Pitchen <cyrille.pitchen@wedev4u.fr>
Subject: Re: [PATCH 1/2] mtd: nand: sunxi: Actually use DMA for subpage reads
Date: Mon, 29 May 2017 20:53:57 +0200 [thread overview]
Message-ID: <20170529205357.7845a473@bbrezillon> (raw)
In-Reply-To: <1494887026-20970-1-git-send-email-boris.brezillon@free-electrons.com>
On Tue, 16 May 2017 00:23:45 +0200
Boris Brezillon <boris.brezillon@free-electrons.com> wrote:
> ecc->read_subpage is set to sunxi_nfc_hw_ecc_read_subpage_dma when
> ->dmac != NULL, but is then unconditionally overwritten in the common
> init path.
>
> Remove this extra assignment to allow usage of the DMA operation when
> possible.
>
Applied both to nand/next.
> Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
> ---
> drivers/mtd/nand/sunxi_nand.c | 1 -
> 1 file changed, 1 deletion(-)
>
> diff --git a/drivers/mtd/nand/sunxi_nand.c b/drivers/mtd/nand/sunxi_nand.c
> index 118a26fff368..a4e43026c35d 100644
> --- a/drivers/mtd/nand/sunxi_nand.c
> +++ b/drivers/mtd/nand/sunxi_nand.c
> @@ -1922,7 +1922,6 @@ static int sunxi_nand_hw_ecc_ctrl_init(struct mtd_info *mtd,
> ecc->write_subpage = sunxi_nfc_hw_ecc_write_subpage;
> ecc->read_oob_raw = nand_read_oob_std;
> ecc->write_oob_raw = nand_write_oob_std;
> - ecc->read_subpage = sunxi_nfc_hw_ecc_read_subpage;
>
> return 0;
> }
prev parent reply other threads:[~2017-05-29 18:54 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-05-15 22:23 [PATCH 1/2] mtd: nand: sunxi: Actually use DMA for subpage reads Boris Brezillon
2017-05-15 22:23 ` [PATCH 2/2] mtd: nand: sunxi: Remove unneeded ->cmdfunc(NAND_CMD_READ0, 0, page) Boris Brezillon
2017-05-29 18:53 ` Boris Brezillon [this message]
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=20170529205357.7845a473@bbrezillon \
--to=boris.brezillon@free-electrons.com \
--cc=computersforpeace@gmail.com \
--cc=cyrille.pitchen@wedev4u.fr \
--cc=dwmw2@infradead.org \
--cc=linux-mtd@lists.infradead.org \
--cc=marek.vasut@gmail.com \
--cc=richard@nod.at \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox