Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id AAE05C433F5 for ; Wed, 17 Nov 2021 16:42:51 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 8D7CA61BFB for ; Wed, 17 Nov 2021 16:42:51 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229997AbhKQQpr (ORCPT ); Wed, 17 Nov 2021 11:45:47 -0500 Received: from vps0.lunn.ch ([185.16.172.187]:38578 "EHLO vps0.lunn.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238842AbhKQQpm (ORCPT ); Wed, 17 Nov 2021 11:45:42 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lunn.ch; s=20171124; h=In-Reply-To:Content-Disposition:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:From:Sender:Reply-To:Subject: Date:Message-ID:To:Cc:MIME-Version:Content-Type:Content-Transfer-Encoding: Content-ID:Content-Description:Content-Disposition:In-Reply-To:References; bh=iqSiA3LmgA7H/XJNRSJpFE5oYX/xAJgapN7ANdzkkOY=; b=UFWbDCumNUu8hl3441QMaycJ4D 9FdiAy8fmiS6NZ0WyK0rBNvdY7wH7KIZg+Vhgij3MH71mDviNwGDETwUQ5NovnrQLLKgkMFFhpsiA l5/4hvWndDbd0H5Gf4LJDfEH1kViEc91eg0BZvjlmCCoJj2eQGVobdQygwjDLBN+9bKs=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1mnO0h-00DsK3-J1; Wed, 17 Nov 2021 17:42:11 +0100 Date: Wed, 17 Nov 2021 17:42:11 +0100 From: Andrew Lunn To: Jonas Gorski Cc: =?utf-8?B?UmFmYcWCIE1pxYJlY2tp?= , "David S. Miller" , Jakub Kicinski , Yang Yingliang , Dejin Zheng , netdev@vger.kernel.org, bcm-kernel-feedback-list@broadcom.com Subject: Re: [PATCH] Revert "net: ethernet: bgmac: Use devm_platform_ioremap_resource_byname" Message-ID: References: <20211117160718.122929-1-jonas.gorski@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20211117160718.122929-1-jonas.gorski@gmail.com> Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org 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