search for: probe_failed_work_item

Displaying 20 results from an estimated 22 matches for "probe_failed_work_item".

2011 Mar 10
0
[PATCH 16/21] Staging: hv: Get rid of the forward declaration for vmbus_probe
...r = + drv->driver.probe(child_device); + if (ret != 0) { + DPRINT_ERR(VMBUS_DRV, "probe() failed for device %s " + "(%p) on driver %s (%d)...", + dev_name(child_device), child_device, + child_device->driver->name, ret); + + INIT_WORK(&dev->probe_failed_work_item, + vmbus_probe_failed_cb); + schedule_work(&dev->probe_failed_work_item); + } + } else { + DPRINT_ERR(VMBUS_DRV, "probe() method not set for driver - %s", + child_device->driver->name); + ret = -1; + } + return ret; +} + /* The one and only one */ static stru...
2011 Mar 10
0
[PATCH 16/21] Staging: hv: Get rid of the forward declaration for vmbus_probe
...r = + drv->driver.probe(child_device); + if (ret != 0) { + DPRINT_ERR(VMBUS_DRV, "probe() failed for device %s " + "(%p) on driver %s (%d)...", + dev_name(child_device), child_device, + child_device->driver->name, ret); + + INIT_WORK(&dev->probe_failed_work_item, + vmbus_probe_failed_cb); + schedule_work(&dev->probe_failed_work_item); + } + } else { + DPRINT_ERR(VMBUS_DRV, "probe() method not set for driver - %s", + child_device->driver->name); + ret = -1; + } + return ret; +} + /* The one and only one */ static stru...
2011 Feb 26
2
[PATCH 3/6] Staging: hv: Cleanup hyperv_device variable names
...driver_ctx->probe(child_device); if (ret != 0) { DPRINT_ERR(VMBUS_DRV, "probe() failed for device %s " "(%p) on driver %s (%d)...", dev_name(child_device), child_device, child_device->driver->name, ret); - INIT_WORK(&device_ctx->probe_failed_work_item, + INIT_WORK(&device_obj->probe_failed_work_item, vmbus_probe_failed_cb); - schedule_work(&device_ctx->probe_failed_work_item); + schedule_work(&device_obj->probe_failed_work_item); } } else { DPRINT_ERR(VMBUS_DRV, "probe() method not set for driver -...
2011 Feb 26
2
[PATCH 3/6] Staging: hv: Cleanup hyperv_device variable names
...driver_ctx->probe(child_device); if (ret != 0) { DPRINT_ERR(VMBUS_DRV, "probe() failed for device %s " "(%p) on driver %s (%d)...", dev_name(child_device), child_device, child_device->driver->name, ret); - INIT_WORK(&device_ctx->probe_failed_work_item, + INIT_WORK(&device_obj->probe_failed_work_item, vmbus_probe_failed_cb); - schedule_work(&device_ctx->probe_failed_work_item); + schedule_work(&device_obj->probe_failed_work_item); } } else { DPRINT_ERR(VMBUS_DRV, "probe() method not set for driver -...
2011 Feb 22
4
[PATCH 1/6] Staging: hv: vmbus_drv.c Replaced DPRINT with native pr_XXX
..."(%p) on driver %s (%d)...", - dev_name(child_device), child_device, - child_device->driver->name, ret); + pr_err("%s: %s failed for device %s (%d)", + VMBUS_MOD, __func__, + dev_name(child_device), ret); INIT_WORK(&device_ctx->probe_failed_work_item, vmbus_probe_failed_cb); schedule_work(&device_ctx->probe_failed_work_item); } } else { - DPRINT_ERR(VMBUS_DRV, "probe() method not set for driver - %s", - child_device->driver->name); + pr_err("%s: %s not set for driver - %s", + VMBUS...
2011 Feb 22
4
[PATCH 1/6] Staging: hv: vmbus_drv.c Replaced DPRINT with native pr_XXX
..."(%p) on driver %s (%d)...", - dev_name(child_device), child_device, - child_device->driver->name, ret); + pr_err("%s: %s failed for device %s (%d)", + VMBUS_MOD, __func__, + dev_name(child_device), ret); INIT_WORK(&device_ctx->probe_failed_work_item, vmbus_probe_failed_cb); schedule_work(&device_ctx->probe_failed_work_item); } } else { - DPRINT_ERR(VMBUS_DRV, "probe() method not set for driver - %s", - child_device->driver->name); + pr_err("%s: %s not set for driver - %s", + VMBUS...
2011 Feb 24
4
[PATCH ] Staging: hv: Hyper-V driver cleanup
...*dev_rm)(struct hyperv_device *device); + + void (*cleanup)(struct hyperv_driver *driver); + struct device_driver driver; /* @@ -43,34 +51,34 @@ struct driver_context { void (*shutdown)(struct device *); }; -struct vm_device { +struct hyperv_device { + char name[64]; struct work_struct probe_failed_work_item; - struct hv_guid class_id; - struct hv_guid device_id; + struct hv_guid class_id; /* device type id */ + struct hv_guid device_id; /* device class id */ + struct hyperv_driver *drv; int probe_error; - struct hv_device device_obj; + struct vmbus_channel *channel; /* associated channel to host*/ +...
2011 Feb 24
4
[PATCH ] Staging: hv: Hyper-V driver cleanup
...*dev_rm)(struct hyperv_device *device); + + void (*cleanup)(struct hyperv_driver *driver); + struct device_driver driver; /* @@ -43,34 +51,34 @@ struct driver_context { void (*shutdown)(struct device *); }; -struct vm_device { +struct hyperv_device { + char name[64]; struct work_struct probe_failed_work_item; - struct hv_guid class_id; - struct hv_guid device_id; + struct hv_guid class_id; /* device type id */ + struct hv_guid device_id; /* device class id */ + struct hyperv_driver *drv; int probe_error; - struct hv_device device_obj; + struct vmbus_channel *channel; /* associated channel to host*/ +...
2011 Feb 26
1
[PATCH 4/6] Staging: hv: Unify the hyperv driver abstractions
...name; + struct hv_guid class_id; + int (*dev_add)(struct hyperv_device *device, void *data); + + int (*dev_rm)(struct hyperv_device *device); + + void (*cleanup)(struct driver_context *driver); + struct device_driver driver; /* @@ -48,7 +56,7 @@ struct hyperv_device { struct work_struct probe_failed_work_item; struct hv_guid class_id; /* device type id */ struct hv_guid device_id; /* device instance id */ - struct hv_driver *drv; + struct driver_context *drv; int probe_error; struct vmbus_channel *channel; /* associated channel to host*/ void *ext; diff --git a/drivers/staging/hv/vmbus_api....
2011 Feb 26
1
[PATCH 4/6] Staging: hv: Unify the hyperv driver abstractions
...name; + struct hv_guid class_id; + int (*dev_add)(struct hyperv_device *device, void *data); + + int (*dev_rm)(struct hyperv_device *device); + + void (*cleanup)(struct driver_context *driver); + struct device_driver driver; /* @@ -48,7 +56,7 @@ struct hyperv_device { struct work_struct probe_failed_work_item; struct hv_guid class_id; /* device type id */ struct hv_guid device_id; /* device instance id */ - struct hv_driver *drv; + struct driver_context *drv; int probe_error; struct vmbus_channel *channel; /* associated channel to host*/ void *ext; diff --git a/drivers/staging/hv/vmbus_api....
2011 Feb 26
1
[PATCH 5/6] Staging: hv: Rename driver_context to hyperv_driver
...class_id; @@ -37,7 +37,7 @@ struct driver_context { int (*dev_rm)(struct hyperv_device *device); - void (*cleanup)(struct driver_context *driver); + void (*cleanup)(struct hyperv_driver *driver); struct device_driver driver; @@ -56,7 +56,7 @@ struct hyperv_device { struct work_struct probe_failed_work_item; struct hv_guid class_id; /* device type id */ struct hv_guid device_id; /* device instance id */ - struct driver_context *drv; + struct hyperv_driver *drv; int probe_error; struct vmbus_channel *channel; /* associated channel to host*/ void *ext; @@ -69,15 +69,16 @@ static inline stru...
2011 Feb 26
1
[PATCH 5/6] Staging: hv: Rename driver_context to hyperv_driver
...class_id; @@ -37,7 +37,7 @@ struct driver_context { int (*dev_rm)(struct hyperv_device *device); - void (*cleanup)(struct driver_context *driver); + void (*cleanup)(struct hyperv_driver *driver); struct device_driver driver; @@ -56,7 +56,7 @@ struct hyperv_device { struct work_struct probe_failed_work_item; struct hv_guid class_id; /* device type id */ struct hv_guid device_id; /* device instance id */ - struct driver_context *drv; + struct hyperv_driver *drv; int probe_error; struct vmbus_channel *channel; /* associated channel to host*/ void *ext; @@ -69,15 +69,16 @@ static inline stru...
2011 Feb 26
1
[PATCH 2/6] Staging: hv: Rename vm_device to hyperv_device
...vmbus.h b/drivers/staging/hv/vmbus.h index e56e61a..1ac7e56 100644 --- a/drivers/staging/hv/vmbus.h +++ b/drivers/staging/hv/vmbus.h @@ -43,7 +43,7 @@ struct driver_context { void (*shutdown)(struct device *); }; -struct vm_device { +struct hyperv_device { char name[64]; struct work_struct probe_failed_work_item; struct hv_guid class_id; /* device type id */ @@ -56,9 +56,9 @@ struct vm_device { }; -static inline struct vm_device *device_to_vm_device(struct device *d) +static inline struct hyperv_device *device_to_hyperv_device(struct device *d) { - return container_of(d, struct vm_device, device);...
2011 Feb 26
1
[PATCH 2/6] Staging: hv: Rename vm_device to hyperv_device
...vmbus.h b/drivers/staging/hv/vmbus.h index e56e61a..1ac7e56 100644 --- a/drivers/staging/hv/vmbus.h +++ b/drivers/staging/hv/vmbus.h @@ -43,7 +43,7 @@ struct driver_context { void (*shutdown)(struct device *); }; -struct vm_device { +struct hyperv_device { char name[64]; struct work_struct probe_failed_work_item; struct hv_guid class_id; /* device type id */ @@ -56,9 +56,9 @@ struct vm_device { }; -static inline struct vm_device *device_to_vm_device(struct device *d) +static inline struct hyperv_device *device_to_hyperv_device(struct device *d) { - return container_of(d, struct vm_device, device);...
2011 Mar 29
9
[PATCH 00/07] Remove and replace all un-needed DPRINT and printk
This patch set removes all un-needed DPRINT and printk calls and replaces the remaining ones with the correct pr_, dev_ and netdev_ calls from hv_vmbus, hv_netvsc, hv_timesource and hv_utils. Several DPRINTS are remaining that will be cleaned up in my next set of patches. They deal with printing out certain debugging that will be implemented slightly differently. The remaining hv_storvsc and
2011 Mar 29
9
[PATCH 00/07] Remove and replace all un-needed DPRINT and printk
This patch set removes all un-needed DPRINT and printk calls and replaces the remaining ones with the correct pr_, dev_ and netdev_ calls from hv_vmbus, hv_netvsc, hv_timesource and hv_utils. Several DPRINTS are remaining that will be cleaned up in my next set of patches. They deal with printing out certain debugging that will be implemented slightly differently. The remaining hv_storvsc and
2011 Apr 29
17
[RESEND] [PATCH 00/18] Staging: hv: Cleanup vmbus driver code
This is a resend of the patches yet to be applied. This patch-set addresses some of the bus/driver model cleanup that Greg sugested over the last couple of days. In this patch-set we deal with the following issues: 1) Cleanup error handling in the vmbus_probe() and vmbus_child_device_register() functions. Fixed a bug in the probe failure path as part of this cleanup. 2) The Windows
2011 Apr 29
17
[RESEND] [PATCH 00/18] Staging: hv: Cleanup vmbus driver code
This is a resend of the patches yet to be applied. This patch-set addresses some of the bus/driver model cleanup that Greg sugested over the last couple of days. In this patch-set we deal with the following issues: 1) Cleanup error handling in the vmbus_probe() and vmbus_child_device_register() functions. Fixed a bug in the probe failure path as part of this cleanup. 2) The Windows
2011 Feb 26
5
[PATCH 1/6] Staging: hv: Unify hyper-v device abstractions
...e_ctx); return ret; } diff --git a/drivers/staging/hv/vmbus.h b/drivers/staging/hv/vmbus.h index 42f2adb..e56e61a 100644 --- a/drivers/staging/hv/vmbus.h +++ b/drivers/staging/hv/vmbus.h @@ -44,18 +44,17 @@ struct driver_context { }; struct vm_device { + char name[64]; struct work_struct probe_failed_work_item; - struct hv_guid class_id; - struct hv_guid device_id; + struct hv_guid class_id; /* device type id */ + struct hv_guid device_id; /* device instance id */ + struct hv_driver *drv; int probe_error; - struct hv_device device_obj; + struct vmbus_channel *channel; /* associated channel to host*/ +...
2011 Feb 26
5
[PATCH 1/6] Staging: hv: Unify hyper-v device abstractions
...e_ctx); return ret; } diff --git a/drivers/staging/hv/vmbus.h b/drivers/staging/hv/vmbus.h index 42f2adb..e56e61a 100644 --- a/drivers/staging/hv/vmbus.h +++ b/drivers/staging/hv/vmbus.h @@ -44,18 +44,17 @@ struct driver_context { }; struct vm_device { + char name[64]; struct work_struct probe_failed_work_item; - struct hv_guid class_id; - struct hv_guid device_id; + struct hv_guid class_id; /* device type id */ + struct hv_guid device_id; /* device instance id */ + struct hv_driver *drv; int probe_error; - struct hv_device device_obj; + struct vmbus_channel *channel; /* associated channel to host*/ +...