From patchwork Mon Jan 19 14:34:32 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sabrina Dubroca X-Patchwork-Id: 5659071 X-Patchwork-Delegate: kvalo@adurom.com Return-Path: X-Original-To: patchwork-linux-wireless@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 9C7B79F357 for ; Mon, 19 Jan 2015 14:35:22 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id C0BFB202F8 for ; Mon, 19 Jan 2015 14:35:21 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 7011F20272 for ; Mon, 19 Jan 2015 14:35:20 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751374AbbASOfQ (ORCPT ); Mon, 19 Jan 2015 09:35:16 -0500 Received: from smtpfb1-g21.free.fr ([212.27.42.9]:42125 "EHLO smtpfb1-g21.free.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751166AbbASOfP (ORCPT ); Mon, 19 Jan 2015 09:35:15 -0500 Received: from smtp4-g21.free.fr (smtp4-g21.free.fr [212.27.42.4]) by smtpfb1-g21.free.fr (Postfix) with ESMTP id 68AFF7869D4 for ; Mon, 19 Jan 2015 15:35:12 +0100 (CET) Received: from localhost (unknown [88.177.17.65]) by smtp4-g21.free.fr (Postfix) with ESMTP id 73AE64C80EB; Mon, 19 Jan 2015 15:33:03 +0100 (CET) From: Sabrina Dubroca To: kvalo@codeaurora.org, stefano.brivio@polimi.it Cc: linux-wireless@vger.kernel.org, b43-dev@lists.infradead.org, Sabrina Dubroca Subject: [PATCH] b43: stop leds during suspend Date: Mon, 19 Jan 2015 15:34:32 +0100 Message-Id: <1421678072-28997-1-git-send-email-sd@queasysnail.net> X-Mailer: git-send-email 2.2.2 Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Call b43_leds_stop during suspend to avoid this WARN: WARNING: CPU: 1 PID: 0 at net/mac80211/util.c:755 ieee80211_can_queue_work.isra.11+0x35/0x50 [mac80211]() queueing ieee80211 work while going to suspend [...] Call Trace: [] dump_stack+0x48/0x69 [] warn_slowpath_common+0x8b/0xc0 [] ? ieee80211_can_queue_work.isra.11+0x35/0x50 [mac80211] [] ? ieee80211_can_queue_work.isra.11+0x35/0x50 [mac80211] [] warn_slowpath_fmt+0x33/0x40 [] ieee80211_can_queue_work.isra.11+0x35/0x50 [mac80211] [] ieee80211_queue_work+0x20/0x40 [mac80211] [] b43_led_brightness_set+0x28/0x30 [b43] [] led_timer_function+0xd5/0xe0 [] call_timer_fn+0xa4/0x4a0 Signed-off-by: Sabrina Dubroca --- drivers/net/wireless/b43/main.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/wireless/b43/main.c b/drivers/net/wireless/b43/main.c index 47731cb0d815..58a2e88631fb 100644 --- a/drivers/net/wireless/b43/main.c +++ b/drivers/net/wireless/b43/main.c @@ -4318,6 +4318,7 @@ redo: mutex_unlock(&wl->mutex); cancel_delayed_work_sync(&dev->periodic_work); cancel_work_sync(&wl->tx_work); + b43_leds_stop(dev); mutex_lock(&wl->mutex); dev = wl->current_dev; if (!dev || b43_status(dev) < B43_STAT_STARTED) {