Received: by 2002:a4a:311b:0:0:0:0:0 with SMTP id k27-v6csp4693510ooa; Tue, 14 Aug 2018 09:16:11 -0700 (PDT) X-Google-Smtp-Source: AA+uWPyngw+oRNjVlDGFKdHwvCFlN4eggHvt7XjH0Em6H4mnNaV3PVMsJzyzfMdKnVlnVVEdpivq X-Received: by 2002:a63:2106:: with SMTP id h6-v6mr21636757pgh.161.1534263371544; Tue, 14 Aug 2018 09:16:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1534263371; cv=none; d=google.com; s=arc-20160816; b=ZNnVNzbFd5TN0uzV4iGY63XM2L//oJ6IUcZQ0W7B6EJyrrQq5IkbNky9kA6VWsefV5 Alsp/HHyBCybXxRF0OJNZptQoKdUvraCo+RyyNQv3mS9u9hSoXtnAy3uFuYgKKyqqSwG IdkAmxc0ULhQI02RAVWlarSEbj4c5goK2D3mKiX/RyuVD+iKJ5I3QSlNMk1J+Cq/TfJE Up/jJNaPYJCewaBXITBcEVHdsW3dEzBuDP8Og9E8aa3WmpY2b9Oc01b1qB+XCyB7Kw59 08y0DX3ZKf1gM5ge9GNYLeYF9TqzecZD3M/YyyaWfDGiMflx+ce6CoLwP2dUYTQephun PnfQ== 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=xmw/FY8FEQveghphRo+sktc7B39xigRosfCtoZ8ZsJo=; b=cJ9UkF+x1RJTndO7z6w5K585XyLDWK8gBdeXEZFNTzDNcxndjLCpg5Mw1nUtnesmMs Js9U69vvIR8D3L73Lc+duY7nixAsGI+rgTVh2ExDpOyNJYbMOjmdfx1rnd8qDak0US44 Q2Ayx8PmCUxLB/KBNJwEpRSvJwlgJ+X8vFIMDmApwdK30o1ogR0EXv2GMNid2LcFAsGF L85rA+sCGUqAA88GxRL368D22JUz+/YpabBJIaNEx0A5zjb4prefkLIvOJF0AtsH+xh8 qPisJdk93y3KOEvnTab7v/OwzW4jjIAkxpX37UXJfto/3cZ8o+j2yEPMzHamtqlrnx04 g6Zg== 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 15-v6si22326170pfj.329.2018.08.14.09.15.56; Tue, 14 Aug 2018 09:16:11 -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 S1733111AbeHNTCS (ORCPT + 99 others); Tue, 14 Aug 2018 15:02:18 -0400 Received: from szxga05-in.huawei.com ([45.249.212.191]:10723 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1733047AbeHNTCR (ORCPT ); Tue, 14 Aug 2018 15:02:17 -0400 Received: from DGGEMS402-HUB.china.huawei.com (unknown [172.30.72.60]) by Forcepoint Email with ESMTP id 92730D3608D5B; Wed, 15 Aug 2018 00:14:21 +0800 (CST) Received: from S00293818-DELL1.china.huawei.com (10.202.226.54) by DGGEMS402-HUB.china.huawei.com (10.3.19.202) with Microsoft SMTP Server id 14.3.399.0; Wed, 15 Aug 2018 00:14:14 +0800 From: Salil Mehta To: CC: , , , , , , , Yunsheng Lin Subject: [PATCH V2 net-next 6/8] net: hns3: Remove tx ring BD len register in hns3_enet Date: Tue, 14 Aug 2018 17:13:17 +0100 Message-ID: <20180814161319.16392-7-salil.mehta@huawei.com> X-Mailer: git-send-email 2.8.3 In-Reply-To: <20180814161319.16392-1-salil.mehta@huawei.com> References: <20180814161319.16392-1-salil.mehta@huawei.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.202.226.54] 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 a64d69c..b7b9ee3 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 e4b4a8f..0f071a0 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.7.4