Received: by 2002:ab2:7b86:0:b0:1f7:5705:b850 with SMTP id q6csp1259656lqh; Mon, 6 May 2024 01:59:54 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVkiVwRPoPJoBj/mule/zPDFbif4uB5tNtwHxEseI8B6FmHP/J8inJTqGtktfMKX/aD1ZHPhwkAbeG4bJDrEGuCrsP6VBL5ys7zX2jHow== X-Google-Smtp-Source: AGHT+IH5wIzI0W8ozAXuJVVd4ums6il3RiQ0kCt1hWvSfaXdq+Dr2ABQSPwN1ukk3lXwbdKczUFG X-Received: by 2002:a17:906:6708:b0:a59:c0ec:d555 with SMTP id a8-20020a170906670800b00a59c0ecd555mr2270686ejp.54.1714985994030; Mon, 06 May 2024 01:59:54 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714985994; cv=pass; d=google.com; s=arc-20160816; b=Jes7XHm+05i4zQM3zAcuntCGWy51XzpOrHCJKHJDoqqFRn9J61gXfMaNd4thwzS8Wo x5s9Re91U5FLgbLFLIzqeFqFk14IFrhGQ1Xt6L+n1fhJuV7/U1qTj5PzCwRwzh+N6bH5 zaidg6veyxqeoBIxRIDW0+us+BKugmgnTiexda4quurys5uvJOq48ZKRfo7dA7AD/bh3 GMMUagD00vaa4pCyEDB+kPVC09lAKNbYl94tXc7ScpdoOeriDNKTFlSMbi/CcGH5qES3 tXHShNCXM2g0Hf2k6GyL7uyRWfXfOT9yPAGObvTLjK0w6St276JTPUxq3Vx2mYl3Tho7 NIzg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date; bh=TmFzsPThFTZVil5iGqbx3Z9kbbktmZ6ossWtR6tAl/s=; fh=Ed7tQDPmcbiXOy0lwNQUSpL++XNmwnNSOFrKKCH4+SE=; b=I8E2XqK8MKqfWKQEYUIgAoVMearKav2RFh3KRvNq4/6GT3Ae8In7C9uE6+Qp8LPdSq 9a0jnRfhlU9Fz9GtlKKKuUQeOBaknZfH8SYXhivZj2OoudkemLvqnRn8HpeMSKv0o6Nx LjLC8ZKqwAUXkoKfKETnOtxMOp6pXZCAaunYsLD8QvCR4kdoVP3pedxM18OdNy75e/Yj PPCcEZ0bvDtO6CfwPkKjrhn89adPf+Y4JXBAO8940VWB64KQzXmLGNLpvFMwnOBqRmXq 4gj+Em9b7dVyK39k1aG6hkQkc6oKUpgevYmyhN6gDy+6qHC3bWZF7R6cqNVAUPKEG8KQ ysHg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=makrotopia.org); spf=pass (google.com: domain of linux-kernel+bounces-169543-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-169543-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id dk16-20020a170906f0d000b00a59c3d4e16csi1661511ejb.399.2024.05.06.01.59.53 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 May 2024 01:59:54 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-169543-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=makrotopia.org); spf=pass (google.com: domain of linux-kernel+bounces-169543-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-169543-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id B7E9D1F22C55 for ; Mon, 6 May 2024 08:59:53 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A66071422B7; Mon, 6 May 2024 08:59:39 +0000 (UTC) Received: from pidgin.makrotopia.org (pidgin.makrotopia.org [185.142.180.65]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 692041420B9; Mon, 6 May 2024 08:59:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.142.180.65 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714985979; cv=none; b=oVHYNSplVGKgmMb1mA52sULnZbzOQXrNXgPRvvISdVUkebPXhaChi0eEpGcHzekOTLFZ50Bc2s5+M135mF4394mLwJz+b7bBcnYo91YMF8MYXFtelFXT2+JYLTX4hpo3DYlvH6oIYZ3E5v7QS+d7DzL10s5MOpdH1hZW+5S0Ddk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714985979; c=relaxed/simple; bh=Ip4PJGmssqUYDHs84SW1KF6dPBdDymkhSRWjUmFmSZw=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=sXn3lELLSg7tTznhYzYiG246oD61Ppe9Kem6biZo/2gPpOQ3XglDnTHEKBGQvoGkbYqpHR/TkLkuvz+mCgmUkbh8aHCmTmK04FHy9h7wMFKj0EggjV+bT9oyg9m0jMne9+HyYWyIXKXAfxFBwhJniZg6OjFiDEL8gqqMgP/bX/s= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=makrotopia.org; spf=pass smtp.mailfrom=makrotopia.org; arc=none smtp.client-ip=185.142.180.65 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=makrotopia.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=makrotopia.org Received: from local by pidgin.makrotopia.org with esmtpsa (TLS1.3:TLS_AES_256_GCM_SHA384:256) (Exim 4.97.1) (envelope-from ) id 1s3uC1-0000000057d-1grd; Mon, 06 May 2024 08:59:29 +0000 Date: Mon, 6 May 2024 09:59:25 +0100 From: Daniel Golle To: Krzysztof Kozlowski Cc: Frank Wunderlich , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Michael Turquette , Stephen Boyd , Pavel Machek , Lee Jones , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Matthias Brugger , AngeloGioacchino Del Regno , devicetree@vger.kernel.org, Tianling Shen , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mediatek@lists.infradead.org, linux-arm-kernel@lists.infradead.org, Eric Woudstra , linux-clk@vger.kernel.org, linux-leds@vger.kernel.org Subject: Re: [RFC v1 1/5] dt-bindings: leds: add led trigger netdev Message-ID: References: <20240505164549.65644-1-linux@fw-web.de> <20240505164549.65644-2-linux@fw-web.de> <8e9fd4c9-f537-4413-b8c8-988b001b64c0@linaro.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <8e9fd4c9-f537-4413-b8c8-988b001b64c0@linaro.org> On Mon, May 06, 2024 at 10:18:09AM +0200, Krzysztof Kozlowski wrote: > On 05/05/2024 18:45, Frank Wunderlich wrote: > > From: Frank Wunderlich > > > > Add led trigger implemented with config-symbol LEDS_TRIGGER_NETDEV to > > binding. > > > > Signed-off-by: Frank Wunderlich > > --- > > Documentation/devicetree/bindings/leds/common.yaml | 2 ++ > > 1 file changed, 2 insertions(+) > > > > diff --git a/Documentation/devicetree/bindings/leds/common.yaml b/Documentation/devicetree/bindings/leds/common.yaml > > index 8a3c2398b10c..bf9a101e4d42 100644 > > --- a/Documentation/devicetree/bindings/leds/common.yaml > > +++ b/Documentation/devicetree/bindings/leds/common.yaml > > @@ -113,6 +113,8 @@ properties: > > # LED indicates NAND memory activity (deprecated), > > # in new implementations use "mtd" > > - nand-disk > > + # LED indicates network activity > > + - netdev > > "dev" is redundant (there is no flash-dev or usb-host-dev). Two network > interfaces are already provided, so your commit msg must provide > rationale why this is not enough and why this is useful/needed. Also note that using 'netdev' assigned via DT via linux,default-trigger currently doesn't work well. This is because the assignment of the trigger from DT happens when the PHY is being attached initially, and that's **before** the network device is registered with Linux. As a result, LED event offloading is never used if done in this way. I know that bindings and implementation are two different independent things, but yet I believe that adding bindings for a feature which doesn't really work would be misleading.