Received: by 2002:a25:23cc:0:0:0:0:0 with SMTP id j195csp378815ybj; Mon, 4 May 2020 23:54:08 -0700 (PDT) X-Google-Smtp-Source: APiQypIe2DNpSX9qJefd5XIzxtrW15LOK4EXPa3d8Gncqp0RgM9ypOATAvdQ9NDu7po0prSZ9CIL X-Received: by 2002:a17:906:7204:: with SMTP id m4mr1395215ejk.48.1588661648073; Mon, 04 May 2020 23:54:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588661648; cv=none; d=google.com; s=arc-20160816; b=Z3kq4qZwbyYdbu+SZKAdqYP+W6MSVfYly1UdyeXZ5ePmZJUCoxyaHC9vjRmib4L0S1 jJZ8Ob8aupnDMJrYN9PeosGO/ztmb0UE26VdI7bWIveKhik5AthdqfyxzjHGtlUYBlnP ZIKccTH/6FwucS5bohWD9R9ZnaXV5H0clyQDWPIH20GMRO/EX2Vye1jfMcyjSIyQR6gF IWKJ18Wbv/MXjrp2zjhG/QNXgEu7tl5BNQNT/ycc6uoxSo3RdjmDGfKMevZdXBqa3zFf tZnZfcwdgMmkj5sDOwlbhZ7fPF0IyeewL6TMXwQW76SP5ZIUgtd42fwpfbR4OtXoE1q0 /Tjw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=0aXe94VU2WISTIlufs3bfltwqE1JuV8SHwsemLcdlPY=; b=Ry6BmroD5kBQB6bpuoDb+NevR4FPoZUqcQJh05L0W/dxXJm92vY+bzboIclLymiv60 P/x+8ptiiTOqEOjd/ptEokXRqVhTQbeUqGHMXS7iO/AW7BzK3OJE4Ear68m5scx2FrJi K2vMFPnr4eeyViPGIZBXFZsa/N4hWTYxH/Mknk1tizo42KtztgS2nHglsLLDvc1H9TEN H1jjAWVwVjNRKrLKL+VIzIiIJomeYKZjDgt9S5sYir8j87uUlQ6hk7wxHp7LmzmtqJWH qtQOAdMD/XU7e3pVAlw8c2JXa4fb0etEk1QObvAKzw30/0EwxcRFAFa81sG1sR8k1JHF V+8g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=VUb2ebxO; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i3si763831edn.135.2020.05.04.23.53.45; Mon, 04 May 2020 23:54:08 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=VUb2ebxO; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727978AbgEEGuG (ORCPT + 99 others); Tue, 5 May 2020 02:50:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35670 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1725320AbgEEGuF (ORCPT ); Tue, 5 May 2020 02:50:05 -0400 Received: from mail-pl1-x642.google.com (mail-pl1-x642.google.com [IPv6:2607:f8b0:4864:20::642]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B7572C061A0F; Mon, 4 May 2020 23:50:05 -0700 (PDT) Received: by mail-pl1-x642.google.com with SMTP id u22so398508plq.12; Mon, 04 May 2020 23:50:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=0aXe94VU2WISTIlufs3bfltwqE1JuV8SHwsemLcdlPY=; b=VUb2ebxOqBa2eX4HEwAC4TSnsr/67cFpLtQ50LMIHcpva39QnEzqr3yXtnu7GqNhLy GiYXsq6zUdUoFWZ2h7UJ3R/DiNoyvrfOrfxftC5aatZu2vlRb2Yft3CRkqMTmyTYE5lK teCTSmflsWScuw39WtRUWBqMXzzLLUfoROuZkcafhKA7tXysUa1wAyk6joVC1rOxmagY tpETTtS/+i/Ll1BapImmBp5CymTjHToomA4PbsA9FXr9BcSBBqGcSxmHwmHZBidA7C25 M+zICsV0+WdGLyfL6k1w49IBwFxM0DCbgmkHkZ5Eh+r/Sk/zsAKjgDeefng+1NSBEBxb pKCQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=0aXe94VU2WISTIlufs3bfltwqE1JuV8SHwsemLcdlPY=; b=lQ2c1V9qHEe+CH/NCdExqb7z3VbhPOsowSF8VqZpOAtVlml7HzsM+xALMKgl5yDVeP EvoOiPY7l9VqFO4D+HZrRIT3C0j88L3Kd+2f9IKvVo5Sy1bU3cwAfpBIHJYGLf4KJEyA U4cnN4gpGFKrS18YJAYb+2iJjEg7GQOwRpRFBjneo7vRpwVachhoJCqsP3KBrYeTjoVY +GC5snmj/kMPiLS7RaZggH+s/PuA+juUsKkEGUPBDIJWlNimB5Hxt1tcoRG/y9c2enlL z+8dxOmXewCF8hyF6wi8LORgt2QHvUY6H0/NLYwMdhaq5/0GwfbVZbppTLvSIVdOxpsg eOFw== X-Gm-Message-State: AGi0PuZPgjhulvIKVj8ZAXCdXT/H4KH4/fvFXoyy2k9TKXj1WJizC9Qr 6lUmG7ZcS+8Ozl9hNtDDKKg= X-Received: by 2002:a17:902:a701:: with SMTP id w1mr1333852plq.165.1588661405149; Mon, 04 May 2020 23:50:05 -0700 (PDT) Received: from localhost ([162.211.220.152]) by smtp.gmail.com with ESMTPSA id z7sm1036273pff.47.2020.05.04.23.50.03 (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 04 May 2020 23:50:04 -0700 (PDT) Date: Tue, 5 May 2020 14:49:58 +0800 From: Dejin Zheng To: Florian Fainelli Cc: davem@davemloft.net, swboyd@chromium.org, ynezz@true.cz, netdev@vger.kernel.org, jonathan.richardson@broadcom.com, linux-kernel@vger.kernel.org, Scott Branden , Ray Jui Subject: Re: [PATCH net v1] net: broadcom: fix a mistake about ioremap resource Message-ID: <20200505064958.GA1357@nuc8i5> References: <20200505020329.31638-1-zhengdejin5@gmail.com> <8b71b3ba-edc8-ce78-27ba-ce05230efc31@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <8b71b3ba-edc8-ce78-27ba-ce05230efc31@gmail.com> User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, May 04, 2020 at 08:28:52PM -0700, Florian Fainelli wrote: > > > On 5/4/2020 7:03 PM, Dejin Zheng wrote: > > Commit d7a5502b0bb8b ("net: broadcom: convert to > > devm_platform_ioremap_resource_byname()") will broke this driver. > > idm_base and nicpm_base were optional, after this change, they are > > mandatory. it will probe fails with -22 when the dtb doesn't have them > > defined. so revert part of this commit and make idm_base and nicpm_base > > as optional. > > > > Fixes: d7a5502b0bb8bde ("net: broadcom: convert to devm_platform_ioremap_resource_byname()") > > Reported-by: Jonathan Richardson > > Cc: Scott Branden > > Cc: Ray Jui > > Cc: Florian Fainelli > > Cc: David S. Miller > > Signed-off-by: Dejin Zheng > > Acked-by: Florian Fainelli Florian, Thank you very much for helping me as always! BR, Dejin > -- > Florian