From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from relay9-d.mail.gandi.net (relay9-d.mail.gandi.net [217.70.183.199]) (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 37501535DD; Fri, 16 Feb 2024 11:09:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.70.183.199 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708081764; cv=none; b=mIOrDdBt3xsLQaj31Rksv0VA1uBRpUnnR1gvlbNGVLjOE1wz2Olyykb5qoyHvzrqTyp+4JWPdGm/AP1FHJpGhthkruZu37x9PfK4njsTpnUn5+QSPuVKTvj0f3mcEmG0Pvx+SPR+LWqT8MHrw8l257LO8VpzDuOgdo7aTLfmffw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708081764; c=relaxed/simple; bh=VoIm7bG7xdxeX1Ve84YA5mgH1w68YbeyVDn/kcEb2Ns=; h=Mime-Version:Content-Type:Date:Message-Id:From:Subject:Cc:To: References:In-Reply-To; b=L1KetItU0In3bjJ9P56MH/J+Eljapb8yABLYD7ebsKJFXLfwJHKu2s4diUeum693Erq/0arlDlgN7lxBub/TpZ0dLSBpfyd3uXt0Faml8Copqbg+4b0zdXf6vK+QpdAVFbiNNgiOhdiBbtn3+fFZmlxjwCin5ytUrt9rp6cyo0o= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com; spf=pass smtp.mailfrom=bootlin.com; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b=pu19fIin; arc=none smtp.client-ip=217.70.183.199 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=bootlin.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b="pu19fIin" Received: by mail.gandi.net (Postfix) with ESMTPSA id C1D3EFF807; Fri, 16 Feb 2024 11:09:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1708081759; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=VoIm7bG7xdxeX1Ve84YA5mgH1w68YbeyVDn/kcEb2Ns=; b=pu19fIindWoyvl+UGjcMcq0t+6LJjVczMtqO7ZZb4KGzFo4HYYZa89THhOrO2/5B+ftg7b YjSeimNZDgnx7EQscGzkSBZcYAS6+CezQS8UgDZiuHuaOnObzJBP20rocAZNF8IomgpHA2 Av5ymPoGLmO4ztX+HCX1kn3h9Bkg26z1b6omSa6oJlDiQafr7OX2mSBONtWifEX8frY17p yHiYMKESalbmWEcskaoL+yv2hXLk6GWqU3RsrzopcgLnCFiBa/mEPgJD5GaD1mHTQtatb7 VRK1dcwRCRGRgUVjrrMGy7jr3GNvaLoGb1imMlWSxUCstw1pmHELoBGOiNulnA== Precedence: bulk X-Mailing-List: linux-gpio@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=UTF-8 Date: Fri, 16 Feb 2024 12:09:17 +0100 Message-Id: From: =?utf-8?q?Th=C3=A9o_Lebrun?= Subject: Re: [PATCH v3 18/18] PCI: j721e: add suspend and resume support Cc: "Linus Walleij" , "Bartosz Golaszewski" , "Andy Shevchenko" , "Tony Lindgren" , "Haojian Zhuang" , "Vignesh R" , "Aaro Koskinen" , "Janusz Krzysztofik" , "Andi Shyti" , "Peter Rosin" , "Vinod Koul" , "Kishon Vijay Abraham I" , "Philipp Zabel" , "Lorenzo Pieralisi" , =?utf-8?q?Krzysztof_Wilczy=C5=84ski?= , "Rob Herring" , "Bjorn Helgaas" , , , , , , , , , , To: "Siddharth Vadapalli" , "Thomas Richard" X-Mailer: aerc 0.15.2 References: <20240102-j7200-pcie-s2r-v3-0-5c2e4a3fac1f@bootlin.com> <20240102-j7200-pcie-s2r-v3-18-5c2e4a3fac1f@bootlin.com> In-Reply-To: X-GND-Sasl: theo.lebrun@bootlin.com Hello, On Fri Feb 16, 2024 at 11:48 AM CET, Siddharth Vadapalli wrote: > On 24/02/15 04:18PM, Thomas Richard wrote: > > From: Th=C3=A9o Lebrun > >=20 > > Add suspend and resume support. Only the rc mode is supported. > >=20 > > During the suspend stage PERST# is asserted, then deasserted during the > > resume stage. > > Wouldn't this imply that the Endpoint device will be reset and therefore > lose context? Or is it expected that the driver corresponding to the > Endpoint Function in Linux will restore the state on resume, post reset? This does imply exactly that. Endpoint driver must be able to restore context anyway, as system-wide suspend could mean lost power to PCI RC controller (eg suspend-to-RAM) or PCI rails (dependent on hardware). Thanks, -- Th=C3=A9o Lebrun, Bootlin Embedded Linux and Kernel engineering https://bootlin.com