Return-path: Received: from smtp.codeaurora.org ([198.145.29.96]:49214 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752425AbeDFPWX (ORCPT ); Fri, 6 Apr 2018 11:22:23 -0400 From: Kalle Valo To: ath10k@lists.infradead.org Cc: Sebastian Gottschall , linux-wireless@vger.kernel.org, Sebastian Gottschall Subject: Re: [PATCH v13] ath10k: add LED and GPIO controlling support for various chipsets References: <1523027875-5143-1-git-send-email-kvalo@codeaurora.org> Date: Fri, 06 Apr 2018 18:22:19 +0300 In-Reply-To: <1523027875-5143-1-git-send-email-kvalo@codeaurora.org> (Kalle Valo's message of "Fri, 6 Apr 2018 18:17:55 +0300") Message-ID: <87o9iwcqc4.fsf@kamboji.qca.qualcomm.com> (sfid-20180406_172242_819312_437568A4) MIME-Version: 1.0 Content-Type: text/plain Sender: linux-wireless-owner@vger.kernel.org List-ID: Kalle Valo writes: > From: Sebastian Gottschall > > Adds LED and GPIO Control support for 988x, 9887, 9888, 99x0, 9984 based > chipsets with on chipset connected led's using WMI Firmware API. The LED > device will get available named as "ath10k-phyX" at sysfs and can be controlled > with various triggers. adds also debugfs interface for gpio control. > > Signed-off-by: Sebastian Gottschall >From and Signed-off-by fields do not match. Sebastian, which domain should it be? > Reviewed-by: Steve deRosier > [kvalo: major reorg and cleanup] > Signed-off-by: Kalle Valo > --- > > v13: > > * only compile tested! So testing is very welcome. > --- a/drivers/net/wireless/ath/ath10k/Kconfig > +++ b/drivers/net/wireless/ath/ath10k/Kconfig > @@ -52,6 +52,16 @@ config ATH10K_DEBUGFS > > If unsure, say Y to make it easier to debug problems. > > +config ATH10K_LEDS > + bool "Atheros ath10k LED support" > + depends on ATH10K > + select MAC80211_LEDS > + select LEDS_CLASS > + select NEW_LEDS > + default y > + help > + This option is necessary, if you want LED support for chipset connected led pins. If unsure, say N. > + I started to wonder is this Kconfig option even needed, feels pretty pointless. Why not just make config ATH10K depend on LED stuff, just like ath9k already does? > --- a/drivers/net/wireless/ath/ath10k/core.h > +++ b/drivers/net/wireless/ath/ath10k/core.h > @@ -25,6 +25,7 @@ > #include > #include > #include > +#include > > #include "htt.h" > #include "htc.h" > @@ -883,7 +884,6 @@ struct ath10k { > u32 low_5ghz_chan; > u32 high_5ghz_chan; > bool ani_enabled; > - > bool p2p; > > struct { Unrelated change, I'll fix that in v14. -- Kalle Valo