Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp202495pxb; Mon, 8 Nov 2021 12:10:44 -0800 (PST) X-Google-Smtp-Source: ABdhPJy5l2nKnedSMHl1juOEQFhFyxGVCwiT5C0xMmyeu/2Dd2fPYAUZNmQ43TTGbJIIz3XqY8Uv X-Received: by 2002:a92:dd08:: with SMTP id n8mr1231026ilm.227.1636402244398; Mon, 08 Nov 2021 12:10:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1636402244; cv=none; d=google.com; s=arc-20160816; b=bDiqoU5u0l9AEvjG7knKgq2158NfYxib1Z1s6iSrh4X0Ry2ZJKsyeT0pEx0grSSNFk GhWFTp7sDgIfP0pUd0EIs7L/9aATzjueqlW3aGZLTX30kfCvUta+bEUqUq3kFPDz3pC5 nHKeZI6Fg+eSaGRZqE1PdXn8YCyrc6lUGzOHfLRI7PLyni52JMuP9ht1JcVT74r+ptYW gx6LxRtr9+5VADA68Cjc28ADPX7Ipsz/yGj+RMxq+5bg/U4WiHkLCgIGGtJllhE7iDT/ Ob1mr4ANeHtTxVMraJyFCJtV+v5Srb/sQ1S3acNpJAIxEwloR+rxkOTIGGp9WOcOl+oo 4D4w== 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=gmwJXUQZZysDMClQuXxVmi498zqenZAX/qkgrMBBZ50=; b=DEbDrs5B6d5bQ+gxmFaGalOjt+2JHUhQqdp4ysyjvVt0LlqEbZPhVqWcw1VAUmkUv+ lZW/fZM3p5dgzQNpbAPP+0DshvhamBBiTG8BU8dY3FJp6gUdgQ9K1aeGk0KyNuf4uWXv cnOcRsq1jwYqP6VSvnBfKuOu6ahDmv7Ttfn8XMkGsrhya8IMJhylnDycx+HmTVctYcH2 uQvR0QlOFOcO/sOXOeD+P7QH7ZEJT+0nCFs0Jhg+kA7zSSwILBYBCCDKxYZQuaMHzv41 /+6ARsNKNxvpQkMXJ++GWMnr5ecZYWpyb4o9uycc7BegGGmFY8W8WjFwagu4jhltEC6d XbRg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=5sED2Qlu; 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 z4si3511677ile.160.2021.11.08.12.10.29; Mon, 08 Nov 2021 12:10:44 -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=5sED2Qlu; 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 S240342AbhKHOU1 (ORCPT + 99 others); Mon, 8 Nov 2021 09:20:27 -0500 Received: from vps0.lunn.ch ([185.16.172.187]:50680 "EHLO vps0.lunn.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237965AbhKHOU0 (ORCPT ); Mon, 8 Nov 2021 09:20:26 -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=gmwJXUQZZysDMClQuXxVmi498zqenZAX/qkgrMBBZ50=; b=5sED2Qlu/i1e7c6vp1/BW3d4NP nV8oRFSio//MRsYm1iWPcPRPCCTxYuR0syPTB4OUGLQscihcyflEkb9CrFuX6FsvZqPqrgdKzsH7j GSLDwEYIVEJHzUpGvlzvMXbBWiiBs2hUYKZ4iUzlKxuBENDaFzQRb8Lq1Im5QcsjLHdQ=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1mk5Sn-00Cu1S-Sq; Mon, 08 Nov 2021 15:17:33 +0100 Date: Mon, 8 Nov 2021 15:17:33 +0100 From: Andrew Lunn To: Ansuel Smith Cc: Vivien Didelot , Florian Fainelli , Vladimir Oltean , "David S. Miller" , Jakub Kicinski , Rob Herring , Jonathan Corbet , Pavel Machek , John Crispin , netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org, linux-leds@vger.kernel.org Subject: Re: [RFC PATCH v2 3/5] leds: trigger: add offload-phy-activity trigger Message-ID: References: <20211108002500.19115-1-ansuelsmth@gmail.com> <20211108002500.19115-4-ansuelsmth@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20211108002500.19115-4-ansuelsmth@gmail.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Nov 08, 2021 at 01:24:58AM +0100, Ansuel Smith wrote: > Add Offload Trigger for PHY Activity. This special trigger is used to > configure and expose the different HW trigger that are provided by the > PHY. Each offload trigger can be configured by sysfs and on trigger > activation the offload mode is enabled. > > This currently implement these hw triggers: > - blink_tx: Blink LED on tx packet receive > - blink_rx: Blink LED on rx packet receive > - blink_collision: Blink LED on collision detection When did you last see a collision? Do you really have a 1/2 duplex link? Just because the PHY can, does not mean we should support it. Lets restrict this to the most useful modes. > - link_10m: Keep LED on with 10m link speed > - link_100m: Keep LED on with 100m link speed > - link_1000m: Keep LED on with 1000m link speed > - half_duplex: Keep LED on with half duplex link > - full_duplex: Keep LED on with full duplex link > - linkup_over: Keep LED on with link speed and blink on rx/tx traffic > - power_on_reset: Keep LED on with switch reset > - blink_2hz: Set blink speed at 2hz for every blink event > - blink_4hz: Set blink speed at 4hz for every blink event > - blink_8hz: Set blink speed at 8hz for every blink event These seems like attributes, not blink modes. They need to be specified somehow differently, or not at all. Do we really need them? > - blink_auto: Set blink speed at 2hz for 10m link speed, > 4hz for 100m and 8hz for 1000m Another attribute, and one i've not seen any other PHY do. Andrew