From patchwork Mon Sep 19 08:37:07 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexander Couzens X-Patchwork-Id: 12979784 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id B432DC6FA82 for ; Mon, 19 Sep 2022 08:48:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=V3FUgiIhHFZFAuq+arOIXCGRy1yVWW2cKgVFfjLqJmc=; b=M7E2D2q5yDMUQC MZJwWJ6GZshQyud8lOwjpLE6SY0y6F+TR7rYviTRiXodNzNqUMqne7SozzPsH5QEVkKBVtrqEqF/0 V946yRtC5wUPgroJVeymEYx25nwywexUtmcTE0yh/GEd8CaBgkdyny/YduXNHbH7qysUXMXQTxt6O CwI3BCR7wb11NkvBTr6byRBrKtuJ9uH+IczaEsZ5ZT8tgNDGLQbK82zvO/d3OynmpDqvHIsBCcjFH 0ULReRBTq+gJkzUMsHR5C7/6X6/S69y5T2gMVz/iiv2Ak0U5NPLCSD2aQZOtwkDIW24C/5scGcmY4 49zaowRend67+3YunjEQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1oaCQT-00AJLM-Iu; Mon, 19 Sep 2022 08:46:49 +0000 Received: from mail.base45.de ([80.241.60.77]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1oaCQK-00AIyN-HI; Mon, 19 Sep 2022 08:46:47 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=fe80.eu; s=20190804; h=Content-Transfer-Encoding:MIME-Version:Message-Id:Date:Subject: Cc:To:From:Sender:Reply-To:Content-Type:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: In-Reply-To:References:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=wyupJayZSIFm4y9yPMluAd5MbviJpk1Su8GT/MLhOjk=; b=tzfQxWbqUmiJCTkn6p5176GEvQ Nr6iSRPO7XqqBoc37yt3n2c+COIOanKNp8KNtjNY+RguFlz0Wsy9QxyYFIKZqIE9Oxh1eY0kmRJYx /JsBRFyUcGpPsBDIYiCwkqm8BRd3ETaTlz1G3hCxFRxaxCF7oawUnvoiXw2E2ZKAXoU+lfOMRDxix jk9K3Qx2pruXgvmesvP0GU8Lo8Hl6aHL4KBsjqHXs5KZqtKIEB1PaaN4Y2in7gGCPbRaY0tZL0tnl gOTd3gam97FlNbNM0VVv75owScUUoaMFORiruwkKmUKeRBGiVSGO2Ff1EnF7FjoqVzb97WmF72S2a e3Erp5ig==; Received: from dynamic-089-204-138-189.89.204.138.pool.telefonica.de ([89.204.138.189] helo=localhost.localdomain) by mail.base45.de with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1oaCHH-0015f0-Lm; Mon, 19 Sep 2022 08:37:19 +0000 From: Alexander Couzens To: Felix Fietkau , John Crispin , Sean Wang , Mark Lee , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Matthias Brugger Cc: Daniel Golle , Alexander Couzens , netdev@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH net-next v2 0/5] net: mediatek: sgmii stability Date: Mon, 19 Sep 2022 10:37:07 +0200 Message-Id: <20220919083713.730512-1-lynxis@fe80.eu> X-Mailer: git-send-email 2.37.3 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220919_014641_493212_DB43C156 X-CRM114-Status: UNSURE ( 7.00 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org v1 -> v2: - add & improve comments on unexpected hw behaviour - add patch refactor power cycling into mtk_pcs_config() Alexander Couzens (5): net: mediatek: sgmii: fix powering up the SGMII phy net: mediatek: sgmii: ensure the SGMII PHY is powered down on configuration net: mediatek: sgmii: mtk_pcs_setup_mode_an: don't rely on register defaults net: mediatek: sgmii: set the speed according to the phy interface in AN net: mediatek: sgmii: refactor power cycling into mtk_pcs_config() drivers/net/ethernet/mediatek/mtk_sgmii.c | 41 ++++++++++++++++------- 1 file changed, 28 insertions(+), 13 deletions(-)