Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp1921002lqp; Sat, 23 Mar 2024 15:19:14 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWQCjDXKf7UIsOkFBUbhAZQwotYFFG7LeNkspNGpiL3BSaYI2FIbMBTjLfpJMZ6s1bdPCXO8gJb0fY1uj+X6vmYak9v8A8eaXFoOjLcfw== X-Google-Smtp-Source: AGHT+IGhVvo95/RSNvnKlcKnJ3B0HDtovn6mDdaz2WC9GZ9T7CV5f3ZTmhnW6oeTOCCu8fAFYzCD X-Received: by 2002:a50:8d42:0:b0:56b:b0f9:b7bb with SMTP id t2-20020a508d42000000b0056bb0f9b7bbmr1766559edt.41.1711232354630; Sat, 23 Mar 2024 15:19:14 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711232354; cv=pass; d=google.com; s=arc-20160816; b=cgk2UWmvtw2FDfDqstRIOiuQqkUu/CBqdq3Ssh7KT/GPCKqRJ2BkFJWw1MgqEUxT0t YV2SwWQbH/7XxkH3D4v5yxrMXGZPko0pytM4TWBe+UEmb+ICqFtgus7PG/kPIFpRhCbI ONWxlckFHP4lDGvamFr1Y7zV5431QMn0cKCAMj44JE8uBKNaSKHEVkuULzNJVwFHw5GA T7OeJRkVV6k2JtwCHnGbaER7sP/XZiVeDsBw5cSyMp/p9mdciDArzITw8NyJqq5kyoUW fSefmq03IL8uCaOX7JQBPUel1WxMpt2sHX8wm8a9fg97T1qyToJaMPGV/mNws2wuoRAX N0dw== 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:dkim-signature; bh=F33wnbx3Y36tdDg+lawZFiW4Fv7MKDor5UODN7GSPC8=; fh=afNLKPd0LNP149aHJSFfTeWRi7jchNzzQXGm4hwkEpw=; b=a3vMyzV+0RCKc1W22T7TlyScv0WMVEha6a0jJ1FC7fsrWptTwQSHnE0Ut6F6ZpAKmo HMjFmEZyHoV40DB3NzZKvJNO0yGLupI16yhbCfAuMNs/+GDiSDwUVn5o0dWOr2ROyIsJ 2iD0sirZvcYZ9YzZbxBPOxJ6jKsaDwejj/tn2x6rHIVOKtAHVb8k5PHSIu/UdIHSnE6s yFrQM3/tnz2bdQA7q3DpeF3GMfwCzG8Tjjjt+wO4yzuBh5U/wBKspfixYCx12fZ/22uJ aWru/SQ2Jy85zKuzxC0a8uFNrG5GBbNeVF5USu+Nt2dLKR4efR2FdxnTMbLWtQ2yAtOA rnkw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=mdwqG+3F; arc=pass (i=1 spf=pass spfdomain=lunn.ch dkim=pass dkdomain=lunn.ch dmarc=pass fromdomain=lunn.ch); spf=pass (google.com: domain of linux-kernel+bounces-112501-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-112501-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=lunn.ch Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id bd12-20020a056402206c00b0056ba00670a4si1115459edb.502.2024.03.23.15.19.14 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 23 Mar 2024 15:19:14 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-112501-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; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=mdwqG+3F; arc=pass (i=1 spf=pass spfdomain=lunn.ch dkim=pass dkdomain=lunn.ch dmarc=pass fromdomain=lunn.ch); spf=pass (google.com: domain of linux-kernel+bounces-112501-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-112501-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=lunn.ch 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 5B0891F218B7 for ; Sat, 23 Mar 2024 22:19:14 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D28C05B208; Sat, 23 Mar 2024 22:19:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=lunn.ch header.i=@lunn.ch header.b="mdwqG+3F" Received: from vps0.lunn.ch (vps0.lunn.ch [156.67.10.101]) (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 7FDF12940B; Sat, 23 Mar 2024 22:18:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=156.67.10.101 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711232344; cv=none; b=uQZvDG6eaurfG4o0zUyyJv/6jkonXz47mrNFHYIvtykpQt3E8eXPYdE1kMx+XXhEqS/SP8GIHsQJ7g/5Y2daDEy0iDJlkfn7F2wsq/dqt4MRqYA04jPFZQ8EFkX8QEfG/HWebp6LxeaDEz7520Zfm5ViX1qQ7hzhAd29w5VUvzg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711232344; c=relaxed/simple; bh=zOnHMRE7LGC7fcqhOYhsQ1fSZQPVh1+EyyF1vqCgLrk=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=cLb0YGwuqBJcs1R9t8Jpb9YZwxquWtUS3PvYI64JQJ/T5cWWIAnrr9XCW5K1eCtMi3W+pqhe82lZ+DxMPFSZfqfUjVcVj2iPYthnRwsYzmyRsDpnwYVIoDW0RFIKfu1Hp4SdhILKxC+PvAJqY/1YGtpV4mv3CkDfavl5WWJC1jE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=lunn.ch; spf=pass smtp.mailfrom=lunn.ch; dkim=pass (1024-bit key) header.d=lunn.ch header.i=@lunn.ch header.b=mdwqG+3F; arc=none smtp.client-ip=156.67.10.101 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=lunn.ch Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=lunn.ch 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=F33wnbx3Y36tdDg+lawZFiW4Fv7MKDor5UODN7GSPC8=; b=mdwqG+3FksuYxx7/e8MH3Wp5bU 4QoFdM3A/3u16qenQEZuOh35DPyFmWVNmeYw3kPwA7ZpH3e+kaRugfnzAmcr1fvQds7NQA4u6nSk+ rCbjDcrwOptaGm/CITDxSLalhNdDLB7TXz5MXlwt71jxo9rfjT+KeWStdOnagboJIML8=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1ro9hQ-00B4Rx-HJ; Sat, 23 Mar 2024 23:18:48 +0100 Date: Sat, 23 Mar 2024 23:18:48 +0100 From: Andrew Lunn To: Daniel Hodges Cc: ast@kernel.org, pavel@ucw.cz, lee@kernel.org, linux-leds@vger.kernel.org, daniel@iogearbox.net, bpf@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 1/3] leds: trigger: legtrig-bpf: Add ledtrig-bpf module Message-ID: References: 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: On Fri, Mar 22, 2024 at 10:08:14AM -0400, Daniel Hodges wrote: > This patch adds a led trigger that interfaces with the bpf subsystem. It > allows for BPF programs to control LED activity through calling bpf > kfuncs. This functionality is useful in giving users a physical > indication that a BPF program has performed an operation such as > handling a packet or probe point. Don't you want a mechanism to say which LED it should blink? Say you have a BPF IR receiver, a BPF kernel scheduler and a BPF firewall. All sharing the same LED is probably not what you want. Each probably wants its own LED. Andrew