Re: [PATCH 1/1] mmc: host: Do not evaluate HS400 capabilities if bus has no MMC capability

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, 14 Jun 2022 at 04:39, Alexander Stein
<alexander.stein@xxxxxxxxxxxxxxx> wrote:
>
> If 'no-mmc' is set but 'no-mmc-hs400' is not, this warning is raised.
> Specifying 'no-mmc' should be enough though.
>
> Signed-off-by: Alexander Stein <alexander.stein@xxxxxxxxxxxxxxx>

Applied for next, thanks!

Kind regards
Uffe


> ---
>  drivers/mmc/core/host.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/mmc/core/host.c b/drivers/mmc/core/host.c
> index 2ed2b4d5e5a5..0fd91f749b3a 100644
> --- a/drivers/mmc/core/host.c
> +++ b/drivers/mmc/core/host.c
> @@ -599,7 +599,7 @@ static int mmc_validate_host_caps(struct mmc_host *host)
>         }
>
>         if (caps2 & (MMC_CAP2_HS400_ES | MMC_CAP2_HS400) &&
> -           !(caps & MMC_CAP_8_BIT_DATA)) {
> +           !(caps & MMC_CAP_8_BIT_DATA) && !(caps2 & MMC_CAP2_NO_MMC)) {
>                 dev_warn(dev, "drop HS400 support since no 8-bit bus\n");
>                 host->caps2 = caps2 & ~MMC_CAP2_HS400_ES & ~MMC_CAP2_HS400;
>         }
> --
> 2.25.1
>



[Index of Archives]     [Linux Memonry Technology]     [Linux USB Devel]     [Linux Media]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux