From: Wolfram Sang <wsa@the-dreams.de>
To: Jaehoon Chung <jh80.chung@samsung.com>
Cc: Wolfram Sang <wsa+renesas@sang-engineering.com>,
linux-mmc@vger.kernel.org, linux-renesas-soc@vger.kernel.org,
Simon Horman <horms@verge.net.au>,
Dirk Behme <dirk.behme@gmail.com>
Subject: Re: [PATCH v3 4/6] mmc: tmio: add eMMC support
Date: Wed, 21 Sep 2016 08:07:26 +0200 [thread overview]
Message-ID: <20160921060726.GF1484@katana> (raw)
In-Reply-To: <e13ee5da-ad48-703a-5220-089f1f1ca0e0@samsung.com>
[-- Attachment #1: Type: text/plain, Size: 1809 bytes --]
On Tue, Sep 20, 2016 at 06:35:00PM +0900, Jaehoon Chung wrote:
> On 09/20/2016 05:57 AM, Wolfram Sang wrote:
> > We need to add R1 without CRC support, refactor the bus width routine a
> > little and extend a quirk check. To support "non-removable;" we need a
> > workaround which will be hopefully removed when reworking PM soon.
> >
> > Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
> > ---
> > drivers/mmc/host/tmio_mmc.h | 3 +++
> > drivers/mmc/host/tmio_mmc_pio.c | 38 ++++++++++++++++++++++++++------------
> > 2 files changed, 29 insertions(+), 12 deletions(-)
> >
> > diff --git a/drivers/mmc/host/tmio_mmc.h b/drivers/mmc/host/tmio_mmc.h
> > index 4b501f2d529f6e..637581faf756b1 100644
> > --- a/drivers/mmc/host/tmio_mmc.h
> > +++ b/drivers/mmc/host/tmio_mmc.h
> > @@ -79,6 +79,9 @@
> > #define CLK_CTL_DIV_MASK 0xff
> > #define CLK_CTL_SCLKEN BIT(8)
> >
> > +#define CARD_OPT_WIDTH8 BIT(13)
> > +#define CARD_OPT_WIDTH BIT(15)
>
> Just confusing whether CARD_OPT_WIDTH is 4bit or 1bit?
The HW is confusing. Setting the bit sets 1-bit mode. This is why I put
the comment below in the code:
> > + u16 reg = sd_ctrl_read16(host, CTL_SD_MEM_CARD_OPT)
> > + & ~(CARD_OPT_WIDTH | CARD_OPT_WIDTH8);
> > +
> > + /* reg now applies to MMC_BUS_WIDTH_4 */
This comment I meant ^^^
> > + if (bus_width == MMC_BUS_WIDTH_1)
> > + reg |= CARD_OPT_WIDTH;
...
> > switch (mmc_resp_type(cmd)) {
> > case MMC_RSP_NONE: c |= RESP_NONE; break;
> > - case MMC_RSP_R1: c |= RESP_R1; break;
> > + case MMC_RSP_R1:
> > + case MMC_RSP_R1_NO_CRC:
> > + c |= RESP_R1; break;
>
> Just wonder..It there case that hit "case MMC_RSP_R1_NO_CRC" ?
Yes, as described in my response to patch 1. It doesn't work without.
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 819 bytes --]
next prev parent reply other threads:[~2016-09-21 6:07 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-09-19 20:57 [PATCH v3 0/6] tmio: add support for eMMC with 8 bit bus width Wolfram Sang
2016-09-19 20:57 ` [PATCH v3 1/6] mmc: add define for R1 response without CRC Wolfram Sang
2016-09-20 9:25 ` Jaehoon Chung
2016-09-21 6:00 ` Wolfram Sang
2016-09-22 3:58 ` Jaehoon Chung
2016-09-19 20:57 ` [PATCH v3 2/6] mmc: rtsx_pci: use new macro for R1 " Wolfram Sang
2016-09-20 9:29 ` Jaehoon Chung
2016-09-21 6:03 ` Wolfram Sang
2016-09-19 20:57 ` [PATCH v3 3/6] mmc: rtsx_usb: " Wolfram Sang
2016-09-19 20:57 ` [PATCH v3 4/6] mmc: tmio: add eMMC support Wolfram Sang
2016-09-20 9:35 ` Jaehoon Chung
2016-09-21 6:07 ` Wolfram Sang [this message]
2016-09-19 20:57 ` [PATCH v3 5/6] arm64: dts: r8a7795: salvator: enable on-board eMMC Wolfram Sang
2016-09-19 20:57 ` [PATCH v3 6/6] arm64: dts: r8a7796: salvator: enable on board eMMC Wolfram Sang
2016-09-22 9:40 ` [PATCH v3 0/6] tmio: add support for eMMC with 8 bit bus width 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=20160921060726.GF1484@katana \
--to=wsa@the-dreams.de \
--cc=dirk.behme@gmail.com \
--cc=horms@verge.net.au \
--cc=jh80.chung@samsung.com \
--cc=linux-mmc@vger.kernel.org \
--cc=linux-renesas-soc@vger.kernel.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