Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-15.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id F3C2EC11F67 for ; Tue, 29 Jun 2021 17:10:16 +0000 (UTC) Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 56FEA61DE2 for ; Tue, 29 Jun 2021 17:10:16 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 56FEA61DE2 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 49ACD831CF; Tue, 29 Jun 2021 19:09:33 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="tlRZHRHt"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 2065D831BC; Tue, 29 Jun 2021 19:09:19 +0200 (CEST) Received: from mail-ed1-x52e.google.com (mail-ed1-x52e.google.com [IPv6:2a00:1450:4864:20::52e]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 453D2831B8 for ; Tue, 29 Jun 2021 19:09:15 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=olteanv@gmail.com Received: by mail-ed1-x52e.google.com with SMTP id x12so90412eds.5 for ; Tue, 29 Jun 2021 10:09:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=t6ydpjE8ca9RTGzxk/1ceNTMyCOpyZ3pZUDqb3HAWgs=; b=tlRZHRHtIY66trZ9mRdHf5iQup6TrRSPP3JKIo9sgWHh5EMysYTQg09cU8/pXQwPRc UVChQSyOmb8MbCsmwDm2+OrKr4X7TPqNac1M45JO+y48QLVT2yeQacCcVTEH9iMdHNyX I3jJacYJHrJbE1CgM42gR3NYqpViiclCZkMpMEPDMP6N7z4ifjna8rDj8/sYBZ6Xyvog GIqlAm3ivJcCi15KlZj/RA2LrmRawGZ5qGbnrjvirX9/AdGXjqX9eX2kgB+JTgVXEo2u kcom3rb6AbY2fTd1vozoNlCHKHpq0yAZ+SB5ew6+ks6JcAvTKxtgJ19FPuCdcFTxY2Pt HHxg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=t6ydpjE8ca9RTGzxk/1ceNTMyCOpyZ3pZUDqb3HAWgs=; b=BnPvr41yR6DS9Fc6vYYU/V6/rMJIb+FpKux4jqXcii/AL6c3lrdinGNrJWRmbrG9eC wfjFVFnAPgGBKbx+ScmcpOhCcXGKYlym8nWPeH5n2ix0aTz2Z2kJx/0HibYpgfgreR1R DzfvunwPvvktWL18Dza+F/CFPWCImXp0BZQclZ4ajVWRteNIkk4EfPdpU+OXH0nEjxD5 3w34lJiKzzOnDJ7jCUbArqD0oFQ/pOo9ulxri2xDBDNK/bhk7S6ZG8Sa87xacdDBfzea w5TQYCdaKSVPioWDEotdR3TQm61nALYaFWnz4f9MfiPwAKxAOhKhbWKr6fRm5QKyndIj Movg== X-Gm-Message-State: AOAM530IehCUMrB4O/vkucOIDls8CgdkfMS8T+GHEOalZWcfRqcOm1ux mmwnRtsTmPHt28r3jLuTghg= X-Google-Smtp-Source: ABdhPJxfrXh6b9Ndr0CJ9t+0lidT4P3hD4flFFKjHuU74JDxr8ulN+O5qbLK2r0kgk8hBc3Bxo3NAQ== X-Received: by 2002:a05:6402:b0f:: with SMTP id bm15mr40449086edb.135.1624986554986; Tue, 29 Jun 2021 10:09:14 -0700 (PDT) Received: from localhost.localdomain ([188.26.224.68]) by smtp.gmail.com with ESMTPSA id h19sm9928525edt.87.2021.06.29.10.09.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 29 Jun 2021 10:09:14 -0700 (PDT) From: Vladimir Oltean To: Joe Hershberger , Ramon Fried , u-boot@lists.denx.de Cc: Claudiu Manoil , Bin Meng , Alex Marginean , Michael Walle , Tim Harvey , Vladimir Oltean Subject: [PATCH 6/6] net: dsa: felix: propagate the error code from phy_startup() Date: Tue, 29 Jun 2021 20:08:39 +0300 Message-Id: <20210629170839.2583797-7-olteanv@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210629170839.2583797-1-olteanv@gmail.com> References: <20210629170839.2583797-1-olteanv@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.2 at phobos.denx.de X-Virus-Status: Clean From: Vladimir Oltean Make sure that the link status returned by phy_startup() is propagated to the .start() method of struct eth_ops. Signed-off-by: Vladimir Oltean --- drivers/net/mscc_eswitch/felix_switch.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/net/mscc_eswitch/felix_switch.c b/drivers/net/mscc_eswitch/felix_switch.c index c8ecf4f19442..6aa79784460d 100644 --- a/drivers/net/mscc_eswitch/felix_switch.c +++ b/drivers/net/mscc_eswitch/felix_switch.c @@ -352,9 +352,7 @@ static int felix_port_enable(struct udevice *dev, int port, FELIX_QSYS_SYSTEM_SW_PORT_LOSSY | FELIX_QSYS_SYSTEM_SW_PORT_SCH(1)); - phy_startup(phy); - - return 0; + return phy_startup(phy); } static void felix_port_disable(struct udevice *dev, int pidx, -- 2.25.1