Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp8728012ybi; Tue, 9 Jul 2019 22:06:39 -0700 (PDT) X-Google-Smtp-Source: APXvYqz526x3gE/BDX1BCEZ5j+N+9UWhejG/bDqYE+kPjwDZLc/V+Y/YYMhQ+OUYXtN1JokCGL9/ X-Received: by 2002:a17:902:2ae8:: with SMTP id j95mr33742396plb.276.1562735199616; Tue, 09 Jul 2019 22:06:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562735199; cv=none; d=google.com; s=arc-20160816; b=XiUgsgLBY0VY0O1dbNuyzHXe8E/UQFWc8XXsJ+Y9L/aUCzfmxUxTHFR1vM5a6PGFjN Vx3x/7w6u0q5wgjTztdNbKeUL+RI4UVhlAnRZYfap3CACntAjNMzFau3MiQ44ZeODDbv QW7vQNIk2bcPUSMEcMDZl4TjLMCWvgGDcJUvMBPQp4USR3ab7e1O/gBILa+scDWlHfHH IDq3Ve4XP7vMy7egWCbSrZCkYzHhfhKrnYTWf9joXGZebO5cq1j1/yDU7uSFS5XuWiBV mm0gKzPWPOgbvghPs5hr3HMhMsFkzZDL0Hy+KSF3dF1VjvXg+nvpvyfc/xCiFCmkUbuo t5IQ== 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=g8G5UXlpvuum7q3of6/MAU5gFiA3tSY2hqNlcqtNcJI=; b=RidSYbdkupo+g7xYX99nxHcF1W79XQ8OXKq0SXmCimx4DuAQkaza02Gt32vw1Piy/2 EhlfLpgbKMUT2s55sMOAQQyzVkyzJY8fM+Qn2ilr/vZcnjYrZ+VhfbyvhbRgDfIovW76 Iw7I0Mo7mIH78euHU58f/SSTHbSySIQAdWs10NvfFRGDmJ5Tu72ASXtLC7H1/cctPpRK szLUVA66osV+KEHPNuIof1caNXz6w1CiEUHEGj7HMaEqmeER+j24BAY7T5ZQ9DNO36qX 284wwWYCmqvt3mv8rGt6PE/Bq/kF07R/VyOX1dAjog6Ycctj/lQF0YBGFXmEP86hj2NH PX5Q== 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 o7si1292468pgq.459.2019.07.09.22.06.24; Tue, 09 Jul 2019 22:06:39 -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 S1727136AbfGJFFb (ORCPT + 99 others); Wed, 10 Jul 2019 01:05:31 -0400 Received: from szxga07-in.huawei.com ([45.249.212.35]:41080 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726234AbfGJFFa (ORCPT ); Wed, 10 Jul 2019 01:05:30 -0400 Received: from DGGEMS414-HUB.china.huawei.com (unknown [172.30.72.58]) by Forcepoint Email with ESMTP id 25DF892C0BA70E4A1D17; Wed, 10 Jul 2019 13:05:27 +0800 (CST) Received: from [127.0.0.1] (10.65.87.206) by DGGEMS414-HUB.china.huawei.com (10.3.19.214) with Microsoft SMTP Server id 14.3.439.0; Wed, 10 Jul 2019 13:05:20 +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> <101b8c68-75f5-00a7-9845-e59c0467768c@huawei.com> CC: , , , , , , From: Jiangfeng Xiao Message-ID: <5e3eda91-dedc-e687-6a18-b1aec1e9fe63@huawei.com> Date: Wed, 10 Jul 2019 13:05:20 +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: <101b8c68-75f5-00a7-9845-e59c0467768c@huawei.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 21:48, Jiangfeng Xiao wrote: > > > On 2019/7/9 17:35, Sergei Shtylyov wrote: >> Hello! >> >> On 09.07.2019 6:31, Jiangfeng Xiao wrote: >> [...] >>> @@ -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. > I decided to wait for this series of patches to sync to the mainline and then fix this based on the mainline. Because the mainline does not currently have this part of the code, if I submit the changes, and the patch is accidentally merged into another branch or another maintainer to handle, a conflict will occur. As we all know, maintianer has to deal with many commits every day, I don't want to increase the burden of maintainer. So I decided to wait until the patch is synced to the mainline and then modify it, which is more safe.