• Ludovic Barre's avatar
    mmc: mmci: create common mmci_dma_setup/release · c3647fdc
    Ludovic Barre authored
    This patch creates a common mmci_dma_setup/release which calls
    dma_setup/release callbacks of mmci_host_ops and manages
    common features like use_dma... If there is a fallbacks to
    pio mode, dma functions must check use_dma.
    
    error management:
    -mmci_dmae_setup fail if Tx and Rx dma channels are not defined
    -qcom_dma_setup fail if one of both dma channels is not defined,
     Qcom has no specific resource to release, just mmci dmae resource.
    Signed-off-by: default avatarLudovic Barre <ludovic.barre@st.com>
    Signed-off-by: default avatarUlf Hansson <ulf.hansson@linaro.org>
    c3647fdc
mmci.h 11.1 KB