From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.1 required=3.0 tests=DKIM_INVALID,DKIM_SIGNED, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id CBD50C3A5A2 for ; Fri, 20 Sep 2019 19:13:58 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id A87D7208C0 for ; Fri, 20 Sep 2019 19:13:58 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (1024-bit key) header.d=lunn.ch header.i=@lunn.ch header.b="vRbwoE9G" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2393333AbfITTN4 (ORCPT ); Fri, 20 Sep 2019 15:13:56 -0400 Received: from vps0.lunn.ch ([185.16.172.187]:57884 "EHLO vps0.lunn.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2390701AbfITTNz (ORCPT ); Fri, 20 Sep 2019 15:13:55 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lunn.ch; s=20171124; h=In-Reply-To:Content-Transfer-Encoding:Content-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=j6aeJv8FCQ1P8z8CISAfuVxQoFXejEKFHklHhWZXL94=; b=vRbwoE9GJJ7K+biRw5TBYh8SKR NR+0iX4ps/HGiBhTXyIrZJngJFAKe7h7+dh0j9gZ2Ie2pKxXQeIVos3TwG6FUkPf1z9hvZAn0MdO6 cN/l+hdUSdJ7E+HPMs0Dtff+XuNNE19aQ4vgsCvdN/8tNOAtaj9JWuS9GcKZp8YOT+tI=; Received: from andrew by vps0.lunn.ch with local (Exim 4.89) (envelope-from ) id 1iBOLm-00076a-OK; Fri, 20 Sep 2019 21:13:50 +0200 Date: Fri, 20 Sep 2019 21:13:50 +0200 From: Andrew Lunn To: Markus Elfring Cc: netdev@vger.kernel.org, Alexandre Belloni , Florian Fainelli , "David S. Miller" , Heiner Kallweit , LKML , kernel-janitors@vger.kernel.org Subject: Re: [PATCH 2/2] net/phy/mdio-mscc-miim: Move the setting of mii_bus structure members in mscc_miim_probe() Message-ID: <20190920191350.GI3530@lunn.ch> References: <189ccfc3-d5a6-79fd-29b8-1f7140e9639a@web.de> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.5.23 (2014-03-12) Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org On Fri, Sep 20, 2019 at 09:03:57PM +0200, Markus Elfring wrote: > From: Markus Elfring > Date: Fri, 20 Sep 2019 20:42:42 +0200 > > Move the modification of some members in the data structure “mii_bus” > for the local variable “bus” directly before the call of > the function “of_mdiobus_register” so that this change will be performed > only after previous resource allocations succeeded. Hi Markus I'm not sure it is worth making this change. The resource allocations succeeds 99.9999% of the time. It is a chunk of MMIO, not some gpio, or i2c device which might give us EPROBE_DEFERRED. So we are not wasting anything in reality. Andrew