Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp4653846iog; Wed, 22 Jun 2022 03:14:36 -0700 (PDT) X-Google-Smtp-Source: AGRyM1ud5NSroJ4XA13cQ8/Gs8LdqKRvd+qQBECrG9rZpueEJ2OJDBA2GKVeN03bCIgj+oxnlewm X-Received: by 2002:a17:90a:fd17:b0:1ec:92c0:575 with SMTP id cv23-20020a17090afd1700b001ec92c00575mr22283337pjb.55.1655892876396; Wed, 22 Jun 2022 03:14:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655892876; cv=none; d=google.com; s=arc-20160816; b=xzuhdbKkRvAs4t5nOgtmznkmBsbDVtb51CtbWi2NEZaXGQR2TeB5uy/rLxflOX++24 vqXQHhc/PcZ0vDn5a6rVqwb5hKHp+qd+jVPGyylmUbGzfq2fhAODqg4DzlmjSq5BWqti /kQk7yepo3kQzQ6kSuhRq9stdTx67WinSGph4op2xQ2unkhrLen7XVwtB5cC9vUcESrZ Yf5TKx988xi45a4hMVU+aRyASJZ3mcc2/i93fac/k2vtrFDLypi41j28/XqolWV6YBM4 nlDU//QXq2OPIBLrREUS2AIbYyOfcl2mtT8zVANh7vui7EtHOnYug00eSrxo5fIn3ymb aBcw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=UBYcbr5Blkb1m1XbSmhN6zU/XE1KbkQTUN0OktUTIP8=; b=QfAEkMk12CSKTszfaFIcUCnlrk9jEI+UCuua7js3JTM4o03qy6+fIi4NbjaJssm/wj JrqNIuX7LcUMbqispOJUkr4DhJySfl/bL7uHy8eQUC62Ia9gmSlSWwxi2PovB+TjVviK DBov/OzcwFdJG7SpedtcCzoPBKkgyk76nv2oDlni35liuUCPtThSas+CP2gksPj6LAWn t4zOMDwpEpG9VDhDJhRROiCIrKvozh8UCeMYmoxIXEfocSaPHzM1FSgOftwlKvDhoxhO ziUmBZiohygyz565xfTvu9hobE6k+Y/r1Yvx8dso4GJNjmueK9sagJ81E0//OsNy6Fyn awqQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=H+64lTma; 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 p9-20020a170902f08900b00169077429a4si19409644pla.344.2022.06.22.03.14.23; Wed, 22 Jun 2022 03:14:36 -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=@lunn.ch header.s=20171124 header.b=H+64lTma; 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 S231732AbiFVJ72 (ORCPT + 99 others); Wed, 22 Jun 2022 05:59:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51732 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237443AbiFVJ7Y (ORCPT ); Wed, 22 Jun 2022 05:59:24 -0400 Received: from vps0.lunn.ch (vps0.lunn.ch [185.16.172.187]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2D5F13A1AF; Wed, 22 Jun 2022 02:59:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lunn.ch; s=20171124; h=In-Reply-To:Content-Transfer-Encoding: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=UBYcbr5Blkb1m1XbSmhN6zU/XE1KbkQTUN0OktUTIP8=; b=H+ 64lTmas6Byuhd/uije30ow2tTek3n1bIjT2R/eSXCX4uXU7gP+GlF4mu89gZr6rhnK/4rd18a6qgh 9C7r7PcdWKuFnHOZ0M+WwZAXGQq7x8O3dTh3NatD96pdKgtK/LSO8YXnXtlMWF7sijtW9Hw1aENzX dwNNF+cFxmIeVz4=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1o3wal-007ppS-Mh; Wed, 22 Jun 2022 11:24:07 +0200 Date: Wed, 22 Jun 2022 11:24:07 +0200 From: Andrew Lunn To: Marcin Wojtas Cc: Andy Shevchenko , Linux Kernel Mailing List , ACPI Devel Maling List , netdev , "Rafael J. Wysocki" , 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 Subject: Re: [net-next: PATCH 09/12] Documentation: ACPI: DSD: introduce DSA description Message-ID: References: <20220620150225.1307946-1-mw@semihalf.com> <20220620150225.1307946-10-mw@semihalf.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_PASS,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 11:08:13AM +0200, Marcin Wojtas wrote: > wt., 21 cze 2022 o 13:42 Andy Shevchenko > napisaƂ(a): > > > > On Tue, Jun 21, 2022 at 01:18:38PM +0200, Andrew Lunn wrote: > > > On Tue, Jun 21, 2022 at 02:09:14PM +0300, Andy Shevchenko wrote: > > > > On Mon, Jun 20, 2022 at 09:47:31PM +0200, Andrew Lunn wrote: > > > > ... > > > > > > > > + Name (_CRS, ResourceTemplate () > > > > > > + { > > > > > > + Memory32Fixed (ReadWrite, > > > > > > + 0xf212a200, > > > > > > + 0x00000010, > > > > > > > > > > What do these magic numbers mean? > > > > > > > > Address + Length, it's all described in the ACPI specification. > > > > > > The address+plus length of what? This device is on an MDIO bus. As > > > such, there is no memory! It probably makes sense to somebody who > > > knows ACPI, but to me i have no idea what it means. > > > > I see what you mean. Honestly I dunno what the device this description is for. > > For the DSA that's behind MDIO bus? Then it's definitely makes no sense and > > MDIOSerialBus() resources type is what would be good to have in ACPI > > specification. > > > > It's not device on MDIO bus, but the MDIO controller's register itself Ah. So this is equivalent to CP11X_LABEL(mdio): mdio@12a200 { #address-cells = <1>; #size-cells = <0>; compatible = "marvell,orion-mdio"; reg = <0x12a200 0x10>; clocks = <&CP11X_LABEL(clk) 1 9>, <&CP11X_LABEL(clk) 1 5>, <&CP11X_LABEL(clk) 1 6>, <&CP11X_LABEL(clk) 1 18>; status = "disabled"; }; DT seems a lot more readable, "marvell,orion-mdio" is a good hint that device this is. But maybe it is more readable because that is what i'm used to. Please could you add a lot more comments. Given that nobody currently actually does networking via ACPI, we have to assume everybody trying to use it is a newbie, and more comments are better than less. Thanks Andrew