Received: by 10.223.176.46 with SMTP id f43csp564219wra; Thu, 18 Jan 2018 22:13:44 -0800 (PST) X-Google-Smtp-Source: ACJfBovpTUB03BzI4x0SlSiwjbVZpC5sv7xnJABwC1tbaNyv6kJFlFbigRhj9v2dsQ1hDgX5W+vP X-Received: by 10.98.161.16 with SMTP id b16mr20117280pff.34.1516342424063; Thu, 18 Jan 2018 22:13:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516342424; cv=none; d=google.com; s=arc-20160816; b=OoMAlGc1KFihgl1fBcqF5Eq7jhGw7CISzZa3YKd9XNzG1dwuIdtLk0uB9znWkv//9f ntMjvZaDiWMqUO9v0dqixMSLt06Tz0alXXwxjN9NiGeWDtUx6i3eCYgq7OASNrFXruHw j4OH31PbgHGVfTvEuyxRrWlzCZtTNRBQGwyFdRNqIMWzOuQIO/gwpRNcSy7JI+AhH9+d WkeZKYkm8FFLdjdXjCxRIsltJbTuSLnQwUxuguDWtpAdEWR57s1X0Rylve+7iT4ACcuI TVXWdKBDc7ktgw+Rs6RahZku9ngAiRrXXHgNwYuEhAoVyfAZjIo4qxdVUT0Srzb+ipl5 lfkQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:subject:cc :to:from:arc-authentication-results; bh=ViLVnUplXjSDcNnDTxdLskHIKMzKgu9BE8P70Qx2j3s=; b=qvR96komFDTijrCOQwfaYXfY/gjlqSC/1xqOmAvUETh9lAj3fgOUKdRsgBkhd0zroP Jsmk1Nk3M7ipVLaYtofo1VAr4qn0Rm2a7lE08wnWD0x4Stq7yhE5oDLWk03qTQwAeFZP 2eiUd847XI83bVhJkIJHEll7ILy87uD7W5lAySOPYYRTUrXMevJOJ8Vssxd4qEyB9kT6 HyC2Y3tlPvIdMh6Sl5O3Gb/ougwXhwI6K4UNgdWXkHKcRyrKtS0YqKN0rrZLeSUOkrAF 7b4i6dsaSCM32NgZ80Y3XIVXTvm9c4KmSaBduDR11Q1FGlPHFyCO1LvOi4XboStYt7yi LbPw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x75si8662770pfa.144.2018.01.18.22.13.28; Thu, 18 Jan 2018 22:13:44 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752638AbeASGMy (ORCPT + 99 others); Fri, 19 Jan 2018 01:12:54 -0500 Received: from szxga06-in.huawei.com ([45.249.212.32]:33001 "EHLO huawei.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1750974AbeASGMq (ORCPT ); Fri, 19 Jan 2018 01:12:46 -0500 Received: from DGGEMS406-HUB.china.huawei.com (unknown [172.30.72.60]) by Forcepoint Email with ESMTP id EBC3542125B80; Fri, 19 Jan 2018 14:12:30 +0800 (CST) Received: from linux-ioko.site (10.71.200.31) by DGGEMS406-HUB.china.huawei.com (10.3.19.206) with Microsoft SMTP Server id 14.3.361.1; Fri, 19 Jan 2018 14:12:25 +0800 From: Peng Li To: CC: , , , , Subject: [PATCH V2 net-next 0/4] add some features to hns3 driver Date: Fri, 19 Jan 2018 14:41:08 +0800 Message-ID: <1516344072-109127-1-git-send-email-lipeng321@huawei.com> X-Mailer: git-send-email 1.9.1 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.71.200.31] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patchset adds some features to hns3 driver, include the support for ethtool command -d, -p and support for manager table. [Patch 1/4] adds support for ethtool command -d, its ops is get_regs. driver will send command to command queue, and get regs number and regs value from command queue. [Patch 2/4] adds manager table initialization for hardware. [Patch 3/4] adds support for ethtool command -p. For fiber ports, driver sends command to command queue, and IMP will write SGPIO regs to control leds. [Patch 4/4] adds support for net status led for fiber ports. Net status include port speed, total rx/tx packets and link status. Driver send the status to command queue, and IMP will write SGPIO to control leds. --- Change log: V1 -> V2: 1, fix comments from Andrew Lunn, remove the patch "net: hns3: add ethtool -p support for phy device". --- Fuyun Liang (2): net: hns3: add support for get_regs net: hns3: add manager table initialization for hardware Jian Shen (2): net: hns3: add ethtool -p support for fiber port net: hns3: add net status led support for fiber port drivers/net/ethernet/hisilicon/hns3/hnae3.h | 5 +- drivers/net/ethernet/hisilicon/hns3/hns3_ethtool.c | 35 ++ .../net/ethernet/hisilicon/hns3/hns3pf/hclge_cmd.h | 47 +++ .../ethernet/hisilicon/hns3/hns3pf/hclge_main.c | 456 +++++++++++++++++++++ .../ethernet/hisilicon/hns3/hns3pf/hclge_main.h | 3 + 5 files changed, 545 insertions(+), 1 deletion(-) -- 2.9.3