Received: by 2002:a05:6358:a55:b0:ec:fcf4:3ecf with SMTP id 21csp3084459rwb; Mon, 16 Jan 2023 03:35:15 -0800 (PST) X-Google-Smtp-Source: AMrXdXt9flH9o/3IdmgFop8NSwonkCwhfJJXUPrnkWJEBzhC0c1yPqrjIz54W2pFaPfuec+/Xt4i X-Received: by 2002:a17:90a:ce8e:b0:227:22a6:cfdd with SMTP id g14-20020a17090ace8e00b0022722a6cfddmr27497876pju.17.1673868915229; Mon, 16 Jan 2023 03:35:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673868915; cv=none; d=google.com; s=arc-20160816; b=oLa2fepptm+Rs0rbz22Uzw782iB+XISHUkWocepz8tDVTz9b9rDnG9vwlJ8QqpxpS5 BO9WkONNkTQaOI6MbBRSzKDdrmBVkBTaQEncQv7uWTdjktfFW1DlsyMglVuVQ9dLfLiD 55YrYJ9v0fMki6DufP2EfwW44DVSKxXv7kDGjGuYUTYZxvkSCoyeZjTb/AbR/pkyYoTk 2YX3mLohk7c2ZPCRc8QhnUzO3zAsHXyZFNkIamy/MW2jx/5hfuXFYoNPRerBcn01NwPK T67+QwQfcyzRKrBc6smHC8GUW9/g0BSf+6q4aaabpZ/LodG89qqVrogqAWIlQJB+EYB4 VqBg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=iKsbPmPOxLmnfubqPTJ5H1djw5UST5WyViZLMbpdVKo=; b=TbfeClpYRDi5/QOiX2Olxwb/6a6ZTFDk9kBMeNW27MgV2F4K5W4E4V4NWAxeagztCG fEtDtUyNnfPzYMeiek2ylQciDxg8+dcFXnOtpJV2U03AXdi+t+OZA2FCqQb04wMzL0D9 CheNW0ALgVYgICEMdqidsaJa/LDs69tg8HZcvhi4+FGlB7etVqPVj7x7fYyTrQlqK5ol 0rk0/Gl+1FluD3OFKWSqL5qFOO45eSfdnBcy5/5ptMhLG4zfxGDdXNIbKDfZoMem1cIE 31Vu7w1RluLU9ELgnheLqJhFptnrqwAjNZp01Vo2SsEcuB+kKn+VPtsznE9CNMm0E77a GsTA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail (test mode) header.i=@armlinux.org.uk header.s=pandora-2019 header.b=018EaVFy; 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=fail (p=NONE sp=NONE dis=NONE) header.from=armlinux.org.uk Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 22-20020a17090a0c1600b00213ff43fdf1si29967148pjs.185.2023.01.16.03.35.09; Mon, 16 Jan 2023 03:35:15 -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=fail (test mode) header.i=@armlinux.org.uk header.s=pandora-2019 header.b=018EaVFy; 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=fail (p=NONE sp=NONE dis=NONE) header.from=armlinux.org.uk Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230238AbjAPKWS (ORCPT + 51 others); Mon, 16 Jan 2023 05:22:18 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39010 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229446AbjAPKWM (ORCPT ); Mon, 16 Jan 2023 05:22:12 -0500 Received: from pandora.armlinux.org.uk (pandora.armlinux.org.uk [IPv6:2001:4d48:ad52:32c8:5054:ff:fe00:142]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 714441A943; Mon, 16 Jan 2023 02:22:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=armlinux.org.uk; s=pandora-2019; h=Sender:In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Reply-To: Content-Transfer-Encoding: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=iKsbPmPOxLmnfubqPTJ5H1djw5UST5WyViZLMbpdVKo=; b=018EaVFyuOwt62sRzgWWnmFf3j dQ5EzGmQPrnj2doVCQdCX53P0hgvXrD59HW6dNtzk5TzYoNGH/4kDdlYFNwyEe4lqcGWXzsD+D192 gkWLEaEQueeuz1pJKnC8zt9ygskjdExEhp0IoQrfY7RDjXZdg0ZeyAx48xhtLKzTSWxRIem9t9rH6 vxNn1bLX4R5UkZ2JNR9qP+EW6zHZr2oq3n5ztpFN6pLufHwQIeooqVjb/NqOl/spLhwvthK1v7Bdn q2l/nWvHM1RZXT9blqw2nl+r0S6fCG0ODLVS8GKd78lPIC+Q7N7RlYRAyPNeszbpOvtgFcwcBqfpV BAucfrIQ==; Received: from shell.armlinux.org.uk ([fd8f:7570:feb6:1:5054:ff:fe00:4ec]:36118) by pandora.armlinux.org.uk with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1pHMcn-0004Yz-9q; Mon, 16 Jan 2023 10:21:56 +0000 Received: from linux by shell.armlinux.org.uk with local (Exim 4.94.2) (envelope-from ) id 1pHMcj-0005va-Fb; Mon, 16 Jan 2023 10:21:53 +0000 Date: Mon, 16 Jan 2023 10:21:53 +0000 From: "Russell King (Oracle)" To: Pierluigi Passaro Cc: Andrew Lunn , Pierluigi Passaro , Lars-Peter Clausen , "hkallweit1@gmail.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] net: mdio: force deassert MDIO reset signal Message-ID: References: <20230115161006.16431-1-pierluigi.p@variscite.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: Russell King (Oracle) 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_NONE,SPF_NONE 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 On Mon, Jan 16, 2023 at 09:44:01AM +0000, Pierluigi Passaro wrote: > I can't really understand why the MDIO bus must check the PHY presence. > Other busses try the communication only while probing the slaves, > never before. That is not true. Any bus that relies on hardware identification to bind drivers reads the identifying information prior to probing. For example, PCI, USB, AMBA to name a few. AMBA didn't used to have this problem, but does now - but at least under AMBA there's a bit more standardisation to what needs to be done. With ethernet PHYs, what's needed is highly platform specific. -- RMK's Patch system: https://www.armlinux.org.uk/developer/patches/ FTTP is here! 40Mbps down 10Mbps up. Decent connectivity at last!