lkml.org 
[lkml]   [2019]   [Aug]   [6]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH AUTOSEL 4.14 14/25] ata: libahci: do not complain in case of deferred probe
    Date
    From: Miquel Raynal <miquel.raynal@bootlin.com>

    [ Upstream commit 090bb803708198e5ab6b0046398c7ed9f4d12d6b ]

    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>
    Signed-off-by: Sasha Levin <sashal@kernel.org>
    ---
    drivers/ata/libahci_platform.c | 3 +++
    1 file changed, 3 insertions(+)

    diff --git a/drivers/ata/libahci_platform.c b/drivers/ata/libahci_platform.c
    index a270a1173c8cb..70cdbf1b0f9a3 100644
    --- a/drivers/ata/libahci_platform.c
    +++ b/drivers/ata/libahci_platform.c
    @@ -300,6 +300,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,
    --
    2.20.1
    \
     
     \ /
      Last update: 2019-08-06 23:56    [W:4.085 / U:0.100 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site