Received: by 2002:a05:6a10:d5a5:0:0:0:0 with SMTP id gn37csp4645981pxb; Tue, 5 Oct 2021 07:29:50 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyCNv5srv/45JOExIcyTo+LkaPoT28fuke7LjJhhFRYE8K40pEyOs+7boEdQF5/vimg6Fms X-Received: by 2002:a17:906:70c5:: with SMTP id g5mr26025789ejk.63.1633444190580; Tue, 05 Oct 2021 07:29:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1633444190; cv=none; d=google.com; s=arc-20160816; b=rhpkaRLdQataDw7Sl4dw5AfNtcaSNmspkM4yJ5S0c3ZIVwz2aWJM68Z31xso7HKKNx N5kKXfjxQS+cRvIKip3yhMrH1gN1qGV8ij76s+l4caFuyk8mbh8/qeXPFHgBXMYKxS+H Zvb0MlEUs2XYyhTNuzWRdusBug8mT/anmToHFY7ZkVWIi7l+BvUPQB4RgzmDBG3ly6lq 4IBPNWYBnGVq6P4OoobhGxSYllrq7LFef5jcH+Ap4uRxr89VYSyeIoyVwJNivUOcRnOt 5UPltOLaUzqIzBdpfNToe6HZc6AtPmpG6ItIwfS6by0Ab/MsU3oDDi0wf40uiKsyo0Yg inSg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:date:message-id:user-agent:cc:to:references :in-reply-to:from:subject:content-transfer-encoding:mime-version :dmarc-filter:sender:dkim-signature; bh=BdPdR4PiTT5ZNwLsK5hY8CDdVKLrTsD1mG8kU/GlKNk=; b=B+erXUcBJuWURveaj/tv89+lhVXFmOLYh2fkcz466SssPB7sOORfr1I0BTiMY0DBkN yXhc+eDYOwuQsKc9cETV180f1djw+9Mc8z7f/GmeM//wZ3s+7DestfYS1GEOPKnDuk/T THmkwB+G1C68Tu16aF41c6tUVrM1H1O4tNlEYIC3p7vU4E0Vnog3Ced9Eqxfs226WRe5 s48xUKVDt+Zvzms88JxtqsskShu+LiMHrac5X8k2OzgiUf0MZ6030UZWTcYVQ+1UlhQ6 ul1eFIx5zp52VDfhXaIH/vn8YoLCpRlzYCDV1WpZ2gTYrOgSTUlCXB51bwt4jSz7G5em sDFg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mg.codeaurora.org header.s=smtp header.b=AKQsHX0D; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id hp6si31910520ejc.477.2021.10.05.07.29.22; Tue, 05 Oct 2021 07:29:50 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-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=@mg.codeaurora.org header.s=smtp header.b=AKQsHX0D; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234355AbhJEO3l (ORCPT + 99 others); Tue, 5 Oct 2021 10:29:41 -0400 Received: from so254-9.mailgun.net ([198.61.254.9]:36778 "EHLO so254-9.mailgun.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234757AbhJEO3k (ORCPT ); Tue, 5 Oct 2021 10:29:40 -0400 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.codeaurora.org; q=dns/txt; s=smtp; t=1633444070; h=Date: Message-Id: Cc: To: References: In-Reply-To: From: Subject: Content-Transfer-Encoding: MIME-Version: Content-Type: Sender; bh=BdPdR4PiTT5ZNwLsK5hY8CDdVKLrTsD1mG8kU/GlKNk=; b=AKQsHX0DwkghTN53TMqY8TBMZIFScJxKHAlhFA2N77ya6pPdIVejxgm3X9wRkluos3U8G/8t QdxwMScpBnOYDUyvx8lyGS3rIYDKCZ/HAabIcE0nypdkxGj8Pvntp8NPhU1YhWCli+bGDa05 /e02vXHCMewq6jft0xy8ulrUzrw= X-Mailgun-Sending-Ip: 198.61.254.9 X-Mailgun-Sid: WyI0MWYwYSIsICJsaW51eC1rZXJuZWxAdmdlci5rZXJuZWwub3JnIiwgImJlOWU0YSJd Received: from smtp.codeaurora.org (ec2-35-166-182-171.us-west-2.compute.amazonaws.com [35.166.182.171]) by smtp-out-n03.prod.us-east-1.postgun.com with SMTP id 615c60e59ebaf35aaa322f50 (version=TLS1.2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256); Tue, 05 Oct 2021 14:27:49 GMT Sender: kvalo=codeaurora.org@mg.codeaurora.org Received: by smtp.codeaurora.org (Postfix, from userid 1001) id 9B4DFC43460; Tue, 5 Oct 2021 14:27:48 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-caf-mail-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.0 required=2.0 tests=ALL_TRUSTED,BAYES_00, MISSING_DATE,MISSING_MID,SPF_FAIL,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.0 Received: from tykki.adurom.net (tynnyri.adurom.net [51.15.11.48]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: kvalo) by smtp.codeaurora.org (Postfix) with ESMTPSA id 2ED39C4338F; Tue, 5 Oct 2021 14:27:43 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 smtp.codeaurora.org 2ED39C4338F Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; spf=fail smtp.mailfrom=codeaurora.org Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: Re: [PATCH 1/3] ath9k: add option to reset the wifi chip via debugfs From: Kalle Valo In-Reply-To: <20210914192515.9273-2-linus.luessing@c0d3.blue> References: <20210914192515.9273-2-linus.luessing@c0d3.blue> To: =?utf-8?q?Linus_L=C3=BCssing?= Cc: Felix Fietkau , Sujith Manoharan , ath9k-devel@qca.qualcomm.com, linux-wireless@vger.kernel.org, "David S . Miller" , Jakub Kicinski , "John W . Linville" , Felix Fietkau , Simon Wunderlich , Sven Eckelmann , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, =?utf-8?q?Linus_L=C3=BCssing?= User-Agent: pwcli/0.1.0-git (https://github.com/kvalo/pwcli/) Python/3.7.3 Message-Id: <20211005142748.9B4DFC43460@smtp.codeaurora.org> Date: Tue, 5 Oct 2021 14:27:48 +0000 (UTC) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Linus Lüssing wrote: > Sometimes, in yet unknown cases the wifi chip stops working. To allow a > watchdog in userspace to easily and quickly reset the wifi chip, add the > according functionality to userspace. A reset can then be triggered > via: > > $ echo 1 > /sys/kernel/debug/ieee80211/phy0/ath9k/reset > > The number of user resets can further be tracked in the row "User reset" > in the same file. > > So far people usually used "iw scan" to fix ath9k chip hangs from > userspace. Which triggers the ath9k_queue_reset(), too. The reset file > however has the advantage of less overhead, which makes debugging bugs > within ath9k_queue_reset() easier. > > Signed-off-by: Linus Lüssing > Signed-off-by: Kalle Valo 2 patches applied to ath-next branch of ath.git, thanks. 053f9852b95e ath9k: add option to reset the wifi chip via debugfs 4925642d5412 ath9k: Fix potential interrupt storm on queue reset -- https://patchwork.kernel.org/project/linux-wireless/patch/20210914192515.9273-2-linus.luessing@c0d3.blue/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches