From: Ahmad Fatoum <a.fatoum@pengutronix.de>
To: Jules Maselbas <jmaselbas@kalray.eu>, barebox@lists.infradead.org
Subject: Re: [PATCH v3 1/7] mci: sdhci: Set 8-bit host caps
Date: Thu, 24 Aug 2023 15:26:29 +0200 [thread overview]
Message-ID: <cf63ae60-1292-497b-cf9a-325a6d1d5dbf@pengutronix.de> (raw)
In-Reply-To: <20230818142244.17157-1-jmaselbas@kalray.eu>
On 18.08.23 16:22, Jules Maselbas wrote:
> Set the mci::host_cap MMC_CAP_8_BIT_DATA if supported by the hardware.
>
> Signed-off-by: Jules Maselbas <jmaselbas@kalray.eu>
> ---
> drivers/mci/sdhci.c | 3 +++
> 1 file changed, 3 insertions(+)
>
> diff --git a/drivers/mci/sdhci.c b/drivers/mci/sdhci.c
> index 635884e2a2..f6deea4020 100644
> --- a/drivers/mci/sdhci.c
> +++ b/drivers/mci/sdhci.c
> @@ -568,6 +568,9 @@ int sdhci_setup_host(struct sdhci *host)
> if (host->caps & SDHCI_CAN_DO_HISPD)
> mci->host_caps |= MMC_CAP_MMC_HIGHSPEED | MMC_CAP_SD_HIGHSPEED;
>
> + if (host->caps & SDHCI_CAN_DO_8BIT)
> + mci->host_caps |= MMC_CAP_8_BIT_DATA;
FYI, this is usually overridden by the bus-width DT property.
You (or Yann) will probably want to write it explicitly into the DT,
because bus width is not only a controller capability, but depends
on the eMMC and the board layout as well.
Cheers,
Ahmad
> +
> host->sdma_boundary = SDHCI_DMA_BOUNDARY_512K;
>
> return 0;
--
Pengutronix e.K. | |
Steuerwalder Str. 21 | http://www.pengutronix.de/ |
31137 Hildesheim, Germany | Phone: +49-5121-206917-0 |
Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
prev parent reply other threads:[~2023-08-24 13:27 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-08-18 14:22 Jules Maselbas
2023-08-18 14:22 ` [PATCH v3 2/7] mci: sdhci: Add registers defines Jules Maselbas
2023-08-18 14:22 ` [PATCH v3 3/7] mci: sdhci: Actually return the error code instead of 0 Jules Maselbas
2023-08-18 14:22 ` [PATCH v3 4/7] mci: sdhci: Add sd host v4 mode Jules Maselbas
2023-08-18 14:22 ` [PATCH v3 5/7] mci: sdhci: Add 64-bit DMA addressing suport for V4 mode Jules Maselbas
2023-08-18 14:22 ` [PATCH v3 6/7] mci: sdhci: Force DMA update to the next block boundary Jules Maselbas
2023-08-18 14:22 ` [PATCH v3 7/7] mci: Add dwcmshc-sdhci driver Jules Maselbas
2023-08-21 5:59 ` [PATCH v3 1/7] mci: sdhci: Set 8-bit host caps Sascha Hauer
2023-08-24 13:26 ` Ahmad Fatoum [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=cf63ae60-1292-497b-cf9a-325a6d1d5dbf@pengutronix.de \
--to=a.fatoum@pengutronix.de \
--cc=barebox@lists.infradead.org \
--cc=jmaselbas@kalray.eu \
/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