From patchwork Mon Oct 20 13:40:38 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michal Kazior X-Patchwork-Id: 5105951 Return-Path: X-Original-To: patchwork-linux-wireless@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 6D609C11AC for ; Mon, 20 Oct 2014 13:54:34 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id AB38D20166 for ; Mon, 20 Oct 2014 13:54:33 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id D141620142 for ; Mon, 20 Oct 2014 13:54:32 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753255AbaJTNy3 (ORCPT ); Mon, 20 Oct 2014 09:54:29 -0400 Received: from mail-la0-f51.google.com ([209.85.215.51]:62076 "EHLO mail-la0-f51.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752151AbaJTNy1 (ORCPT ); Mon, 20 Oct 2014 09:54:27 -0400 Received: by mail-la0-f51.google.com with SMTP id ge10so3958808lab.38 for ; Mon, 20 Oct 2014 06:54:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tieto.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=ZCi8aC3+5ebf9G5HtG1lMVWjiygf6qQCpa0xuKGcreo=; b=nl4LR7glFRqIVR6sn9n2B9bm5DmfGq+bswJjZ2h1KniuPovIYHSg+yPHe2fcrvcENl uVrd0EMTpVxSkGEdiQVQ2sp3xcNWdn3Rv+Kjlrax/Sq0Jc+5U8w/lbL3NE03t6ztH/hV qCsBBtJ2FpNMARXG1SCLYIcVVB3Beizd17gI8= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=ZCi8aC3+5ebf9G5HtG1lMVWjiygf6qQCpa0xuKGcreo=; b=FJOQzcQY5QMNE49MmEvPZZL/ipsij54fyT1j0puN1stUNwaIAJjsHtW8t/FLfg2+mc A6Aq2/gKBj/QNh99KHlYVu2Tl0RP6BrhoEm7b60aGSubkKmQqCjiRbNeRx91k1wvYKxA M0/JuhAcW9hcB3dcoQk9I6/lBd9roBDN3+6p20OBMr4/QFjeVt8BoOU0iwjNQR2Q6GwC VOhk1bX/DuUeLp2JqdnWePUMHx2pO/ZJLm//2EDUkuz4AdhxIwypGMG5K0fr89cPMyk+ Itz5C4hY6i0NRWkkFlP/NplNvSsAQ0P8kFfb2r1Y271F0DP+jLk+Q2/e2RxDAJYZxYxk du+w== X-Gm-Message-State: ALoCoQkO77sNiRu001h/8EVHdRMRtEud8vrpqgXPiCsN4sLshyeiiT1J/JjcmkGWJN3fwz+vLUWLFMIzrF3xEMj+gfIIX7mJ9y0I1aHzYO13PpULJEx/eha5c2iTIsEbmZ/hRTBhkfoO X-Received: by 10.153.8.164 with SMTP id dl4mr27617744lad.29.1413813265953; Mon, 20 Oct 2014 06:54:25 -0700 (PDT) Received: from localhost.localdomain ([91.198.246.8]) by mx.google.com with ESMTPSA id xs6sm3330125lbb.13.2014.10.20.06.54.24 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 20 Oct 2014 06:54:25 -0700 (PDT) From: Michal Kazior To: ath10k@lists.infradead.org Cc: linux-wireless@vger.kernel.org, Michal Kazior Subject: [PATCH 9/9] ath10k: clear htt->rx_confused on load Date: Mon, 20 Oct 2014 15:40:38 +0200 Message-Id: <1413812438-14640-10-git-send-email-michal.kazior@tieto.com> X-Mailer: git-send-email 1.8.5.3 In-Reply-To: <1413812438-14640-1-git-send-email-michal.kazior@tieto.com> References: <1413812438-14640-1-git-send-email-michal.kazior@tieto.com> X-DomainID: tieto.com Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org X-Spam-Status: No, score=-8.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,RP_MATCHES_RCVD,T_DKIM_INVALID,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 Once driver entered the rx_confused state it would refuse to rx even after firmware is restarted. Make sure to clear it so that rx works after, e.g. hw restart or after all interfaces are stopped. Signed-off-by: Michal Kazior --- drivers/net/wireless/ath/ath10k/htt_rx.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/net/wireless/ath/ath10k/htt_rx.c b/drivers/net/wireless/ath/ath10k/htt_rx.c index 39e1969..3e52a33 100644 --- a/drivers/net/wireless/ath/ath10k/htt_rx.c +++ b/drivers/net/wireless/ath/ath10k/htt_rx.c @@ -497,6 +497,8 @@ int ath10k_htt_rx_alloc(struct ath10k_htt *htt) size_t size; struct timer_list *timer = &htt->rx_ring.refill_retry_timer; + htt->rx_confused = false; + htt->rx_ring.size = ath10k_htt_rx_ring_size(htt); if (!is_power_of_2(htt->rx_ring.size)) { ath10k_warn(ar, "htt rx ring size is not power of 2\n");