Received: by 2002:ab2:69cc:0:b0:1fd:c486:4f03 with SMTP id n12csp540136lqp; Tue, 11 Jun 2024 11:36:42 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVs8yPyzp6AQ/IuT3q2lKDmHL8db8Ytj/IJ/gVn4tNqBTIdk44PvBO3YAG/FQ6iDp67TY1FkdYAyll7F3Gl5UjhIhrOD1ubFBYpezw9CQ== X-Google-Smtp-Source: AGHT+IEaAqKXdJyEgPkr6GngKGwxHoeb+QeiAZlsie+ubNUZmKRjs6l59HpobSndoUtA0y+rnkdJ X-Received: by 2002:a05:6358:72a:b0:19f:4ca6:86bf with SMTP id e5c5f4694b2df-19f4ca687admr861475555d.32.1718131001753; Tue, 11 Jun 2024 11:36:41 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718131001; cv=pass; d=google.com; s=arc-20160816; b=FYSEQ6+Ktrhsh+2OROF/uZoB4ZMgUdIQyu/InBiBu1kBHKDs4mEOaBNzri+S7bB8Ax p2cslADucPPJL5mlGLatbyWVFYA7JWTRCLA93rHnaXIu2+iMiocBkGDEq8JYt1vG4jl+ Z1kCq4PbARunJumJRD95vlwLUxoK310H2F0LZ0DyuE+l2QtG7XSji5wSkGZj401E5uPB Nbxj7K12ZgqtJDgJeOs7I+hNgMM81gVUQXMNCdy3AAbxISEq72iJbxMnAYCQdmUdhJiW aG+4/UwZ4OURQP12JWQ1MDzvSCUiSsBwcp/+nZqpDZxUlIKvuSD2uhSFDps7E6qYIVxp 83fQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=date:message-id:user-agent:cc:to:references:in-reply-to:from :subject:content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:dkim-signature; bh=vGLEBRYM0Sk+tKvpBCmKhzR/G/UGY0IkivifHrvSHT0=; fh=q0pWxAdL0cyDcfHi0eFkTCBsBNeBmItsjEnoI8WnNeM=; b=x8thaoOPdQIkwTCS61oX6qkPNLOft5qC2mNESiaLcZslUYnTuUkg5Aq9F1Cl/aSKqX absefGwQKoUXblJkUyZ2u1LqNMOd+pO76dv+GGgmcvVec862yR5NqyhSuj3xPdeDpfhL H7qFarmWFeenTxdlx+JjOGPgT7r6yzE4KwVJOsABq8+LnkFB/iwrNTAuqdV/4XDeW7kX oU9MLf8NZGVkiR90kh0raxSy8ll3KYpzH9HAbz7X7sxHCnkzK9qJE4m8+FhTR77AKTq9 uvX0uw/QFFTCeNBMKUORwqQx9Ue36jysSnwklzxf79gztr0aPOAWNHXgAG/l3CfaeVkf Kp9A==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=PzO3vHSu; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-wireless+bounces-8807-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-wireless+bounces-8807-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id 41be03b00d2f7-6de275fbab2si10076658a12.460.2024.06.11.11.36.41 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 11 Jun 2024 11:36:41 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless+bounces-8807-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=PzO3vHSu; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-wireless+bounces-8807-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-wireless+bounces-8807-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 3E3B828C024 for ; Tue, 11 Jun 2024 18:36:40 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 27485171D8; Tue, 11 Jun 2024 18:36:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="PzO3vHSu" X-Original-To: linux-wireless@vger.kernel.org Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 0341214A96 for ; Tue, 11 Jun 2024 18:36:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718130998; cv=none; b=C4kX7Rf6QZP2GxArczMaGrtzfYQ2XT9mhWUgJotBR4xGkBy6FnIGO7XD9pgkovW2N+kjgWjAs9Z9UnedldaIignXoUW/B6Y9AxKH1gdCcpzac6ZpQS9IaMx3BDlNjAwfTy+xnhkgQjosgNdfbId5VzTubZUbXw6Ku33Zrd61Z20= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718130998; c=relaxed/simple; bh=RCKxxHD3IKIUcqSpL8ezjJy6dgyDehoOCjJuNNVeRZA=; h=Content-Type:MIME-Version:Subject:From:In-Reply-To:References:To: Cc:Message-ID:Date; b=RQbiZv99APaqXUCBBNHaVdv59Vi+U2o+6JjHCJkT9XFxdMSNrEsGLmvtQ7R6yMZ1viu8+MTBevL+JRCejN9tzpQV84QAi1UOCI8sCzuyZQWGnONGKN5My0ln/Yq4ykXP/t9vNPb9Qi0DtEQIgS78wX/FlnrggFQObwv+U33bAJo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=PzO3vHSu; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 926A4C2BD10; Tue, 11 Jun 2024 18:36:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1718130997; bh=RCKxxHD3IKIUcqSpL8ezjJy6dgyDehoOCjJuNNVeRZA=; h=Subject:From:In-Reply-To:References:To:Cc:Date:From; b=PzO3vHSuynXbKjS4nGxQHGJgeRL+FWGRAKMUbpJ9fvw31wWJSmLLr6tx5kj+jIl+r auN4LQObvcL145JY598vE/dGycou8m5cFz1+oUhfMmZXIPuFYre4Bomiu8p+T8P+Ez 0yLyH8LSI7Cp9WA788L7l+DUXACGtxNOSw7NYkRwxSzSBDnoQlFwyI4pj/WFaM95PA BxXIk1iC/ohLUuE+SmsfpNSl9FzIUeS2n9NcQ/jWiQAm8PN8ea2fUyzqyIqmqdGDE1 58DfJIFX3FQ/wM1i0IG7DHg+enuEaQXBMKgwqZFvjIbycTgxNdZpRNLhKO2bat+X3t slZKVOffEwhtw== Content-Type: text/plain; charset="utf-8" Precedence: bulk X-Mailing-List: linux-wireless@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: Re: [PATCH] wifi: ath12k: fix ACPI warning when resume From: Kalle Valo In-Reply-To: <20240531024000.9291-1-quic_bqiang@quicinc.com> References: <20240531024000.9291-1-quic_bqiang@quicinc.com> To: Baochen Qiang Cc: , , User-Agent: pwcli/0.1.1-git (https://github.com/kvalo/pwcli/) Python/3.11.2 Message-ID: <171813099453.3564613.760110557004474171.kvalo@kernel.org> Date: Tue, 11 Jun 2024 18:36:36 +0000 (UTC) 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 > Signed-off-by: Kalle Valo Patch applied to ath-next branch of ath.git, thanks. 8b2a12749b08 wifi: ath12k: fix ACPI warning when resume -- https://patchwork.kernel.org/project/linux-wireless/patch/20240531024000.9291-1-quic_bqiang@quicinc.com/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches