Received: by 2002:a05:6358:f14:b0:e5:3b68:ec04 with SMTP id b20csp5447478rwj; Wed, 21 Dec 2022 02:49:37 -0800 (PST) X-Google-Smtp-Source: AMrXdXu+WRgnEIF5W3IRDLAyaZS7uwktbHaYT9vRTVXglZHsqU2xntPa/smQn3vVcw/Tf4p8I0fc X-Received: by 2002:a17:902:e0d4:b0:18d:9214:1ae5 with SMTP id e20-20020a170902e0d400b0018d92141ae5mr1408852pla.23.1671619777486; Wed, 21 Dec 2022 02:49:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1671619777; cv=none; d=google.com; s=arc-20160816; b=hOZcHmNVErmd/pnlIk+QKnTBVoh/Peq0Y4VIgjeqjaMqUu8FBNr8wyIod9ruMDgNqV BYQnLXy5YV0mKNrppG2sv2W5SEHyPdtzgHYmldNTqZkpXF3pu9d2Fl8XWQ4o4QOffZIV pqdGF1vhhqoiIlLzjOp8qP06yvjrVevaWe5oJuUV0Fke2g2A5W1XevCfMjsKSJGAG5Nw Sfy0kLQofmwmqunpKN24OUNGDTzn40anfaSoQbPv9v5Pg4NjfYQBLlZ1DNktpw9FMnhS DYHEhK33uJZ2/NeHTIFa0ranG0wxjoV8pJHo+Sn00bygOhc0x4KWXVc4OZL2hmv63UOg hEcA== 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=LXTjxNIwyTamcsYiCUb1qbSp8dawRiYmOqWzEm2gekI=; b=oDiyjyr6kEAZuBKKZYVQaRjjNxPCuUXGVKGQWRIp4I2XinKGKmeuIuighGXwTdeWaF jisSi5COadd+QyV2EbMfInbLZTUANJLcxzMwh7k1gnn92AK2+aflYHw9AoxtUoL9n462 ufJdoZ/V+pZnYGvSFnpu6W4pYvpEZ4NFsf9d8ubxgxFBX9vSndd0jEAEvk3bbh8MEYV2 OZrL1hht6rAEBhgaX2x+sI9ZBAYgnKklXEuBaeVXYcYonZMqk05C4a9oGVF7C/QqE3oq URwEf/olyO9ZZIwy5rdE2KW9tqr/rCt/f8mwDe83aNYu/gjr3PpdWmmf+lBVdPr0Eob0 308A== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail (test mode) header.i=@armlinux.org.uk header.s=pandora-2019 header.b=ln8ec5+m; 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 f16-20020a170902ce9000b001888f93dc55si17946234plg.519.2022.12.21.02.49.28; Wed, 21 Dec 2022 02:49:37 -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=ln8ec5+m; 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 S234690AbiLUJ7h (ORCPT + 69 others); Wed, 21 Dec 2022 04:59:37 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34750 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234676AbiLUJ64 (ORCPT ); Wed, 21 Dec 2022 04:58:56 -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 AE82F233B3; Wed, 21 Dec 2022 01:55:05 -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=LXTjxNIwyTamcsYiCUb1qbSp8dawRiYmOqWzEm2gekI=; b=ln8ec5+mDsvVeVkYSdnkkKkSyL SZXC7xhjFUriKXcoax4iKbHOBqvEK+SXuneJWVll3OY6YVNzsnKSg5y20qCmb3nFPkAw8h4vwDTB8 2R6mvqzk1nJ19+pSPicHHwCsf1FO5eJnSYbRIHXmbbW7NKzouJgccP7nbXs1YmEbOX8LWq/rSo/IS KlFf+S5I3eD2a2BzZqskDzKriDhfusCBD1wPwCzF3MVFTDUj3G8ZU1gSouJlNMuHvWa4lcwCLTlhX ntwkPH3nPstYgrYkSNEt8zrxOuldgsLxd7U6u/cONukLoCzBlFq2BhJpHgEkQ3oIcEUXiQMtXdDKV +16P8nww==; Received: from shell.armlinux.org.uk ([fd8f:7570:feb6:1:5054:ff:fe00:4ec]:35800) 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 1p7voG-0000TN-KP; Wed, 21 Dec 2022 09:54:48 +0000 Received: from linux by shell.armlinux.org.uk with local (Exim 4.94.2) (envelope-from ) id 1p7voB-0006Rt-Mc; Wed, 21 Dec 2022 09:54:43 +0000 Date: Wed, 21 Dec 2022 09:54:43 +0000 From: "Russell King (Oracle)" To: Andrew Lunn Cc: Christian Marangi , 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 06/11] leds: trigger: netdev: add hardware control support Message-ID: References: <20221214235438.30271-1-ansuelsmth@gmail.com> <20221214235438.30271-7-ansuelsmth@gmail.com> <639ca665.1c0a0220.ae24f.9d06@mx.google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: 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 Wed, Dec 21, 2022 at 12:59:55AM +0100, Andrew Lunn wrote: > > > One thought on this approach though - if one has a PHY that supports > > > "activity" but not independent "rx" and "tx" activity indications > > > and it doesn't support software control, how would one enable activity > > > mode? There isn't a way to simultaneously enable both at the same > > > time... However, I need to check whether there are any PHYs that fall > > > into this category. > > > > > > > Problem is that for such feature and to have at least something working > > we need to face compromise. We really can't support each switch feature > > and have a generic API for everything. > > I agree we need to make compromises. We cannot support every LED > feature of every PHY, they are simply too diverse. Hopefully we can > support some features of every PHY. In the worst case, a PHY simply > cannot be controlled via this method, which is the current state > today. So it is not worse off. ... and that compromise is that it's not going to be possible to enable activity mode on 88e151x with how the code stands and with the independent nature of "rx" and "tx" activity control currently in the netdev trigger... making this whole approach somewhat useless for Marvell PHYs. We really need to see a working implementation for this code for more than just one PHY to prove that it is actually possible for it to support other PHYs. If not, it isn't actually solving the problem, and we're going to continue getting custom implementations to configure the LED settings. -- RMK's Patch system: https://www.armlinux.org.uk/developer/patches/ FTTP is here! 40Mbps down 10Mbps up. Decent connectivity at last!