From: Kalle Valo Subject: Re: [EXTERNAL] Re: [PATCH] wlcore: Fix bringing up wlan0 again if powered down briefly Date: Mon, 07 Jan 2019 18:12:21 +0200 Message-ID: <87k1jgsaze.fsf@kamboji.qca.qualcomm.com> References: <20181217164207.20081-1-tony@atomide.com> <20181218155439.GB6707@atomide.com> <20181220231401.GG6707@atomide.com> <20181223160226.GK6707@atomide.com> <20181228195903.GX6707@atomide.com> <20190107151849.GC5544@atomide.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: In-Reply-To: <20190107151849.GC5544-4v6yS6AI5VpBDgjK7y7TUQ@public.gmane.org> (Tony Lindgren's message of "Mon, 7 Jan 2019 07:18:49 -0800") Sender: linux-wireless-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: Tony Lindgren Cc: Ulf Hansson , "Reizer, Eyal" , KISHON VIJAY ABRAHAM , "Mishol, Guy" , "linux-wireless@vger.kernel.org" , linux-omap , Anders Roxell , John Stultz , Ricardo Salveti List-Id: linux-omap@vger.kernel.org Tony Lindgren writes: > * Ulf Hansson [190102 12:02]: >> >> However, if this is about an out-of-band IRQ line, instead of using >> the SDIO IRQs on DAT1, I think management of that, belongs in the wlan >> (or gpiochip) layers. > > Yes this can be handled at the gpiochip layer. > >> We have to distinguish if "down" has a strict requirement to power off >> the wlan-chip. >> >> For example, in "flight mode", is it okay to leave the wlan chip >> powered on and thus potentially also having its radio part active? > > I don't know. If unsure, we should at least have that possibility > available for future versions if needed. It might also help a bit > with PM measurements :) I don't know if there are any written rules but I have preferred that in wireless drivers "ifconfig down" means that all power is turned off on the device, at least this way user space can achive maximum power savings. And there's also a simple way to start the firmware from clean state, we all know how buggy firmwares are so I think that's important as well. -- Kalle Valo