From: Stefan Berger Subject: [PATCH] vtpm state machine fix Date: Fri, 10 Mar 2006 09:45:40 -0500 Message-ID: <1142001940.7462.11.camel@localhost.localdomain> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-HqBGybs303bstwW99y6o" Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com, ewan@xensource.com List-Id: xen-devel@lists.xenproject.org --=-HqBGybs303bstwW99y6o Content-Type: text/plain Content-Transfer-Encoding: 7bit Changeset 9134 introduced a caching mechanism when xenbus_switch_state is invoked. This causes a problem in the resume part of a suspend-resume cycle due to the backend not seeing that a state in the frontend was set. This patch fixes this in the TPM frontend driver. Signed-off-by: Stefan Berger --=-HqBGybs303bstwW99y6o Content-Disposition: attachment; filename=tpmfe_statechg_fix.diff Content-Type: text/x-patch; name=tpmfe_statechg_fix.diff; charset=UTF-8 Content-Transfer-Encoding: 7bit Index: xen/xen-unstable.hg/linux-2.6-xen-sparse/drivers/xen/tpmfront/tpmfront.c =================================================================== --- xen.orig/xen-unstable.hg/linux-2.6-xen-sparse/drivers/xen/tpmfront/tpmfront.c +++ xen/xen-unstable.hg/linux-2.6-xen-sparse/drivers/xen/tpmfront/tpmfront.c @@ -310,7 +310,8 @@ again: goto abort_transaction; } - err = xenbus_switch_state(dev, xbt, XenbusStateInitialised); + err = xenbus_printf(xbt, dev->nodename, + "state", "%d", XenbusStateInitialised); if (err) { goto abort_transaction; } --=-HqBGybs303bstwW99y6o Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --=-HqBGybs303bstwW99y6o--