Linux-mediatek Archive on
 help / color / Atom feed
From: Chuanhong Guo <>
Cc: Vignesh Raghavendra <>,
	Tudor Ambarus <>,
	Richard Weinberger <>,
	open list <>,,
	Miquel Raynal <>,
	Matthias Brugger <>,
Subject: Re: [PATCH v2] mtd: mtk-quadspi: add support for DMA reading
Date: Sat, 15 Feb 2020 15:06:05 +0800
Message-ID: <> (raw)
In-Reply-To: <>

Hi all!

On Sat, Feb 8, 2020 at 4:41 PM Chuanhong Guo <> wrote:
> PIO reading mode on this controller is pretty inefficient
> (one cmd+addr+dummy sequence reads only one byte)
> This patch adds support for reading using DMA mode which increases
> reading speed from 1MB/s to 4MB/s
> DMA busy checking is implemented with readl_poll_timeout because
> I don't have access to IRQ-related docs. The speed increment comes
> from those saved cmd+addr+dummy clocks.
> This controller requires that DMA source/destination address and
> reading length should be 16-byte aligned. We use a bounce buffer if
> one of them is not aligned, read more than what we need, and copy
> data from corresponding buffer offset.
> Signed-off-by: Chuanhong Guo <>

This patch is deprecated. I wrote a new spi-mem driver for this
and will be focus on getting that one merged instead.
Chuanhong Guo

Linux-mediatek mailing list

      parent reply index

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-02-08  8:40 Chuanhong Guo
2020-02-10  8:30 ` Yingjoe Chen
2020-02-11  6:55   ` Chuanhong Guo
2020-02-15  7:06 ` Chuanhong Guo [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:

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='' \ \ \ \ \ \ \ \ \ \ \

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

Linux-mediatek Archive on

Archives are clonable:
	git clone --mirror linux-mediatek/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 linux-mediatek linux-mediatek/ \
	public-inbox-index linux-mediatek

Example config snippet for mirrors

Newsgroup available over NNTP:

AGPL code for this site: git clone