The branch main has been updated by manu:

URL: 
https://cgit.FreeBSD.org/src/commit/?id=559f60214b7498ac068c5aa1f2bdecc1610bab53

commit 559f60214b7498ac068c5aa1f2bdecc1610bab53
Author:     Emmanuel Vadot <[email protected]>
AuthorDate: 2021-09-21 15:52:38 +0000
Commit:     Emmanuel Vadot <[email protected]>
CommitDate: 2021-09-21 16:17:20 +0000

    dwmmc: Remove dwmmc_setup_bus call from start_cmd
    
    There is no need to re-setup the bus before each commands.
    Tested-on:  Rock64, RockPro64
    Reported by:        avg
---
 sys/dev/mmc/host/dwmmc.c | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/sys/dev/mmc/host/dwmmc.c b/sys/dev/mmc/host/dwmmc.c
index df7ac374a265..77c8e42a6150 100644
--- a/sys/dev/mmc/host/dwmmc.c
+++ b/sys/dev/mmc/host/dwmmc.c
@@ -1102,9 +1102,6 @@ dwmmc_start_cmd(struct dwmmc_softc *sc, struct 
mmc_command *cmd)
        sc->curcmd = cmd;
        data = cmd->data;
 
-       if ((sc->hwtype & HWTYPE_MASK) == HWTYPE_ROCKCHIP)
-               dwmmc_setup_bus(sc, sc->host.ios.clock);
-
 #ifndef MMCCAM
        /* XXX Upper layers don't always set this */
        cmd->mrq = sc->req;
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/dev-commits-src-all
To unsubscribe, send any mail to "[email protected]"

Reply via email to