Return-path: Received: from dedo.coelho.fi ([88.198.205.34]:50812 "EHLO dedo.coelho.fi" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S932247AbaDIJVq (ORCPT ); Wed, 9 Apr 2014 05:21:46 -0400 Message-ID: <1397035298.4418.60.camel@dubbel> (sfid-20140409_112149_305317_78B98A0B) From: Luca Coelho To: Yegor Yefremov Cc: linux-wireless@vger.kernel.org, kaloz@openwrt.org Date: Wed, 09 Apr 2014 12:21:38 +0300 In-Reply-To: References: <1396988949.4418.46.camel@dubbel> Content-Type: text/plain; charset="UTF-8" Mime-Version: 1.0 Subject: Re: wl1271: tx stuck in firmware Sender: linux-wireless-owner@vger.kernel.org List-ID: On Wed, 2014-04-09 at 11:14 +0200, Yegor Yefremov wrote: > On Tue, Apr 8, 2014 at 10:29 PM, Luca Coelho wrote: > > On Tue, 2014-04-08 at 17:28 +0200, Yegor Yefremov wrote: > >> Any idea, what could be wrong? > > > > First of all, try a clean kernel. > > It is not simple to get a clean kernel. "Official" support for > am335x-evmsk WLAN was added first in the upcoming 3.15 kernel. I've > tried the merge window version (3.14.0-12041-g75ff24f-dirty) and get > following issue: > > # calibrator wlan0 plt power_mode on > wlcore: power up > wlcore: ERROR timeout waiting for the hardware to complete initialization > wlcore: ERROR timeout waiting for the hardware to complete initialization > wlcore: ERROR timeout waiting for the hardware to complete initialization > wlcore: ERROR firmware boot in PLT mode failed despite 3 retries > command failed: Input/output error (-5) Okay, the main question here is, did you make any changes in the wlcore/wl12xx code? As I said, the TX watchdog should *not* be initialized in PLT mode. Maybe you could add some prints in the driver to see when the watchdog timer is set up? Try to add a printk in every place where wl12xx_rearm_tx_watchdog_locked() is called to see where it is being armed. > If I use the "normal" firmware, i.e. ifconfig wlan0 up, it gets loaded > and I can search for the stations. But PLT doesn't want to boot. Do > you still have a board, where you could try the latest > kernel/firmware? I do have a board, but I *really* don't have the time to set it up and everything. Sorry about that... -- Cheers, Luca.