]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
dwmmc: Add a detach method
authormanu <manu@FreeBSD.org>
Wed, 11 Dec 2019 18:41:13 +0000 (18:41 +0000)
committermanu <manu@FreeBSD.org>
Wed, 11 Dec 2019 18:41:13 +0000 (18:41 +0000)
commitc6f6f0ad88a44245e70fdaf2d3d72e0bead6f6c2
tree12ac6c5366c705c969066a2423bb347aebbb2aa2
parent07f91577ca82884755b2bd47413601110196311c
dwmmc: Add a detach method

This method will disable the regulators, clocks and assert the reset of
the module. It will also detach it's children (the mmc device) and release
it's resources.
While here enable the regulators on attach as we need them to power up
the sdcard or emmc.

MFC after: 1 month
sys/dev/mmc/host/dwmmc.c
sys/dev/mmc/host/dwmmc_rockchip.c
sys/dev/mmc/host/dwmmc_var.h