WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

[Xen-devel] [PATCH] make otherend_changed entrypoint optional for xenbus

To: xen-devel@xxxxxxxxxxxxxxxxxxx, ewan@xxxxxxxxxxxxx
Subject: [Xen-devel] [PATCH] make otherend_changed entrypoint optional for xenbus devices
From: harry <harry@xxxxxxxxxxxxxxxxxxxxxxxxxxxxx>
Date: Thu, 17 Nov 2005 10:50:36 +0000
Delivery-date: Thu, 17 Nov 2005 10:50:25 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Ewan,

    Here's the patch for making the otherend_changed entrypoint
optional.  The USB driver doesn't need this entrypoint because the state
machine driven by it is factored out of the driver code entirely into
xenidc.

    This is a resend.  I forgot to put [PATCH] in the subject line last
time.

Signed-off-by: Harry Butterworth butterwo@xxxxxxxxxx

diff -r 595ef1ab007c -r 2089b7edcada
linux-2.6-xen-sparse/drivers/xen/xenbus/xenbus_probe.c
--- a/linux-2.6-xen-sparse/drivers/xen/xenbus/xenbus_probe.c    Tue Nov
15 14:44:59 2005
+++ b/linux-2.6-xen-sparse/drivers/xen/xenbus/xenbus_probe.c    Tue Nov
15 16:43:02 2005
@@ -299,8 +299,8 @@

        DPRINTK("state is %d, %s, %s",
                state, dev->otherend_watch.node, vec[XS_WATCH_PATH]);
-
-       drv->otherend_changed(dev, state);
+       if (drv->otherend_changed)
+               drv->otherend_changed(dev, state);
 }

Attachment: otherend-optional-patch
Description: Text Data

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
<Prev in Thread] Current Thread [Next in Thread>