Received: by 2002:a05:6a10:c604:0:0:0:0 with SMTP id y4csp1373177pxt; Sat, 7 Aug 2021 08:50:46 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxQd+fnzM5U4FxGIxddGb5p0fmpPSVP/7YR5yGyKFcZ4pHUaM9rs2DEXfPePVLxHJjfRG85 X-Received: by 2002:a02:394c:: with SMTP id w12mr14971560jae.125.1628351445932; Sat, 07 Aug 2021 08:50:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1628351445; cv=none; d=google.com; s=arc-20160816; b=zbgIeSD8kTLnK7plvCGsjBa1aXHaUbGFPKvtmtNdl7vMszkCyromlL8t98oP9WiOa3 R5BWNZ+hGTGtfWMAkOWX6/TcqncM3sFdEFCSzd2LpICBhbzWn0edhlDrpknozgIpqpGl qx/IHudIesDJ9Bnqx+1raw67V/zJ5uSr4YWweQvbYV3AJ1a4BgTzfz/Yv3qJtzcaWh3C rPue+9UIo90milPz/QKnOHxNLaMbLjjCdj5aOutaLF0+6oYj5ubCfgIgd30LHGU4N2R7 7F0PBfjkapr1HfGBTVqFXx8UTTbYihNK0hbWl0ms0NX/VJ544pFlD4jXkBftqFXvbkui LeKQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=hMRkLC9sX1iRCwMgCksqyJpH2Qs6Prl5IMtksM3Msb0=; b=bFPvvYzebd6ku35oGhZVpYaFEMmeVz9TwWGEfcwN16jPtuiWDQvQ8AyVCdsOSjQFPZ a8qX2ao2oztbaRP58DrdlArp7NvvcIB+3PpyhPnYKxBdtla4VMkDqKL1sKJiw8v5wP39 WDuVDWXdEuFuCyG/1YMa7EnrAHnvXT51S3eogVi4+eBXC17IGMEBXnkSN6vUu5vvNtrz rCCBFikJgWs+UJKg8OeCOm1BhizDlYEOhVskhDo/P6XFcRpyWppfvJmtRuLJV2sSzgCb UWI/ncuvSjWDHdiaXWi58K6ZOvo8ilK3RSA99jzpuqhDmFIi1QLHeyqpGkI3aaiAKn24 IQNw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b="a+Kv9/L2"; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id z7si11715996ilq.32.2021.08.07.08.50.33; Sat, 07 Aug 2021 08:50:45 -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=@lunn.ch header.s=20171124 header.b="a+Kv9/L2"; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231808AbhHGPt6 (ORCPT + 99 others); Sat, 7 Aug 2021 11:49:58 -0400 Received: from vps0.lunn.ch ([185.16.172.187]:38282 "EHLO vps0.lunn.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229828AbhHGPtv (ORCPT ); Sat, 7 Aug 2021 11:49:51 -0400 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=hMRkLC9sX1iRCwMgCksqyJpH2Qs6Prl5IMtksM3Msb0=; b=a+Kv9/L2NlWb5RJtcVgT0AdPYB esCRXzwCdwjzZzonljtfHsyoWjPcKPZJC7jzTG1rSqUuPCpHoBjBZmz4AUU2ewPQbCYqLoAbut1E7 FnoEUcjLYQS5f5kAk4b6r2XCngmb1ayYX9e3xm2JrTAvzcGneoXOT9DZGCaHhXpvJ6z0=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1mCOZg-00GVS5-Op; Sat, 07 Aug 2021 17:49:24 +0200 Date: Sat, 7 Aug 2021 17:49:24 +0200 From: Andrew Lunn To: Saravana Kannan Cc: Heiner Kallweit , Russell King , "David S. Miller" , Jakub Kicinski , Marc Zyngier , Neil Armstrong , Kevin Hilman , kernel-team@android.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v1 3/3] net: mdio-mux: Handle -EPROBE_DEFER correctly Message-ID: References: <20210804214333.927985-1-saravanak@google.com> <20210804214333.927985-4-saravanak@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210804214333.927985-4-saravanak@google.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Aug 04, 2021 at 02:43:32PM -0700, Saravana Kannan wrote: > When registering mdiobus children, if we get an -EPROBE_DEFER, we shouldn't > ignore it and continue registering the rest of the mdiobus children. This > would permanently prevent the deferring child mdiobus from working instead > of reattempting it in the future. So, if a child mdiobus needs to be > reattempted in the future, defer the entire mdio-mux initialization. > > This fixes the issue where PHYs sitting under the mdio-mux aren't > initialized correctly if the PHY's interrupt controller is not yet ready > when the mdio-mux is being probed. Additional context in the link below. > > Link: https://lore.kernel.org/lkml/CAGETcx95kHrv8wA-O+-JtfH7H9biJEGJtijuPVN0V5dUKUAB3A@mail.gmail.com/#t > Signed-off-by: Saravana Kannan Reviewed-by: Andrew Lunn Andrew