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 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 5ECA4C433F5 for ; Thu, 30 Sep 2021 13:32:16 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 3B0D561555 for ; Thu, 30 Sep 2021 13:32:16 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1350730AbhI3Nd5 (ORCPT ); Thu, 30 Sep 2021 09:33:57 -0400 Received: from vps0.lunn.ch ([185.16.172.187]:41044 "EHLO vps0.lunn.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1350215AbhI3Ndw (ORCPT ); Thu, 30 Sep 2021 09:33:52 -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=0141hjdvYnZ0004bBaZDxqKz05YDhXafXUnAytuAYqY=; b=GVYNAoA3POXh3HF81JD5vbzbta Pjf9ml4mzJYtODOChVuQKypjgDYUHvs2Fv2iGGbUZT3Uk3Gg6yxozcu4SGtXF1d4GrsVtYXhMmWD0 3vWXmPmN+jbqkXPcqSlImTMPs8cn0hxafJI4mURth+mISBm5hGDLTjhLnWIg1tvbZAGA=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1mVwAS-008xC8-21; Thu, 30 Sep 2021 15:32:08 +0200 Date: Thu, 30 Sep 2021 15:32:08 +0200 From: Andrew Lunn To: "Russell King (Oracle)" Cc: =?utf-8?B?UmFmYcWCIE1pxYJlY2tp?= , Heiner Kallweit , Network Development , Florian Fainelli , BCM Kernel Feedback , Vivek Unune Subject: Re: Lockup in phy_probe() for MDIO device (Broadcom's switch) Message-ID: References: <5715f818-a279-d514-dcac-73a94c1d30ef@gmail.com> <1e4e40ba-23b8-65b4-0b53-1c8393d9a834@gmail.com> <955416fe-4da4-b1ec-aadb-9b816f02d7f2@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org > I should also point out that as this b53 driver that is causing the > problem only exists in OpenWRT, this is really a matter for OpenWRT > developers rather than mainline which does not suffer this problem. > I suspect that OpenWRT developers will not be happy with either of > the two patches I've posted above - I suspect they are trying to > support both DSA and swconfig approaches with a single DT. That can > be made to work, but not with a PHYLIB driver being a wrapper around > the swconfig stuff (precisely because there's no phy_device in this > scenario.) > > The only reason to patch mainline kernels would be to make them more > robust, and maybe to also make an explicit statement about what isn't > supported (having a phy_driver with its of_match_table member set.) I agree with you here. This is an OpenWRT problem. We would hopefully catch such a driver at review time and reject it. We could make it more robust in mainline, but as you said, OpenWRT developers might not actually like it more robust. Andrew