From patchwork Sun Aug 12 09:47:36 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Salil Mehta X-Patchwork-Id: 143985 Delivered-To: patch@linaro.org Received: by 2002:a2e:9754:0:0:0:0:0 with SMTP id f20-v6csp1892552ljj; Sun, 12 Aug 2018 02:48:57 -0700 (PDT) X-Google-Smtp-Source: AA+uWPy67ukIKFbYrP94fvbzsLcvq2G6ZpOohaO5QRKL+jv5eWpX3bn4IpQI3jHFmC75BzespNHc X-Received: by 2002:a63:7a43:: with SMTP id j3-v6mr12739345pgn.363.1534067337034; Sun, 12 Aug 2018 02:48:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1534067337; cv=none; d=google.com; s=arc-20160816; b=NoMIP7NGvCYyhFcTnx5ATxgBbLNDKNE93aracjIEJSzUJ5qWuJzyLpMbAXMzbBM2qN Vq1lSmHlDMyRKMy/19As9CtJjqHGbQj10h29pU6GK35gVBGjdevunmYPBQi6EERghOHz KIAO8cn6mD12o5I2YwENeOFnl6IFlC+OL0ebe43cix02uWeHyBEYRA9sggOah/aaQFIy oCu2MvUECUgHcDHNIHimLstnZGoekUpBYNSHjikX7A4ynlgA0CzEmaggPIJOQaS2WoUw Uk2/GR/U50ulQGplJKJt+u7HjhuOmL7FjHcucUhQA8pWvRqyGLNDMD5AcAhSDu6LNTRt ZFeg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:arc-authentication-results; bh=0K8xPWQh1NG2jTUPbNuFYNpi+u6A2k0xNYE7hgWe1KI=; b=hCjAascg0WJ4R5P64FyYQFM3uMhj3bfxgyjCVs9PXHkjPSjuW4CyIBvZWNxZ48vvfB I5sqQWyWonyzERunn1fhT8Vp+HR8YDIO88PzCfZR6TfebJw9Hb81lrb39Dlh1ZtlaToC tLmJGSD/LUVMFc3cOqi//ViMEmLMRaT2QBkVgc61IYogHmJ9PCl7rfcCHzNoM4GI1rTF oFf4mvXw8UY2GeXu7Ev6vUE+tSRsg7hMw5xuL3t1wMzTzB6vXTKoDdNAsVgdrW2fQo6m mf3243Cbo8fUa9v7GZe3WrmcDi+FGVT9B6W32GBu/XEMcXJqgbO4T+Ia1sIt3O3bJL/I /sMw== 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 h65-v6si17174868pfb.70.2018.08.12.02.48.56; Sun, 12 Aug 2018 02:48:57 -0700 (PDT) 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 S1728126AbeHLM0U (ORCPT + 31 others); Sun, 12 Aug 2018 08:26:20 -0400 Received: from szxga05-in.huawei.com ([45.249.212.191]:10705 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727580AbeHLM0U (ORCPT ); Sun, 12 Aug 2018 08:26:20 -0400 Received: from DGGEMS403-HUB.china.huawei.com (unknown [172.30.72.60]) by Forcepoint Email with ESMTP id AD5931F89F38C; Sun, 12 Aug 2018 17:48:49 +0800 (CST) Received: from S00293818-DELL1.china.huawei.com (10.47.93.119) by DGGEMS403-HUB.china.huawei.com (10.3.19.203) with Microsoft SMTP Server id 14.3.399.0; Sun, 12 Aug 2018 17:48:42 +0800 From: Salil Mehta To: CC: , , , , , , , Yunsheng Lin Subject: [PATCH net-next 7/9] net: hns3: Remove tx ring BD len register in hns3_enet Date: Sun, 12 Aug 2018 10:47:36 +0100 Message-ID: <20180812094738.14852-8-salil.mehta@huawei.com> X-Mailer: git-send-email 2.8.3 In-Reply-To: <20180812094738.14852-1-salil.mehta@huawei.com> References: <20180812094738.14852-1-salil.mehta@huawei.com> MIME-Version: 1.0 X-Originating-IP: [10.47.93.119] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Yunsheng Lin There is no HNS3_RING_TX_RING_BD_LEN_REG register according to UM, so this patch removes it. Signed-off-by: Yunsheng Lin Signed-off-by: Peng Li Signed-off-by: Salil Mehta --- drivers/net/ethernet/hisilicon/hns3/hns3_enet.c | 2 -- drivers/net/ethernet/hisilicon/hns3/hns3_enet.h | 1 - 2 files changed, 3 deletions(-) -- 2.11.0 diff --git a/drivers/net/ethernet/hisilicon/hns3/hns3_enet.c b/drivers/net/ethernet/hisilicon/hns3/hns3_enet.c index a64d69c87f13..b7b9ee3f4d20 100644 --- a/drivers/net/ethernet/hisilicon/hns3/hns3_enet.c +++ b/drivers/net/ethernet/hisilicon/hns3/hns3_enet.c @@ -2969,8 +2969,6 @@ static void hns3_init_ring_hw(struct hns3_enet_ring *ring) hns3_write_dev(q, HNS3_RING_TX_RING_BASEADDR_H_REG, (u32)((dma >> 31) >> 1)); - hns3_write_dev(q, HNS3_RING_TX_RING_BD_LEN_REG, - hns3_buf_size2type(ring->buf_size)); hns3_write_dev(q, HNS3_RING_TX_RING_BD_NUM_REG, ring->desc_num / 8 - 1); } diff --git a/drivers/net/ethernet/hisilicon/hns3/hns3_enet.h b/drivers/net/ethernet/hisilicon/hns3/hns3_enet.h index e4b4a8f2ceaa..0f071a0f4ff9 100644 --- a/drivers/net/ethernet/hisilicon/hns3/hns3_enet.h +++ b/drivers/net/ethernet/hisilicon/hns3/hns3_enet.h @@ -37,7 +37,6 @@ enum hns3_nic_state { #define HNS3_RING_TX_RING_BASEADDR_L_REG 0x00040 #define HNS3_RING_TX_RING_BASEADDR_H_REG 0x00044 #define HNS3_RING_TX_RING_BD_NUM_REG 0x00048 -#define HNS3_RING_TX_RING_BD_LEN_REG 0x0004C #define HNS3_RING_TX_RING_TAIL_REG 0x00058 #define HNS3_RING_TX_RING_HEAD_REG 0x0005C #define HNS3_RING_TX_RING_FBDNUM_REG 0x00060