Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp1362277pxb; Fri, 21 Jan 2022 16:32:50 -0800 (PST) X-Google-Smtp-Source: ABdhPJz9z6tDktwiLOrqOH7Ze/ibwycu8VvmWCWU4xefImjW9W4x8FEKDCylvSKlFN8BWWKy0lmG X-Received: by 2002:a17:902:be14:b0:149:537f:378 with SMTP id r20-20020a170902be1400b00149537f0378mr5860370pls.97.1642811570036; Fri, 21 Jan 2022 16:32:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1642811570; cv=none; d=google.com; s=arc-20160816; b=skGi4s18vxA2ECQ0LrtxA3Rds5rIgFIgBHE/QeYXyOdF1XbTdkgLTTTs6V3fwCIiJW jI4pMxl4hqjnHG3p+oiMZkkNc/R4rhlwlMuDUg6hUOFfnEznwVqwf52CLgSv7L7aI8gv gL2UGJezeMZtcUrShxzJ0MMsOQAnA2DR65nRBU961q76F47ngxDQ1yukla/aVIkFQYxA QGG0Ef7ZE8i52suEwFhgH8Yc0EAFT+8dbAuQxSBLbTNgpTFN8b/caa6IaYZ6KbLwZIpQ zDm+NeT05yXDY/h86c5yIDK0K2TnSZV3YioIS2ynZ6utRtNtAdLwLC2kKv8gMMJ12G10 2QzQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=4kHu2XYyfVu0N83f5P1MXdyIklLz/98ljBKcgS3bWe0=; b=kp8V9JtBnLYCM9XDXL6PocaV7Muls0EXlNHcU77tue0Sz6CQY8s9pqA3fH/epjZYLf IwrKEM8zV0IBRQczyb7JuHWMfVSt+RRPeoJRbV2Rd55bP2MeMoSA0RvTm+2IF/k6axCa yvfhBYKN85aghVGF6iwxnWVEx9m7FSxYqHhEe0cKqDmrG5D03McAUpKP7p52EJl9+8tp Is68IqOg8vF3yKTnLrE7NaMnplGod+TCme+SobyFzAb3g/KVh1vNi4x9EbzcFHSPyz3E rj1nCFg0Q0pepe3Cp6t21swclFru8ZSECXRN1lVxcOT3m6j6RcwXwHx+60nWtF5yV5QN k62w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@canonical.com header.s=20210705 header.b=GjAbwjm3; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=canonical.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id t140si6366706pgb.537.2022.01.21.16.32.38; Fri, 21 Jan 2022 16:32:50 -0800 (PST) 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=@canonical.com header.s=20210705 header.b=GjAbwjm3; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=canonical.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233827AbiAUEBv (ORCPT + 99 others); Thu, 20 Jan 2022 23:01:51 -0500 Received: from smtp-relay-internal-1.canonical.com ([185.125.188.123]:53956 "EHLO smtp-relay-internal-1.canonical.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231519AbiAUEBt (ORCPT ); Thu, 20 Jan 2022 23:01:49 -0500 Received: from mail-oi1-f200.google.com (mail-oi1-f200.google.com [209.85.167.200]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by smtp-relay-internal-1.canonical.com (Postfix) with ESMTPS id 9E00F40024 for ; Fri, 21 Jan 2022 04:01:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical.com; s=20210705; t=1642737708; bh=4kHu2XYyfVu0N83f5P1MXdyIklLz/98ljBKcgS3bWe0=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=GjAbwjm3ii/N00ZwuUPWi9l5nMz6N5Rlpyjv44cakQ2MMEl7WncqfgOf/f9edm4f+ 9vP+W16oBAkLrLNfzbXyhYV6qXCvgH4DA0vkOZE3KnnsI6Hl1yRdNuhz6C8yo6oJf7 +xLPCPSe4Q+xeszHFAG2QAl+tL/1RoHkqcyZ6xc4os50Z6YTAmRK+j8xl7Ic67nojJ C14dUIS5WF22BLI23Bfiut4UDplPqnsDYUvr4Li21iCatESHkh9djclCtWHP1WpzRl 2VoO4yurvXBoUtE8XMoUuxQBYMX+CD1XcilwjISBbnLJ/rwOT+COD2+qp18WjrcdLn 0EPv+gvUbi8Ow== Received: by mail-oi1-f200.google.com with SMTP id g4-20020acab604000000b002c8b24c3964so5145937oif.22 for ; Thu, 20 Jan 2022 20:01:48 -0800 (PST) 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; bh=4kHu2XYyfVu0N83f5P1MXdyIklLz/98ljBKcgS3bWe0=; b=3AsGwxhVvVfOg/K5C8jbfmDARVUEOOcjxhZUzosDweSO1+dy+anoxwPRSvj+HIoemB pX7nHE7wKmhGVra7UGaeCoqAwpO26g4hkeXTBVjLNK4ZoM7OODxGGDDyaNLKPbc/yv9K VHWvJK0cRAoHxDrZUgXDaCHSygb24wlMeChtA1uxQW/2wziT75nB145TsdAi3rjWwsVK 2rwssCJgAXXj0DZayEEfOxc/ACb7Mh2SKTy/ktj4+R86fZeqiw+1awvOl0ssxm+uCRy4 y8zwYrsg6EUIzDnBNt2gBX1OekFNdaTXJbrs/1m3oMpedzyDWWwOUmUx4lgtv/2NO64L N/bQ== X-Gm-Message-State: AOAM530dNs1tedK8AR6VKqxooJdDLB8ptdcS+5WGyOxQ4vnDQBSMgJ67 h5PfHQAPDhmYU62IBIR1OmyPrFJ5g9V4shc7+uM6og1rFu5WsupHgSswwp8votp5o+PqSmbl/EB Dv5jy6JhZ1hpwgddzT1RxWF3fPGLYEITGuRMTspzx7wvf6y0OlW2n6CH4uQ== X-Received: by 2002:a9d:480e:: with SMTP id c14mr1511907otf.233.1642737706834; Thu, 20 Jan 2022 20:01:46 -0800 (PST) X-Received: by 2002:a9d:480e:: with SMTP id c14mr1511895otf.233.1642737706604; Thu, 20 Jan 2022 20:01:46 -0800 (PST) MIME-Version: 1.0 References: <20220120051929.1625791-1-kai.heng.feng@canonical.com> In-Reply-To: From: Kai-Heng Feng Date: Fri, 21 Jan 2022 12:01:35 +0800 Message-ID: Subject: Re: [PATCH v2] net: phy: marvell: Honor phy LED set by system firmware on a Dell hardware To: Andrew Lunn Cc: hkallweit1@gmail.com, linux@armlinux.org.uk, "David S. Miller" , Jakub Kicinski , netdev@vger.kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jan 20, 2022 at 10:26 PM Andrew Lunn wrote: > > On Thu, Jan 20, 2022 at 01:19:29PM +0800, Kai-Heng Feng wrote: > > BIOS on Dell Edge Gateway 3200 already makes its own phy LED setting, so > > instead of setting another value, keep it untouched and restore the saved > > value on system resume. > > > > Introduce config_led() callback in phy_driver() to make the implemtation > > generic. > > I'm also wondering if we need to take a step back here and get the > ACPI guys involved. I don't know much about ACPI, but shouldn't it > provide a control method to configure the PHYs LEDs? > > We already have the basics for defining a PHY in ACPI. See: > > https://www.kernel.org/doc/html/latest/firmware-guide/acpi/dsd/phy.html These properties seem to come from device-tree. > > so you could extend this to include a method to configure the LEDs for > a specific PHY. How to add new properties? Is it required to add new properties to both DT and ACPI? Looks like many drivers use _DSD freely, but those properties are not defined in ACPI spec... Kai-Heng > > Andrew