u-boot/drivers
Marek Vasut 70d2c9940e mmc: renesas-sdhi: Disable clock after tuning reset when possible
Currently the renesas_sdhi_reset_tuning() unconditionally leaves SDHI
clock enabled after the tuning reset. This is not always necessary.

After the driver performed tuning reset at the end of probe function,
or in the unlikely case that tuning failed during regular operation,
the SDHI clock can be disabled after the tuning reset. The following
set_ios call would reconfigure the clock as needed.

In case of regular set_ios call which requires a tuning reset, keep
the clock enabled or disabled according to the mmc->clk_disable state.

With this in place, the controllers which have not been accessed via
block subsystem after boot are left in quiescent state. However, if an
MMC device is used e.g. for environment storage, that controller would
be accessed during the environment load and left active, including its
clock which would still be generated. This is due to the design of the
MMC subsystem, which does not deinit a controller after it was started
once, the controller is only deinited in case of mmc rescan, or before
OS boot.

Signed-off-by: Marek Vasut <marek.vasut+renesas@mailbox.org>
Reviewed-by: Jaehoon Chung <jh80.chung@samsung.com>
Reviewed-by: Paul Barker <paul.barker.ct@bp.renesas.com>
Tested-by: Paul Barker <paul.barker.ct@bp.renesas.com>
Reviewed-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Tested-by: Thuan Nguyen Hong <thuan.nguyen-hong@banvien.com.vn>
2023-11-13 04:12:47 +01:00
..
adc dm: adc: imx93-adc depends on ADC (fix boot) 2023-10-18 10:02:49 +02:00
ata bootstd: Skip over bad device during bootflows scanning 2023-11-10 11:01:50 -05:00
axi axi: fix definition of axi_sandbox_get_emul() 2023-06-01 12:32:03 -04:00
bios_emulator common: Drop linux/printk.h from common header 2023-09-24 09:54:57 -04:00
block rockchip: block: blk-uclass: add bounce buffer flag to blk_desc 2023-10-24 15:55:17 +08:00
bootcount bootcount: Add driver model I2C driver 2023-10-31 09:09:04 +01:00
bus bus: Optionally include TI sysc driver in SPL/TPL 2022-12-02 08:39:00 -05:00
button dm: button: add support for linux_code in button-gpio.c driver 2023-02-10 12:50:01 -05:00
cache drivers: use dev_read_addr_ptr when cast to pointer 2023-05-06 17:28:18 +08:00
clk tree-wide: Replace http:// link with https:// link for ti.com 2023-11-10 11:01:50 -05:00
core serial: zynqmp: Fetch baudrate from dtb and update 2023-11-07 13:47:08 +01:00
cpu cpu: Remove unused NEEDS_MANUAL_RELOC code bits 2023-09-14 10:42:24 -04:00
crypto Kconfig: Remove all default n/no options 2023-10-30 15:32:49 -04:00
ddr treewide: unify the linker symbol reference format 2023-08-09 09:21:42 -04:00
demo
dfu dfu: mmc: Add support for exposing whole mmc device 2023-10-31 14:53:05 +01:00
dma tree-wide: Replace http:// link with https:// link for ti.com 2023-11-10 11:01:50 -05:00
extcon extcon: add MAX14526 MUIC support 2023-05-02 14:23:58 -04:00
fastboot common: Drop linux/printk.h from common header 2023-09-24 09:54:57 -04:00
firmware tree-wide: Replace http:// link with https:// link for ti.com 2023-11-10 11:01:50 -05:00
fpga arm64: zynqmp: Fix Siva's email address format 2023-10-09 10:25:32 +02:00
fuzz sandbox: Implement fuzzing engine driver 2022-06-23 12:58:19 -04:00
fwu-mdata FWU: Add FWU metadata access driver for MTD storage regions 2023-06-09 13:52:40 -04:00
gpio tree-wide: Replace http:// link with https:// link for ti.com 2023-11-10 11:01:50 -05:00
hwspinlock hwspinlock: Remove unused NEEDS_MANUAL_RELOC code bits 2023-09-14 10:42:24 -04:00
i2c i2c: Implement i2c_get_chip_by_phandle() 2023-10-31 09:08:51 +01:00
input input: avoid NULL dereference 2023-10-11 10:35:24 -04:00
iommu iommu: Implement mapping IOMMUs for PCI devices 2023-01-27 14:47:58 -05:00
led drivers: led: bcm6858: do not use null label to find the top 2023-07-25 12:44:46 -04:00
mailbox tree-wide: Replace http:// link with https:// link for ti.com 2023-11-10 11:01:50 -05:00
memory tree-wide: Replace http:// link with https:// link for ti.com 2023-11-10 11:01:50 -05:00
mfd mfd: syscon: atmel-smc: Add new helpers to ease SMC regs manipulation 2022-12-08 18:06:27 +02:00
misc Merge branch '2023-11-10-assorted-fixes' 2023-11-10 11:01:51 -05:00
mmc mmc: renesas-sdhi: Disable clock after tuning reset when possible 2023-11-13 04:12:47 +01:00
mtd tree-wide: Replace http:// link with https:// link for ti.com 2023-11-10 11:01:50 -05:00
mux tree-wide: Replace http:// link with https:// link for ti.com 2023-11-10 11:01:50 -05:00
net tree-wide: Replace http:// link with https:// link for ti.com 2023-11-10 11:01:50 -05:00
nvme blk: Use a macro for the typical block size 2023-10-10 16:19:29 -04:00
pch x86: Convert some debug statements to use logging 2023-07-17 17:23:14 +08:00
pci Merge tag 'u-boot-rockchip-20231007' of https://source.denx.de/u-boot/custodians/u-boot-rockchip 2023-10-08 09:58:55 -04:00
pci_endpoint
phy tree-wide: Replace http:// link with https:// link for ti.com 2023-11-10 11:01:50 -05:00
pinctrl pinctrl: rzg2l: Drop <common.h> 2023-11-02 11:30:18 +01:00
power tree-wide: Replace http:// link with https:// link for ti.com 2023-11-10 11:01:50 -05:00
pwm pwm: mtk: add support for MediaTek MT7988 SoC 2023-08-03 09:40:49 -04:00
qe global: Finish CONFIG -> CFG migration 2023-01-20 12:27:24 -05:00
ram tree-wide: Replace http:// link with https:// link for ti.com 2023-11-10 11:01:50 -05:00
reboot-mode reboot-mode: Add NVMEM reboot mode 2023-01-11 11:54:50 -05:00
remoteproc tree-wide: Replace http:// link with https:// link for ti.com 2023-11-10 11:01:50 -05:00
reset tree-wide: Replace http:// link with https:// link for ti.com 2023-11-10 11:01:50 -05:00
rng rng: Add StarFive JH7110 RNG driver 2023-11-02 17:45:53 +08:00
rtc drivers: rtc: max313xx: provide read8/write8 2023-07-25 12:44:46 -04:00
scsi scsi: Have scsi_init_dev_desc_priv() use memset 2023-11-10 10:59:24 -05:00
serial tree-wide: Replace http:// link with https:// link for ti.com 2023-11-10 11:01:50 -05:00
sm drivers: sm: bind child sm devices in the device tree 2023-11-06 09:45:47 +01:00
smem smem: msm: add missing <linux/sizes.h> 2022-10-12 08:56:24 -04:00
soc tree-wide: Replace http:// link with https:// link for ti.com 2023-11-10 11:01:50 -05:00
sound test: test sandbox sound driver more rigorously 2022-12-05 17:43:21 +01:00
spi tree-wide: Replace http:// link with https:// link for ti.com 2023-11-10 11:01:50 -05:00
spmi
sysinfo sysinfo: gpio: fix loop over DT "revisions" array 2023-03-30 15:09:59 -04:00
sysreset tree-wide: Replace http:// link with https:// link for ti.com 2023-11-10 11:01:50 -05:00
tee drivers: tee: sandbox: Fix SCP03 control emulator 2023-04-28 11:30:17 -06:00
thermal tree-wide: Replace http:// link with https:// link for ti.com 2023-11-10 11:01:50 -05:00
timer riscv: andesv5: Prefer using the generic RISC-V timer driver in S-mode 2023-10-04 18:23:54 +08:00
tpm tpm: sandbox: Update for needed TPM2 capabilities 2023-10-27 13:08:25 +03:00
ufs tree-wide: Replace http:// link with https:// link for ti.com 2023-11-10 11:01:50 -05:00
usb tree-wide: Replace http:// link with https:// link for ti.com 2023-11-10 11:01:50 -05:00
video Merge branch 'master' of https://source.denx.de/u-boot/custodians/u-boot-sunxi 2023-10-23 11:39:33 -04:00
virtio bootstd: Rename bootdev_setup_sibling_blk() 2023-08-09 23:31:11 +08:00
w1 dm: treewide: Do not use the return value of simple uclass iterator 2022-10-29 07:36:33 -06:00
w1-eeprom
watchdog wdt: nuvoton: Fix reset/expire function error 2023-10-19 07:51:12 +02:00
xen xen: Limit execution to EL1 only 2023-04-25 15:31:28 -04:00
Kconfig drivers: introduce Secure Monitor uclass 2023-10-15 12:23:48 +02:00
Makefile sunxi: add R528/T113-s3/D1(s) DRAM initialisation code 2023-10-22 23:41:52 +01:00