Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp1469578rwb; Thu, 15 Dec 2022 10:24:39 -0800 (PST) X-Google-Smtp-Source: AA0mqf7WhhcPhpg12QkQ0NXIAfwwwu+JOvKulF1sk7JsDTT9hGeRi8g0JXTHpKhfE94CwWmtN6z/ X-Received: by 2002:a05:6a20:8b88:b0:ac:44ab:33fa with SMTP id m8-20020a056a208b8800b000ac44ab33famr33099589pzh.37.1671128679471; Thu, 15 Dec 2022 10:24:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1671128679; cv=none; d=google.com; s=arc-20160816; b=hMvIX+i3wFoFUy5mmG0L9VV720R4+2LCyTsVS+Wtqqe8EdXePsAznQ564C7jlWl0b4 kwvwZhFBASBr/fbtHNQucBc9WsP/KYYWUP67HTT3wB9bQYiTeJEulh1PjngkXtY+pVRp JgCsIPvxmXOYYD8gxJszaXLr15/fxSws6wHV+3SsQwj27bqrtTTkIWo1TIf631wfuCIR rzyTLHbuNhpVWGgOIOIQmJWzObPf9y+yncxG2djoEZMzyYHHWdIaZKD03atGEW00U5PR AlFMctyEZ73fPSggakgLMl5EWJMXwsoQyf3AZFI2sW94j/Z6EixIP8mAZ8n9mWIdS728 EHLw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=CMaJeIYxKfKQa/W4oahDYNSzMyfQ+P5TlnnLtKDatEU=; b=0n9rvK7Qv7AaYIz0A0a1M1zUGSXDX5ASM5ZboqKpApxAoF6OQvoCBBKv8VALC5WV57 uUz9MMlb7aqeOoTz4RVsZQu7FSfy1CV/1J9IzQGeShxVizU8GUURe1pUR32rlwW/sxJX SJEp2uNFW+lp4ANEFdAiXZOY2NMa+FFvpp+tR5r9QpcArxm/ziDua2c/N61S28ezP23g IZQCAHsv8l0JYxP82qvRDFoNS0Ik2IWZ+GbmNfib+QOfc+UWeb+UFnrT9+BlD0OQS5w1 Qv2yd49jLGKRn93u9lTrQVRwkyR+pQnVnWsc3swZ580V15zwNTGDq8Ef3zrTINOpxnx5 o0Zw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail (test mode) header.i=@armlinux.org.uk header.s=pandora-2019 header.b=MUnutXCe; 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=armlinux.org.uk Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id x62-20020a17090a6c4400b0021939584595si5511275pjj.82.2022.12.15.10.24.30; Thu, 15 Dec 2022 10:24:39 -0800 (PST) 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; dkim=fail (test mode) header.i=@armlinux.org.uk header.s=pandora-2019 header.b=MUnutXCe; 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=armlinux.org.uk Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230131AbiLORgV (ORCPT + 68 others); Thu, 15 Dec 2022 12:36:21 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50958 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230345AbiLORgH (ORCPT ); Thu, 15 Dec 2022 12:36:07 -0500 Received: from pandora.armlinux.org.uk (pandora.armlinux.org.uk [IPv6:2001:4d48:ad52:32c8:5054:ff:fe00:142]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BFEBB42F70; Thu, 15 Dec 2022 09:36:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=armlinux.org.uk; s=pandora-2019; h=Sender:In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=CMaJeIYxKfKQa/W4oahDYNSzMyfQ+P5TlnnLtKDatEU=; b=MUnutXCeNvUNp+L8MEUyCmdYER S4KDjotzr8/cKA2yEq5vfttfJwYJXHj2oslKk/2PFrQhg+vMcStZigBNLfckV0cpdlazKrWr8+Kp5 8mX96GH8saEg9hh4QPv1D7Bm3dPdG4+g47NsSNaY4rc+U/q4AsbU3UHaCg0gfzWEB5paoERld5Luo M4rNBH46CgrKP4Ga12Kly3OcPkc3W2NMfmxJ+s/tSRrOBBPC0uWaBJr+zKUposreEwxhVYsjwjJbr DGsY3uPF28iHRjVAjAj0Q1R4eGLtwg8gq+NSarBrGkfnG15qpUYaYCyJ8D2cMgwYpNNwq0TjK9lkz 1LADGiIQ==; Received: from shell.armlinux.org.uk ([fd8f:7570:feb6:1:5054:ff:fe00:4ec]:35728) by pandora.armlinux.org.uk with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1p5s98-0003W7-IM; Thu, 15 Dec 2022 17:35:50 +0000 Received: from linux by shell.armlinux.org.uk with local (Exim 4.94.2) (envelope-from ) id 1p5s95-000053-FC; Thu, 15 Dec 2022 17:35:47 +0000 Date: Thu, 15 Dec 2022 17:35:47 +0000 From: "Russell King (Oracle)" To: Christian Marangi Cc: Andrew Lunn , Florian Fainelli , Vladimir Oltean , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Rob Herring , Krzysztof Kozlowski , 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, Tim Harvey , Alexander Stein , Rasmus Villemoes Subject: Re: [PATCH v7 09/11] leds: trigger: netdev: add additional hardware only triggers Message-ID: References: <20221214235438.30271-1-ansuelsmth@gmail.com> <20221214235438.30271-10-ansuelsmth@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20221214235438.30271-10-ansuelsmth@gmail.com> Sender: Russell King (Oracle) X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_NONE autolearn=ham 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 On Thu, Dec 15, 2022 at 12:54:36AM +0100, Christian Marangi wrote: > Add additional hardware only triggers commonly supported by switch LEDs. > > Additional modes: > link_10: LED on with link up AND speed 10mbps > link_100: LED on with link up AND speed 100mbps > link_1000: LED on with link up AND speed 1000mbps > half_duplex: LED on with link up AND half_duplex mode > full_duplex: LED on with link up AND full duplex mode Looking at Marvell 88e151x, I don't think this is usable there. We have the option of supporting link_1000 on one of the LEDs, link_100 on another, and link_10 on the other. It's rather rare for all three leds to be wired though. This is also a PHY where "activity" mode is supported (illuminated or blinking if any traffic is transmitted or received) but may not support individual directional traffic in hardware. However, it does support forcing the LED on or off, so software mode can handle those until the user selects a combination of modes that are supported in the hardware. > Additional blink interval modes: > blink_2hz: LED blink on any even at 2Hz (250ms) > blink_4hz: LED blink on any even at 4Hz (125ms) > blink_8hz: LED blink on any even at 8Hz (62ms) This seems too restrictive. For example, Marvell 88e151x supports none of these, but does support 42, 84, 170, 340, 670ms. -- RMK's Patch system: https://www.armlinux.org.uk/developer/patches/ FTTP is here! 40Mbps down 10Mbps up. Decent connectivity at last!