From: Wolfram Sang <wsa@the-dreams.de>
To: Chris Brandt <chris.brandt@renesas.com>
Cc: Ulf Hansson <ulf.hansson@linaro.org>,
Wolfram Sang <wsa+renesas@sang-engineering.com>,
Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>,
Geert Uytterhoeven <geert@linux-m68k.org>,
Simon Horman <horms+renesas@verge.net.au>,
linux-mmc@vger.kernel.org, linux-renesas-soc@vger.kernel.org
Subject: Re: [PATCH v3 2/3] mmc: tmio-mmc: add support for 32bit data port
Date: Thu, 20 Oct 2016 15:28:53 +0200 [thread overview]
Message-ID: <20161020132852.GB4177@katana> (raw)
In-Reply-To: <20160912141507.6837-3-chris.brandt@renesas.com>
[-- Attachment #1: Type: text/plain, Size: 1367 bytes --]
On Mon, Sep 12, 2016 at 10:15:06AM -0400, Chris Brandt wrote:
> For the r7s72100 SOC, the DATA_PORT register was changed to 32-bits wide.
> Therefore a new flag has been created that will allow 32-bit reads/writes
> to the DATA_PORT register instead of 16-bit (because 16-bits accesses are
> not supported).
>
> Signed-off-by: Chris Brandt <chris.brandt@renesas.com>
> ---
> v3:
> * changed loops to memcpy
> v2:
> * changed 'data * 0xFF' to 'data & 0xFF'
> * added 'const' for sd_ctrl_write32_rep
Sadly, I don't have SDHI documentation for this SoC.
* Does it have a version register (CTL_VERSION)? If so, what does it
say?
* Does it have SD_BUF0 width setting (named either EXT_ACC or HOST_MODE,
so far always comes after the version register)? If so, what is its
layout?
Unrelated to this patch but nice to know:
* Does it support DMA? Is it compatible to the current implementation?
That being asked, R-Car SoCs can have SDBUF0 32-bit wide as well (Gen3
even 64-bit). So far, this is only used for DMA, though.
Thanks,
Wolfram
> + /* if count was multiple of 4 */
> + if (!(count & 0x3))
> + return;
> + buf8 = (u8 *)(buf + (count >> 2));
> + count %= 4;
To skip the same operation done on 'count' twice, maybe?
buf8 = (u8 *)(buf + (count >> 2));
count &= 3;
if (!count)
return;
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 819 bytes --]
next prev parent reply other threads:[~2016-10-20 13:29 UTC|newest]
Thread overview: 34+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-09-12 14:15 [PATCH v3 0/3] mmc: sh_mobile_sdhi: Add r7s72100 support Chris Brandt
2016-09-12 14:15 ` [PATCH v3 1/3] mmc: sh_mobile_sdhi: add ocr_mask option Chris Brandt
2016-09-13 12:57 ` Ulf Hansson
2016-09-13 13:26 ` Geert Uytterhoeven
2016-09-13 13:50 ` Chris Brandt
2016-09-13 15:10 ` Ulf Hansson
2016-09-13 15:59 ` Chris Brandt
2016-09-17 9:12 ` Ulf Hansson
2016-09-17 13:38 ` Chris Brandt
2016-09-13 13:28 ` Chris Brandt
2016-10-20 13:05 ` Wolfram Sang
2016-09-12 14:15 ` [PATCH v3 2/3] mmc: tmio-mmc: add support for 32bit data port Chris Brandt
2016-09-22 8:13 ` Ulf Hansson
2016-10-14 13:18 ` Chris Brandt
2016-10-17 13:36 ` Ulf Hansson
2016-10-17 15:15 ` Wolfram Sang
2016-10-20 13:28 ` Wolfram Sang [this message]
2016-10-20 14:35 ` Chris Brandt
2016-10-20 23:12 ` Wolfram Sang
2016-10-21 13:43 ` Chris Brandt
2016-10-21 21:56 ` Wolfram Sang
2016-10-24 11:06 ` Geert Uytterhoeven
2016-10-24 11:11 ` Wolfram Sang
2016-10-24 12:37 ` Chris Brandt
2016-10-20 19:46 ` Chris Brandt
2016-10-20 23:04 ` Wolfram Sang
2016-11-01 8:49 ` Wolfram Sang
2016-11-01 13:40 ` Chris Brandt
2016-11-01 15:07 ` Wolfram Sang
2016-11-01 15:13 ` Chris Brandt
2016-09-12 14:15 ` [PATCH v3 3/3] mmc: sh_mobile_sdhi: Add r7s72100 support Chris Brandt
2016-11-01 8:49 ` Wolfram Sang
2016-10-14 13:14 ` [PATCH v3 0/3] " Chris Brandt
2016-11-07 18:38 ` Ulf Hansson
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=20161020132852.GB4177@katana \
--to=wsa@the-dreams.de \
--cc=chris.brandt@renesas.com \
--cc=geert@linux-m68k.org \
--cc=horms+renesas@verge.net.au \
--cc=linux-mmc@vger.kernel.org \
--cc=linux-renesas-soc@vger.kernel.org \
--cc=sergei.shtylyov@cogentembedded.com \
--cc=ulf.hansson@linaro.org \
--cc=wsa+renesas@sang-engineering.com \
/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;
as well as URLs for NNTP newsgroup(s).