Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp1922720imm; Sun, 12 Aug 2018 02:50:20 -0700 (PDT) X-Google-Smtp-Source: AA+uWPyWVFuJ5ABvwA4B3fnPhMRKcvLTZ4SuIoL2n5vnGg1+dbPxQc6vv6aB4YQ3X+waYRL8272v X-Received: by 2002:a17:902:5ac7:: with SMTP id g7-v6mr12349406plm.90.1534067420591; Sun, 12 Aug 2018 02:50:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1534067420; cv=none; d=google.com; s=arc-20160816; b=zIpy73BwwhLhBGibTUnUyzYLCI6GoCp4MlpmtQAj/3qXI6OmgzG1ckV65Myi21XTmp u/O80XJVefj1GhnUJigI/lVW7SUlzKs78xmppx9Oi+QGA30jmDroRwKkcPpH3lk5l6oj zDFbHBOvqXJtzTtbdlDYNj2HqD6RsuJCdrE81lZF/OV5uKgOXnSJneDPC08rIfpeTn2G p2NXN+X5wUE2yFzwwa7tpxqdpU/xu57a7rpu0nT1iHlOOmmacXIv+ggHpcOnCBaFdc5D sXIAUSgtCrtl+NJlYYtCZc1+WYpUui5Sk3wvh9W6OpacugxEopvp70gdLm6jThrsk5Bv YXnA== 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 i5-v6si10704397plt.112.2018.08.12.02.49.58; Sun, 12 Aug 2018 02:50:20 -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 S1728120AbeHLM0U (ORCPT + 99 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 Content-Type: text/plain 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(-) 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 -- 2.11.0