[Linux-stm32] [PATCH 02/18] spi: stm32-spi: defer probe for reset
Mark Brown
broonie at kernel.org
Wed Aug 5 10:49:06 UTC 2020
On Wed, Aug 05, 2020 at 09:01:57AM +0200, Alain Volmat wrote:
> - rst = devm_reset_control_get_exclusive(&pdev->dev, NULL);
> - if (!IS_ERR(rst)) {
> + rst = devm_reset_control_get_optional_exclusive(&pdev->dev, NULL);
> + if (rst) {
> + if (IS_ERR(rst)) {
> + ret = PTR_ERR(rst);
> + if (ret != -EPROBE_DEFER)
> + dev_err(&pdev->dev, "reset get failed: %d\n",
> + ret);
> + goto err_clk_disable;
> + }
This will not provide any diagnostics when deferring which isn't very
helpful if there's issues.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: not available
URL: <http://st-md-mailman.stormreply.com/pipermail/linux-stm32/attachments/20200805/370f63cd/attachment.sig>
More information about the Linux-stm32
mailing list