]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commit
mmc: mmci_sdmmc: Replace sg_dma_xxx macros
authorLudovic Barre <ludovic.barre@st.com>
Tue, 28 Jan 2020 09:06:28 +0000 (10:06 +0100)
committerStefan Bader <stefan.bader@canonical.com>
Fri, 20 May 2022 13:20:03 +0000 (15:20 +0200)
commitad56b87f7f099009f12f23746c3ac06ac15d79ad
tree6cb754bca7a1103edb223e1fd523fc9b6e18c465
parent58a5c43650b2031e14eb6f64359aa58d9b324d17
mmc: mmci_sdmmc: Replace sg_dma_xxx macros

BugLink: https://bugs.launchpad.net/bugs/1971497
commit 127e6e98ca9b8ac4f87698ebce1508e3449bb791 upstream.

sg_dma_xxx should be used after a dma_map_sg call has been done to get bus
addresses of each of the SG entries and their lengths.  But mmci_host_ops
validate_data can be called before dma_map_sg.  This patch replaces theses
macros by sg->offset and sg->length which are always defined.

Signed-off-by: Ludovic Barre <ludovic.barre@st.com>
Link: https://lore.kernel.org/r/20200128090636.13689-2-ludovic.barre@st.com
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
drivers/mmc/host/mmci_stm32_sdmmc.c