Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp3677896iog; Tue, 21 Jun 2022 03:49:29 -0700 (PDT) X-Google-Smtp-Source: AGRyM1vCjJ9vyBgadpaLFPXIFg8saYTw8GdKRQ2QXQ8fgcHQCA18KlMEl6Z/4YwyZnDJRyUI/uXT X-Received: by 2002:a17:906:1109:b0:711:da3b:bdcb with SMTP id h9-20020a170906110900b00711da3bbdcbmr23837406eja.210.1655808569082; Tue, 21 Jun 2022 03:49:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655808569; cv=none; d=google.com; s=arc-20160816; b=JU3tP9rY/wbLeRLYpYs2B8B7ehElibuHiSccp8+NnPO1lVuxv1aBsSGQisD+eBmIIA T9SqSnOsPOWwcVG0m+l3SjQr4GHBih4GvR1ZZgZ458MLl3ZXTBNlQpybGVIbwAcid9+T 6mlb1HUC32yRmpn/CKX5CTKwqc86jLj98RNOHJiaRf7C9vc0Y+njvjmZ7CD4taeZYYLG ufHnwZgGVlRGUIzJoEnhsWW8PHNrtskf7lRLIoSvfrebPpiQo2fFepld+P1Dfoz/reM0 YpW/I7CU6gxn2iPWjRwNVTHJEKOa3ZFuwkJBris5j49VpHdecn2isVG0uV0jlFeHJa0D ZKzA== 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=Vh0naLXKfGaI/wz1sI7ad1anZ++dFGVS52fTgaAz/6E=; b=mJ3/0xrNXdSy4xEutme355SrODoCwGJH3jBplqPMMCCdAMzaZKseG5hpf+GR9NPSx9 icN/4sWnWsX6F97fL6maZo5ctZ98+tJn1l3WTyL0tro14kwUD/tu2R7CIJwnJ7pm7gLg s89JILhfkw/W/tKCMc6Iv5fmy/Ll35pCvCOIhQUm4ttfABVVAGNHzV6dA2dDqOlpi/ZF 7/gIvd/fwq03CqkYeUys/6EtkymhOlq6Ho7XdJquKUSFW5oFqr0RXorIe+bAAL61wWOU zY+xHAT4Ub5LUmkpcfXk57gKwgtIVcsLiMeu9gbQ5FYwEje12mBPz+7bm9vqs0UZlA2O J8jQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@semihalf.com header.s=google header.b=HT2UAEe9; 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 eh1-20020a0564020f8100b00435804d26a3si5794854edb.265.2022.06.21.03.49.03; Tue, 21 Jun 2022 03:49:29 -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=HT2UAEe9; 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 S231626AbiFUKqm (ORCPT + 99 others); Tue, 21 Jun 2022 06:46:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42512 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1347789AbiFUKqZ (ORCPT ); Tue, 21 Jun 2022 06:46:25 -0400 Received: from mail-lj1-x232.google.com (mail-lj1-x232.google.com [IPv6:2a00:1450:4864:20::232]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A9B1829358 for ; Tue, 21 Jun 2022 03:46:23 -0700 (PDT) Received: by mail-lj1-x232.google.com with SMTP id g12so8863466ljk.11 for ; Tue, 21 Jun 2022 03:46:23 -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=Vh0naLXKfGaI/wz1sI7ad1anZ++dFGVS52fTgaAz/6E=; b=HT2UAEe9XjNzlZC0Jge5wXtsGk3r7Ou0lNZHdRCJxt1CKHh0xNbVVZ2sCb/OMbCZnO AhTyHfgX2ho38pqkyWYeDIozfGnxQId49Wy1P0/cwrWKuPkCasw4gf3hGwzffILNw0eg 4VrVBAQYEQdhGtv/WOYkndEJnIYWVrfnAHdyA8YdmtLoaCyPAGtKNoLhNBi1p45UU55h 3EWLdSLEauCoBx9KtoCqhjdTb+q8niKB+Fo6ZsklKdz/MYMgxY+QR05xK2GVNbmd/m1y lL2IqN5ibfu4txDaMWxbybmRAbT5h8pcxgLjfHdLLMzqf1IXWq9fZZJFhm/bymYWUlMg /cyQ== 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=Vh0naLXKfGaI/wz1sI7ad1anZ++dFGVS52fTgaAz/6E=; b=Yp1LnNdZZww5gQdJriE3HO8h2qCJei8GYuKyatTpLplLAeM8+DBoPY7/kdx/rhqfz3 imaB563hI9XSrU2ywMvRp5C1VKc+5VqpmCtcNsT9E0MOOq2sbxpkl7hw+I1VwmnLXpUI ZPp8olCTe5UTuvPH6adfofkNKZtBLvbFEjn9z7oZBTT7En5LndlrhhUlDNCt/a7X6p9a SE6ldeTRrORmVvKXegbPBXupkcKqEni0iyawkUm0lQF8jNLYyJJ5cdt5CiTO1kJB1Wlg lCnTAqcQF38+DGzv8mUklXbG8ElArMfoNTCiy+It14suE8ZdFT1M396IpAwaKvSc8eEI wnuw== X-Gm-Message-State: AJIora9Jhj43NbX+vKgkPjEJDF0AT4NEcHgY7/tXbM6wpLZwQsqS7tQx FyJjbpRdJsUUxnWUZbxOjAoMiTyrMjNK63OaaHnNdw== X-Received: by 2002:a2e:a58d:0:b0:25a:6348:9595 with SMTP id m13-20020a2ea58d000000b0025a63489595mr7729873ljp.72.1655808381943; Tue, 21 Jun 2022 03:46:21 -0700 (PDT) MIME-Version: 1.0 References: <20220620150225.1307946-1-mw@semihalf.com> In-Reply-To: From: Marcin Wojtas Date: Tue, 21 Jun 2022 12:46:12 +0200 Message-ID: Subject: Re: [net-next: PATCH 00/12] ACPI support for DSA To: Andrew Lunn , "Rafael J. Wysocki" , Len Brown Cc: Andy Shevchenko , Linux Kernel Mailing List , ACPI Devel Maling List , netdev , 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, Jon Nettleton 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:45 Andrew Lunn napisa=C5=82(a): > > > You beat me up to this. I also was about to mention that the problem wi= th such > > conversions (like this series does) is not in the code. It's simplest p= art. The > > problem is bindings and how you get them to be a standard (at least de = facto). > > De facto is easy. Get it merged. After that, i will simply refuse > anything else, the same way i and other Maintainers would refuse a > different DT binding. > > If the ACPI committee approve and publish a binding, we will naturally > accept that as well. So in the end we might have two bindings. But so > far in this whole ACPI for networking story, i've not heard anybody > say they are going to submit anything for standardisation. So this > might be a mute point. > I understand your concern and of course it's better to be on a safe side from the beginning. Based on the hitherto discussion under this patchset, I would split the question about standardization to 2 orthogonal topics: 1. Relation to the bus and enumeration: * As pointed out in another patch some switches can be attached to SPI or I2C. In such a case this is simple - SPISerialBus / I2CSerialBus structures in _CRS are included in the ACPI Spec. They allow to comprise more bus specific information and the code in acpi/scan.c marks those child devices as to be enumerated by parent bus. * MDIO bus doesn't have its own _CRS macro in the Spec, on the other hand the _ADR seems to be the only object required for proper operation - this was my base for proposed solution in patch 06/12. 2. The device description (unrelated to which bus it is attached) * In Linux and other OS's there is a great amount of devices conforming the guidelines and using only the standard device identification/configuration objects as per [1]. * Above do not contain custom items and entire information can be obtaine= d by existing, generic ACPI accessors - those devices (e.g. NICs, SD/MMC controllers and many others) are not explicitly mentioned in official standards. * The question, also related to this DSA case - is the ACPI device() hierarchical structure of this kind a subject for standardization for including in official ACPI specification? * In case not, where to document it? Is Linux' Documentation enough? I agree that in the moment of merge it becomes de facto standard ABI an= d it's worth to sort it out. Rafael, Len, any other ACPI expert - I would appreciate your inputs and clarification of the above. Your recommendation would be extremely helpful. Best regards, Marcin