Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp7372037ybi; Mon, 8 Jul 2019 20:32:51 -0700 (PDT) X-Google-Smtp-Source: APXvYqyFRA1BLXdti0h3pZOtlE3GXczbi3jwFFPWZhyYmjHb3KhfEg39fbuhiRMTqbqUchNo/+Sf X-Received: by 2002:a17:902:b43:: with SMTP id 61mr29749847plq.322.1562643171732; Mon, 08 Jul 2019 20:32:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562643171; cv=none; d=google.com; s=arc-20160816; b=oMcXTIAN+RgaKTOCeVt5U0blcUDi2XGS1IACaDLHLn1NpjxzKO6UnGhHE5Weih3Ucu 4YZnYwVDsNAg3ig0RxQbIGiTs5HvDkTaYFuxdx7OdG8EnDsbWYvGpF7gPZA28t6S8/eD vyW/PklQR5Lr3Fr6jSK8IBPHp3stjjVD5EV/sx952OFYwFB7werC8Oa8F6jDib476Xb5 STDZWKCxEMMGgAW6RNZHtiMAycMDO5EKE0AqYERFs3AzO37tN3jlpy0kO3Pycxw7knnd iem8Jp4gKKZ8ykoYM7+F9MigOyB28DyDPZTK7MP1OJ90oPnIOw0NkEQJUD3moR3L26Od po1Q== 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=Lzg/uGnzXk87OJLof9m5lfufAAuMDLUAoFeiZI0NaEM=; b=qXYp981ruVISu/4A8/KGnUkEKHnFetcmbeo3wSt7lsATodqvlMdmg3z6Glgg/LmsR1 kaVfR69aLnJlztowdXFe4qf2skzD7YfdgReIgQG2k+PZ/+1T1zuw5Yrl1zjOUA7Ys7iy iRs5UDz7gE6Jf1BtkxA5EEftiettiTnrdDBYhSVygmMsiULNIiwG5M/BOQra6NqPZe2g HQ+9WBF4YJhQ2+F+6IfY/S7ob//8EgUCs9zUcq+/vbdTFqMK5+vqSuSzT4XNgTDTkHPB 3H06B/dksjhPRcMqBFOYBzZHTmARMI/jzRiDdWxYitxVIcItRegl9deFzPrIBkf2dAlt ncIw== 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 g11si20503411pgq.592.2019.07.08.20.32.36; Mon, 08 Jul 2019 20:32:51 -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 S1727615AbfGIDb4 (ORCPT + 99 others); Mon, 8 Jul 2019 23:31:56 -0400 Received: from szxga07-in.huawei.com ([45.249.212.35]:51602 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727294AbfGIDbe (ORCPT ); Mon, 8 Jul 2019 23:31:34 -0400 Received: from DGGEMS402-HUB.china.huawei.com (unknown [172.30.72.59]) by Forcepoint Email with ESMTP id 914E36710C36FFFF234A; Tue, 9 Jul 2019 11:31:29 +0800 (CST) Received: from huawei.com (10.67.189.167) by DGGEMS402-HUB.china.huawei.com (10.3.19.202) with Microsoft SMTP Server id 14.3.439.0; Tue, 9 Jul 2019 11:31:20 +0800 From: Jiangfeng Xiao To: , , , , , , CC: , , , , , , Subject: [PATCH v2 00/10] net: hisilicon: Add support for HI13X1 to hip04_eth Date: Tue, 9 Jul 2019 11:31:01 +0800 Message-ID: <1562643071-46811-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 The main purpose of this patch series is to extend the hip04_eth driver to support HI13X1_GMAC. The offset and bitmap of some registers of HI13X1_GMAC are different from hip04_eth common soc. In addition, the definition of send descriptor and parsing descriptor are different from hip04_eth common soc. So the macro of the register offset is redefined to adapt the HI13X1_GMAC. Clean up the sparse warning by the way. Change since v1: * Add a cover letter. Jiangfeng Xiao (10): net: hisilicon: Add support for HI13X1 to hip04_eth net: hisilicon: Cleanup for got restricted __be32 net: hisilicon: Cleanup for cast to restricted __be32 net: hisilicon: HI13X1_GMAX skip write LOCAL_PAGE_REG net: hisilicon: HI13X1_GMAX need dreq reset at first net: hisilicon: dt-bindings: Add an field of port-handle net: hisilicon: Add group field to adapt HI13X1_GMAC net: hisilicon: Offset buf address to adapt HI13X1_GMAC net: hisilicon: Add an rx_desc to adapt HI13X1_GMAC net: hisilicon: Add an tx_desc to adapt HI13X1_GMAC .../bindings/net/hisilicon-hip04-net.txt | 7 +- drivers/net/ethernet/hisilicon/Kconfig | 10 ++ drivers/net/ethernet/hisilicon/hip04_eth.c | 142 ++++++++++++++++++--- 3 files changed, 136 insertions(+), 23 deletions(-) -- 1.8.5.6