From patchwork Tue Aug 23 14:05:15 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maxime Chevallier X-Patchwork-Id: 12952080 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 59A46C32772 for ; Tue, 23 Aug 2022 14:06:57 +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=0PPi1McB5BbJdJAmpDOdXcG7DVh+RsWbmmuu/E95GQk=; b=bhnPvNrYnfqFWo 5F2HeCI05IEJx3yzaR1ismd27ki00eJ8S8BMgrBtAGNClnlHnUso6pou9VlTiHoFmMfuFRKyjryYK ABiEEYMUP49pOtoiF3ua3ilP2KluwoRtj1XcinUuv9gcWspwGy6vrA59IeX0fB5dfiUzdEy47zCiQ Q0rtEsnPt2tTPzEAyrbyZW8JZiQIt1vNxxp0WMVv+4y6tV6YyEnfIhmRzojLQ34TgJmy6pqqZlCNI s8wq8UBqD+LFuXvrHjj4zUK01eVd5ElfgZ3BkB6yQ2UhNfWSl8Ij6t1O61wEB8ARg617Ean5/t2G3 PEaJcUXNGHghZuLClNNw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1oQUXB-006Wu1-Uz; Tue, 23 Aug 2022 14:05:38 +0000 Received: from relay10.mail.gandi.net ([2001:4b98:dc4:8::230]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1oQUX8-006WqA-5E for linux-arm-kernel@lists.infradead.org; Tue, 23 Aug 2022 14:05:36 +0000 Received: (Authenticated sender: maxime.chevallier@bootlin.com) by mail.gandi.net (Postfix) with ESMTPSA id 288A924000B; Tue, 23 Aug 2022 14:05:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1661263528; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=iFPqKOGR/pEeybnRl36N5Hl9moFdpCNzqDZ6NzBxF+w=; b=J7HTEnhyRUNvjhdlO04AsiNxLjLiYu8IRKWK2O3N6m1IkbEm1XaQxix75kX7sIjKmvonhy jMJWUDBXukn97JFaaXfLClFfb1S16GB4hj4VagEhsfbMAdpCtA6eCXbzShd2RMO0cABWwp iacHgo6A6Ki3pZjRrgbLTs0qMV5zEQbkWAbzDzmqk3svbycnL5DMUzHngvbkH5RiS6x8Ea NaOExALm4UBE4QGr1gsGemAH0Z4Y8d7wJbbWUXjcT8TADiR4jpdl2M9MrFVDGsKm+++kKW B4pvhNuMhi1n02+Ju5u6vhnNhAdhw10xiK3lUFLKvWia276cCJ6S+hSdEfrwXw== From: Maxime Chevallier To: davem@davemloft.net Cc: Maxime Chevallier , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, thomas.petazzoni@bootlin.com, Andrew Lunn , Jakub Kicinski , Eric Dumazet , Paolo Abeni , Florian Fainelli , Heiner Kallweit , Russell King , linux-arm-kernel@lists.infradead.org Subject: [PATCH net-next 0/2] net: altera: tse: phylink conversion Date: Tue, 23 Aug 2022 16:05:15 +0200 Message-Id: <20220823140517.3091239-1-maxime.chevallier@bootlin.com> X-Mailer: git-send-email 2.37.2 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220823_070534_519793_80148666 X-CRM114-Status: UNSURE ( 7.42 ) 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 This series converts the Altera Triple Speed Ethernet driver to phylink, to benefit from the full flexibility that phylink gives, and proped SFP support. The first patch is a small rework of the PCS reset code, to make the actual phylink conversion easier to read. Maxime Chevallier (2): net: altera: tse: add a dedicated helper for reset net: altera: tse: convert to phylink drivers/net/ethernet/altera/Kconfig | 1 + drivers/net/ethernet/altera/altera_tse.h | 13 + .../net/ethernet/altera/altera_tse_ethtool.c | 20 +- drivers/net/ethernet/altera/altera_tse_main.c | 434 ++++++------------ 4 files changed, 182 insertions(+), 286 deletions(-)