git: 1be298a0bf1d - stable/13 - dwmmc: Remove dwmmc_setup_bus call from start_cmd
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 16 May 2022 09:45:30 UTC
The branch stable/13 has been updated by manu: URL: https://cgit.FreeBSD.org/src/commit/?id=1be298a0bf1dd6f332f8651a55cba68ebd793ce1 commit 1be298a0bf1dd6f332f8651a55cba68ebd793ce1 Author: Emmanuel Vadot <manu@FreeBSD.org> AuthorDate: 2021-09-21 15:52:38 +0000 Commit: Emmanuel Vadot <manu@FreeBSD.org> CommitDate: 2022-05-16 09:33:41 +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 (cherry picked from commit 559f60214b7498ac068c5aa1f2bdecc1610bab53) --- 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 9910db2e50cb..8dfbaece127d 100644 --- a/sys/dev/mmc/host/dwmmc.c +++ b/sys/dev/mmc/host/dwmmc.c @@ -1109,9 +1109,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;