[PATCH v2 11/14] mci: mci-core: replace value with define
Ahmad Fatoum
a.fatoum at pengutronix.de
Fri Mar 15 04:55:49 PDT 2024
On 14.03.24 19:47, Steffen Trumtrar wrote:
> Use the newly introduced define for High Speed timing mode instead of
> just '1'.
>
> Signed-off-by: Steffen Trumtrar <s.trumtrar at pengutronix.de>
Reviewed-by: Ahmad Fatoum <a.fatoum at pengutronix.de>
> ---
> drivers/mci/mci-core.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/mci/mci-core.c b/drivers/mci/mci-core.c
> index e825c91c80..ebfd3e9fb8 100644
> --- a/drivers/mci/mci-core.c
> +++ b/drivers/mci/mci-core.c
> @@ -683,7 +683,7 @@ static int mmc_change_freq(struct mci *mci)
>
> cardtype = mci->ext_csd[EXT_CSD_DEVICE_TYPE] & EXT_CSD_CARD_TYPE_MASK;
>
> - err = mci_switch(mci, EXT_CSD_HS_TIMING, 1);
> + err = mci_switch(mci, EXT_CSD_HS_TIMING, EXT_CSD_TIMING_HS);
>
> if (err) {
> dev_dbg(&mci->dev, "MMC frequency changing failed: %d\n", err);
>
--
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 |
More information about the barebox
mailing list