Received: by 2002:a05:6500:2018:b0:1fb:9675:f89d with SMTP id t24csp652168lqh; Fri, 31 May 2024 12:01:46 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWQ+5rkjDW9Aq3Y8uMjzLt+2FAaqIdwFBgGDvEVsICLEuLNFhpIjiWQb861NDMUoQU5rudxW+H6nNo+nwgeQSSty2h7wUwrkpIy3g48gg== X-Google-Smtp-Source: AGHT+IF6uFSZ/9HmgaMhOP9IE48bStRUHTvaVUU4mDEtkDO3R978UdoLs+Wadp5BcQtmbYzsG66y X-Received: by 2002:a05:6a00:4fc5:b0:702:5173:4323 with SMTP id d2e1a72fcca58-7025173463fmr1551875b3a.31.1717182106672; Fri, 31 May 2024 12:01:46 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717182106; cv=pass; d=google.com; s=arc-20160816; b=grfom05CbOV/Dzwq2QJjNKUymKE5XpAyuXK43CgFoWFjH+ZUqvfufC95P+yZ+emI6K q5urFr0HCSzl3srsllWKi+iLon1vR2gWUYoa2u9Uv7CTZkcLYghTJjchKe+YDrHuyI+S 3r0jEYMyi6URTtatqkSldagK404JPJzaXRjnEyJGSnYMI+4VqG4x0POSNaMMrH37Clu9 dOtdjZ6xaToJkOgUW8lFPwPzQuxDVYYvPl+0KAh6hx7xzPBnI8gPvoa5HGjcYvmant6N iYD4jJs0RwhdMK1NbLkPD2BurRjRaRDvhL6AAaiMDkDWKdioGWefPNEuFX6d8vag1UMu Q6ng== 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=CJp1vyOYt4eO/kBpSnlZuec6ZaNAolkogRbKhRnSxcA=; fh=b2YQfG9PfQSUw5xMVFyESXjrM9bXk1jv/UlzGGNeVIg=; b=q8BjRmV4vR74J3PE/qJamACGicKvi4t5B+KdUB1QtiiRugzzPb/DbGqjsFVSLehB07 /l+3wXSUvDlAEHbtkEFVJ3xPM2jwbmVFjUHPyANt4xYpYh7FNuCP8xgdABcB8K70Xc27 3SXcey11UB6n7W3UYOAg0sjEVfY/+L7Qr1ypv/+x9cH1IhjTUP+mpuzIvMVnvTl9ruJb pQBM5UfncK5hFX4zJ0xHFjwryMbAt0xWrDbBjeS3pHqzlS4/NWwq2xqs40ytl8qWizII FYZQgPEB7fphagZhjNfjVKvpHOpVwhvxw/K3h94wVmkFGjH62CnjBUSz+CGA4pTtztif CcJA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=BzMdB6+y; 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-8363-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-wireless+bounces-8363-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id d2e1a72fcca58-70242c2938bsi1633715b3a.283.2024.05.31.12.01.46 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 31 May 2024 12:01:46 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless+bounces-8363-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=BzMdB6+y; 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-8363-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-wireless+bounces-8363-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id B7709284299 for ; Fri, 31 May 2024 19:01:26 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2F5411E498; Fri, 31 May 2024 19:01:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b="BzMdB6+y" 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 3DD407C6C9 for ; Fri, 31 May 2024 19:01:22 +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=1717182084; cv=none; b=QRzA6+ksUmX0A7XM8kv5dmQv0tPA0z7LwsdL1EecyzDLcuw/X/3fZuFQnF5+VO271IltYeoIlORHPMJk4HNE9HTRO9eORf/IpO+Wd+lEaELI9OQ6ZseVlTbfh93oJqC9/l+uWE5ZEUt/NZEntf2ZRkPuM3+XRtDOpgeta/QR49s= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717182084; c=relaxed/simple; bh=U1dab+hCsP3bufffoShLJmCvtN4+7+2AbRJqnygEBlA=; h=Message-ID:Date:MIME-Version:Subject:To:CC:References:From: In-Reply-To:Content-Type; b=FuUAP3cu0Mil5i8bZqmdIWmFpEOJr/K31rADZQ2+s5njXupElbEd//XkgpxqhlgF3btkMjPtbU+KOz1W3aPdDVRnwP8vyNp6avBkCEQBa+XwL/W7waWBOmwzJSHRI9B/TAWugYze9h6hDkBxl7eNBwhU9IIlgUfPlM3q0cKWOBA= 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=BzMdB6+y; 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 (m0279870.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 44V9pKDJ002210; Fri, 31 May 2024 19:01:15 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= CJp1vyOYt4eO/kBpSnlZuec6ZaNAolkogRbKhRnSxcA=; b=BzMdB6+y1zzVGvgz yNMZ3kv97znmNHW9txvy2K3y9V2LDTq+LSC+vct/axIzvI3NLq3gM8lzyr5/LWxD UIxYFTgdmAmbR8M1BNVTz09YDy4Vn2KKqIs+iB6g/xcZz+XgyV+p1XXlQwpzv85n +v4V9j7EXwPZNJfxrYTWYtDYICTIiG0SoteX9nEk3lFUZlhh7paH8PN18tN/Uk5P EjZ2dXflMRigtBht4t2EgMkZkbdCpr/xaN6IZeycSJicf/9S2IItbGM0kBM1beMo rYs70ozLNiDN6Q8LrpmyMNoTsrMR1QIsdt4zmA0Z/JgDM8oKcK5eC5j+sCnajIV5 sUbVzQ== Received: from nalasppmta01.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3yfc9nhgrk-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 31 May 2024 19:01:14 +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 44VJ1D0g004364 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 31 May 2024 19:01:13 GMT Received: from [10.110.11.230] (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; Fri, 31 May 2024 12:01:13 -0700 Message-ID: Date: Fri, 31 May 2024 12:01:12 -0700 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: ath12k: fix ACPI warning when resume Content-Language: en-US To: Baochen Qiang , CC: References: <20240531024000.9291-1-quic_bqiang@quicinc.com> From: Jeff Johnson In-Reply-To: <20240531024000.9291-1-quic_bqiang@quicinc.com> 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: nqjGzR-JXXm3pZ0zAZ7n4akGP24XOqz4 X-Proofpoint-GUID: nqjGzR-JXXm3pZ0zAZ7n4akGP24XOqz4 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1039,Hydra:6.0.650,FMLib:17.12.28.16 definitions=2024-05-31_12,2024-05-30_01,2024-05-17_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 mlxscore=0 adultscore=0 impostorscore=0 bulkscore=0 malwarescore=0 clxscore=1015 spamscore=0 priorityscore=1501 mlxlogscore=999 suspectscore=0 phishscore=0 lowpriorityscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2405170001 definitions=main-2405310145 On 5/30/2024 7:40 PM, Baochen Qiang wrote: > Currently ACPI notification handler is installed when driver loads and only > gets removed when driver unloads. During resume after firmware is reloaded, > ath12k tries to install it by default. Since it is installed already, ACPI > subsystem rejects it and returns an error: > > [ 83.094206] ath12k_pci 0000:03:00.0: failed to install DSM notify callback: 7 > > Fix it by removing that handler when going to suspend. This also avoid any > possible ACPI call to firmware before firmware is reloaded/reinitialized. > > Note ab->acpi also needs to be cleared in ath12k_acpi_stop() such that we > are in a clean state when ACPI structures are reinitialized in > ath12k_acpi_start(). > > Tested-on: WCN7850 HW2.0 PCI WLAN.HMT.1.0.c5-00481-QCAHMTSWPL_V1.0_V2.0_SILICONZ-3 > > Fixes: 576771c9fa21 ("wifi: ath12k: ACPI TAS support") > Signed-off-by: Baochen Qiang Acked-by: Jeff Johnson