Received: by 2002:a25:23cc:0:0:0:0:0 with SMTP id j195csp247251ybj; Mon, 4 May 2020 20:30:40 -0700 (PDT) X-Google-Smtp-Source: APiQypJuXQqsTpiQxZQphWdXtVy2wjP6OqTijxTJrgPnfb2t95ieW3JTSzztcOSeEU7YV++jKCVT X-Received: by 2002:a50:8e4b:: with SMTP id 11mr848617edx.329.1588649439908; Mon, 04 May 2020 20:30:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588649439; cv=none; d=google.com; s=arc-20160816; b=gHyM1dWTgJ7OgUnXFrtHJ29B+ZFfOusmTe7qzSGjwzB1fk6bv94C31mmjooojF3pDr yB1cTa0DhU28dIltGyBDdxbSJxMRT3D6ScntIlYjqPgHp40mYLs60OSc1lvJLrI9o1uN kMh3uMHQa8IF/CKbf0PbiCDsHfV0vSGpQuc6NeYD0p/1+rD4kad3yoMPiUa2wUY9hOwl 5tGLCYUDsUcunRE5CVuJhNDSDPDh1nWcIeauobjtN3rc2VJIwlI9VoCKlB6m5qtXxMjC P2q39OTDtXzq+aPIOwTpKKVos3Ndxug0BmKRLoPoTneUa7DOMruAUbvfFRLYo2c6oKl+ SYYg== 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=YpdSRN+x4uVDUx7f+wGOYPQR8ogpOw7w3pdmT1GKO9I=; b=fckwR4+VPQflpBay61vA/aHHXs4MGPs9/kejo38+rwQSF7I2+eLY3R+81yaQvb7no9 FljGwQeTDZAHV5bk9suht0P0e656ySXmP6xGKEjroeMXpAoMcEsBnTesl1t7nkTgMSHP o0heVWqFYivXN4rW5LgSYB6zy4GgC5ddgIDZgASlAySeLC2+9aWtpApA2p2ht3XuWRme +zqAfKGl43lEg+WIsXbeExuVy0b9SgiB+WUY9V6f0naImaPwElt+hupgz5D72Mi9LQB2 KS3hwfAUcpbaWRdixb5z6KbtoLd5EWKJ0JJA3eP8hdzb2QYHhB9dFdrClq/EFRY8wx3r dgQA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="B/kKyMn+"; 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 ci25si299249ejb.476.2020.05.04.20.30.15; Mon, 04 May 2020 20:30:39 -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="B/kKyMn+"; 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 S1727799AbgEED24 (ORCPT + 99 others); Mon, 4 May 2020 23:28:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60944 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726345AbgEED24 (ORCPT ); Mon, 4 May 2020 23:28:56 -0400 Received: from mail-pj1-x1043.google.com (mail-pj1-x1043.google.com [IPv6:2607:f8b0:4864:20::1043]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1F607C061A0F; Mon, 4 May 2020 20:28:56 -0700 (PDT) Received: by mail-pj1-x1043.google.com with SMTP id a5so408104pjh.2; Mon, 04 May 2020 20:28:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=YpdSRN+x4uVDUx7f+wGOYPQR8ogpOw7w3pdmT1GKO9I=; b=B/kKyMn+x5V4QfHr2Mc0u+5WbvAGNbcNqUeZDYyEXvmnbM8vLMQjFBNZawtvJo63jR UfX5cRR6zKkuiqQ5DI7vkpteNu1/VVi7r42XgwErcKzjZ9jWOKs5/fWrVsPQOqIDVxaJ as+62dGM4TmHI1eM+JTVTZp5yUs+aqvPK1uJKE8RL0dwkhmt3G42CwMNN5sG0YHXlyBP 6iAc48bVRtFrsq/2BcKprvc1AIpKFnZR66+zS7qLpHUKZsKPn3PFsW2qbqIbP+26XoBw 7ntQyaDruyNp/l0SGqU2y09lfrOxpzmDIV17LogW6/qeY5Ga28y6S1N5zmQfLcMw4hDJ SLKA== 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=YpdSRN+x4uVDUx7f+wGOYPQR8ogpOw7w3pdmT1GKO9I=; b=WLfpv6CnbSB03OTo6a6JMdceTWM1utgMOLzMUtGmKzCeKyqXB/6HN7/x4a/XYYiRHA S4Fae20vV/xoUaT2m6ukVvcJAiDQSTqE2VgdDmMsisVAdQevJtky6bpge9M2PdTKN/KC +zz+PuZWdyBJiLWdry1V5F8igVYaoKeqZ5vfW5+SgfQn3o9Dn2Jl+FnM5K83JAV0o2Xk Ap8FWwYkfliOmXICenlKzlKriH4KtxwGnH986mpyi9w1gDmXOzc6XfvSD2ZQ+5K6Rer1 /BbJ22u4VoLiaRS/WALV8Mq0I2js7Nkzy2KtK+DvqJDH2YkwlS909IMUeiXaRHHhOUkd BOSA== X-Gm-Message-State: AGi0PubL2nktfvvjEUPkys9VDhIOZmo1sXKNlg/24vlc37pilD4gT6jS 06DY+WNYpAoLaTL9tJRmBYM= X-Received: by 2002:a17:902:9a8a:: with SMTP id w10mr1175883plp.218.1588649335660; Mon, 04 May 2020 20:28:55 -0700 (PDT) Received: from [192.168.1.3] (ip68-111-84-250.oc.oc.cox.net. [68.111.84.250]) by smtp.gmail.com with ESMTPSA id i13sm380423pja.40.2020.05.04.20.28.53 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 04 May 2020 20:28:54 -0700 (PDT) Subject: Re: [PATCH net v1] net: broadcom: fix a mistake about ioremap resource To: Dejin Zheng , davem@davemloft.net, swboyd@chromium.org, ynezz@true.cz, netdev@vger.kernel.org, jonathan.richardson@broadcom.com Cc: linux-kernel@vger.kernel.org, Scott Branden , Ray Jui References: <20200505020329.31638-1-zhengdejin5@gmail.com> From: Florian Fainelli Message-ID: <8b71b3ba-edc8-ce78-27ba-ce05230efc31@gmail.com> Date: Mon, 4 May 2020 20:28:52 -0700 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Firefox/68.0 Thunderbird/68.7.0 MIME-Version: 1.0 In-Reply-To: <20200505020329.31638-1-zhengdejin5@gmail.com> Content-Type: text/plain; charset=utf-8 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 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