Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp1391135pxb; Fri, 21 Jan 2022 17:25:04 -0800 (PST) X-Google-Smtp-Source: ABdhPJwMZHfMjRsZvfr1KJN5ko51/1c/KTXaAUOMH/6ERMR4fEofqmur8T4I9cfH026J2ZYGCINV X-Received: by 2002:a17:90a:a601:: with SMTP id c1mr3214225pjq.43.1642814704789; Fri, 21 Jan 2022 17:25:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1642814704; cv=none; d=google.com; s=arc-20160816; b=Kf4YcrEXiL4YaWXdXGNvH/bJoFJhhD2ia+1/LGULRbtcr06hftulk7dZxK90c/Ile5 gTJMYNCjWERqZYqyiJYfwxRQXgrHK2YANvGZBeJkEd3GqP9MX1ELicDN+T5a0JZdyO0k mhAC37X9ja/vQuLRbtsHslHFibrtC3EbO896+ZbOHB4c8vwXsCgpUCvtQCZcRwIrCUWN FPNjsPOXqyEQ5difaUFhztXZTzoRwFP2U7RPkBlWy/Tes4B8DnZKwQ1Vc2/KrWBKCeV5 D6yIDwh4v6bql0to7tqg6j+P0HLDL6YIP/FG5S4hetpSHkA9fHADRjtkdWx2J8lFM48F Q7AQ== 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=er0oO0KQIatdPccLUW/Ds3BOKxbZJ4Hsl46YRpDl6GI=; b=VJ65FjqJ4CKOPI9uYxFFJnqR/nN6Hvfr0slElhqR/96IoVojmCyrBZMotK5GHb5PB8 RNf7U0d52TXJLqjyOV9cBi4tLIpWKrP9XlIcpxcEbxCPqfZeRqo8DlfgxZL37Lc/VEw2 UAJI0ELzuAptWoP1u4WNw6bT+1mA9YP5o9Xsc9CTTS9s3uP/kDVtX7nShJ6hCfx6BOyK htEIM9kbaCuOPckyl2zjAn+izWIew7jHmDUcXCTisP9OjpBr+87+F9d4big5S7/mDjCy FwV7Dh26g5GtJGWQ9rgoDs4hdYjHhPGnYZm8iYQtUJgFPybj9aX6gZAnuYPdpJfRmjPl P0aA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b="LLW/XfM6"; 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 mh5si17871509pjb.155.2022.01.21.17.24.53; Fri, 21 Jan 2022 17:25:04 -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=@lunn.ch header.s=20171124 header.b="LLW/XfM6"; 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 S1380528AbiAUNFN (ORCPT + 99 others); Fri, 21 Jan 2022 08:05:13 -0500 Received: from vps0.lunn.ch ([185.16.172.187]:47684 "EHLO vps0.lunn.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1380522AbiAUNFN (ORCPT ); Fri, 21 Jan 2022 08:05:13 -0500 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=er0oO0KQIatdPccLUW/Ds3BOKxbZJ4Hsl46YRpDl6GI=; b=LLW/XfM6vV3EJDL5WGKAWF+jAp xaBR6ktXeFtFXHSiPOjgJaSB7LTTaxClspqR9HbV6qXoYjDbLRx5+zc7+qdfRLgGiR4iVliMNVEc8 ItKL3gn4vyblsUzg9/DSSCxH1k2U5LMQ47qnXid3sNHmtkvaZUlxoAzm//idE5kuxTac=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1nAtb9-0025GS-EY; Fri, 21 Jan 2022 14:04:59 +0100 Date: Fri, 21 Jan 2022 14:04:59 +0100 From: Andrew Lunn To: Kai-Heng Feng Cc: hkallweit1@gmail.com, linux@armlinux.org.uk, "David S. Miller" , Jakub Kicinski , netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2] net: phy: marvell: Honor phy LED set by system firmware on a Dell hardware Message-ID: References: <20220120051929.1625791-1-kai.heng.feng@canonical.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > > Since you talked about suspend/resume, does this machine support WoL? > > Is the BIOS configuring LED2 to be used as an interrupt when WoL is > > enabled in the BIOS? Do you need to save/restore that configuration > > over suspend/review? And prevent the driver from changing the > > configuration? > > This NIC on the machine doesn't support WoL. I'm surprised about that. Are you really sure? What are you doing for resume? pressing the power button? > > > +static const struct dmi_system_id platform_flags[] = { > > > + { > > > + .matches = { > > > + DMI_MATCH(DMI_SYS_VENDOR, "Dell EMC"), > > > + DMI_MATCH(DMI_PRODUCT_NAME, "Edge Gateway 3200"), > > > + }, > > > + .driver_data = (void *)PHY_USE_FIRMWARE_LED, > > > + }, > > > > This needs a big fat warning, that it will affect all LEDs for PHYs > > which linux is driving, on that machine. So PHYs on USB dongles, PHYs > > in SFPs, PHYs on plugin PCIe card etc. > > > > Have you talked with Dells Product Manager and do they understand the > > implications of this? > > Right, that's why the original approach is passing the flag from the MAC driver. > That approach can be more specific and doesn't touch unrelated PHYs. More specific, but still will go wrong at some point, A PCEe card using that MAC etc. And this is general infrastructure you are adding here, it can be used by any machine, any combination of MAC and PHY etc. So you need to clearly document its limits so others are not surprised. Andrew