Merge "asoc: codecs: defer probe if soundwire pin is not ready"
This commit is contained in:

committed by
Gerrit - the friendly Code Review server

commit
45b4733d63
@@ -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) {
|
||||
|
Reference in New Issue
Block a user