Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp7950689ybi; Tue, 9 Jul 2019 06:49:59 -0700 (PDT) X-Google-Smtp-Source: APXvYqyLbv3SjSaaPV1XZAXCAnA22DHJSuM+oQqDSoVo6inTbao0v5dueXlVZqJcOnJSbi9mFp6e X-Received: by 2002:a17:90a:5806:: with SMTP id h6mr172946pji.126.1562680199355; Tue, 09 Jul 2019 06:49:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562680199; cv=none; d=google.com; s=arc-20160816; b=zeKjO09l1zCzruE+hjpckFTVLYsFdvNnrmSw/WDrQxUJV8d5nKtqOX07MO3Wmxn5Wt H/SFkQpg63Y1uqzOWKbqajbBGc3J9u/XPDR4l8ZmWl7WMnO+pibTVMlaTZInwAQKf5uL IgEeGaoqZRDfDrHB6quSkLXCIAZW9cvd5CQFPqjk533q2sUilWa/Tb8ZarmdiCiCqYSO Se92s5pAD07DOwIK/ulVmruM0myUeGVL8FRSciL8l9tqoXiZBAeuwHgVcag19kXVbaYE 2x/D5fSNozMghdBNa1NN3X3OiCnVLrzw9mDt8QCj7FOexBvnTkpowT/tQww8BbSM6bME WOPg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:in-reply-to :mime-version:user-agent:date:message-id:from:cc:references:to :subject; bh=wl28+d7jcLqgUeLUOQ03qSguAEqSdpVBmwGgwYFPW3I=; b=XFxz/SVPHotw5haB7g7zeRe+13s1Ogmd/kGMvw5lEHdW/N9Lrp1RVsq3FCAdzQzcIJ vEYY/gdu8V3CxQ5e7KsU489LjyH7n6qEMMZgQYykxIGxNuJm4UqXE6c95Xal3jzh6FU9 tOC1ePGe7CegFGqn47KTvl3FcHQ3nSjyQfirZpqTzzm8ymCTVZjiVGJHG/ddu21jr8mh HEKdVXXfV+uVZHgLI5FZGHd/oEAUzhJ3jxZRR8ahHdNBp2+/+BZTC7PI4kkgqYAFBCoL atkELVBUa9MCcK2P2u7fvbFRfTfw03afy7BV+AfZprcljXBtcOM3maK4iYVn/G1whmQW VBXA== 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 g13si22558924pgr.577.2019.07.09.06.49.43; Tue, 09 Jul 2019 06:49:59 -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 S1727094AbfGINtU (ORCPT + 99 others); Tue, 9 Jul 2019 09:49:20 -0400 Received: from szxga07-in.huawei.com ([45.249.212.35]:50978 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725947AbfGINtT (ORCPT ); Tue, 9 Jul 2019 09:49:19 -0400 Received: from DGGEMS411-HUB.china.huawei.com (unknown [172.30.72.59]) by Forcepoint Email with ESMTP id 5E58C7DF4F8011129D08; Tue, 9 Jul 2019 21:49:06 +0800 (CST) Received: from [127.0.0.1] (10.65.87.206) by DGGEMS411-HUB.china.huawei.com (10.3.19.211) with Microsoft SMTP Server id 14.3.439.0; Tue, 9 Jul 2019 21:48:56 +0800 Subject: Re: [PATCH v2 05/10] net: hisilicon: HI13X1_GMAX need dreq reset at first To: Sergei Shtylyov , , , , , , References: <1562643071-46811-1-git-send-email-xiaojiangfeng@huawei.com> <1562643071-46811-6-git-send-email-xiaojiangfeng@huawei.com> <890c48d1-76b8-5aea-e175-aa7d9967acd2@cogentembedded.com> CC: , , , , , , From: Jiangfeng Xiao Message-ID: <101b8c68-75f5-00a7-9845-e59c0467768c@huawei.com> Date: Tue, 9 Jul 2019 21:48:56 +0800 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.7.1 MIME-Version: 1.0 In-Reply-To: <890c48d1-76b8-5aea-e175-aa7d9967acd2@cogentembedded.com> Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-Originating-IP: [10.65.87.206] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2019/7/9 17:35, Sergei Shtylyov wrote: > Hello! > > On 09.07.2019 6:31, Jiangfeng Xiao wrote: > >> HI13X1_GMAC delete request for soft reset at first, >> otherwise, the subsequent initialization will not >> take effect. >> >> Signed-off-by: Jiangfeng Xiao >> --- >> drivers/net/ethernet/hisilicon/hip04_eth.c | 24 ++++++++++++++++++++++++ >> 1 file changed, 24 insertions(+) >> >> diff --git a/drivers/net/ethernet/hisilicon/hip04_eth.c b/drivers/net/ethernet/hisilicon/hip04_eth.c >> index fe61b01..19d8cfd 100644 >> --- a/drivers/net/ethernet/hisilicon/hip04_eth.c >> +++ b/drivers/net/ethernet/hisilicon/hip04_eth.c > [...] >> @@ -853,6 +867,15 @@ static int hip04_mac_probe(struct platform_device *pdev) >> goto init_fail; >> } >> +#if defined(CONFIG_HI13X1_GMAC) >> + res = platform_get_resource(pdev, IORESOURCE_MEM, 1); >> + priv->sysctrl_base = devm_ioremap_resource(d, res); > > There's devm_platform_ioremap_resource() now. Thank you for your review, Great issue, which makes my code more concise. I will fix it in v3. Or submit a patch to modify it separately, if maintainer applies this patch series.