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=-3.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED 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 744CAC433ED for ; Sun, 25 Apr 2021 00:37:25 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 46A4B613C1 for ; Sun, 25 Apr 2021 00:37:25 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229771AbhDYAiC (ORCPT ); Sat, 24 Apr 2021 20:38:02 -0400 Received: from vps0.lunn.ch ([185.16.172.187]:39578 "EHLO vps0.lunn.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229687AbhDYAiC (ORCPT ); Sat, 24 Apr 2021 20:38:02 -0400 Received: from andrew by vps0.lunn.ch with local (Exim 4.94) (envelope-from ) id 1laSlq-000tTD-Vf; Sun, 25 Apr 2021 02:37:10 +0200 Date: Sun, 25 Apr 2021 02:37:10 +0200 From: Andrew Lunn To: Linus Walleij Cc: Rob Herring , netdev , "David S . Miller" , Heiner Kallweit , Russell King , Zoltan HERPAI , Raylynn Knight , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" Subject: Re: [PATCH 1/3 net-next v3] net: ethernet: ixp4xx: Add DT bindings Message-ID: References: <20210423082208.2244803-1-linus.walleij@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org On Sun, Apr 25, 2021 at 02:24:26AM +0200, Linus Walleij wrote: > On Fri, Apr 23, 2021 at 4:49 PM Andrew Lunn wrote: > > > (...) it should be impossible for multiple devices to > > instantiate an MDIO bus. But with device tree, is that still true? > > Should there be validation that only one device has an MDIO bus in its > > device tree? > > This would be more of a question to Rob. Hi Linus Sorry. I was thinking C code. The driver already has the global variable mdio_bus. It is initially a NULL pointer. It gets sent when the first MDIO bus driver probes. If it is not NULL when an MDIO bus driver probes, throw an error. Andrew