Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp3324666iog; Mon, 20 Jun 2022 17:16:44 -0700 (PDT) X-Google-Smtp-Source: AGRyM1vXWCrRD28LuEviBopPSqtkNt3Fr/0daTXaAuYrd9AJM95NbCYApp7jtSWZLmwd8flx44NA X-Received: by 2002:a17:90a:f3c3:b0:1ec:9f63:1330 with SMTP id ha3-20020a17090af3c300b001ec9f631330mr10354568pjb.165.1655770604621; Mon, 20 Jun 2022 17:16:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655770604; cv=none; d=google.com; s=arc-20160816; b=hDz1nZN8BJLwWrk57q+F+xHzxaeX4uzYOOGYA7gnWE1aM1OOBYEV3LVZjXZhBf1bcB 8bd24VhYBW1MNpucBEgB5kuG7MzC0hymjqzsnwYfpXLfjoMN75zVaGNeuQ+ipEuwZP0t Mk/WJiE8rKU9gZfDvZJ6sqENYzB+1AyitzQV9ibeLNHHfvbx87C8FqrXjQ7SfLaKCAn1 lKy3gFicuOUg9HVeIZhHutmULyMs7QWFMNiE/2zp0Y/XH0+cx2p8QOM5TTRdmh3l2RS5 n8+KLXRYN5L/2QimfkhgUIbAPjjUmgIz9ag/XoJBciwUoUOJgHXZioOh54UlNY1Oa5+T hpYA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=ur/MUBYcS1Q/QKNpXUCglSf5F59d0HWGTRVKBIepEDE=; b=0SeTmubUZrvRmqjg6Q1Vyk8VsVOMGyU5mcybpyK4sTzk/38AkrkuG5me/nCrfDOjuo 11G1gfRUWZlMkvAmVYwYcDIF5uKs/nQxOroeH8fyQwOBFpMOs2/w7mz75nDFLldeCMkV X0fvKf1RTdoQFp1VdsfyCCkDS7ZBdBqpJebEQT+/xMvA+tq+XHF4FDTRUieOwVQBHnOm hh2oVxRP5FcuzeU3LEX6Pbr+rtC1Qt9B2DI/Ae89qxck7q6ITWWgR0jEMBAKQZc8ExXx 5o+ng7wr8XLOzlVDOoTehQYIXvHljr521nNBpSB4MLeVgVwUhBYTcU3hbTA7dUEUJ3Cy a0zQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@semihalf.com header.s=google header.b=GNRt7tT9; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id g10-20020a056a000b8a00b00512e59d9bf9si18828740pfj.296.2022.06.20.17.16.32; Mon, 20 Jun 2022 17:16:44 -0700 (PDT) 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=@semihalf.com header.s=google header.b=GNRt7tT9; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1346958AbiFTXZR (ORCPT + 99 others); Mon, 20 Jun 2022 19:25:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47252 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1347354AbiFTXY6 (ORCPT ); Mon, 20 Jun 2022 19:24:58 -0400 Received: from mail-lj1-x233.google.com (mail-lj1-x233.google.com [IPv6:2a00:1450:4864:20::233]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2068127157 for ; Mon, 20 Jun 2022 16:21:54 -0700 (PDT) Received: by mail-lj1-x233.google.com with SMTP id b23so4950176ljh.7 for ; Mon, 20 Jun 2022 16:21:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=semihalf.com; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=ur/MUBYcS1Q/QKNpXUCglSf5F59d0HWGTRVKBIepEDE=; b=GNRt7tT9S9xvcwHyHM40dX+0JaFJIUhwyEwwLSabMcUU7w33ohJRv8TmTIzPcUpjdk FE7h/zE4Ge2KA3ZRWr9ghHl1SOIXB1mokPhl5UTIMIkubDtlr98Kg1tUlTecVnUR0ZjO NUbBvpqXCB5d2GXmh/Mm0j4YS7ZK7N0TCM/KL2G0IHEySgCZ4rpRLf/szNbIZhpWr1fh AoLJm2yGFojXcMtqpDKAYjjgVdt7xMxd0bPXvTg+mykdsnEQm4/XqG1kJAdPj7OaJqpK HuRDmP5r++IBnSOCeGCcDWqPABjceE1MEaHgMgZUVoWIbmExZRBmmMOGmzQAxVOd6J7/ uJUg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=ur/MUBYcS1Q/QKNpXUCglSf5F59d0HWGTRVKBIepEDE=; b=OcF7qNeaOUAoEdLrwfuxNBRsC2m87KOGJ0Q5mKcUC6UoyCJZh4Kw3ym2Pf6c/RX+k0 OpF05UbRbHvv/kBI6Ec9FiIlCESivazlGchjA2aoaszQd54B39I2VeB0WbNEZiab3FX5 hF3bL6hDVia8ej75sCyhdEMFtozPMmauqCtyaTdYE30xo3zgpnkKMJNMYWvmMujqlt4S uaMvO97Oq7kkb/1OjuXUkEMl85dm2ThnHjRLdcfSA7RUOK8Ut3c22L6+6gPohWpQsKoa bPJPb/rv44TWrPt+6FBalCzMvvddhEhb77Ees/F8a4hFgZ/nfyCXxnftEj6v9Ht/TTqN zgLg== X-Gm-Message-State: AJIora+X5VK42BBWnXU/ptinjkZJbrLINVw3nJvSGREZgKqQQ9mi0ORu zuG/wA5ophWv723FOt06E5WpLIQB2qn0Kva2q4TCnA== X-Received: by 2002:a2e:a58d:0:b0:25a:6348:9595 with SMTP id m13-20020a2ea58d000000b0025a63489595mr6664777ljp.72.1655767312454; Mon, 20 Jun 2022 16:21:52 -0700 (PDT) MIME-Version: 1.0 References: <20220620150225.1307946-1-mw@semihalf.com> <20220620150225.1307946-10-mw@semihalf.com> In-Reply-To: From: Marcin Wojtas Date: Tue, 21 Jun 2022 01:21:42 +0200 Message-ID: Subject: Re: [net-next: PATCH 09/12] Documentation: ACPI: DSD: introduce DSA description To: Andrew Lunn Cc: Linux Kernel Mailing List , ACPI Devel Maling List , netdev , "Rafael J. Wysocki" , Andy Shevchenko , Len Brown , vivien.didelot@gmail.com, Florian Fainelli , Vladimir Oltean , "David S. Miller" , Eric Dumazet , Jakub Kicinski , pabeni@redhat.com, Russell King - ARM Linux , Heiner Kallweit , Grzegorz Bernacki , Grzegorz Jaszczyk , Tomasz Nowicki , Samer El-Haj-Mahmoud , upstream@semihalf.com Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 pon., 20 cze 2022 o 20:19 Andrew Lunn napisa=C5=82(a): > > On Mon, Jun 20, 2022 at 05:02:22PM +0200, Marcin Wojtas wrote: > > Describe the Distributed Switch Architecture (DSA) - compliant > > MDIO devices. In ACPI world they are represented as children > > of the MDIO busses, which are responsible for their enumeration > > based on the standard _ADR fields and description in _DSD objects > > under device properties UUID [1]. > > I would say this is too limiting. In the DT world, they are not > limited to MDIO children. They can be I2C children, SPI children > etc. There are plenty of I2C switches and SPI switches. This is > actually something we got wrong with the first DT binding. We simply > translated the platform data in DT, and at that time, there was only > MDIO switches supported. That was a real blocker to I2C, SPI and MMIO > devices until we discarded the DT binding and had a second go. > > DSA switches are just devices on a bus, any sort of bus. > > Look at Documentation/devicetree/binding/net/dsa/dsa.yaml. There is no > reference to MDIO. > > I would expect the same with ACPI. Somehow the bus enumerates and > instantiates a device on the bus. The device then registers itself > with the DSA core. The DSA core does not care what sort of bus it is > on, that is the drivers problem. > Thanks for mentioning the other options. It makes things easier and the MDIO as current strict dependency will be dropped. Best regards, Marcin