]> git.baikalelectronics.ru Git - kernel.git/commit
mmc: mmci: Add callbacks for to manage signal voltage switch
authorLudovic Barre <ludovic.barre@st.com>
Tue, 28 Jan 2020 09:06:34 +0000 (10:06 +0100)
committerUlf Hansson <ulf.hansson@linaro.org>
Tue, 24 Mar 2020 13:35:40 +0000 (14:35 +0100)
commit6df552bd16ebf9142f267096755f98defd281f3c
tree3f85793c1eb4eb24c06cf282dfd5b36e81da91d0
parent12760ae8ea85a675c326c686f467c02ba37e64de
mmc: mmci: Add callbacks for to manage signal voltage switch

A variant may need to define some actions before and after a voltage
switch.

This patch adds 2 callbacks to manage signal voltage switch in the struct
mmci_host_ops. ->pre_sig_volt_switch() allows to prepare a signal voltage
switch before sending the SD_SWITCH_VOLTAGE command (CMD11).
->post_sig_volt_switch callback allows specific actions to be executed,
after the I/O signal voltage level has been changed.

Signed-off-by: Ludovic Barre <ludovic.barre@st.com>
Link: https://lore.kernel.org/r/20200128090636.13689-8-ludovic.barre@st.com
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/mmci.c
drivers/mmc/host/mmci.h