Return-path: Received: from mail-bk0-f46.google.com ([209.85.214.46]:40928 "EHLO mail-bk0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754741Ab2B2Rnk (ORCPT ); Wed, 29 Feb 2012 12:43:40 -0500 Received: by bkcik5 with SMTP id ik5so2555288bkc.19 for ; Wed, 29 Feb 2012 09:43:38 -0800 (PST) From: Christian Lamparter To: Larry Finger Subject: Re: [PATCH 4/5] p54pci: Load firmware from work queue and not from probe routine Date: Wed, 29 Feb 2012 18:43:26 +0100 Cc: linux-wireless@vger.kernel.org, linville@tuxdriver.com References: <1329161826-11135-1-git-send-email-Larry.Finger@lwfinger.net> <1329161826-11135-5-git-send-email-Larry.Finger@lwfinger.net> <4F4E4B52.4070701@lwfinger.net> In-Reply-To: <4F4E4B52.4070701@lwfinger.net> MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Message-Id: <201202291843.26824.chunkeey@googlemail.com> (sfid-20120229_184349_975195_FA528D8D) Sender: linux-wireless-owner@vger.kernel.org List-ID: On Wednesday, February 29, 2012 04:59:14 PM Larry Finger wrote: > On 02/13/2012 01:37 PM, Larry Finger wrote: > > Drivers that load firmware from their probe routine have problems with the > > latest versions of udev as they get timeouts while waiting for user > > space to start. The problem is fixed by loading the firmware and starting > > mac80211 from a delayed_work queue. By using this method, most of the > > original code is preserved. > > > > Signed-off-by: Larry Finger > > --- > > > > This patch is compile tested only. > > > > Larry > > Has anyone tested this patch? I would like to submit this series. only briefly, but I'm not sure if the workqueue approach is adequate. On resume, I get WARNINGs and the card fails to resume because the firmware file can't be loaded :(. WARNING: at drivers/base/firmware_class.c:538 _request_firmware+0x3ae/0x3e0() Pid: 1083, comm: kworker/0:3 Tainted:G O 3.3.0-rc5-wl+ Call Trace: [] ? wanr_slowpath_common+0x78/0xb0 [] ? _request_firmware+0x3ae/0x3e0 [] ? _requrst_firmware+0x3ae/0x3e0 [] ? warn_slowpath_common+0x19/0x20 [] ? _request_firmware+0x3ae/0x3e0 [] ? request_firmware+0x17/0x20 [] ? p54p_load_firmware+0x47/0x120 [p54pci] [...] Regards, Chr BTW: I will take a closer look at it over the weekend.