Message ID | 20250124-fix_reboot_issues_with_hw_grouping-v3-3-329030b18d9e@quicinc.com |
---|---|
State | New |
Headers | show
Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.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 E3A8A1DA2F6; Fri, 24 Jan 2025 04:42:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=205.220.168.131 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1737693722; cv=none; b=RnA6KaCRYBTNRyBTaoUGN5fbDAsJGgw4lJ0GzGy6c6BefCMv59nVc7fr9rQeyl2D+BfqMkRkG5RDeKPxKnsy0WEXLJW88U94L17u8v9EBEUm5gwApxz3sNOI6kTu7cREnwP/er0NHVzx6hXzslu1MxSDy2hExzyx5lzAxrqBZTk= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1737693722; c=relaxed/simple; bh=sur3VMPBl3j7BE8oK8O4OPGOAqajDVEbeANusDhbaRA=; h=From:Date:Subject:MIME-Version:Content-Type:Message-ID:References: In-Reply-To:To:CC; b=NY/8wCVofGc1cPMGeoOLDgedocaIxFJuOWHJmkb/+HKFH2OUn9V6of8q8R9cFMyurYOLLYNA2GzzMVAow3r5OXg/xi6hb6Jesfy6KdnWeow8gBGybwpi7pyqj2YgejaBnPOwwGyg+KDPZ2wUvaEEG1ZPC1pNWS1UT+vOPLiorJk= 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=TjwsdeA4; arc=none smtp.client-ip=205.220.168.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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b="TjwsdeA4" Received: from pps.filterd (m0279864.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 50O1Kltx021737; Fri, 24 Jan 2025 04:41:56 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=qcppdkim1; bh= 0l4rQkjIU7dksEbD1FLkwjlGRg2lyBPa4PAzbQiU9vU=; b=TjwsdeA4HKFc7gBR O8MF0Nbhw3MXWGo43jyM5nF3Byv0CZsheYwaQLC6u9yXXA4Q0PmwaBspgiLF3VI+ SsN8v5wvgrgAbDxzYSpoN56zu6QKcqLZaH2XUBVVX2Cojjt3TLDHtTLwKekZGrAQ CtbLUWg/FhyifBnsY8kYb7N6ST1vaPVqCxw25P8dMkRNI4XBX1M0/EYosBmFAGl3 Lgi891TNrhZj04hNv5Js5LDxLGpn3migd/bURLHsk/ZfBg22AcoD550JS5O0k30K NLEOopLefbIfw2l8PCo3Nfu3v/Gv0zdO5lFX0dgXT773CBBgGz+LXiEcYCaM7JCI Dqceag== Received: from nalasppmta04.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 44c1488byp-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 24 Jan 2025 04:41:56 +0000 (GMT) Received: from nalasex01a.na.qualcomm.com (nalasex01a.na.qualcomm.com [10.47.209.196]) by NALASPPMTA04.qualcomm.com (8.18.1.2/8.18.1.2) with ESMTPS id 50O4ftnI025771 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 24 Jan 2025 04:41:55 GMT Received: from hu-adisi-blr.qualcomm.com (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.1544.9; Thu, 23 Jan 2025 20:41:52 -0800 From: Aditya Kumar Singh <quic_adisi@quicinc.com> Date: Fri, 24 Jan 2025 10:11:26 +0530 Subject: [PATCH v3 03/10] wifi: ath12k: fix failed to set mhi state error during reboot with hardware grouping Precedence: bulk X-Mailing-List: linux-wireless@vger.kernel.org List-Id: <linux-wireless.vger.kernel.org> List-Subscribe: <mailto:linux-wireless+subscribe@vger.kernel.org> List-Unsubscribe: <mailto:linux-wireless+unsubscribe@vger.kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-ID: <20250124-fix_reboot_issues_with_hw_grouping-v3-3-329030b18d9e@quicinc.com> References: <20250124-fix_reboot_issues_with_hw_grouping-v3-0-329030b18d9e@quicinc.com> In-Reply-To: <20250124-fix_reboot_issues_with_hw_grouping-v3-0-329030b18d9e@quicinc.com> To: Kalle Valo <kvalo@kernel.org>, Jeff Johnson <jjohnson@kernel.org>, Karthikeyan Periyasamy <quic_periyasa@quicinc.com>, Harshitha Prem <quic_hprem@quicinc.com> CC: Jeff Johnson <jeff.johnson@oss.qualcomm.com>, Kalle Valo <quic_kvalo@quicinc.com>, <linux-wireless@vger.kernel.org>, <ath12k@lists.infradead.org>, <linux-kernel@vger.kernel.org>, "Aditya Kumar Singh" <quic_adisi@quicinc.com> X-Mailer: b4 0.14.2 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-GUID: lPMzbJpGjZnCKxw6knp9CU1ijPR7UYwX X-Proofpoint-ORIG-GUID: lPMzbJpGjZnCKxw6knp9CU1ijPR7UYwX X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1057,Hydra:6.0.680,FMLib:17.12.68.34 definitions=2025-01-24_01,2025-01-23_01,2024-11-22_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 adultscore=0 malwarescore=0 suspectscore=0 clxscore=1015 mlxlogscore=956 phishscore=0 priorityscore=1501 spamscore=0 bulkscore=0 mlxscore=0 lowpriorityscore=0 impostorscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2411120000 definitions=main-2501240032 |
Series |
wifi: ath12k: fixes for rmmod and recovery issues with hardware grouping
|
expand
|
diff --git a/drivers/net/wireless/ath/ath12k/pci.c b/drivers/net/wireless/ath/ath12k/pci.c index 4a50d7118b3ea7e3705ae8b8bba637855b52110b..9aa6ce6e9f92461833ec2e0eead20fff2ccbc663 100644 --- a/drivers/net/wireless/ath/ath12k/pci.c +++ b/drivers/net/wireless/ath/ath12k/pci.c @@ -1484,6 +1484,9 @@ void ath12k_pci_power_down(struct ath12k_base *ab, bool is_suspend) { struct ath12k_pci *ab_pci = ath12k_pci_priv(ab); + if (!test_bit(ATH12K_PCI_FLAG_INIT_DONE, &ab_pci->flags)) + return; + /* restore aspm in case firmware bootup fails */ ath12k_pci_aspm_restore(ab_pci);