diff options
author | Miquel Raynal <miquel.raynal@bootlin.com> | 2019-07-31 14:26:51 +0200 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2019-07-31 08:51:17 -0600 |
commit | 090bb803708198e5ab6b0046398c7ed9f4d12d6b (patch) | |
tree | 9fcd13609fb6ad76f71e88bc31e2637f50e65f22 | |
parent | d0ee879187df966ef638031b5f5183078d672141 (diff) | |
download | linux-090bb803708198e5ab6b0046398c7ed9f4d12d6b.tar.gz linux-090bb803708198e5ab6b0046398c7ed9f4d12d6b.tar.bz2 linux-090bb803708198e5ab6b0046398c7ed9f4d12d6b.zip |
ata: libahci: do not complain in case of deferred probe
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>
-rw-r--r-- | drivers/ata/libahci_platform.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/ata/libahci_platform.c b/drivers/ata/libahci_platform.c index 3a36e76eca83..9e9583a6bba9 100644 --- a/drivers/ata/libahci_platform.c +++ b/drivers/ata/libahci_platform.c @@ -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, |