ata: libahci: do not complain in case of deferred probe
authorMiquel Raynal <miquel.raynal@bootlin.com>
Wed, 31 Jul 2019 12:26:51 +0000 (14:26 +0200)
committerJens Axboe <axboe@kernel.dk>
Wed, 31 Jul 2019 14:51:17 +0000 (08:51 -0600)
Retrieving PHYs can defer the probe, do not spawn an error when
-EPROBE_DEFER is returned, it is normal behavior.

Fixes: b1a9edbda040 ("ata: libahci: allow to use multiple PHYs")
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/ata/libahci_platform.c

index 3a36e76eca831db26715248b7665a674801aed28..9e9583a6bba99295601cc92399c94e85f623cef3 100644 (file)
@@ -338,6 +338,9 @@ static int ahci_platform_get_phy(struct ahci_host_priv *hpriv, u32 port,
                hpriv->phys[port] = NULL;
                rc = 0;
                break;
+       case -EPROBE_DEFER:
+               /* Do not complain yet */
+               break;
 
        default:
                dev_err(dev,