From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mail-wr0-f196.google.com ([209.85.128.196]:34782 "EHLO mail-wr0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756011AbdGKPBa (ORCPT ); Tue, 11 Jul 2017 11:01:30 -0400 Received: by mail-wr0-f196.google.com with SMTP id k67so469723wrc.1 for ; Tue, 11 Jul 2017 08:01:30 -0700 (PDT) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 10.3 \(3273\)) Subject: Re: [PATCH] brcmfmac: added LED triggers for transmit/receive From: Russell Joyce In-Reply-To: <60de1301-b4a3-95a7-117f-a953576655d9@broadcom.com> Date: Tue, 11 Jul 2017 16:01:16 +0100 Cc: =?utf-8?B?UmFmYcWCIE1pxYJlY2tp?= , Alan Millard , Franky Lin , Hante Meuleman , Chi-Hsien Lin , Wright Feng , Kalle Valo , Marc Kleine-Budde , Marcel Holtmann , "Michael S. Tsirkin" , Pieter-Paul Giesberts , =?utf-8?B?UmFmYcWCIE1pxYJlY2tp?= , "mhiramat@kernel.org" , James Hughes , Tobias Klauser , Linux Kernel Mailing List , "linux-wireless@vger.kernel.org" , "open list:BROADCOM BRCM80211 IEEE802.11n WIRELESS DRIVER" , brcm80211-dev-list@cypress.com, Network Development Message-Id: (sfid-20170711_170158_947590_DB59FE25) References: <20170707140941.122115-1-russell.joyce@york.ac.uk> <60de1301-b4a3-95a7-117f-a953576655d9@broadcom.com> To: Arend van Spriel Sender: linux-wireless-owner@vger.kernel.org List-ID: Thanks for your comments. > What I think Rafa=C5=82 is saying is that it would be better to have = this > code in cfg80211 so other drivers including mac80211 could use it. While I agree that moving all wireless LED triggers to cfg80211 would be = an ideal situation, it seems a bit out of scope for what I was trying to = achieve. This would probably also require removing the mac80211 LED triggers (and = any other similar triggers that might be created by specific wireless = drivers not using mac80211), in order to consolidate them in one place. Besides this, I'm not sure where exactly in cfg80211 this functionality = would go (I assume it was originally put in mac80211 instead for a reason?), although I'm certainly no expert in this area of the kernel. > Indeed. However, the LED subsystem could/should(?) take care of = mapping > "rx" and "tx" triggers to the same LED. In terms of the LED triggers, the only alternative I can see is to = create a single complex trigger that exposes "rx" and "tx" parameters that can be individually enabled or disabled. This would reduce the number of = triggers from three to one, but also makes things slightly more awkward for the user, = and deviates from the convention set by mac80211.