From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mail-wg0-f53.google.com ([74.125.82.53]:33013 "EHLO mail-wg0-f53.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750869AbaLBG6L convert rfc822-to-8bit (ORCPT ); Tue, 2 Dec 2014 01:58:11 -0500 Received: by mail-wg0-f53.google.com with SMTP id l18so15906233wgh.26 for ; Mon, 01 Dec 2014 22:58:10 -0800 (PST) MIME-Version: 1.0 In-Reply-To: <20141201144458.18248.28568.stgit@potku.adurom.net> References: <20141201144400.18248.62714.stgit@potku.adurom.net> <20141201144458.18248.28568.stgit@potku.adurom.net> Date: Tue, 2 Dec 2014 07:58:09 +0100 Message-ID: (sfid-20141202_075814_731735_9E08D1B4) Subject: Re: [PATCH v3 1/7] ath10k: create ath10k_core_init_features() From: Michal Kazior To: Kalle Valo Cc: "ath10k@lists.infradead.org" , linux-wireless Content-Type: text/plain; charset=UTF-8 Sender: linux-wireless-owner@vger.kernel.org List-ID: On 1 December 2014 at 15:44, Kalle Valo wrote: [...] > int ath10k_core_start(struct ath10k *ar, enum ath10k_firmware_mode mode) > @@ -1046,7 +1047,12 @@ static int ath10k_core_probe_fw(struct ath10k *ar) > return ret; > } > > - ath10k_core_init_max_sta_count(ar); > + ret = ath10k_core_init_firmware_features(ar); > + if (ret) { > + ath10k_err(ar, "fatal problem with firmware features: %d\n", > + ret); > + return ret; I think you should call ath10k_core_free_firmware_files() and ath10k_hif_power_down() before returning (similar to how ath10k_core_start() failure is handled). MichaƂ From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mail-wi0-x235.google.com ([2a00:1450:400c:c05::235]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1XvhPu-0005AS-2z for ath10k@lists.infradead.org; Tue, 02 Dec 2014 06:58:34 +0000 Received: by mail-wi0-f181.google.com with SMTP id r20so19895261wiv.2 for ; Mon, 01 Dec 2014 22:58:11 -0800 (PST) MIME-Version: 1.0 In-Reply-To: <20141201144458.18248.28568.stgit@potku.adurom.net> References: <20141201144400.18248.62714.stgit@potku.adurom.net> <20141201144458.18248.28568.stgit@potku.adurom.net> Date: Tue, 2 Dec 2014 07:58:09 +0100 Message-ID: Subject: Re: [PATCH v3 1/7] ath10k: create ath10k_core_init_features() From: Michal Kazior List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 Sender: "ath10k" Errors-To: ath10k-bounces+kvalo=adurom.com@lists.infradead.org To: Kalle Valo Cc: linux-wireless , "ath10k@lists.infradead.org" T24gMSBEZWNlbWJlciAyMDE0IGF0IDE1OjQ0LCBLYWxsZSBWYWxvIDxrdmFsb0BxY2EucXVhbGNv bW0uY29tPiB3cm90ZToKWy4uLl0KPiAgaW50IGF0aDEwa19jb3JlX3N0YXJ0KHN0cnVjdCBhdGgx MGsgKmFyLCBlbnVtIGF0aDEwa19maXJtd2FyZV9tb2RlIG1vZGUpCj4gQEAgLTEwNDYsNyArMTA0 NywxMiBAQCBzdGF0aWMgaW50IGF0aDEwa19jb3JlX3Byb2JlX2Z3KHN0cnVjdCBhdGgxMGsgKmFy KQo+ICAgICAgICAgICAgICAgICByZXR1cm4gcmV0Owo+ICAgICAgICAgfQo+Cj4gLSAgICAgICBh dGgxMGtfY29yZV9pbml0X21heF9zdGFfY291bnQoYXIpOwo+ICsgICAgICAgcmV0ID0gYXRoMTBr X2NvcmVfaW5pdF9maXJtd2FyZV9mZWF0dXJlcyhhcik7Cj4gKyAgICAgICBpZiAocmV0KSB7Cj4g KyAgICAgICAgICAgICAgIGF0aDEwa19lcnIoYXIsICJmYXRhbCBwcm9ibGVtIHdpdGggZmlybXdh cmUgZmVhdHVyZXM6ICVkXG4iLAo+ICsgICAgICAgICAgICAgICAgICAgICAgICAgIHJldCk7Cj4g KyAgICAgICAgICAgICAgIHJldHVybiByZXQ7CgpJIHRoaW5rIHlvdSBzaG91bG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