Received: by 2002:ab2:3141:0:b0:1ed:23cc:44d1 with SMTP id i1csp393622lqg; Fri, 1 Mar 2024 08:16:47 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWuJQZrXn6/KUb+SNui2AnDPSWTBb+zXjvjJHga/yrnqXnTfrDj6i1JpB4W5PQupAiTFB9eADsosxoB5dWIQjHDgh/Pt3gdCdLTgZzR1A== X-Google-Smtp-Source: AGHT+IGHHNHuc8SNzFavgx1SmFu5pwNXa1jhyksfGi+fpUzNCPWR6dVAABdTYm2k/DiiT81/r33k X-Received: by 2002:a17:906:a2cf:b0:a3d:9ed3:dd1f with SMTP id by15-20020a170906a2cf00b00a3d9ed3dd1fmr1922695ejb.18.1709309806888; Fri, 01 Mar 2024 08:16:46 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709309806; cv=pass; d=google.com; s=arc-20160816; b=TFirPy9XAJTn3kB9i8jTxlwtuhpKEABPQeU0g6bN5fkXHWpQjdHAuacwPM2KU1WZcO VuxCKwoUgu3tvFo11UGnsOFmtvgEwI5GsN1vYFIV9Mc1H306CylYyv1Yb3zw/lbR4jJJ cBE2xMHO+EEzSL5itTkvKf5Be6RZQaGmj8mkFoh/EUMZ+5OnihvPT4IM7nXmhxo4VLQ1 4DO+FdfVyuBJ+KUhCRsLZCa3f5yeO7CvPuv9dgASDJlDoqOsIzDzMLYmId3GIZz5aBRo NkPZA+MjWmnEnpmf0TE/FWSfRU0VdTzVJoITpeFxjT36VH+6yopWjVHbwuB/aNIQmH5f hotA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=P9oSbjYVwwJViyUns6YHVbiAEOcSyvonOUoUVWmngIM=; fh=36hGXG4jqWoY9vGqEknmfABKOg6JQ37RsItyMH4Qu40=; b=YBxKiATPn3iqoPtgtPdUh5C751D4m6iKh1gdnlumpyYQ4ZAtu5khg3WF0rrHj8b6yV gsQObYO+GBWjNEBaQuqZhFVsrgS/sRtSYbRES0s5BI2HFnVt33zKUTJHgfGvjGclgX7X xy8Wlu3SIqQHgIRFdY/MrsXJTcFYWUGHgj5r+HbySuRFYnLnnMCWnaAUV2OwWm4Nfk4k B0c0eVzs/5pooo30LeZ6CEgqSowPTL94fGvuVP0GxrUZha1IULFcbWyI9r1GZlB2ntL9 RmpPz0pvdU+qG37CDBkZiEY4n/Jhqzr14YeeqbvsVgfOBgf9FU20JmaSnk7aQcRjz2uo NPkQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=bG5ygqzj; arc=pass (i=1 spf=pass spfdomain=quicinc.com dkim=pass dkdomain=quicinc.com dmarc=pass fromdomain=quicinc.com); spf=pass (google.com: domain of linux-wireless+bounces-4296-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-wireless+bounces-4296-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id kt9-20020a170906aac900b00a443db8125esi1539946ejb.186.2024.03.01.08.16.46 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 01 Mar 2024 08:16:46 -0800 (PST) Received-SPF: pass (google.com: domain of linux-wireless+bounces-4296-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=bG5ygqzj; arc=pass (i=1 spf=pass spfdomain=quicinc.com dkim=pass dkdomain=quicinc.com dmarc=pass fromdomain=quicinc.com); spf=pass (google.com: domain of linux-wireless+bounces-4296-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-wireless+bounces-4296-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com 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 am.mirrors.kernel.org (Postfix) with ESMTPS id C9E3F1F256E6 for ; Fri, 1 Mar 2024 16:16:45 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id BD86B6E2A3; Fri, 1 Mar 2024 16:16:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b="bG5ygqzj" X-Original-To: linux-wireless@vger.kernel.org Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) (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 D86BF71B2B for ; Fri, 1 Mar 2024 16:16:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=205.220.180.131 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709309790; cv=none; b=Mmp5sYS1h/PzFHK85rlW/j8D14GrAXzyU8l00v8g68DG5mhOTtzKFObf/bTYqQGt5mXQqSDfl1YakWHzAhjvR2WNNJw4NJammhDFiE1Ttr50BRlTKctId6EfQonFjAxrrKC7AFGexaT8L2Ynkj9j7/ZBQrOFd4E42xdKPUkjozA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709309790; c=relaxed/simple; bh=DcKb6DOVih7XxWhZcOlWGPemOOwfrQQ0BnIqEvl6sKs=; h=Message-ID:Date:MIME-Version:Subject:To:CC:References:From: In-Reply-To:Content-Type; b=h1X+4BChtC7hkNaNbqA3nKWnGprExPmS8dBzXzgYsbAw47tGhBwakKb/ShxcjOvM8SxkV5qD/xu7dFHLSExzuXAdtL0aYm4NjdP92/zUZEamhQli+TmzRNguZflw6TLkNSV/+IbZLEwncOrFWCzeCkfag97AR0khDHnEKixUKII= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=quicinc.com; spf=pass smtp.mailfrom=quicinc.com; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b=bG5ygqzj; arc=none smtp.client-ip=205.220.180.131 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=quicinc.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=quicinc.com Received: from pps.filterd (m0279872.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.24/8.17.1.24) with ESMTP id 421B1LP3023563; Fri, 1 Mar 2024 16:16:18 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h= message-id:date:mime-version:subject:to:cc:references:from :in-reply-to:content-type:content-transfer-encoding; s= qcppdkim1; bh=P9oSbjYVwwJViyUns6YHVbiAEOcSyvonOUoUVWmngIM=; b=bG 5ygqzjSrP3tQctJO7k8jkDe/SqI7BGpb7WxC3jv5dLahF1+RR6UPuK6u/nS3E0t5 3n71gKIOjfvMvSAJupo3VXM0b4oXBeGA0s9vBJu0I7mLzTPL3SmqFM/5oge1CxBF aKpKBPRYbomP95MIbUG+6YNDQS0jPTu4i9ux//rNmOD6xUgqqMksumWGqSklYXEE xHb4CH1ogq1jTJs+Og4JkeYfqcTLiIKJTrwQAw4D0BwsI16xSO7rdzN1/LxjpRWR L06nDaXuxgG7KA0n53DJMaIrEcES+tcw7KGML5GkihwbvpNoovUYIXnkhBJvKvvy mP0URZ2X5raYPFyrmVdw== Received: from nalasppmta01.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3wk9mf1cvv-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 01 Mar 2024 16:16:18 +0000 (GMT) Received: from nalasex01a.na.qualcomm.com (nalasex01a.na.qualcomm.com [10.47.209.196]) by NALASPPMTA01.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 421GGHa7015847 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 1 Mar 2024 16:16:17 GMT Received: from [10.110.42.209] (10.80.80.8) by nalasex01a.na.qualcomm.com (10.47.209.196) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.40; Fri, 1 Mar 2024 08:16:17 -0800 Message-ID: <6bdcffce-e657-4990-bd60-5dd67abbb9c9@quicinc.com> Date: Fri, 1 Mar 2024 08:16:16 -0800 Precedence: bulk X-Mailing-List: linux-wireless@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH] wifi: ath11k: adjust a comment to reflect reality Content-Language: en-US To: Kevin Lo , CC: Kalle Valo , References: From: Jeff Johnson In-Reply-To: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-ClientProxiedBy: nasanex01b.na.qualcomm.com (10.46.141.250) To nalasex01a.na.qualcomm.com (10.47.209.196) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-ORIG-GUID: H6N7GW0bgFRtuYB6wISkgmCb7NRoJ7Et X-Proofpoint-GUID: H6N7GW0bgFRtuYB6wISkgmCb7NRoJ7Et X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.1011,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2024-03-01_17,2024-03-01_02,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 malwarescore=0 phishscore=0 spamscore=0 clxscore=1011 priorityscore=1501 adultscore=0 impostorscore=0 mlxscore=0 mlxlogscore=896 lowpriorityscore=0 bulkscore=0 suspectscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2402120000 definitions=main-2403010135 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 I'd rather more accurately say something like: After SOC_GLOBAL_RESET, MHISTATUS may still have SYSERR bit set and thus...