From patchwork Tue Nov 8 11:19:02 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mengyuan Lou X-Patchwork-Id: 13036158 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 88179C4332F for ; Tue, 8 Nov 2022 11:19:40 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233869AbiKHLTj (ORCPT ); Tue, 8 Nov 2022 06:19:39 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58980 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233203AbiKHLTi (ORCPT ); Tue, 8 Nov 2022 06:19:38 -0500 Received: from smtpbgeu2.qq.com (smtpbgeu2.qq.com [18.194.254.142]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E3DFFE030 for ; Tue, 8 Nov 2022 03:19:29 -0800 (PST) X-QQ-mid: bizesmtp85t1667906363t160yiff Received: from localhost.localdomain ( [183.129.236.74]) by bizesmtp.qq.com (ESMTP) with id ; Tue, 08 Nov 2022 19:19:09 +0800 (CST) X-QQ-SSF: 01400000000000M0M000000A0000000 X-QQ-FEAT: bQsUcYFpAAa20slScD+S10Q9dZqxeHHnjI5qRAjpWKDJT5znhF1UqV6vzXCrR H5E5gj7i0gZx4wUK4ZUrjPr0RLk/Cwy2g51kY5tbANY6SHg+kAtg8d8uV06PdDOV3oOkfp9 fljPvujkndRIO/xplc3V0yn9qkoVdIQTmPeEg4haxQwyWp9WYAAYXw3CzTzt9WTrBW7cuQf kBwS2r1pT8555lckJWfai9DyMeYAn4QjoFS0Mv40NVoExzXKo4omcIZiT8gB5nT0sw180Y3 AfYSNE8M9ikOaO4kl0txj4DUVCxwqHD/n2hWN15te/QaaL94SBLqH3WXuxEOq2ozn69ULuC nRjBOa9gkIhhCD5TP/o8s8WIXja20XBI4yH2XasWse8YKIdhiVcrIrDTd5h2LUWuaucLszV yuen+V1QoY8= X-QQ-GoodBg: 2 From: Mengyuan Lou To: netdev@vger.kernel.org Cc: jiawenwu@trustnetic.com, Mengyuan Lou Subject: [PATCH net-next 0/5] net: WangXun ethernet drivers Date: Tue, 8 Nov 2022 19:19:02 +0800 Message-Id: <20221108111907.48599-1-mengyuanlou@net-swift.com> X-Mailer: git-send-email 2.38.1 MIME-Version: 1.0 X-QQ-SENDSIZE: 520 Feedback-ID: bizesmtp:net-swift.com:qybglogicsvr:qybglogicsvr1 Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org X-Patchwork-Delegate: kuba@kernel.org This patch series adds support for WangXun NICS, to initialize phy ops and start service task to check link status. Jiawen Wu (3): net: txgbe: Identify PHY and SFP module net: txgbe: Initialize service task net: txgbe: Support to setup link Mengyuan Lou (2): net: ngbe: Initialize phy information net: ngbe: Initialize service task .../device_drivers/ethernet/wangxun/txgbe.rst | 42 + drivers/net/ethernet/wangxun/libwx/wx_hw.c | 9 +- drivers/net/ethernet/wangxun/libwx/wx_hw.h | 3 + drivers/net/ethernet/wangxun/libwx/wx_type.h | 7 + drivers/net/ethernet/wangxun/ngbe/Makefile | 2 +- drivers/net/ethernet/wangxun/ngbe/ngbe.h | 23 + drivers/net/ethernet/wangxun/ngbe/ngbe_hw.c | 36 + drivers/net/ethernet/wangxun/ngbe/ngbe_hw.h | 1 + drivers/net/ethernet/wangxun/ngbe/ngbe_main.c | 408 ++++- drivers/net/ethernet/wangxun/ngbe/ngbe_phy.c | 1113 ++++++++++++ drivers/net/ethernet/wangxun/ngbe/ngbe_phy.h | 22 + drivers/net/ethernet/wangxun/ngbe/ngbe_type.h | 114 +- drivers/net/ethernet/wangxun/txgbe/txgbe.h | 31 + drivers/net/ethernet/wangxun/txgbe/txgbe_hw.c | 1590 ++++++++++++++++- drivers/net/ethernet/wangxun/txgbe/txgbe_hw.h | 9 + .../net/ethernet/wangxun/txgbe/txgbe_main.c | 475 ++++- .../net/ethernet/wangxun/txgbe/txgbe_type.h | 227 +++ 17 files changed, 4082 insertions(+), 30 deletions(-) create mode 100644 drivers/net/ethernet/wangxun/ngbe/ngbe_phy.c create mode 100644 drivers/net/ethernet/wangxun/ngbe/ngbe_phy.h