Received: by 2002:a05:6358:a55:b0:ec:fcf4:3ecf with SMTP id 21csp3519045rwb; Mon, 16 Jan 2023 09:02:54 -0800 (PST) X-Google-Smtp-Source: AMrXdXtcXrmCm0rgBHw/QpxxYqBsWG83hfcryDYQA+Tet6gr79TXgTHnwBgyDyUudyTuJIrKisLj X-Received: by 2002:a17:90a:8915:b0:223:ec2c:f40 with SMTP id u21-20020a17090a891500b00223ec2c0f40mr92927582pjn.30.1673888574735; Mon, 16 Jan 2023 09:02:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673888574; cv=none; d=google.com; s=arc-20160816; b=cHrjt8zDadT2Aoj1z95SajS77DIpEKssj0W/w3FU0E/1eVIb7I6ipYCuzLB1Iv9Mqa 9W1sRCNAhBrLeXPizObAvAnNrw76+/trkmmZgSzS9YGP8t86yIED7BNW++D4/r295LG5 ZjVGn4EUC/nI6zSNJe2LFcRqbmqvati0P2SIl+/xUongo9xndBamugH3HmpPRLMOAR5W DK8Ixs1Ha0yX8MyIh3IQq1pQNxDkwAfwkm9B3seDuS2OXCky+rpHTiOVO3+Sr+2FIHTF eN1A/wihhQK06j6P24j2kVCPCMO+EzsxGxqoFb0cM6Dvx0lVp2NGEuQxjdEcMqUwM+2l DHrA== 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-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=QajF265tJ0WvkwuQz9gjguYri6Y5RnP6Kr8WpdzadyU=; b=pgjVD81G8vufEp8LVti1F0Aq4sM/qCpFdE//srYnSbsbzCWCBUbjUDox74XYEbujyK WrooaTu6pYslN5cN9hbU+ms6bRGy6F+9lD4vTJiTJs/CoJI6Y1ODHgu4pCouC27fpKMn P4nDj9b9eP9tHHxiR6GpuuJyALKWTRZA6g7qsxcWGp+kFVQxwlpXQ05s1cVr2Ug8NQ/O Bts8PC2kl2t2dNQXmGMthaT0v/+SDD0ewzMzG6/vVqNX9vU2QT7Ui3oTUDcxlcKYFcDn MQueFRTQD2qdjrc6Bopnr/tIVy042Tc/SkDuc0pF+bqdZxD8mlfgxzZ2XGiOapzAGLoq HhqA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=o1Ao0LKk; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=lunn.ch Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l71-20020a63884a000000b004b68997578esi18726408pgd.61.2023.01.16.09.02.35; Mon, 16 Jan 2023 09:02:54 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=o1Ao0LKk; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=lunn.ch Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229560AbjAPPfW (ORCPT + 50 others); Mon, 16 Jan 2023 10:35:22 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52324 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230458AbjAPPem (ORCPT ); Mon, 16 Jan 2023 10:34:42 -0500 Received: from vps0.lunn.ch (vps0.lunn.ch [156.67.10.101]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 098244EF9; Mon, 16 Jan 2023 07:32:31 -0800 (PST) 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-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=QajF265tJ0WvkwuQz9gjguYri6Y5RnP6Kr8WpdzadyU=; b=o1 Ao0LKkB6DMZq2hTu7weiDdpyHpNYITfKyZdvoTFXZfUrOO6GQSOhkvpJ5kP6RkdBhsxoE4BLlyGIS mI93lhuZ+e1U6pH7ldMxn8DIQWvPBd71xnCnF4yZeO8MHDxFArDaXpEmfVG/tekmKWOxn1xb6K+lj Q8ecZ/ibyw3Gboc=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1pHRTB-002F0G-7T; Mon, 16 Jan 2023 16:32:21 +0100 Date: Mon, 16 Jan 2023 16:32:21 +0100 From: Andrew Lunn To: Pierluigi Passaro Cc: Pierluigi Passaro , "wei.fang@nxp.com" , "shenwei.wang@nxp.com" , "xiaoning.wang@nxp.com" , "linux-imx@nxp.com" , "davem@davemloft.net" , "edumazet@google.com" , "kuba@kernel.org" , "pabeni@redhat.com" , "netdev@vger.kernel.org" , "linux-kernel@vger.kernel.org" , Eran Matityahu , Nate Drude , Francesco Ferraro Subject: Re: [PATCH v2] net: fec: manage corner deferred probe condition Message-ID: References: <20230115213804.26650-1-pierluigi.p@variscite.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_PASS,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > This is the setup of the corner case: > - FEC0 is the owner of MDIO bus, but its own PHY rely on a "delayed" GPIO > - FEC1 rely on FEC0 for MDIO communications > The sequence is something like this > - FEC0 probe start, but being the reset GPIO "delayed" it return EPROBE_DEFERRED > - FEC1 is successfully probed: being the MDIO bus still not owned, the driver assume > ? that the ownership must be assigned to the 1st one successfully probed, but no > ? MDIO node is actually present and no communication takes place. So semantics of a phandle is that you expect what it points to, to exists. So if phy-handle points to a PHY, when you follow that pointer and find it missing, you should defer the probe. So this step should not succeed. > - FEC0 is successfully probed, but MDIO bus is now assigned to FEC1 > and cannot? and no communication takes place Andrew