Received: by 2002:a25:23cc:0:0:0:0:0 with SMTP id j195csp981395ybj; Tue, 5 May 2020 10:48:53 -0700 (PDT) X-Google-Smtp-Source: APiQypJ0V+uXpu1r0oT/cu748UIzK7lzCJrEK5jKeoh2SqmQo8Mxglt7EIjx2pCj3DHd+otxYCX2 X-Received: by 2002:a17:906:8682:: with SMTP id g2mr1845819ejx.55.1588700933690; Tue, 05 May 2020 10:48:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588700933; cv=none; d=google.com; s=arc-20160816; b=oaUrYkd5eX8dN2KC/SLewboDTCfG+i8P4zh/sXdQbwAOIM/jETezKt1GMvUVZuzjRl 5TpZ74HOQSlpmJ+wVAxHuTfn5apN0SqWZx0cMf+68s+Caf8lxlMbh2leNSYg1jGfIdG7 vG9gBzn/wblLiDB7bb9cYqHptCc0WXgFmA7tW0/7lp9+9W4xPmpnvcxmMDvCneyvsf2u 7iG7f2PzAFH9K0FZ0f8EWQ6KhiMht/oQjdPqD5nDtdwxElTDdSWiAZKa2Z4toEM/KXmD IzEDo3ZN6J1AxeqogdFR8wLQ46Z1CPODMbZJgLFjbQjaruyZi6XhcmfSIPuyS0wVKj51 xyqQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=0d4t3WjdojD07U20/q5eVWp+2G5xuWU682MyxZ52/dk=; b=dqkqumDajpW4G4pslFGwoxSSw+VcXYXxkg3C40H75clXu7QI25TDmnwjpVbBgf55ir 2gGSCDEPmYJOZmYcxKwZYD9iEwyxfKWcteLtv0Bq1iCLQLQ4kcajrk9DEJ195HUQP/8i N8T8tpZQ404xMQ346OcMxvRgC2rGXIi+QBqjabjo6IB8IVxUbr1r1bscvmdLJZteaPdX FpF9j5Cx1Mj9feN0luOaFgyn0enYacKtu0NJTdOoQuDBJjJWLz4/kI3SJwi53Lw1QJxF xp81fTAgNzFark4b22Ya9K/iOhMI/wR/en2kCZLoeHua/wjUinGOfzvJhYXMU7ek1gfB BmiQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@broadcom.com header.s=google header.b=WbXsKMFI; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=broadcom.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id t12si1519915ejb.508.2020.05.05.10.48.28; Tue, 05 May 2020 10:48:53 -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=@broadcom.com header.s=google header.b=WbXsKMFI; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=broadcom.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730636AbgEERpK (ORCPT + 99 others); Tue, 5 May 2020 13:45:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53856 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730037AbgEERpJ (ORCPT ); Tue, 5 May 2020 13:45:09 -0400 Received: from mail-io1-xd43.google.com (mail-io1-xd43.google.com [IPv6:2607:f8b0:4864:20::d43]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8545FC061A0F for ; Tue, 5 May 2020 10:45:09 -0700 (PDT) Received: by mail-io1-xd43.google.com with SMTP id e9so2852578iok.9 for ; Tue, 05 May 2020 10:45:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=0d4t3WjdojD07U20/q5eVWp+2G5xuWU682MyxZ52/dk=; b=WbXsKMFIFpH6ExU8GPMs+ehXklgjz/p2eQPhb4qVM9RXiU5nErEMtpRDgTo/PuNeMl ylVJKR07XAtfhT5WIuD/HinW3vNWoGKPW1jz40Eoivc15+x8spW/VDhXOds2EvUkP1Gl SYfxEoqSuPtQnmM1BEA/8hzv0FeEd3MxXHlRs= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=0d4t3WjdojD07U20/q5eVWp+2G5xuWU682MyxZ52/dk=; b=nc4mTanOa8PVEWH7ECgBM378IT4NzZYgzdtrOmM60fWv/VHie4ix6S+GLLNLYTK/51 5Gk0sYvhYyG2jp4xZDB01EeXvF+S5j4yJHv7ayvo4idcg1oYgpFa4Y4jXFvoSy/KJR7h duhhSCz5XNNVUHYHZtlgSV2ysmIfBfO3m2dSerb0LysbzL/xBxtY8mDIV9ZLmp7PiZy0 vDuF3XqBncA1drc0ZyqZUQ5hXAghqsQyP1uKdizo27rM04082DO96BF5kCgXedKnwdGy ZZuYCz+1qkmGIVzTWF2yLnugtli/jIXqTx7f2Rf04YH07vrObgkI6C/pBRZUTVGJWdNV uTsw== X-Gm-Message-State: AGi0PuZi0tbACPGJ/mZbElbwB+7P3D3+OY3u0lmJKZ7i42b8wfy1UC/q L3wrV2PwSlh52uCypIL0P6ORdd818W03UU202rM6Lw== X-Received: by 2002:a02:b88e:: with SMTP id p14mr4548710jam.36.1588700708877; Tue, 05 May 2020 10:45:08 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Jonathan Richardson Date: Tue, 5 May 2020 10:44:57 -0700 Message-ID: Subject: Re: [PATCH] net: broadcom: fix a mistake about ioremap resource To: Markus Elfring Cc: Dejin Zheng , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, "David S. Miller" , Florian Fainelli , =?UTF-8?Q?Petr_=C5=A0tetiar?= , Ray Jui , Scott Branden , Stephen Boyd Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, May 5, 2020 at 12:20 AM Markus Elfring 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. > > I hope that other contributors can convince you to improve also this > commit message considerably. > Would you like to fix the spelling besides other wording weaknesses? How about this wording: Commit d7a5502b0bb8b ("net: broadcom: convert to devm_platform_ioremap_resource_byname()") inadvertently made idm_base and nicpm_base mandatory. These are optional properties. probe will fail when they're not defined. The commit is partially reverted so that they are obtained by platform_get_resource_byname() as before. amac_base can still be obtained by devm_platform_ioremap_resource_byname().