Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp1646324rwi; Mon, 10 Oct 2022 20:44:32 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5yx63vKj5T5BUKb9LjD/+MgL8YSAAJO+U7SWmxAgFTRrerjNCP61lXC0qwcA+G1lNV8A4t X-Received: by 2002:a05:6402:4150:b0:44a:ec16:def4 with SMTP id x16-20020a056402415000b0044aec16def4mr20900715eda.21.1665459872626; Mon, 10 Oct 2022 20:44:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665459872; cv=none; d=google.com; s=arc-20160816; b=Qs8d7JFoKv/94u56b/Qx8neNxdyJsSMqZ/OLCI8P2FRTDBXqOpWHWEfDbwWlyyufsU i39OkCGWMj2Lp2W6f6v2eZx9YwoVrujnt/sjghFZblyoV9ui4IRvk1PiKBEhGW6mtO47 M36zexJzWOlLDEIm9YWd4EED0Ceo4p/qAD6IwwMLAZz8H4snVMyWXx/k5XEOJK2EWJi2 J7V6hOm+vUYm3opYIACYNIdi0AP8GcBukoc1PIFlEoc0tWEfM0bvekWi7AZIT2Vst4Ts QyfbUXhm/yLu8pr2AfLTCzv17vBOJ0mN4Tkr3hZtEh79Xbs/JZhmf3PnGZlatJSVQ2BL 6jEg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:feedback-id:content-language:thread-index :content-transfer-encoding:mime-version:message-id:date:subject :in-reply-to:references:cc:to:from; bh=zHVXfh22uPRllF4Vp/B4OXB/68ypussWUSu90BOQ7fM=; b=uf1GvpPet/lUwpMmcDXCt7/D1PGsA1NjmtgG3c/W4TZmF/JtsFiw+//lKrbEAn28qs nrTG5/9p3vHhJ6xO8XXmip75QGle6r9TJaf6+mSllyBCqWFYwHW7pHdwGfGCjPHtctHT QXPbgkAluaSF/y2adukCJic7MttkqSkennC2d+ScWgFEVO4ooymYcbRNxlUs22LQawdu kBRqGYVjCEax6Wg82ikYzsIxQmB7QjokVVLUXtUcITSrI19qLxZ9kk+/yaoWfGI2/on3 uAgQU0CeGj5zIGSJzGvVNO3gBUtWzuhpg8RpHlCCmhtDCkL3l1wxF+j3gNhMM12RBdL2 jMhA== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=lohu.info Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ch6-20020a0564021bc600b004581364d014si11365405edb.380.2022.10.10.20.44.06; Mon, 10 Oct 2022 20:44:32 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=lohu.info Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229711AbiJKDNs (ORCPT + 99 others); Mon, 10 Oct 2022 23:13:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56506 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229598AbiJKDNp (ORCPT ); Mon, 10 Oct 2022 23:13:45 -0400 Received: from bg4.exmail.qq.com (bg4.exmail.qq.com [43.154.221.58]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 90A6E183B1; Mon, 10 Oct 2022 20:13:40 -0700 (PDT) X-QQ-mid: bizesmtpipv601t1665457967tale Received: from SJRobe ( [255.45.9.11]) by bizesmtp.qq.com (ESMTP) with id ; Tue, 11 Oct 2022 11:12:45 +0800 (CST) X-QQ-SSF: 01100000000000G0Z000000A0000000 X-QQ-FEAT: 6/K5pWSRdGoek6ADYkv2uta8uZYZ4h2JtQv+HoWg5pBCBN1rF9eV/Dafmr/LS T9wfeXArYdTVwpgrYiCcDxk4K6n1na/lBujSdXmYfsWIFT/XS8VJJgCKPsiNiI6KIOi6jmE 7i0GdOCpBU8+PSswXZtftWGPRwU6tv6gRFoMpiakf/q85EuE9Q6hg09B6sAbP+MzsuyFua/ 6K7LAY3TjyzjwGuTU2oKsG7JMJ80Z7E5cxmPcaiyVbRhEpnDh10gHlZObF3fODLQT4rb0D3 rj46+Ut2JWT8q4fsyIkm7QOlT7CWFYyvF7AXUxjtm58k9ARCerc/De4Pmt0bge379M6kI8d x4flyrn5r7kyD19dBM= X-QQ-GoodBg: 0 From: "Soha Jin" To: "'Andrew Lunn'" Cc: "'Giuseppe Cavallaro'" , "'Alexandre Torgue'" , "'Jose Abreu'" , "'David S. Miller'" , "'Eric Dumazet'" , "'Jakub Kicinski'" , "'Paolo Abeni'" , "'Yangyu Chen'" , , References: <20221009162247.1336-1-soha@lohu.info> <20221009162247.1336-2-soha@lohu.info> In-Reply-To: Subject: RE: [PATCH 1/3] net: stmmac: use fwnode instead of of to configure driver Date: Tue, 11 Oct 2022 11:12:45 +0800 Message-ID: <9A100E763AFC9404+3a9901d8dd1f$56f01950$04d04bf0$@lohu.info> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Outlook 16.0 Thread-Index: AQJxQqkR5RuhsNy+BNQSBVWkkSX94gMmvIsjAXECYuassvHjgA== Content-Language: fr X-QQ-SENDSIZE: 520 Feedback-ID: bizesmtpipv:lohu.info:qybglogicsvr:qybglogicsvr3 X-Spam-Status: No, score=-0.6 required=5.0 tests=BAYES_00,RCVD_ILLEGAL_IP, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS autolearn=no 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 Hi Andrew, > From: Andrew Lunn > Sent: Tuesday, October 11, 2022 4:38 AM > > None of these are documented as being valid in ACPI. Do you need to ensure > they only come from DT, or you document them for ACPI, and get the ACPI > maintainers to ACK that they are O.K. There is _DSD object in ACPI which is used to define Device Specific Data, and provide additional properties and information to the driver. With specific UUID listed in _DSD, a package can be used like Device Tree (a string key associated with a value), and this is also the object fwnode_property_* will parse with. I have tested some of properties with a device describing stmmac device in ACPI, and it works. These properties should be the configuration to the driver, and is not related to the way configuring it. Moreover, these are described in _DSD and not a part of ACPI standard, there seems no need to ask ACPI maintainers. Also, as described in Documentation/firmware-guide/acpi/enumeration.rst, there is a Device Tree Namespace Link HID (PRP0001) in kernel. PRP0001 can be used to describe a Device Tree in ACPI's _DSD object, and it just put DT properties in a _DSD package with the specific UUID I said above. But to utilize this feature, the driver seems need to use fwnode APIs. > Backward compatibility only applies to DT. Anybody using ACPI should not > expect any backwards compatibility, they should be documented mandatory > properties right from the beginning. Just do not want to mix the use of OF and fwnode APIs, I simply changed all OF property APIs with fwnode APIs. If you really think the backward compatibility should not exist in ACPI, I will change these compatible codes back to OF APIs. Regards, Soha