Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp2961010ybi; Thu, 4 Jul 2019 23:13:37 -0700 (PDT) X-Google-Smtp-Source: APXvYqw1RRoMNoaWz/hWn1Sh8k9QV6y2cJOZgtvaXK+/exQ33a0gJhGLfqYhRq/sSUEAUq5S7e10 X-Received: by 2002:a65:420c:: with SMTP id c12mr2980223pgq.125.1562307217233; Thu, 04 Jul 2019 23:13:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562307217; cv=none; d=google.com; s=arc-20160816; b=mlKnyPvSLs8k7YZSgwV4Ad//AO97xBk3/2ByEJLHAFWHs0uceReMEYBAuib7/kUnWI wVqoJ9QVtYKz3Ew6FV55YQ8FCq9HdbAavjNMVzmmmYcJueJ4aKSJaGDfPBBxVL7lwhre lxlA+zLEGPZwKibTDPE41znWGEtzf9oEwE3vrrq4xxyuplT65O0tUzOEzZSYuinW3hYH 9H3n5e+CpZkPZRZIoI/baRlAJ/SIzvd0sw34K9YprmJjMoUqUBRYUh+KltcyutgLKOfK 2o389JqkCLu9WW/mKeN7y+LO9VIVy5TJz0tKwweGl08JHYfbP9mZcxQiBOewmIWze+fE 5s0g== 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; bh=mpFx5YXUCW7H45sNckdWOfxEmYjRQIQdisQFgkuzzNo=; b=Ft+yAbyTMzV3F+F4r0KGV62RIAT3hHic2iyMRVUZ8x9LvHi2NEx5OoGiY+HSI88K+H NJKQXyb4Zs86p96sVXnnlhh9HPe9sVXhpFX8zW00oYduSppl3WG9oEnSFP2M/iONfR0n 8phq8EUycNJu5mZfZH896NNN0dBrquFU/KHgIuhf6Yzu7LtFOgeELIcywXpFcww9w4WR pxbudU/F6vQhePe1sSdwymRUWPRe33k/Yf+ZoCEXsHZg3V1Mw/VsnoRXwTTBgI7RVaCn mFE5wpODA/+tEo9qb74ThXRi0VDXcIX2YjhxXd372A1Km76RqOnj9/Pa9Fu/ZY8cDcNv FIWA== 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 b6si8255981pfa.76.2019.07.04.23.13.22; Thu, 04 Jul 2019 23:13:37 -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 S1727790AbfGEGLf (ORCPT + 99 others); Fri, 5 Jul 2019 02:11:35 -0400 Received: from szxga06-in.huawei.com ([45.249.212.32]:44994 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725772AbfGEGLe (ORCPT ); Fri, 5 Jul 2019 02:11:34 -0400 Received: from DGGEMS412-HUB.china.huawei.com (unknown [172.30.72.60]) by Forcepoint Email with ESMTP id 7FFC1CF4EB6D5BD339E6; Fri, 5 Jul 2019 14:11:31 +0800 (CST) Received: from huawei.com (10.67.189.167) by DGGEMS412-HUB.china.huawei.com (10.3.19.212) with Microsoft SMTP Server id 14.3.439.0; Fri, 5 Jul 2019 14:11:25 +0800 From: Jiangfeng Xiao To: , , , CC: , , , , , , , , , Subject: [PATCH 04/10] net: hisilicon: HI13X1_GMAX skip write LOCAL_PAGE_REG Date: Fri, 5 Jul 2019 14:11:13 +0800 Message-ID: <1562307073-103681-1-git-send-email-xiaojiangfeng@huawei.com> X-Mailer: git-send-email 1.8.5.6 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.67.189.167] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org HI13X1_GMAC changed the offsets and bitmaps for GE_TX_LOCAL_PAGE_REG registers in the same peripheral device on different models of the hip04_eth. With the default configuration, HI13X1_GMAC can also work without any writes to the GE_TX_LOCAL_PAGE_REG register. Signed-off-by: Jiangfeng Xiao --- drivers/net/ethernet/hisilicon/hip04_eth.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/net/ethernet/hisilicon/hip04_eth.c b/drivers/net/ethernet/hisilicon/hip04_eth.c index d8f0619..fe61b01 100644 --- a/drivers/net/ethernet/hisilicon/hip04_eth.c +++ b/drivers/net/ethernet/hisilicon/hip04_eth.c @@ -308,8 +308,10 @@ static void hip04_config_fifo(struct hip04_priv *priv) val |= GE_RX_STRIP_PAD | GE_RX_PAD_EN; writel_relaxed(val, priv->base + GE_RECV_CONTROL_REG); +#ifndef CONFIG_HI13X1_GMAC val = GE_AUTO_NEG_CTL; writel_relaxed(val, priv->base + GE_TX_LOCAL_PAGE_REG); +#endif } static void hip04_mac_enable(struct net_device *ndev) -- 1.8.5.6