Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp302059pxu; Tue, 1 Dec 2020 11:37:45 -0800 (PST) X-Google-Smtp-Source: ABdhPJxJ7gj5rJgUAv6LBUo3+CWTI8R8gq7+9F5fEbJO0BnRdQGppmUfAN4XttQeDVP9Co7S1wKL X-Received: by 2002:a17:906:fa13:: with SMTP id lo19mr4479422ejb.455.1606851465675; Tue, 01 Dec 2020 11:37:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606851465; cv=none; d=google.com; s=arc-20160816; b=h/QK1DBCk3Xbh7LHETp7Rx5jbeUG4PrjzVgme++5PG6toggScqn/8e9Yio2m1mdR16 Fl2xpz2a5Q3Mz0cyzwgsbfyIYqHwMX9OvGoEm67b0dU9ijbhTx4ukueoI6fb6mSpIj2N /JbB77mh0JLu4+ncgXo15rDlrrSKhTyOTBYpCX0OtfAKZnHL547AR+z4rL2RYQDosMV6 g7zE7RUmcn3kKfmGAAC4i195zOXkuLiZjUlclorgDusuHGjiKlycC7BNxsFojfS7WR4m NqHuSk3wKVU0HlYxx3NgfZ5uTw8IeqO+uOdJD7TuY1UxdJ2TbKhTdHKhjshLpDIUurE8 /rew== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=UKsu26Ei1Ztq2Et7FDKCZoO2+MwWkWzcYFWc7u1thjs=; b=z//ixNgWbZhnFjDfBX17BzFYXnlb2uH/oRdHkRsQUFgRVK8nxUIcFaMkT2HQ9kqj3h bGfgaKqHmRhkLZEwS6zHIEY8UMvJd1OvFmmh8myqssescRHKeHfY/nXSg1ShpEqHLEC9 qvLmka/MbFH4F82Ug3A8C6AztlOmQOphq8r4A+zCHmKuZpsQ+INT1p613QCFtTgfdxkd 5WHT6oPxsuVN6S7Oq11BtwmQ4aCc2uljQkQxxz35H4JH/Fjom+ws28qFYJpDPqo7S8Nd e8hZnhASM3rl2BconmPgXDRiHoL0dF5Q6PnIFBMd9SzroW6PFH13PaPorVWXJzDS9r5H 0rJg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b="TzYx/y8d"; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id s11si530052edy.18.2020.12.01.11.37.21; Tue, 01 Dec 2020 11:37:45 -0800 (PST) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b="TzYx/y8d"; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387432AbgLATgl (ORCPT + 99 others); Tue, 1 Dec 2020 14:36:41 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37442 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727977AbgLATgk (ORCPT ); Tue, 1 Dec 2020 14:36:40 -0500 Received: from mail-oo1-xc43.google.com (mail-oo1-xc43.google.com [IPv6:2607:f8b0:4864:20::c43]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 96364C0613D6 for ; Tue, 1 Dec 2020 11:36:00 -0800 (PST) Received: by mail-oo1-xc43.google.com with SMTP id y3so691494ooq.2 for ; Tue, 01 Dec 2020 11:36:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=UKsu26Ei1Ztq2Et7FDKCZoO2+MwWkWzcYFWc7u1thjs=; b=TzYx/y8d9otKKUrRpEWdlv2NN/GJsX5LiAF2My919rOqrTKIQ0NpHOaJmGOsaXfwxr 21QPFORVReSfhLYJ34UjXDDyTNwJygJCN6vNQ/oQ3fzlnsFWoocu/opUKbqFKh4qBx+5 1wFcVhkMNCgz5KkFgH//GRe4faOH3Gw/ITBQo= 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=UKsu26Ei1Ztq2Et7FDKCZoO2+MwWkWzcYFWc7u1thjs=; b=FPLE1bQH/72zBQ7e+LujUVHu362mleqJZE1R3sWkXQiKUCIlLQAcb6JNv1+biT8ZLi VFQeHp2DYr3q1Q4Yods1dYzGKr/AFkfg073blmgZvhAmY0z3yb7zd/NfqdaFyn6WbzGR 98EipJ4mTSNgCnhykS2VsK78soOAPZ4K+7824WbwynmOSdnmYfSZ1sZHTdCvdxt2VTF+ j/StdCI5bgWRb3e/j94cKk2mbk4+EvNxWJ6ZoQu8KyWIdRLfSHnF/ZkUs5dY1JOh3ktZ BzZiXUj4QjG9BfGTL4qMYP2TlUeS/22AYj+Q2H2HWQZnc8frbN3ofo1vBcCru0lZ86Tb GURg== X-Gm-Message-State: AOAM531NdKK9zbBIdWA5BKn4U6D8NRYhck0xfAaYhs76DDBJNAIGza4J LxZTMaDVubYxDbqUHklpTy0kPhtcCojPUg== X-Received: by 2002:a4a:9563:: with SMTP id n32mr2997289ooi.53.1606851359156; Tue, 01 Dec 2020 11:35:59 -0800 (PST) Received: from mail-oo1-f46.google.com (mail-oo1-f46.google.com. [209.85.161.46]) by smtp.gmail.com with ESMTPSA id l1sm157548ooi.48.2020.12.01.11.35.57 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 01 Dec 2020 11:35:57 -0800 (PST) Received: by mail-oo1-f46.google.com with SMTP id i7so687982oot.8 for ; Tue, 01 Dec 2020 11:35:57 -0800 (PST) X-Received: by 2002:a4a:c884:: with SMTP id t4mr3058694ooq.52.1606851356706; Tue, 01 Dec 2020 11:35:56 -0800 (PST) MIME-Version: 1.0 References: <20201126171553.2097-1-youghand@codeaurora.org> In-Reply-To: <20201126171553.2097-1-youghand@codeaurora.org> From: Brian Norris Date: Tue, 1 Dec 2020 11:35:44 -0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v2] ath10k: skip the wait for completion to recovery in shutdown path To: Youghandhar Chintala Cc: ath10k , linux-wireless , Linux Kernel , Rakesh Pillai , Doug Anderson , kuabhs@chromium.org Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org On Thu, Nov 26, 2020 at 9:16 AM Youghandhar Chintala wrote: > --- a/drivers/net/wireless/ath/ath10k/snoc.c > +++ b/drivers/net/wireless/ath/ath10k/snoc.c > @@ -1790,9 +1790,6 @@ static int ath10k_snoc_remove(struct platform_device *pdev) > > reinit_completion(&ar->driver_recovery); > > - if (test_bit(ATH10K_SNOC_FLAG_RECOVERY, &ar_snoc->flags)) > - wait_for_completion_timeout(&ar->driver_recovery, 3 * HZ); Hmm, this is the only instance of waiting for this completion, which means that after this patch, 'ar->driver_recovery' is doing exactly nothing. Should you instead just remove it completely? Also, if your patch is correct, it seems like the completion was never needed in the first place. You should probably address such a claim in the commit message; is there truly no need to wait here? Or was there some purpose here, but that purpose was accomplished some other way? Or was there a purpose, and that purpose was misguided? It feels to me like it is indeed correct to remove this (shutdown should be performed promptly; we don't need to delay it just to try to "finish recovering"), but it's your job to convince the reader. Brian > - > set_bit(ATH10K_SNOC_FLAG_UNREGISTERING, &ar_snoc->flags); > > ath10k_core_unregister(ar);