• Kuninori Morimoto's avatar
    mmc: tmio: use -EPROBE_DEFER if driver can't find regulator · 05fae4a7
    Kuninori Morimoto authored
    Current tmio driver tries to use default ocr_avail if 1) it couldn't
    find regulator and 2) if platform data doesn't have ocr_mask.
    But, there is no guarantee that regulator driver probe is faster than
    TMIO driver probe.  TMIO driver will not use regulator in such case.
    
    By this patch, TMIO driver returns -EPROBE_DEFER if it couldn't find
    regulator and if platform doesn't have ocr_mask.  Because, there is a
    possibility that regulator has not been probed, but the user expects it.
    
    This patch changes tmio_mmc_host_probe() behavior, but there is no user
    who has conflict.
    Signed-off-by: default avatarKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
    Signed-off-by: default avatarChris Ball <cjb@laptop.org>
    05fae4a7
tmio_mmc_pio.c 30.4 KB