Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp4981643iog; Wed, 22 Jun 2022 09:29:42 -0700 (PDT) X-Google-Smtp-Source: AGRyM1tO8A0IIlakKn1m504jAxf27U7Wv2JYFDobsPBBiAerb+7+rs6CizZ/9KK1M3vZGvE40Fo5 X-Received: by 2002:a17:90a:1588:b0:1e0:a45c:5c1 with SMTP id m8-20020a17090a158800b001e0a45c05c1mr4650614pja.65.1655915382231; Wed, 22 Jun 2022 09:29:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655915382; cv=none; d=google.com; s=arc-20160816; b=gmly9BZWWtMzFEme7o/TotGZA1EMv+ywUrQSEtmAfD09G1DUfyFyA1d5eygWhdOh7P F8lhg9+E9QyHqO9oeASi87fCDE9zGtOvFgqf8NwTKQzZ/JW2XLqsBrNM9zmGv5Z84FfH UDBTu4ln0u9vGB4FFyxHmSIvm0MRTu5MhiVg4SWSM7+tntrqSMm46XqSuroewu64aC4E GJTDOQLUiw5Gr9e3f59Yn8skM6cXfevwPW3XJcQfugpFahsBdCL1hCPQZodRpLGXsntN sZF8TUQdc7AJ+crpf/kDluJ43kd7soWWQuwv4X1YZvbogb6+/0/JLD7jqpgk4rjR9lfd ulLg== 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=DSUF0Z6t3P5aw01VlWaFHORMHJ/6zM1aeGUz9joqhm0=; b=sbxgiflSLNIoZ69V0ISRfuNLNq1sscIcib2rAaFslhhC33CKMK6cqrEvbCBmq9RxRf X+xMCrKVhYFclGdvRatuY4M9EZ7iPYFnS8/T0fsQgjScrKiSE3vs6bDjCJbZkJYKnyDJ jZdLw6ib0dFPmJNghXIu0FObT4ZYoTJSqdeZtpu3fbMxnKmrKQHgDKD9Ppg9ildyyki2 8JKSsBCpz6Us987/VabiyFMaTH99ovlRs241JL3V3buuIyz40ApyBWI6iQvZgWKDd6Kl a/9S5yNf9E48dsi3xCGUDbXiJ9qcc6UH3CqiHT5dNgEb9h57EBiCAlAr82IBLqWSGNLc p1+g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=XiNfzk3t; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id s3-20020a634503000000b003fdb97d8757si23640478pga.378.2022.06.22.09.29.29; Wed, 22 Jun 2022 09:29:42 -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=@gmail.com header.s=20210112 header.b=XiNfzk3t; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1359020AbiFVQPd (ORCPT + 99 others); Wed, 22 Jun 2022 12:15:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52144 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1355693AbiFVQPb (ORCPT ); Wed, 22 Jun 2022 12:15:31 -0400 Received: from mail-ed1-x531.google.com (mail-ed1-x531.google.com [IPv6:2a00:1450:4864:20::531]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BA4A731203; Wed, 22 Jun 2022 09:15:30 -0700 (PDT) Received: by mail-ed1-x531.google.com with SMTP id fd6so21836828edb.5; Wed, 22 Jun 2022 09:15:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=DSUF0Z6t3P5aw01VlWaFHORMHJ/6zM1aeGUz9joqhm0=; b=XiNfzk3th87p0A34Gi/ZxxC5jsmtSS/oXmK+DUvuWisaY6is9s1IOvLBEVi6W7L6hF Ngba9AnDj2OrsYtI7rv3vpIV6jDr1dKVncX1HW0NFYOB2QN9JqeM/1VN5BxBNnxQgJkx p24UBcrxF5ShLw8edDs+BZ5afLauerd0ElRUdcsx1ZCmjJvCSq0/HBafwFExXpNerkoD zR8srdymn0if7NvprLm5x1NNtZgr2wxhLMUTtuD64GYqExktWd02o2PgEzt82uA80WgK gZ6awwKw3RJQAEXfsLy6MvktxKf0hnjH8k5NEaf5pltirimTqTUZDOZ9jKWTptDazj2l V+Dg== 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=DSUF0Z6t3P5aw01VlWaFHORMHJ/6zM1aeGUz9joqhm0=; b=t1yajpc4QwcoUKo8HlFD5rQSErBvhhxlYdr/dboqBHU7akJw0DeR9L7WcdcI3Xco3A IZfbi57IEpqdP7ENqxh5kx22MUy3Fg69MNzSb1DrYJN8t/Krm7se2U5VjhmDJji00ww2 eY1VSCEEzz7GK2CV7DcblgzaIELcG/PK7FaVTas8H6yROV6FGImWE1cVbZhr+S4VC6HN yze2mOPAXsVznK3eMLSCUziUKAsmq79JGOo7j1Gf11jwwThGAWQxyzM15lmbp8YQnzk/ uK5wUWAPqiyEfseYTLqku4McQjCro1R1Fagy3Yg+dm8+9zTBrVl5zO4B9Jr+oEba7v3i ndHA== X-Gm-Message-State: AJIora9irJapvNxGwOiXiMNiGSeaGggOzGEdN2gGSB2U+fjALnswILKp yFrvdvR2Aj1UkKZQ+5sApuD7BFz/RtIjWFeDzi0= X-Received: by 2002:a05:6402:f8d:b0:435:6df2:68a with SMTP id eh13-20020a0564020f8d00b004356df2068amr5075901edb.209.1655914529131; Wed, 22 Jun 2022 09:15:29 -0700 (PDT) MIME-Version: 1.0 References: <20220620150225.1307946-1-mw@semihalf.com> In-Reply-To: From: Andy Shevchenko Date: Wed, 22 Jun 2022 18:14:52 +0200 Message-ID: Subject: Re: [net-next: PATCH 00/12] ACPI support for DSA To: Marcin Wojtas Cc: Andrew Lunn , Andy Shevchenko , "Rafael J. Wysocki" , Len Brown , Linux Kernel Mailing List , ACPI Devel Maling List , netdev , Vivien Didelot , Florian Fainelli , Vladimir Oltean , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , 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,FREEMAIL_FROM, 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 On Wed, Jun 22, 2022 at 5:44 PM Marcin Wojtas wrote: > > Hi, > > wt., 21 cze 2022 o 12:46 Marcin Wojtas napisa=C5=82(a): > > > > 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 proble= m with such > > > > conversions (like this series does) is not in the code. It's simple= st part. 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 naturall= y > > > 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 obt= ained 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 AB= I and > > 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. > > > > Thank you all for vivid discussions. As it may take some time for the > MDIOSerialBus _CRS macro review and approval, for now I plan to submit > v2 of_ -> fwnode_/device_ migration (patches 1-7,11/12) and skip > ACPI-specific additions until it is unblocked by spec extension. Sounds good to me (as from fwnode perspective). --=20 With Best Regards, Andy Shevchenko