]> git.baikalelectronics.ru Git - 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)
committerUlf Hansson <ulf.hansson@linaro.org>
Tue, 24 Mar 2020 13:35:40 +0000 (14:35 +0100)
commit9ccbd48aae12adb32aa60d0c4fa2b8c499c93340
tree1f526eb2584b6f1925d9644f3fcf0401645b3bf9
parent275429d7a6a19c77f5bdabaa35884c01d17687d7
mmc: mmci_sdmmc: Replace sg_dma_xxx macros

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>
drivers/mmc/host/mmci_stm32_sdmmc.c