search for: vmbus_probe_failed_cb

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

2011 Mar 10
0
[PATCH 16/21] Staging: hv: Get rid of the forward declaration for vmbus_probe
...uct event_dpc; }; -static int vmbus_probe(struct device *device); static int vmbus_remove(struct device *device); static void vmbus_shutdown(struct device *device); @@ -199,6 +198,59 @@ static int vmbus_match(struct device *device, struct device_driver *driver) return match; } + +/* + * vmbus_probe_failed_cb - Callback when a driver probe failed in vmbus_probe() + * + * We need a callback because we cannot invoked device_unregister() inside + * vmbus_probe() since vmbus_probe() may be invoked inside device_register() + * i.e. we cannot call device_unregister() inside device_register() + */ +static void...
2011 Mar 10
0
[PATCH 16/21] Staging: hv: Get rid of the forward declaration for vmbus_probe
...uct event_dpc; }; -static int vmbus_probe(struct device *device); static int vmbus_remove(struct device *device); static void vmbus_shutdown(struct device *device); @@ -199,6 +198,59 @@ static int vmbus_match(struct device *device, struct device_driver *driver) return match; } + +/* + * vmbus_probe_failed_cb - Callback when a driver probe failed in vmbus_probe() + * + * We need a callback because we cannot invoked device_unregister() inside + * vmbus_probe() since vmbus_probe() may be invoked inside device_register() + * i.e. we cannot call device_unregister() inside device_register() + */ +static void...
2011 Feb 26
2
[PATCH 3/6] Staging: hv: Cleanup hyperv_device variable names
...uot;device object (%p) set to driver object (%p)", - &device_ctx, - device_ctx->drv); + &device_obj, + device_obj->drv); match = 1; } @@ -882,15 +882,15 @@ static int vmbus_match(struct device *device, struct device_driver *driver) */ static void vmbus_probe_failed_cb(struct work_struct *context) { - struct hyperv_device *device_ctx = (struct hyperv_device *)context; + struct hyperv_device *device_obj = (struct hyperv_device *)context; /* * Kick off the process of unregistering the device. * This will call vmbus_remove() and eventually vmbus_device_re...
2011 Feb 26
2
[PATCH 3/6] Staging: hv: Cleanup hyperv_device variable names
...uot;device object (%p) set to driver object (%p)", - &device_ctx, - device_ctx->drv); + &device_obj, + device_obj->drv); match = 1; } @@ -882,15 +882,15 @@ static int vmbus_match(struct device *device, struct device_driver *driver) */ static void vmbus_probe_failed_cb(struct work_struct *context) { - struct hyperv_device *device_ctx = (struct hyperv_device *)context; + struct hyperv_device *device_obj = (struct hyperv_device *)context; /* * Kick off the process of unregistering the device. * This will call vmbus_remove() and eventually vmbus_device_re...
2010 Mar 04
1
[PATCH 1/1] Stage: hv: Corrected all header comments to follow kernel-doc format-CORRECTED
.../* * vmbus_match - Attempt to match the specified device to the specified driver */ static int vmbus_match(struct device *device, struct device_driver *driver) @@ -718,7 +744,7 @@ static int vmbus_match(struct device *device, struct device_driver *driver) return match; } -/** +/* * vmbus_probe_failed_cb - Callback when a driver probe failed in vmbus_probe() * * We need a callback because we cannot invoked device_unregister() inside @@ -741,7 +767,7 @@ static void vmbus_probe_failed_cb(struct work_struct *context) DPRINT_EXIT(VMBUS_DRV); } -/** +/* * vmbus_probe - Add the new vmbus&...
2010 Mar 04
1
[PATCH 1/1] Stage: hv: Corrected all header comments to follow kernel-doc format-CORRECTED
.../* * vmbus_match - Attempt to match the specified device to the specified driver */ static int vmbus_match(struct device *device, struct device_driver *driver) @@ -718,7 +744,7 @@ static int vmbus_match(struct device *device, struct device_driver *driver) return match; } -/** +/* * vmbus_probe_failed_cb - Callback when a driver probe failed in vmbus_probe() * * We need a callback because we cannot invoked device_unregister() inside @@ -741,7 +767,7 @@ static void vmbus_probe_failed_cb(struct work_struct *context) DPRINT_EXIT(VMBUS_DRV); } -/** +/* * vmbus_probe - Add the new vmbus&...
2010 Mar 04
3
[PATCH 1/1] Stage: hv: Corrected all header comments to follow kernel-doc format
.../* * vmbus_match - Attempt to match the specified device to the specified driver */ static int vmbus_match(struct device *device, struct device_driver *driver) @@ -718,7 +744,7 @@ static int vmbus_match(struct device *device, struct device_driver *driver) return match; } -/** +/* * vmbus_probe_failed_cb - Callback when a driver probe failed in vmbus_probe() * * We need a callback because we cannot invoked device_unregister() inside @@ -741,7 +767,7 @@ static void vmbus_probe_failed_cb(struct work_struct *context) DPRINT_EXIT(VMBUS_DRV); } -/** +/* * vmbus_probe - Add the new vmbus&...
2010 Mar 04
3
[PATCH 1/1] Stage: hv: Corrected all header comments to follow kernel-doc format
.../* * vmbus_match - Attempt to match the specified device to the specified driver */ static int vmbus_match(struct device *device, struct device_driver *driver) @@ -718,7 +744,7 @@ static int vmbus_match(struct device *device, struct device_driver *driver) return match; } -/** +/* * vmbus_probe_failed_cb - Callback when a driver probe failed in vmbus_probe() * * We need a callback because we cannot invoked device_unregister() inside @@ -741,7 +767,7 @@ static void vmbus_probe_failed_cb(struct work_struct *context) DPRINT_EXIT(VMBUS_DRV); } -/** +/* * vmbus_probe - Add the new vmbus&...
2011 Feb 26
2
[PATCH 6/6] Staging: hv: Cleanup hyperv_driver variable names
...e to access the struct hyperv_driver field */ struct vmbus_hyperv_driver *vmbus_drv_ctx = - (struct vmbus_hyperv_driver *)driver_ctx; + (struct vmbus_hyperv_driver *)drv; device_obj->drv = &vmbus_drv_ctx->drv_obj; DPRINT_INFO(VMBUS_DRV, @@ -899,14 +899,14 @@ static void vmbus_probe_failed_cb(struct work_struct *context) static int vmbus_probe(struct device *child_device) { int ret = 0; - struct hyperv_driver *driver_ctx = + struct hyperv_driver *drv = driver_to_hyperv_driver(child_device->driver); struct hyperv_device *device_obj = device_to_hyperv_device(child_device)...
2011 Feb 26
2
[PATCH 6/6] Staging: hv: Cleanup hyperv_driver variable names
...e to access the struct hyperv_driver field */ struct vmbus_hyperv_driver *vmbus_drv_ctx = - (struct vmbus_hyperv_driver *)driver_ctx; + (struct vmbus_hyperv_driver *)drv; device_obj->drv = &vmbus_drv_ctx->drv_obj; DPRINT_INFO(VMBUS_DRV, @@ -899,14 +899,14 @@ static void vmbus_probe_failed_cb(struct work_struct *context) static int vmbus_probe(struct device *child_device) { int ret = 0; - struct hyperv_driver *driver_ctx = + struct hyperv_driver *drv = driver_to_hyperv_driver(child_device->driver); struct hyperv_device *device_obj = device_to_hyperv_device(child_device)...
2011 Feb 22
4
[PATCH 1/6] Staging: hv: vmbus_drv.c Replaced DPRINT with native pr_XXX
....", - 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_MOD, __func__, dev_name(child...
2011 Feb 22
4
[PATCH 1/6] Staging: hv: vmbus_drv.c Replaced DPRINT with native pr_XXX
....", - 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_MOD, __func__, dev_name(child...
2011 Feb 24
4
[PATCH ] Staging: hv: Hyper-V driver cleanup
...) set to driver object (%p)", - &device_ctx->device_obj, - device_ctx->device_obj.drv); + hyperv_dev, + hyperv_dev->drv); match = 1; } @@ -896,15 +874,15 @@ static int vmbus_match(struct device *device, struct device_driver *driver) */ static void vmbus_probe_failed_cb(struct work_struct *context) { - struct vm_device *device_ctx = (struct vm_device *)context; + struct hyperv_device *hyperv_dev = (struct hyperv_device *)context; /* * Kick off the process of unregistering the device. * This will call vmbus_remove() and eventually vmbus_device_release()...
2011 Feb 24
4
[PATCH ] Staging: hv: Hyper-V driver cleanup
...) set to driver object (%p)", - &device_ctx->device_obj, - device_ctx->device_obj.drv); + hyperv_dev, + hyperv_dev->drv); match = 1; } @@ -896,15 +874,15 @@ static int vmbus_match(struct device *device, struct device_driver *driver) */ static void vmbus_probe_failed_cb(struct work_struct *context) { - struct vm_device *device_ctx = (struct vm_device *)context; + struct hyperv_device *hyperv_dev = (struct hyperv_device *)context; /* * Kick off the process of unregistering the device. * This will call vmbus_remove() and eventually vmbus_device_release()...
2011 Feb 26
1
[PATCH 5/6] Staging: hv: Rename driver_context to hyperv_driver
...truct vmbus_driver_context *vmbus_drv_ctx = - (struct vmbus_driver_context *)driver_ctx; + struct vmbus_hyperv_driver *vmbus_drv_ctx = + (struct vmbus_hyperv_driver *)driver_ctx; device_obj->drv = &vmbus_drv_ctx->drv_obj; DPRINT_INFO(VMBUS_DRV, @@ -899,8 +899,8 @@ static void vmbus_probe_failed_cb(struct work_struct *context) static int vmbus_probe(struct device *child_device) { int ret = 0; - struct driver_context *driver_ctx = - driver_to_driver_context(child_device->driver); + struct hyperv_driver *driver_ctx = + driver_to_hyperv_driver(child_device->driver); struct hyperv...
2011 Feb 26
1
[PATCH 5/6] Staging: hv: Rename driver_context to hyperv_driver
...truct vmbus_driver_context *vmbus_drv_ctx = - (struct vmbus_driver_context *)driver_ctx; + struct vmbus_hyperv_driver *vmbus_drv_ctx = + (struct vmbus_hyperv_driver *)driver_ctx; device_obj->drv = &vmbus_drv_ctx->drv_obj; DPRINT_INFO(VMBUS_DRV, @@ -899,8 +899,8 @@ static void vmbus_probe_failed_cb(struct work_struct *context) static int vmbus_probe(struct device *child_device) { int ret = 0; - struct driver_context *driver_ctx = - driver_to_driver_context(child_device->driver); + struct hyperv_driver *driver_ctx = + driver_to_hyperv_driver(child_device->driver); struct hyperv...
2011 Feb 26
1
[PATCH 2/6] Staging: hv: Rename vm_device to hyperv_device
...e(device); + struct hyperv_device *device_ctx = device_to_hyperv_device(device); /* We found our driver ? */ if (memcmp(&device_ctx->class_id, &driver_ctx->class_id, @@ -882,7 +882,7 @@ static int vmbus_match(struct device *device, struct device_driver *driver) */ static void vmbus_probe_failed_cb(struct work_struct *context) { - struct vm_device *device_ctx = (struct vm_device *)context; + struct hyperv_device *device_ctx = (struct hyperv_device *)context; /* * Kick off the process of unregistering the device. @@ -901,8 +901,8 @@ static int vmbus_probe(struct device *child_device)...
2011 Feb 26
1
[PATCH 2/6] Staging: hv: Rename vm_device to hyperv_device
...e(device); + struct hyperv_device *device_ctx = device_to_hyperv_device(device); /* We found our driver ? */ if (memcmp(&device_ctx->class_id, &driver_ctx->class_id, @@ -882,7 +882,7 @@ static int vmbus_match(struct device *device, struct device_driver *driver) */ static void vmbus_probe_failed_cb(struct work_struct *context) { - struct vm_device *device_ctx = (struct vm_device *)context; + struct hyperv_device *device_ctx = (struct hyperv_device *)context; /* * Kick off the process of unregistering the device. @@ -901,8 +901,8 @@ static int vmbus_probe(struct device *child_device)...
2011 Mar 15
16
[PATCH 00/12] Staging: hv: Cleanup vmbus driver - Phase II
This patch-set fixes the following issues in the vmbus driver (vmbus_drv.c): Make vmbus driver a platform pci device and cleanup root device management and irq allocation (patches 1/12 through 3/12): 1) Make vmbus driver a platform pci driver. 2) Cleanup root device management. 3) Leverage the pci model for allocating irq. General cleanup of vmbus driver (patches 4/12 though 12/12): 1)
2011 Mar 15
16
[PATCH 00/12] Staging: hv: Cleanup vmbus driver - Phase II
This patch-set fixes the following issues in the vmbus driver (vmbus_drv.c): Make vmbus driver a platform pci device and cleanup root device management and irq allocation (patches 1/12 through 3/12): 1) Make vmbus driver a platform pci driver. 2) Cleanup root device management. 3) Leverage the pci model for allocating irq. General cleanup of vmbus driver (patches 4/12 though 12/12): 1)