Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org 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 smtp.lore.kernel.org (Postfix) with ESMTPS id 5F055C433FE for ; Mon, 17 Oct 2022 12:01:26 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 84E5B84F28; Mon, 17 Oct 2022 14:01:23 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=sifive.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=sifive.com header.i=@sifive.com header.b="NHy3dHR0"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 0302984F28; Mon, 17 Oct 2022 13:19:41 +0200 (CEST) Received: from mail-pg1-x535.google.com (mail-pg1-x535.google.com [IPv6:2607:f8b0:4864:20::535]) (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 3946A8020A for ; Mon, 17 Oct 2022 13:19:38 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=sifive.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=andy.chiu@sifive.com Received: by mail-pg1-x535.google.com with SMTP id q1so10138268pgl.11 for ; Mon, 17 Oct 2022 04:19:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sifive.com; s=google; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=E3AAb+0HTC0h0vKfD9gaQaERLVxSrYaT+mB8O+3yigI=; b=NHy3dHR04wXvSdyHVyd4DdyKKP7PTkpXdbIaTHz1KGHKVJNj4YmiuA9/pU+w6T8fAb wOZNZ0qEa5h0kno8V9YKOLg3XGAayavFrS6ntrnZKz9ZKAu7MQEB7wEAhq4hEGglI1UQ pBBXuP4PvpucNnM6klRlzbRS7NpjAl4tEVc1rMXZl/E137/XBLcu0Ar7u/SAQnKC4rLh flo2pM4WHPXiMvOK7IKZzONoSH7iS37rihFM7wVL0Ytf4VjAEyuM59FdiKz3Xyt9gEqD XE8eXfGLGW5l4l3VPVy9zsTSPygES/YRf+VfidsisBr34X3tkK7iHt9D3JM063Yj7UQS kKIw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=E3AAb+0HTC0h0vKfD9gaQaERLVxSrYaT+mB8O+3yigI=; b=aFEuqQnzgGwELIrOMLkuGA8L6cvQAeh6WmjPR9wyUsZmSrzJvyq+fwX/gdtMzBII+E pUS6AymmLzddNH/2pZAtB+jNyH+G/fF3Ql9HWJxf6tXGELGpI2nko4h1ESFHyua3J9Gk jX6nkvIgOu3QsOhhNFCqwsqobI9AWCnmy9kt7QGRs4gN2HBQTRBYjVA720e76roVCHHY jE2iZHnWehBChC7VHUdQhVSyfiUgIwRYFDuhcfexEyot5AmGGbQ/xZWenyGir7aBQjId N4dFG9R2Gm3wjWzJ9Fl3L13t1++G91JQLiiziWs1ztNOSOVilY0K++z8FbOHoi0oNAJn N+Ng== X-Gm-Message-State: ACrzQf2w3fXZIJ07dSByPPP8+57U+aSvG6jpanpQTTC1n3clQ+FMhyaO 6UoM2A3p9nB2XxSNVJmeXkjL2A== X-Google-Smtp-Source: AMsMyM7RtZlLJpdXeV9V+pXEgrwb9o/no5CcbfCXs8/WzdQ5SweS0mR3MPnkFeqzSqpZqJkuO5XDig== X-Received: by 2002:a63:2402:0:b0:460:99af:331c with SMTP id k2-20020a632402000000b0046099af331cmr10055248pgk.460.1666005576427; Mon, 17 Oct 2022 04:19:36 -0700 (PDT) Received: from archlinux.internal.sifive.com (59-124-168-89.hinet-ip.hinet.net. [59.124.168.89]) by smtp.gmail.com with ESMTPSA id r12-20020a632b0c000000b004582e25a595sm5983582pgr.41.2022.10.17.04.19.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 17 Oct 2022 04:19:35 -0700 (PDT) From: Andy Chiu To: michal.simek@amd.com Cc: rfried.dev@gmail.com, joe.hershberger@ni.com, u-boot@lists.denx.de, andy.chiu@sifive.com, greentime.hu@sifive.com Subject: [PATCH 0/2] Manage PCS/PMA PHY if pressent Date: Mon, 17 Oct 2022 19:19:26 +0800 Message-Id: <20221017111928.462866-1-andy.chiu@sifive.com> X-Mailer: git-send-email 2.36.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Mailman-Approved-At: Mon, 17 Oct 2022 14:01:22 +0200 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 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.6 at phobos.denx.de X-Virus-Status: Clean If both PCS/PMA PHY and an external PHY are pressent on the Ethernet, then the real link status should point to the external facing PHY. At the same time, we must ensure the link status of the PCS/PMA PHY is good before transmitting packets. Andy Chiu (2): net:xilinx_axi: add PCS/PMA PHY net:xilinx_axi: check PCS/PMA PHY status in setup_phy drivers/net/xilinx_axi_emac.c | 69 ++++++++++++++++++++++++++++++++++- 1 file changed, 67 insertions(+), 2 deletions(-) -- 2.36.0