Received: by 2002:ab2:3141:0:b0:1ed:23cc:44d1 with SMTP id i1csp1687616lqg; Sun, 3 Mar 2024 23:57:57 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWMv23SwXBcci0v2H8bDFvAHYjRatAUyHWlQUf47sjQLCB0G3a36yY6h1hHCqL16w7gdR1u18XZ055gb1ljtig9G81V7a0nXILSFROTHw== X-Google-Smtp-Source: AGHT+IGmzbnAivNjhaZ+vxYDDo69ZOPDd93TIAi+qdxFTUAflbI7+gViQ2SKGBqU56m4mLy4lIfg X-Received: by 2002:a05:622a:d:b0:42e:c9b6:4c31 with SMTP id x13-20020a05622a000d00b0042ec9b64c31mr11362422qtw.59.1709539077688; Sun, 03 Mar 2024 23:57:57 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709539077; cv=pass; d=google.com; s=arc-20160816; b=zbtyd4Qhha/+tnuQlESMW+Sk/1ExMJ8BEX3oGWWbG0frATUf/8Oc6QfPTAL9maxs9i BmXXrPUa/iJb7x6XGKpr2cZQuJLWXCYW5xUpW3OMbnCWuaddTae06OkhNzLCln4/rVCM kF/gEkZKO4nO31IuVTDBT0A6n9E+r/7z2gIOsb8j0M63kVF+OuSomn+9sduObSTN0kRP plKTcyhVs9JOWCgJ9egfSccSe8G8Pz7Aw+qYorjUGKjtUj7Jiy7QRwJtmGAofZu1UxXX pedjdEi6ygwPb6USTMrILqQKBtV4ISPtyQGKg9c3lTrDN+jervQDUK0nEq0aZIR2mnDH 8FAA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date; bh=SQA7QiO5dsDPtSSogM1jgwN2Q3Gd/+PdTusKoCBTZx4=; fh=JId2XmLZ/5j/6fFQ8GAtD8PN1Bz2nE5BGLze0UBzlAw=; b=bGU0JPrzCcpau+7nKSUwrF347WolsFcEVbBCJ9bdDdlU50IQ9/9XokDqw3MaTHpXfP jyfrr6oOhAbTl+1DbSdjrKZV63uztyCQMR+oL7GMkBU0RwIn9y82G4wo78xCZRvH622U l+OZtiDjQGMm2SLbSlc0kfiA/xiQAIacxgXZmYZ+7ZDwZqpDMiw9AdqSiLf7+YrpFDRm 1EgjDUKgEz9Jb1M8kwvWpz9f3ShwUOgRszAIoPriHLh3HwaLhLkj5G76gsoo4pOuI8Wd Vs2cVUK9D+QkpoShQ/enb8nF23DDMzktDB9bJzD3iFOtRAbh+x9MDBgpvDruHEYxOPi7 CaOw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=kevlo.org); spf=pass (google.com: domain of linux-wireless+bounces-4334-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-wireless+bounces-4334-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id u17-20020a05622a011100b0042eea189f26si2901631qtw.736.2024.03.03.23.57.57 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 03 Mar 2024 23:57:57 -0800 (PST) Received-SPF: pass (google.com: domain of linux-wireless+bounces-4334-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=kevlo.org); spf=pass (google.com: domain of linux-wireless+bounces-4334-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-wireless+bounces-4334-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 4BF921C20E22 for ; Mon, 4 Mar 2024 07:57:57 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 3B4BB1643E; Mon, 4 Mar 2024 07:57:54 +0000 (UTC) X-Original-To: linux-wireless@vger.kernel.org Received: from mail.kevlo.org (mail.kevlo.org [220.134.220.36]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 39B4512B6F for ; Mon, 4 Mar 2024 07:57:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=220.134.220.36 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709539074; cv=none; b=Gkem13VHKCJBzKcdP95hC/pLUFDm/wpbK5ajJPNaD6p2bv1yQFs4KO/G6lILHrNYzlfOurDNvMxxhdBa7pLluZT7F3WDDbclUZZVVb1eT4oRjXl9fRN6WedTwC8gQra0g1gOTTDQWuO247hoeKS4lU/JnFbDFhZTxlc1iVECGkk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709539074; c=relaxed/simple; bh=KjS06WIqd8wWrDQave92sl2oqsONgMkpkC/jKPzCR3A=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=iE8TWiqZqFOTE4WMxJY8swdSgbo4uNWNw7+XJIPqYe7asrvwRYn2uM+fZv383vsr6INDsZCkIH0BPPUlOR0C381TwuK2XGj1lXVT2Wdt83iV4ZWuAsMh3NBbaWtZQghvOkUphiS77sSLTlO31zdJ7KQab2I+ulV8u4XqpM6iutE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=kevlo.org; spf=pass smtp.mailfrom=kevlo.org; arc=none smtp.client-ip=220.134.220.36 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=kevlo.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=kevlo.org Received: from localhost (ns.kevlo.org [local]) by ns.kevlo.org (OpenSMTPD) with ESMTPA id c0ab81eb; Mon, 4 Mar 2024 15:57:42 +0800 (CST) Date: Mon, 4 Mar 2024 15:57:42 +0800 From: Kevin Lo To: Jeff Johnson Cc: ath11k@lists.infradead.org, Kalle Valo , linux-wireless@vger.kernel.org Subject: Re: [PATCH] wifi: ath11k: adjust a comment to reflect reality Message-ID: References: <6bdcffce-e657-4990-bd60-5dd67abbb9c9@quicinc.com> Precedence: bulk X-Mailing-List: linux-wireless@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <6bdcffce-e657-4990-bd60-5dd67abbb9c9@quicinc.com> On Fri, Mar 01, 2024 at 08:16:16AM -0800, Jeff Johnson wrote: > > On 2/26/2024 6:45 PM, Kevin Lo wrote: > > In ath11k_mhi_set_mhictrl_reset(), I observed on QCA6390/QCN9074/WCN6855, > > MHISTATUS has SYSERR bit always been set after SOC_GLOBAL_RESET. > > > > Signed-off-by: Kevin Lo > > --- > > diff --git a/drivers/net/wireless/ath/ath11k/mhi.c b/drivers/net/wireless/ath/ath11k/mhi.c > > index 3de7fa6f88d0..1198e80d9dff 100644 > > --- a/drivers/net/wireless/ath/ath11k/mhi.c > > +++ b/drivers/net/wireless/ath/ath11k/mhi.c > > @@ -158,8 +158,8 @@ void ath11k_mhi_set_mhictrl_reset(struct ath11k_base *ab) > > > > ath11k_dbg(ab, ATH11K_DBG_PCI, "mhistatus 0x%x\n", val); > > > > - /* Observed on QCA6390 that after SOC_GLOBAL_RESET, MHISTATUS > > - * has SYSERR bit set and thus need to set MHICTRL_RESET > > + /* After SOC_GLOBAL_RESET, MHISTATUS has SYSERR bit > > + * always been set and thus need to set MHICTRL_RESET > > * to clear SYSERR. > > */ > > ath11k_pcic_write32(ab, MHICTRL, MHICTRL_RESET_MASK); > > Unless you've verified this is always true for every supported chipset Only PCIe devices trigger the call to ath11k_mhi_set_mhictrl_reset(), and I've verified this on the QCA6390, QCN9074, and WCN6855 chips. > I'd rather more accurately say something like: > After SOC_GLOBAL_RESET, MHISTATUS may still have SYSERR bit set and thus... Okay, I'll update the comments as per your suggestion, thanks.