[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <YZUw4w3NsfuDO4qS@lunn.ch>
Date: Wed, 17 Nov 2021 17:42:11 +0100
From: Andrew Lunn <andrew@...n.ch>
To: Jonas Gorski <jonas.gorski@...il.com>
Cc: Rafał Miłecki <rafal@...ecki.pl>,
"David S. Miller" <davem@...emloft.net>,
Jakub Kicinski <kuba@...nel.org>,
Yang Yingliang <yangyingliang@...wei.com>,
Dejin Zheng <zhengdejin5@...il.com>, netdev@...r.kernel.org,
bcm-kernel-feedback-list@...adcom.com
Subject: Re: [PATCH] Revert "net: ethernet: bgmac: Use
devm_platform_ioremap_resource_byname"
On Wed, Nov 17, 2021 at 05:07:18PM +0100, Jonas Gorski wrote:
> This reverts commit 3710e80952cf2dc48257ac9f145b117b5f74e0a5.
>
> Since idm_base and nicpm_base are still optional resources not present
> on all platforms, this breaks the driver for everything except Northstar
> 2 (which has both).
>
> The same change was already reverted once with 755f5738ff98 ("net:
> broadcom: fix a mistake about ioremap resource").
>
> So let's do it again.
Hi Jonas
It is worth adding a comment in the code about them being optional. It
seems like bot handlers are dumber than the bots they use, but they
might read a comment and not make the same mistake a 3rd time.
Andrew
Powered by blists - more mailing lists