aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/pci
diff options
context:
space:
mode:
authorBjorn Helgaas <bhelgaas@google.com>2012-11-30 16:37:44 -0500
committerBjorn Helgaas <bhelgaas@google.com>2012-11-30 16:37:44 -0500
commitbe5cd530bd23ef3e00dcb4998e151de9fdd1a104 (patch)
tree4371f337fa0679890787893da5e084172130f259 /drivers/pci
parent053f328c93a3fc9713abfa7060454438407e94a7 (diff)
parentd5af64de2d1cc87d77ac7c0e90d89630a37a4f09 (diff)
Merge branch 'pci/misc' into next
* pci/misc: xen-pcifront: Handle backend CLOSED without CLOSING
Diffstat (limited to 'drivers/pci')
-rw-r--r--drivers/pci/xen-pcifront.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/pci/xen-pcifront.c b/drivers/pci/xen-pcifront.c
index 0aab85a51559..a0c73120b262 100644
--- a/drivers/pci/xen-pcifront.c
+++ b/drivers/pci/xen-pcifront.c
@@ -1068,13 +1068,16 @@ static void __init_refok pcifront_backend_changed(struct xenbus_device *xdev,
1068 case XenbusStateInitialising: 1068 case XenbusStateInitialising:
1069 case XenbusStateInitWait: 1069 case XenbusStateInitWait:
1070 case XenbusStateInitialised: 1070 case XenbusStateInitialised:
1071 case XenbusStateClosed:
1072 break; 1071 break;
1073 1072
1074 case XenbusStateConnected: 1073 case XenbusStateConnected:
1075 pcifront_try_connect(pdev); 1074 pcifront_try_connect(pdev);
1076 break; 1075 break;
1077 1076
1077 case XenbusStateClosed:
1078 if (xdev->state == XenbusStateClosed)
1079 break;
1080 /* Missed the backend's CLOSING state -- fallthrough */
1078 case XenbusStateClosing: 1081 case XenbusStateClosing:
1079 dev_warn(&xdev->dev, "backend going away!\n"); 1082 dev_warn(&xdev->dev, "backend going away!\n");
1080 pcifront_try_disconnect(pdev); 1083 pcifront_try_disconnect(pdev);