Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp2324486pxj; Sun, 13 Jun 2021 16:50:18 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyJEyzaBLohUQKbm9texMIjRWdLnRJNhwjtL5rcBDppy8zSR/q+owXeiYMb7frO8zhFTOwi X-Received: by 2002:aa7:c450:: with SMTP id n16mr14356691edr.386.1623628218282; Sun, 13 Jun 2021 16:50:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623628218; cv=none; d=google.com; s=arc-20160816; b=UrmyGkzlcIYRm4qEjJwox2G7n3tJv45/AsjDJaILB0oWXiEfT6de35s+EXhUOYahxd u7WXQtrb/YfHr0zSEydxrJPjHEECe5uBHEmgx6humqfwJv5Fa0xnDJ5GL7qnO8Lq59yF Rip0B48wxGh9597tf1uDT/UaYgOwnEW6cyFCecwCSru3VAFu1m2ytsgonekMbPuYjw4f I1nGScnhzvQIPMmZBln5jMXClJx9FpTJYLCltPF/JwppdjSJo+8luOBJaNgeCwzIOdzG TvT5pNYxqthxnpRNIRAKINX9kTClIHoK7+xjIGkJX5Lo1MtkZ33ST0MqJiwi74wU0btv bSxg== 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=yLX/ur54moqzu2PisxABzO9lUlcTtlTTvRud0ukIiTk=; b=lpHrTugmBBRmUlAGjbpCSiUvxq9aekiN2cZ12bUA5HjBW5GKqKskduvdY6DlU0FUd5 QV1Ulg9JaaLdlrKh5gwQ9UKpsmN4f3R4+JNfB1xAwSWKPkBVxonOE3XYL3RMkVnOeHM7 qpEf/pi4j0PgWyWgdJ8DfMEo6ojVM2Vzkl90MeaJkbw2/kVknlZrlfcGsydsFB04MZPw qCZzLBsEED7gFzgloGplJNiz48ES0JR9kQMRe0vnV5NZ4Bweebi58lU1b2PmyPp00xYh 6lLZilyBCgAjW4GUV9mxnKG8S8fyxnFhljb23JHbKh5RIbzTcfrelzM+uu0VygdjgDuc MHgw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@semihalf-com.20150623.gappssmtp.com header.s=20150623 header.b=iJysEGEp; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id z18si9744679edd.97.2021.06.13.16.49.55; Sun, 13 Jun 2021 16:50:18 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@semihalf-com.20150623.gappssmtp.com header.s=20150623 header.b=iJysEGEp; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232230AbhFMXsh (ORCPT + 99 others); Sun, 13 Jun 2021 19:48:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33572 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232076AbhFMXse (ORCPT ); Sun, 13 Jun 2021 19:48:34 -0400 Received: from mail-qv1-xf35.google.com (mail-qv1-xf35.google.com [IPv6:2607:f8b0:4864:20::f35]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 795B6C061766 for ; Sun, 13 Jun 2021 16:46:19 -0700 (PDT) Received: by mail-qv1-xf35.google.com with SMTP id w4so12146008qvr.11 for ; Sun, 13 Jun 2021 16:46:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=semihalf-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=yLX/ur54moqzu2PisxABzO9lUlcTtlTTvRud0ukIiTk=; b=iJysEGEpYjvUbxf5+O4wQ1DEhhnGeJwGafwWPI9gepZeKQeb7Gn/IENgjQsuPaMrk1 9IjCl9PwgVeaU15y4JXUGCWcU3ROOoA1O1Ky7x0HFWt1uOtieTa7AKY8GLPtDGj0Tgl2 G1ur5vWkCdj6WPCe1PYLkXVZHpGk/DuzIZ7YMHox3J0i1yKDHzwgHsT/G0L2A+wBiuCM NRB+jWVbH30meokSi6YF0eiV0GhziuNpJdX3tfGvFq4VPkuDy/esPKdv37XONc38GxRK pKM4BBOw2p0YAPTH65QJXjI7h/jE8nd/YtIthzvfP3S+fSooCNHfghgeMzGmVhhOvKHA 2EOw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=yLX/ur54moqzu2PisxABzO9lUlcTtlTTvRud0ukIiTk=; b=bgzmxxFnJVYbGwNfnsn8HfsisBlapXSD/5r/swNOSIYk/f7VDZQNdG1IrckAc+b3JX QbXIeMKEsPzvLyBlA+RAGKhAMrLNZ+E4QjIYcroSC0VB08oVhKGEaiEqalQ73evQVBDA Eo+nPtXg2VvrN0PxbK3+nWicO/+Wr+jJqNraUByYz6NsSC5tVv/j44Dbta6MRER0cRMf brFyb/ERENcd1LtjHqgMeCHsYPbxLCvygndaSpRRDmQrmj7Jc7IBTEp9NWj4o4gSEK+R SunvfA4V3TAuUqsuBbvjLVxauXh+b54loBjvN0+NQHHgUtz6e4S9uMivYuaIR9ilmuoo HyCg== X-Gm-Message-State: AOAM530KcpAUVda17NyK8vIvQMX1f3rPtBclAzA0avud43VKua2B0JGC Nei7W/t3eWqN+mpmdiS/1uVxR/o2jC5c6+JQB8yBaA== X-Received: by 2002:ad4:5f0e:: with SMTP id fo14mr3043268qvb.16.1623627978540; Sun, 13 Jun 2021 16:46:18 -0700 (PDT) MIME-Version: 1.0 References: <20210613183520.2247415-1-mw@semihalf.com> <20210613183520.2247415-3-mw@semihalf.com> In-Reply-To: From: Marcin Wojtas Date: Mon, 14 Jun 2021 01:46:06 +0200 Message-ID: Subject: Re: [net-next: PATCH 2/3] net: mvpp2: enable using phylink with ACPI To: Andrew Lunn Cc: Linux Kernel Mailing List , netdev , "David S. Miller" , Jakub Kicinski , Russell King - ARM Linux , Grzegorz Jaszczyk , Grzegorz Bernacki , upstream@semihalf.com, Samer El-Haj-Mahmoud , Jon Nettleton , Jon Masters , rjw@rjwysocki.net, lenb@kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Andrew, niedz., 13 cze 2021 o 23:35 Andrew Lunn napisa=C5=82(a): > > > True. I picked the port type properties that are interpreted by > > phylink. Basically, I think that everything that's described in: > > devicetree/bindings/net/ethernet-controller.yaml > > is valid for the ACPI as well > > So you are saying ACPI is just DT stuff into tables? Then why bother > with ACPI? Just use DT. Any user is free to use whatever they like, however apparently there must have been valid reasons, why ARM is choosing ACPI as the preferred way of describing the hardware over DT. In such circumstances, we all work to improve adoption and its usability for existing devices. Regarding the properties in _DSD package, please refer to https://www.kernel.org/doc/html/latest/firmware-guide/acpi/DSD-properties-r= ules.html, especially to two fragments: "The _DSD (Device Specific Data) configuration object, introduced in ACPI 5.1, allows any type of device configuration data to be provided via the ACPI namespace. In principle, the format of the data may be arbitrary [...]" "It often is useful to make _DSD return property sets that follow Device Tree bindings." Therefore what I understand is that (within some constraints) simple reusing existing sets of nodes' properties, should not violate ACPI spec. In this patchset no new extension/interfaces/method is introduced. > > Right, O.K. Please document anything which phylink already supports: > > hylink.c: ret =3D fwnode_property_read_u32(fixed_node, "spe= ed", &speed); > phylink.c: if (fwnode_property_read_bool(fixed_node, "full-d= uplex")) > phylink.c: if (fwnode_property_read_bool(fixed_node, "pause"= )) > phylink.c: if (fwnode_property_read_bool(fixed_node, "asym-p= ause")) > phylink.c: ret =3D fwnode_property_read_u32_array(fwnode, "f= ixed-link", > phylink.c: ret =3D fwnode_property_read_u32_array(fwnode, "f= ixed-link", > phylink.c: if (dn || fwnode_property_present(fwnode, "fixed-link")) > phylink.c: if ((fwnode_property_read_string(fwnode, "managed", &mana= ged) =3D=3D 0 && > > If you are adding new properties, please do that In a separate patch, > which needs an ACPI maintainer to ACK it before it gets merged. > Ok, I can extend the documentation. Best regards, Marcin