Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp3704468iog; Tue, 21 Jun 2022 04:22:07 -0700 (PDT) X-Google-Smtp-Source: AGRyM1vU7Q8QmzEcrZmHDCxrgqsvAQ/jR2MLOU+Ca7yG2g8cekGZYkNzanEFkZvPno0FBkGYBvbC X-Received: by 2002:a05:6a00:17a0:b0:51b:c7a9:bf0c with SMTP id s32-20020a056a0017a000b0051bc7a9bf0cmr29341556pfg.71.1655810526929; Tue, 21 Jun 2022 04:22:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655810526; cv=none; d=google.com; s=arc-20160816; b=Y6Xxg6BgzpQqwqFIfqmsybmOFQCvytipFCPC7zTsT+CQKC7ABB6cDby7sibGnurOEm 4C+AVaI6XPz0kRv35Aww8ddGhNfNyXeW8uSjOsqz7vU4vMbcwn1o++5jly1uSSDPKzoG pnjBYQ6z+gJHhIXBPeYzlXffV0M3r8dOc9AjOHt9rUT4AgfMkMKy9iULPyUlvpL9OPhx qoLUMqaKO3KVnxlgky85IEplBI6CHGXaUNfWlNpywfd3wbo9LxCYH0KdvvWJF5bEQKWZ Mnt7eIo3xpkNVfeg7DOpAutH6sbmjk9FouYtkOuFu/gUKcUO6VDQHbWBLXcHoEvaCxp6 y95g== 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-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=7vOo5p0yQrz8WvA9OW0P/gHDo5luj3WAxgSKgWBriNM=; b=c5CGrT3/H7bcSUrvESxR+Hx+h5DrZ7pChDtEIdS5s5ywP1/zFOJdV1/OCXQI9TicqP Z12lpUJ6bDn1MA5QjredBFXqOBKsIB/C92V9nvfH7wMiTOQpWs/2j9TRZfs8Zw4Ad0hO 8E/v+F3Q9BpU7NXoe9DDVbX3t7l1px9EnIgumOb9TT/gKD0Ld4KKshVVJazEO4jiUt5w M4sQ4MbIQOuQVZk8L98D6F5dgrvvV1Zk7lfCxGvn3YxEhQNhKtUhdJOgqk46ZTjDr3YY sm2b3Wosggbys9iq8oWLblKS7oeE2WZulckTanpmXWzwJQg3jhauw/15GRP1xUUGtgCR 5Z9g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=6ZJJRVIp; 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 d6-20020a170902b70600b001641a5d5794si17550450pls.243.2022.06.21.04.21.45; Tue, 21 Jun 2022 04:22:06 -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=6ZJJRVIp; 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 S1348884AbiFULSy (ORCPT + 99 others); Tue, 21 Jun 2022 07:18:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34590 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1349175AbiFULSq (ORCPT ); Tue, 21 Jun 2022 07:18:46 -0400 Received: from vps0.lunn.ch (vps0.lunn.ch [185.16.172.187]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1B4CD289AA; Tue, 21 Jun 2022 04:18:45 -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-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=7vOo5p0yQrz8WvA9OW0P/gHDo5luj3WAxgSKgWBriNM=; b=6ZJJRVIprvtfY3nIuee+3aB2we QiYsFG3+otBHZgSQ3k9TVyggTrFkrzXw9fLthopF7SW6V2E6YXgAFzYmIy7GKREtifJl4asoYPq5T YXx2sbjr2oKlB2JYnL1eirrvcSGH05kGbYdJk9zbdvxxqeIanZ326qUWLU5srR9l6YBA=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1o3bu2-007iEV-1l; Tue, 21 Jun 2022 13:18:38 +0200 Date: Tue, 21 Jun 2022 13:18:38 +0200 From: Andrew Lunn To: Andy Shevchenko Cc: Marcin Wojtas , linux-kernel@vger.kernel.org, linux-acpi@vger.kernel.org, netdev@vger.kernel.org, rafael@kernel.org, lenb@kernel.org, vivien.didelot@gmail.com, f.fainelli@gmail.com, olteanv@gmail.com, davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, linux@armlinux.org.uk, hkallweit1@gmail.com, gjb@semihalf.com, jaz@semihalf.com, tn@semihalf.com, Samer.El-Haj-Mahmoud@arm.com, 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=us-ascii Content-Disposition: inline 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 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. > Or if you asked > why the values there are the particular numbers? I guess it's fined to have > anything sane in the example. OTOH a comment may be added. > > > > + ) > > > + }) > > ... > > > > + Device (SWI0) > > > + { > > > + Name (_HID, "MRVL0120") > > > + Name (_UID, 0x00) > > > + Name (_ADR, 0x4) > > > + <...> > > > + } > > > > I guess it is not normal for ACPI, but could you add some comments > > which explain this. In DT we have > > > > properties: > > reg: > > minimum: 0 > > maximum: 31 > > description: > > The ID number for the device. > > > > which i guess what this _ADR property is, but it would be nice if it > > actually described what it is supposed to mean. You have a lot of > > undocumented properties here. > > Btw, you are right, _ADR mustn't go together with _HID/_CID. Does ACPI have anything like .yaml to describe the binding and tools to validate it? Andrew