• Kuninori Morimoto's avatar
    ASoC: rsnd: don't fallback to PIO mode when -EPROBE_DEFER · 6c92d5a2
    Kuninori Morimoto authored
    Current rsnd driver will fallback to PIO mode if it can't get DMA
    handler. But, DMA might return -EPROBE_DEFER when probe timing.
    This driver always fallback to PIO mode especially from
    commit ac6bbf0c ("iommu: Remove IOMMU_OF_DECLARE") because
    of this reason.
    
    The DMA driver will be probed later, but sound driver might be
    probed as PIO mode in such case. This patch fixup this issue.
    Then, -EPROBE_DEFER is not error. Thus, let's don't indicate error
    message in such case.
    And it needs to call rsnd_adg_remove() individually if probe failed,
    because it registers clk which should be unregister.
    
    Maybe PIO fallback feature itself is not needed,
    but let's keep it so far.
    Signed-off-by: default avatarKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
    Signed-off-by: default avatarMark Brown <broonie@kernel.org>
    6c92d5a2
dma.c 19.5 KB