ia64/xen-unstable

changeset 9227:1f30a0ac3033

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 <stefanb@us.ibm.com>
author kaf24@firebug.cl.cam.ac.uk
date Sat Mar 11 10:49:28 2006 +0100 (2006-03-11)
parents 3f8123ae34ba
children 90bac1d23a0c
files linux-2.6-xen-sparse/drivers/xen/tpmfront/tpmfront.c
line diff
     1.1 --- a/linux-2.6-xen-sparse/drivers/xen/tpmfront/tpmfront.c	Sat Mar 11 10:47:55 2006 +0100
     1.2 +++ b/linux-2.6-xen-sparse/drivers/xen/tpmfront/tpmfront.c	Sat Mar 11 10:49:28 2006 +0100
     1.3 @@ -310,7 +310,8 @@ again:
     1.4  		goto abort_transaction;
     1.5  	}
     1.6  
     1.7 -	err = xenbus_switch_state(dev, xbt, XenbusStateInitialised);
     1.8 +	err = xenbus_printf(xbt, dev->nodename,
     1.9 +	                    "state", "%d", XenbusStateInitialised);
    1.10  	if (err) {
    1.11  		goto abort_transaction;
    1.12  	}