Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp7683231ybi; Tue, 9 Jul 2019 02:37:54 -0700 (PDT) X-Google-Smtp-Source: APXvYqw1OEiY9IyZIgELeHYQ1pcopVAw7XBBXPnOUHwy9BCSjWkRih/HLq1JAM3htRxV78ouCk8j X-Received: by 2002:a63:f857:: with SMTP id v23mr26912818pgj.228.1562665074450; Tue, 09 Jul 2019 02:37:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562665074; cv=none; d=google.com; s=arc-20160816; b=wI4aMkiOUXZbvXuN50qvfkpJ4HHwQsajlYmTVSJPtWiPF1oG/V3AYJbXqjGBMGrUd7 rNx03xYJW1x4Ymx3noJ4Oxv87r4BBwQzqdDOnKE7+mqvOyiqt8uSOSTxV/spE1ipduBp vnDrjdb+h1j2K1YeKWbYucLUUo4a+GTiXjW+axKgOp5Buyaiqw98pVhcuEjwp5vPjwiA HOsOfY1+/Una8THFQUS7l8li5VlEnkVTLyaG/FYKCLVrcbU3k3tVhxNanDhaGBuxZgaf yFMezBBC0OTvyOcTEVCrcUjpmyHHwbd5WtYfGbLn+aSImleDd3QZVQ6VeKnL+YRtIL9K fGog== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=XU2IBGyFRzKn02DPmdzj6szchTRAPUpG4CBxe0IbZxM=; b=gxsUTLOqjVan/XRrhWUyM9vdEl174U7rdmqiBRHJZ9m0xIRFDtyEAStahkD/qzNlv/ 3BC5xAMC0nHFD0YLTKY0hlfWagjBkJ/UNP/vydafVqxgJQbma6lGoTCyv+t24SiG7Sx+ 1FEqMUyjMlA7AIY3EhhLqB//B9r+lys3OPiirf2awd56rbVxNrtfkybrkpKYvD1uz/Qr bosWngxI2CLVVU8IvgIiMClFa9t6dWeOBhorJ0RVt9p4zzTaSkhsySByNsoFJkKLzdQC KfXLB1iDbA6QdIPc6t0imW0zSoQ6itqUp0Seykh5XvUn67/xIKtZ3J+xB4bjzvmx3j4S 9YEA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@cogentembedded-com.20150623.gappssmtp.com header.s=20150623 header.b=xIz67RFw; 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 s36si21392348pld.164.2019.07.09.02.37.39; Tue, 09 Jul 2019 02:37:54 -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; dkim=pass header.i=@cogentembedded-com.20150623.gappssmtp.com header.s=20150623 header.b=xIz67RFw; 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 S1726081AbfGIJgH (ORCPT + 99 others); Tue, 9 Jul 2019 05:36:07 -0400 Received: from mail-lf1-f66.google.com ([209.85.167.66]:47085 "EHLO mail-lf1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726008AbfGIJgH (ORCPT ); Tue, 9 Jul 2019 05:36:07 -0400 Received: by mail-lf1-f66.google.com with SMTP id z15so12912115lfh.13 for ; Tue, 09 Jul 2019 02:36:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cogentembedded-com.20150623.gappssmtp.com; s=20150623; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=XU2IBGyFRzKn02DPmdzj6szchTRAPUpG4CBxe0IbZxM=; b=xIz67RFwEx4FnMHMwebDTUVE9XLXFv8FCz7wp9SaGHdJlEH5Z3EEk3wEuu7Mtp2zbG M4T+EmJW0LsmjGJoak92C7bJ2U6zeKs+oNarpfT7EgB7rYP8h9/LGM+aOKvCcGQbR1Kw qYwWOxViWDwiGlwbH4ipBaOha885QznmvsQtbk7LHgiVDrTnSNvX4BzCWSdGBD7Cf0H1 Rj3W3NjOQku2W/94ZTyRcy/ZV2iB+q7HTarYXQBoDq2XBVxy2UoamJNPIu2wSpbVi+U4 gMBmx/57gTp6NgVzCPbl8TipJ3u+A3U2lC+cXeqODlnqu7tBNqCfAuqpV6Mf7Fck3HLQ RFng== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=XU2IBGyFRzKn02DPmdzj6szchTRAPUpG4CBxe0IbZxM=; b=k+ePzvwnbfkuNe30dgTF0BD7Qh6/xxU6cWpAwHSS5r+bXvTjX2SG3I04XTNvI0vfUo iEsTEnySfbgB0SO8NCodJJslAR/VBQqKoKaYPKuYnymbQJzmn74B0XjxE6JKkNDUY4lZ yBa+mi3RudyWoBRI3UkiHYshgyX2Qg/wz5R5DwRcrm/ZvfjEcQH8fYQWtUIU0X6Yh+a0 PRYSpBDBYZAh8xbUfuHSxTTQM5ygNpPTsRUfFmp2Wb6sjd7RXNaMFexpdmYXzIcifd7m rsBDn96O8Pv1DNvs5AI/643JMYSs1dWxgRsefzwX8go2pRKj1SWoojXkTldG5NGFaArq QHWQ== X-Gm-Message-State: APjAAAUo+aEgVJ3c/ZsfgVaJm+L6ooVq4bJrxSbKWSgW7Iltw/qT5V8o LCuWYJjpI3wxoSL0619mUZCr+g== X-Received: by 2002:a19:ec15:: with SMTP id b21mr11999025lfa.32.1562664965397; Tue, 09 Jul 2019 02:36:05 -0700 (PDT) Received: from ?IPv6:2a00:1fa0:293:b564:5d38:7bfd:30:5ce9? ([2a00:1fa0:293:b564:5d38:7bfd:30:5ce9]) by smtp.gmail.com with ESMTPSA id i17sm2828273lfp.94.2019.07.09.02.36.03 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 09 Jul 2019 02:36:04 -0700 (PDT) Subject: Re: [PATCH v2 05/10] net: hisilicon: HI13X1_GMAX need dreq reset at first To: Jiangfeng Xiao , davem@davemloft.net, robh+dt@kernel.org, yisen.zhuang@huawei.com, salil.mehta@huawei.com, mark.rutland@arm.com, dingtianhong@huawei.com Cc: netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, leeyou.li@huawei.com, nixiaoming@huawei.com, jianping.liu@huawei.com, xiekunxun@huawei.com References: <1562643071-46811-1-git-send-email-xiaojiangfeng@huawei.com> <1562643071-46811-6-git-send-email-xiaojiangfeng@huawei.com> From: Sergei Shtylyov Message-ID: <890c48d1-76b8-5aea-e175-aa7d9967acd2@cogentembedded.com> Date: Tue, 9 Jul 2019 12:35:57 +0300 User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.7.2 MIME-Version: 1.0 In-Reply-To: <1562643071-46811-6-git-send-email-xiaojiangfeng@huawei.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. > + if (IS_ERR(priv->sysctrl_base)) { > + ret = PTR_ERR(priv->sysctrl_base); > + goto init_fail; > + } > +#endif > + > ret = of_parse_phandle_with_fixed_args(node, "port-handle", 2, 0, &arg); > if (ret < 0) { > dev_warn(d, "no port-handle\n"); [...] MBR, Sergei