From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from smtp.codeaurora.org ([198.145.29.96]:46043 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751549AbcJDMqN (ORCPT ); Tue, 4 Oct 2016 08:46:13 -0400 From: Kalle Valo To: Rajat Jain Cc: Amitkumar Karwar , Nishant Sarmukadam , linux-wireless@vger.kernel.org, netdev@vger.kernel.org, Wei-Ning Huang , Brian Norris , Eric Caruso , Rajat Jain Subject: Re: [v2] mwifiex: report wakeup for wowlan References: <1475027104-17423-1-git-send-email-rajatja@google.com> <20161003130407.4D94161803@smtp.codeaurora.org> Date: Tue, 04 Oct 2016 15:46:03 +0300 In-Reply-To: (Rajat Jain's message of "Mon, 3 Oct 2016 17:16:19 -0700") Message-ID: <87vax8p9is.fsf@kamboji.qca.qualcomm.com> (sfid-20161004_144618_400351_4C6780BC) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: linux-wireless-owner@vger.kernel.org List-ID: Rajat Jain writes: > Hello Kalie, > > On Mon, Oct 3, 2016 at 6:04 AM, Kalle Valo wrote: >> Rajat Jain wrote: >>> Enable notifying wakeup source to the PM core in case of >>> a wake on wireless LAN event. >>> >>> Signed-off-by: Wei-Ning Huang >>> Signed-off-by: Rajat Jain >>> Tested-by: Wei-Ning Huang >>> Reviewed-by: Eric Caruso >>> Acked-by: Amitkumar Karwar >> >> The commit log doesn't give any background info. Does this fix a bug or >> why is it needed? > > Some of chromeos' features (called "darkresume" in chromeos > terminology) use and track the wake up sources using the wakeup > attributes in sysfs. Since the wireless device can wake up the host, > hence we wanted to add it as a wakeup source to the system, and in the > case of an actual wakeup event, trigger to the PM core that it was > indeed caused by the device and it increments the different counters > etc. In the absence of this patch, the feature wasn't working very > well (as it was apparently confused about the cause of wake up). Thanks, makes sense. Please add that to the commit and send v3. -- Kalle Valo