Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp16994706ybl; Wed, 1 Jan 2020 19:11:08 -0800 (PST) X-Google-Smtp-Source: APXvYqzVVQNQgurvlXs4D1VZQWEgQDRp0go3c531VSaSkB7BF0ptptmTXL1xbBYElqM3+BMIHUaM X-Received: by 2002:a05:6830:2111:: with SMTP id i17mr84042869otc.24.1577934668792; Wed, 01 Jan 2020 19:11:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1577934668; cv=none; d=google.com; s=arc-20160816; b=ftrfliR2BPKzIJvOhmnvS5l9pFNmuUgk3khM7E2QvoCnjzvaJAM7kxrapgo4pbto0p pyeILOIG+hRU5+9bqPlR9fs1+sAiAna7j6IKHy4kf9K4vjrX4xDTlLHeC/ecXoiq4e0p puijDXZpSN/eqNg1jRjTFKXsqKIad5SdoUlI/f35eNv9D2/WqLyWcrd8LnG1S6GO/Bhb ml8TxMmDLPuCg8iH6LKQ0aX9QACILyxY2wQhMceRH3603bIWA7Si3BPeP3LkV4vLJL8A G6f4+jLj1SOhvQk8uJiSX0BpSULtaLdmRc/OqHlPTqasX3p7jKpLLN8NWtymlupdtYjY 2uyg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=aIasqch99l8yTjEyV8QMiDGU+MfzGAS5V5xiGOoV6rI=; b=EstpSPkVDVoj70om9D0WxtErOshjzkU4Yo0Y+YFk8MYFJNnf62iyCITCYLgHbvtK6G v4IxouW8Cj8KncvLlbtGz4KPnVVZb1f7tXXX+H+Xt9+3iowjJkQX4mlwFiAEPbkRgi6P B7RmgxX7NxV/VwG7bYkthUyWVtmXbq3eTorXnHNXcv2Lkn9TgPAeFrDkVTURsvkV68f6 UqIyawEt/Vmn9hEsOotrVftozvuJYuqNOSu3o1eIj87wN/HfRukoD6gVmshPusVZm66t WOkd9g/AljraMTR70ApwNPuPoRAlzulk0gnxZk16V7jf94EljdRWMqqteF3D2COEThQw 5h/Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=LWWLqL07; spf=pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m7si15939934oih.7.2020.01.01.19.10.52; Wed, 01 Jan 2020 19:11:08 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=LWWLqL07; spf=pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727591AbgABDKZ (ORCPT + 99 others); Wed, 1 Jan 2020 22:10:25 -0500 Received: from mail-ot1-f65.google.com ([209.85.210.65]:36800 "EHLO mail-ot1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727525AbgABDKZ (ORCPT ); Wed, 1 Jan 2020 22:10:25 -0500 Received: by mail-ot1-f65.google.com with SMTP id 19so42744967otz.3 for ; Wed, 01 Jan 2020 19:10:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=aIasqch99l8yTjEyV8QMiDGU+MfzGAS5V5xiGOoV6rI=; b=LWWLqL07KXfRCjBMo4n2mLxcE6WGIvBK4CO1fwS3Ri1nL6MgoXiXo50j5uikJPxEc4 Els0i37FJZp4kgBIkn3fCzkWf8pHB1W/rg663kA5m90lV0lFl7pibDXQ524xTyWj8UDu pdmNf0mfmxoNukWXwuJ8HyTSy0wwoxgo/D3iaU9iESjj4R0Zb6dliz8oovimqRFhf2io d6ylHDKyevccpU94rqT9PfTJCk3CWU4r0yWAQudgA8A0+q/2fLmqe+TE9NwxC6Sy/Hqv o2pm6ZosDABXi+WfiMBOL7VmmrHrMuajL5gn4TEUsUA7mg6PGxcGqshJng67fxNI4689 HGAQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=aIasqch99l8yTjEyV8QMiDGU+MfzGAS5V5xiGOoV6rI=; b=Lyk41gAuMm0OQ1oTcz4Jdz4N6N3nk4yMWmw4azawcoy+2k8Q2huamlLcFoXSSn8FLD wcsdC1lytTSozyCfO8MmEWjH/JMn8VZtKlm7rVCg/Xj6R/cNl7lwX/PlDSrDctdtIODE XBhqv10qwGWxW45w+GrC6RAqQfR8JGiWQP5FB/tU3Fewup94MyJ7i+7Oq5wWOOfAZ1I9 Hl0jWfOM9ya37yEP6t5OIeEPUIoL3A2Tcd6daoleITc0YO7YMhaNrMQO9PALy1a3FHDe YBgpTTLhP9c+wEO3FLfK/AsIz+c53AKQR3XORyh30TVLTGIQT+2EJUufIJRzwq8FAWPD jxNw== X-Gm-Message-State: APjAAAWtKDS4nBer8kgwZQ9IKq9IomflxxL02ie8mLtEfuXXcec4Ep2H DGWjWBj93XKwE3hD4Flcfx8FSM0nTEKL1h5lgHw= X-Received: by 2002:a05:6830:1515:: with SMTP id k21mr73047367otp.177.1577934624441; Wed, 01 Jan 2020 19:10:24 -0800 (PST) MIME-Version: 1.0 References: <20191225120002.11163-1-wgong@codeaurora.org> <20191225120002.11163-2-wgong@codeaurora.org> <5f6eb95de0f877b86b90d0c32d458d43@codeaurora.org> In-Reply-To: <5f6eb95de0f877b86b90d0c32d458d43@codeaurora.org> From: Justin Capella Date: Wed, 1 Jan 2020 19:10:13 -0800 Message-ID: Subject: Re: [PATCH v2 1/2] ath10k: add refcount for ath10k_core_restart To: Wen Gong Cc: ath10k , linux-wireless@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org Instead of the atomic restart count, can the state be updated to ATH10K_STATE_RESTARTING while holding mutex_unlock(&ar->conf_mutex); I don't understand the bundles, but I wonder about the case when there are multiple packets (n_rx_pkts) and if pkt_bundle_len might be the one to check. Also if there needs to be a check that the len > sizeof HTC HDR. On Tue, Dec 31, 2019 at 1:37 AM wrote: > > On 2019-12-25 23:14, Justin Capella wrote: > > This does not only effect SDIO. > > > > Why a semaphore / count? Could the conf_mutex be held earlier, or > > perhaps change the state to ATH10K_STATE_RESTARTING first? > > ath10k_reconfig_complete is also called in mac.c when channel is > > changed so > patch v2: > https://patchwork.kernel.org/patch/11313853/ > https://patchwork.kernel.org/patch/11313859/