Return-path: Received: from mail-lb0-f180.google.com ([209.85.217.180]:36214 "EHLO mail-lb0-f180.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751673AbcDGVR0 (ORCPT ); Thu, 7 Apr 2016 17:17:26 -0400 Received: by mail-lb0-f180.google.com with SMTP id bk9so30677315lbc.3 for ; Thu, 07 Apr 2016 14:17:25 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: References: <20160407130251.GA19696@c50.bag.software> From: Vishal Thanki Date: Thu, 7 Apr 2016 23:17:05 +0200 Message-ID: (sfid-20160407_231729_484598_AABC1365) Subject: Re: mwifiex: kernel WARN_ON during system suspend To: Andreas Fenkart Cc: Amitkumar Karwar , Nishant Sarmukadam , "linux-wireless@vger.kernel.org" Content-Type: text/plain; charset=UTF-8 Sender: linux-wireless-owner@vger.kernel.org List-ID: On Thu, Apr 7, 2016 at 11:12 PM, Andreas Fenkart wrote: > Hi Vishal, > > 2016-04-07 15:02 GMT+02:00 Vishal Thanki : >> Hi All, >> >> I noticed that sometime I see the kernel trace while system enters into >> suspend. The trace log is attached with this email. >> >> From the kernel trace it appears that mwifiex_cancel_all_pending_cmd() >> function tries to cancel the current command by invoking >> mwifiex_complete_cmd(). Just before calling this routine, the >> adapter->curr_cmd->wait_q_enabled is set to false. And there is a >> WARN_ON() in the mwifiex_complete_cmd() routine on this variable being >> false, because this condition will always evaluate to true. > > thanks for the analysis. > tested-by: afenkart@gmail.com > Thanks for the feedback. Should I submit the patch as a separate email? Vishal