Received: by 2002:ab2:7a55:0:b0:1f4:4a7d:290d with SMTP id u21csp698800lqp; Fri, 5 Apr 2024 06:27:44 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWFGPBxD75YqF1C2i0xrK4RkrKg/yn/Y7VY48gbtBe2ALi/z/bpqi3ucQ09rh82qDIznp3hiT4esFimOCVRlI3y/QF4h2WDd8XGTsBHFQ== X-Google-Smtp-Source: AGHT+IHxYTqXBVPUafUwfCjng+aq/dhQtNFfOBQZOf/BiAc94+85hV6ejyCdH3khprMUsvVG74rk X-Received: by 2002:a17:907:78d7:b0:a47:340b:df71 with SMTP id kv23-20020a17090778d700b00a47340bdf71mr1126614ejc.2.1712323664286; Fri, 05 Apr 2024 06:27:44 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712323664; cv=pass; d=google.com; s=arc-20160816; b=LWH9YO5Lo91NGvk3f4zd9K0+cNBSai7TqKtICY5ZL3kE1+EFiML0tk2WCeqTD/N4r3 lCKdaCTs2uyT3dMWinhlpzIfZ40CZosIejXyVNa2gbBqcLnxR97Zi9Ohp2CVJ2MPnAbO OLSEuK6HxUrvjg2ct8BMu1/87YjIHfsOxGBm9pMRVIsy236vZfIOuOMnDInU/ixzm4nt 4Rx0/6iM8AWDtA/hkXCYSH1FYA802fh9K9ootIXU+sPRaA0YyHpv7dKQNTpJUSplRxH7 Kwv6Fy9/7RIYXz0wYZL0KV1Akb2z/aFUHchL1ZK8gyxbq7/ugXn+nQwi19Bt3ZPZ/rYI zctA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :user-agent:message-id:in-reply-to:date:references:subject:cc:to :from:dkim-signature; bh=iitSfI2Y8LrBa++ncwel3h3WEbl4CDisdRxqGPA4c5k=; fh=2EXqrilOzH8M7iwt2g1fj7sG7XqISrJJZVtzUx2dDN4=; b=prlIGafxFXi/sXaz7hvOFq+mnzLtJdB34nr8fu0WdQexilY0Qmbl1qw6NS9ODeQB6V uLX2KFtww0x+rdplmy8CKGtgF9WCvehc6lUPjzWfgea84lb8ccMf5VFWFFpJf2V56rNG uHuWu2MiI9W8BMg32fKbuLW34sDhdo7GRolZDnrFMic1D4jN0eCXXD4JKY87lgYLItt8 MYoFF2HZnEwpbs1PPtr1d7ROqGxPqqcdDTD6P54D3a6Q/Nh67eAqKfMbLI7OXOPfE9A9 fLJG7EeNXIrQo77uLDih5uPIPw2i+La6B5iisblC07L5++7m1qJvrvG2CvXEXuzWXLmt vAPA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=lttrIDkP; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-wireless+bounces-5910-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-wireless+bounces-5910-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id ho40-20020a1709070ea800b00a4e738368f3si755613ejc.755.2024.04.05.06.27.44 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 05 Apr 2024 06:27:44 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless+bounces-5910-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=@kernel.org header.s=k20201202 header.b=lttrIDkP; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-wireless+bounces-5910-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-wireless+bounces-5910-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 am.mirrors.kernel.org (Postfix) with ESMTPS id 0611A1F22C3E for ; Fri, 5 Apr 2024 13:27:44 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 962F916D4CB; Fri, 5 Apr 2024 13:27:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="lttrIDkP" 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 625D116C877; Fri, 5 Apr 2024 13:27:40 +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=1712323660; cv=none; b=tZSI/4CPIjyKWhYfJcGFXdGrbYF6acM07JtMYc6ZEhH3nDLIrlSH6HFJATi40CiMklKj5BfpYV9Ce0vcT9kAx6fuUDa9N3bcDHr649NHmQGKVlvMhXx3tmYuXg343EQjzYpupuPB4PzrgTNyg9NJpJMVxdaY2oMUyhrSI7R2vf4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712323660; c=relaxed/simple; bh=iitSfI2Y8LrBa++ncwel3h3WEbl4CDisdRxqGPA4c5k=; h=From:To:Cc:Subject:References:Date:In-Reply-To:Message-ID: MIME-Version:Content-Type; b=BNFdwAH1jhN8JGivG3ltKJ8qdfaREFosQH237bJhm0Yprpaw7klsj5GWMVW0bjCI5ugR2BnYUdbxkIJkPsHjy7iRBZE+0JMIuA4PUWzlOB/Ba/hPAvZY5DHHO6VgaJGBpCJhG6Afc6gMV6P1PMp91Yx6BlIzZyOWtgTHAlsil6Y= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=lttrIDkP; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9B728C433C7; Fri, 5 Apr 2024 13:27:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1712323660; bh=iitSfI2Y8LrBa++ncwel3h3WEbl4CDisdRxqGPA4c5k=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=lttrIDkP/Dhv4IN6Lxk++khK7XWYBENBQs6ggUCGtf4DyBhxkdh6xc5im0USff+Gm CGtvdPhqBQXrMkVdiAK9fOCDiwUt4DBYoGSQMrfBcLx0RZuJBS61BL6I5sC+vn4znX YIcIUcw19KqTIYxqWzBstbqn046g4X7EHfEJZpXflYZLLGDYFsnJWu4jewvExLRNCJ ONIAaJAuozMJ0yVdPHQIKJmPUQHyHzlkuSggeVvYchurL5QnIVKtJn0ZNCpp/Fr0C5 CAWNm+FbmdZoeV9fPnY1PH5ZjXyWz/tmhUfd/lezExNCXmYevrmZebYkyySrghUINF 08r5k2y+i6y3w== From: Kalle Valo To: , , , Cc: Baochen Qiang , , , , , , Subject: Re: [PATCH v7 2/3] net: qrtr: support suspend/hibernation References: <20240305021320.3367-1-quic_bqiang@quicinc.com> <20240305021320.3367-3-quic_bqiang@quicinc.com> Date: Fri, 05 Apr 2024 16:27:35 +0300 In-Reply-To: <20240305021320.3367-3-quic_bqiang@quicinc.com> (Baochen Qiang's message of "Tue, 5 Mar 2024 10:13:19 +0800") Message-ID: <8734s02b3s.fsf@kernel.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux) Precedence: bulk X-Mailing-List: linux-wireless@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain Hi netdev maintainers, Baochen Qiang writes: > MHI devices may not be destroyed during suspend/hibernation, so need > to unprepare/prepare MHI channels throughout the transition, this is > done by adding suspend/resume callbacks. > > The suspend callback is called in the late suspend stage, this means > MHI channels are still alive at suspend stage, and that makes it > possible for an MHI controller driver to communicate with others over > those channels at suspend stage. While the resume callback is called > in the early resume stage, for a similar reason. > > Also note that we won't do unprepare/prepare when MHI device is in > suspend state because it's pointless if MHI is only meant to go through > a suspend/resume transition, instead of a complete power cycle. > > Tested-on: WCN6855 hw2.0 PCI > WLAN.HSP.1.1-03125-QCAHSPSWPL_V1_V2_SILICONZ_LITE-3.6510.30 > > Signed-off-by: Baochen Qiang > Reviewed-by: Manivannan Sadhasivam > Reviewed-by: Jeff Johnson Could I take this patch via ath.git tree? Full patch here (same patch but links to both patchwork projects): https://patchwork.kernel.org/project/linux-wireless/patch/20240305021320.3367-3-quic_bqiang@quicinc.com/ https://patchwork.kernel.org/project/netdevbpf/patch/20240305021320.3367-3-quic_bqiang@quicinc.com/ I ask because we need it to get hibernation working on ath11k (and ath12k): https://patchwork.kernel.org/project/linux-wireless/patch/20240305021320.3367-4-quic_bqiang@quicinc.com/ Kalle