Merge "asoc: codecs: defer probe if soundwire pin is not ready"

This commit is contained in:
qctecmdr
2019-06-17 20:25:32 -07:00
committed by Gerrit - the friendly Code Review server
5 changed files with 24 additions and 5 deletions

View File

@@ -2921,6 +2921,12 @@ static int wsa_macro_probe(struct platform_device *pdev)
__func__);
return -EINVAL;
}
if (msm_cdc_pinctrl_get_state(wsa_priv->wsa_swr_gpio_p) < 0) {
dev_err(&pdev->dev, "%s: failed to get swr pin state\n",
__func__);
return -EPROBE_DEFER;
}
wsa_io_base = devm_ioremap(&pdev->dev,
wsa_base_addr, WSA_MACRO_MAX_OFFSET);
if (!wsa_io_base) {