Received: by 2002:a05:6358:f14:b0:e5:3b68:ec04 with SMTP id b20csp4841009rwj; Tue, 20 Dec 2022 16:04:15 -0800 (PST) X-Google-Smtp-Source: AA0mqf549JrBuFonChqnlNxkNiUhtaE5UmFMRXP5CGPjNKxB0T+lcKoUZDk2hWooc7YwsuXFRrOB X-Received: by 2002:a17:902:7243:b0:18c:cde:fddb with SMTP id c3-20020a170902724300b0018c0cdefddbmr54065768pll.65.1671581055539; Tue, 20 Dec 2022 16:04:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1671581055; cv=none; d=google.com; s=arc-20160816; b=K5fmv1hBfjDD4/kgvCjFrCmS9GfbYaKprAPpukWvTBVRj5qwxuCY5jn8Go+w2xrKOB 6537E0iiKAOU5vaG9oVrdrdB5Y06RsWj61voN9bLSp/He6dRFLROFtrMo5GnpN7zLnRh xJEItmC5ZSg6lTjNIf2/AjlzbzaIqxqp1L6qWz22oATAhVOOddjWIEQTX8WFIVKtEHEL xpKCtmqmgMUMCrJOGykdXOdOqz77jYS2GTCKkyHMgxSf4/DLrd3YGbkAammW+Lj3fQ3G mFgmllS5UIXlTQzcfe3OuqtTG25gnJaBMxoPwFl8pM9r+zHoChyqxXPJIviTSJrr5amz qIRQ== 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=ZWey8MiaU6pEkm7hu7YYoSQxra2dhDL6Zkj1bzILagQ=; b=FNI1aA47xLy82xsN0m3vlqeLCwuxQS+NFWMeFINBOIDEHyNPZfaru5EnsS7Ntfu0Rk FHZ0NuWHCVRTB4u1RPDp+E984X143N9sLymJ4t5YfSJs9S416SFqZ8KuJzXgh3UTQBfP 5tpLb+GKnRCOhXLoF/A6DTTjq+fPLwyFV2D4REL+bv0xkWgVHEJOZ7XuNxOFhSmoKm8A CD05vhnrOBXiVIallPGW/MD+uyAJc6mS+Qm3DOQgPPLIgtrUgKv0ZpOn+Eg9ziSb4gQw c9ik4Zo0xtQdNdMvuRJ0jmVKn9xyMaHGvJS14R7ImRCBgZvoLlNyYrV2Kte1YB3gzt4O BZ6Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=O0UxIqJ6; 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=pass (p=NONE sp=NONE dis=NONE) header.from=lunn.ch Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j14-20020a170903028e00b00172696f35e1si15197040plr.482.2022.12.20.16.04.03; Tue, 20 Dec 2022 16:04:15 -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=pass header.i=@lunn.ch header.s=20171124 header.b=O0UxIqJ6; 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=pass (p=NONE sp=NONE dis=NONE) header.from=lunn.ch Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234237AbiLUAAO (ORCPT + 69 others); Tue, 20 Dec 2022 19:00:14 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43854 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230164AbiLUAAL (ORCPT ); Tue, 20 Dec 2022 19:00:11 -0500 Received: from vps0.lunn.ch (vps0.lunn.ch [156.67.10.101]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7E1871EAE9; Tue, 20 Dec 2022 16:00:08 -0800 (PST) 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=ZWey8MiaU6pEkm7hu7YYoSQxra2dhDL6Zkj1bzILagQ=; b=O0UxIqJ60w5HMEjz8xkTqvGuen ZgvW+OioAEwwWSbYrTEfGTQRzaFDdeO0WbMpEEPoPuD2Y5FBrYlc21IhfXUQ4dBrNC8nYfyHPiJua xdY0TG+CO5BLg1g89/zHyL4npN7OEFeEVujsCK6lHvtFUPQTJ6xU/FZa8xz30QOX1Y8w=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1p7mWZ-0008IM-MY; Wed, 21 Dec 2022 00:59:55 +0100 Date: Wed, 21 Dec 2022 00:59:55 +0100 From: Andrew Lunn To: Christian Marangi Cc: "Russell King (Oracle)" , 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: <639ca665.1c0a0220.ae24f.9d06@mx.google.com> 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_PASS,SPF_PASS 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 > > 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. Andrew