Received: by 2002:ab2:3350:0:b0:1f4:6588:b3a7 with SMTP id o16csp1917624lqe; Tue, 9 Apr 2024 04:43:59 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVXN9kJi3JeSEQXuW3qs634BYdf0Ek2sal1LeO2rqhJhhs3IqBY19hoJs4eD0TDqccD5yD/pEmc40P5QBp6At7e7MVwAsAjqRgvjPJsxg== X-Google-Smtp-Source: AGHT+IGxqOSBwz7jIHXwElCT6qpMnT3SQpHplMdh3DxU7M+9O30Y0siQws2mbqQ0ALThMOGa8EL/ X-Received: by 2002:a50:d75e:0:b0:56e:3774:749b with SMTP id i30-20020a50d75e000000b0056e3774749bmr6566823edj.42.1712663039175; Tue, 09 Apr 2024 04:43:59 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712663039; cv=pass; d=google.com; s=arc-20160816; b=LZtpq5A+eVFDutoAUjVGoI37wSI5mulqkG65c6Nz0q0R/3PyaJHf7kEpRJ7Ea4Zs6m dQMcHIxUjnSKXrPQI9XCCmKCAEEXnNrG7QWoJNCo49nL5GE28Utk5YtEKXCTRmSvToqg 9NtL5m/8m+h103EC0LiRrvMv3cDWZHYGTa+dp7N+Tx+tfkSJknYnKN5Ph83WpgHHpGlx hie0oOT6+yRLnM4A0XPMNJAIN1XO5NnG2r1p6oFwmNvVnBjvlm6mCR117tiYq/vAAt38 U9BsHyQJ64a8c4oB0ylI8+9fH2h06eO/4PP5nY0zuAjqMAKwiWc3W2xACmIX08wW3Fyy vraA== 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=Td0lnu6Tvtzbxwl5tyQdfTCGzg7txgxrT0RYL9w25AU=; fh=vTbMRIJjVeKbRPJwToksPL1t4/h3AgLN7TfYKF45eEY=; b=sT9BGDRlt1LKmXr8G1WaegJdaYi438JQvNTHeiFgj+BI7/hovlzGRONhU3Muvme0ds Y7Tad3GFoiobMZExDsXFxxq25hfZVvq8WOVmJS9t3bP/bXfaEMcVBHUoL2vtInukOzUD R2e6igrogMW0WPz6mZHTsLyTuVrCIzn/jZlCSxbKddJtWgJImnbOQl8uZp6vm0Tzcit/ 61ka1lOKApgttHGCvp/sITrdqIy8lyoIWMu3UlWsCbh63XtGFYZqIDiXM7UaUFDtgv6C 4BfQt3oNSE8HNkkOZjz/KPOZnmWsjtHpaSYb2GtCTAmvfF69fkuwRbI9xACN1yXUI2Un S8Gw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=d46EgBGB; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-wireless+bounces-6004-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-wireless+bounces-6004-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. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id t15-20020a056402524f00b0056e0f05ae69si4871117edd.7.2024.04.09.04.43.59 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 09 Apr 2024 04:43:59 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless+bounces-6004-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=d46EgBGB; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-wireless+bounces-6004-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-wireless+bounces-6004-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 DA0321F21050 for ; Tue, 9 Apr 2024 11:43:58 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 7F8B786651; Tue, 9 Apr 2024 11:43:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="d46EgBGB" 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 4B46B42053; Tue, 9 Apr 2024 11:43:54 +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=1712663034; cv=none; b=MbiNnLYYSMF1KTcUlop/hulVv/DG84zJphKCLOcLkR3bQsqE0x7jjNVlJA4DWyx9OX6w07KXzamtBSEhBFQoRwEi2iyLL7dTqm4ctxnRkM68trH9Qp6Ri4MIVx7eRafrBS1jRd6/bJ6X8oR6Zf+titRTgEi+/6VOUj+uRc9x774= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712663034; c=relaxed/simple; bh=nbeeO/HdiPZM8HHVLpt1fCwCNBVTR0HOgVLESsZWhOI=; h=Content-Type:MIME-Version:Subject:From:In-Reply-To:References:To: Cc:Message-ID:Date; b=MYvmVbl0o0W672vnkOrw+BfPjRyRGGdHo5rHW7mnMBJytKUVKvUIqwsLc0k9noQVKz+Wulo8cksNvVssKYpPsrM+hWGI5/A9Y4BiPwovlo+C4O1CO29fQn9rlFKevbkXiJ5dEhuAforHNT1GkBXBa9+95U0rx+mP+8OsoAgbVs4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=d46EgBGB; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6D44DC433F1; Tue, 9 Apr 2024 11:43:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1712663033; bh=nbeeO/HdiPZM8HHVLpt1fCwCNBVTR0HOgVLESsZWhOI=; h=Subject:From:In-Reply-To:References:To:Cc:Date:From; b=d46EgBGBB+dImlGf5ySrLOyH8Ij3UrZQPzy4rRGGekUc48s6LOWgQaPOdY3zEgMrb DO+ftabH7b6ZH6g39eV2l9yV0LxEDg9HCUZxy3wN+9z9gffSuupiELVlZgLW9Akbya M3RLvjkJZ8ObgnMZwfjMMpd0zsNZUO92xmeIOKNA1e36B/vBLCWYDPtJObdYvr6VaS Q3jTycG3C8+o8NDe3wVxTpZglXPlZNeb9zp2ceyNA9qlJ3Ci43tHFQeuZWi93DQc8q pew28ArfhUw0IXj+aeUC7J4vyQ8YCqrXjhpTQex3N6zSlEl40rMQdQD50sxIuRR8rU tK+FeYLqyrmUw== 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 v7 2/3] net: qrtr: support suspend/hibernation From: Kalle Valo In-Reply-To: <20240305021320.3367-3-quic_bqiang@quicinc.com> References: <20240305021320.3367-3-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: <171266302937.3197288.10067259080549350573.kvalo@kernel.org> Date: Tue, 9 Apr 2024 11:43:51 +0000 (UTC) Baochen Qiang wrote: > 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 > Signed-off-by: Kalle Valo 2 patches applied to ath-next branch of ath.git, thanks. e0cd1185900e net: qrtr: support suspend/hibernation 166a490f59ac wifi: ath11k: support hibernation -- https://patchwork.kernel.org/project/linux-wireless/patch/20240305021320.3367-3-quic_bqiang@quicinc.com/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches