[PATCH 00/16] Staging: hv: Consolidate driver and device abstractions

2011-03-07 Thread K. Y. Srinivasan
Hyper-V has maintained both its class independent driver and device state in two independent data structures: Driver state: struct driver_context (vmbus.h) and struct hv_driver (vmbus_api.h) Device state: struct vm_device (vmbus.h) and struct hv_device (vmbus_api.h) While sruct driver_context

[PATCH 01/16] Staging: hv: Use generic device_driver probe function

2011-03-07 Thread K. Y. Srinivasan
In preparation for moving all the state from struct driver_context to struct hv_driver, eliminate the probe() function from struct driver_context and use generic device_driver probe function. Signed-off-by: K. Y. Srinivasan k...@microsoft.com Signed-off-by: Abhishek Kane v-abk...@microsoft.com

[PATCH 03/16] Staging: hv: Use generic device_driver shutdown function

2011-03-07 Thread K. Y. Srinivasan
In preparation for moving all the state from struct driver_context to struct hv_driver, eliminate the shutdown() function from struct driver_context and use generic device_driver shutdown() function. Signed-off-by: K. Y. Srinivasan k...@microsoft.com Signed-off-by: Abhishek Kane

[PATCH 02/16] Staging: hv: Use generic device_driver remove function

2011-03-07 Thread K. Y. Srinivasan
In preparation for moving all the state from struct driver_context to struct hv_driver, eliminate the remove() function from struct driver_context and use generic device_driver remove() function. Signed-off-by: K. Y. Srinivasan k...@microsoft.com Signed-off-by: Abhishek Kane

[PATCH 05/16] Staging: hv: Change the signature for vmbus_child_driver_register

2011-03-07 Thread K. Y. Srinivasan
In preparation for moving the element driver from the struct driver_context to struct hv_driver, change the signature for the function vmbus_child_driver_register() to take a pointer to struct device_driver. Signed-off-by: K. Y. Srinivasan k...@microsoft.com Signed-off-by: Abhishek Kane

[PATCH 04/16] Staging: hv: Remove unnecessary function pointers in driver_context

2011-03-07 Thread K. Y. Srinivasan
Get rid of the unnecessary function pointers for probe(), remove() and shutdown() from struct driver_context. Signed-off-by: K. Y. Srinivasan k...@microsoft.com Signed-off-by: Abhishek Kane v-abk...@microsoft.com Signed-off-by: Haiyang Zhang haiya...@microsoft.com Signed-off-by: Hank Janssen

[PATCH 08/16] Staging: hv: Eliminate blkvsc_driver_context structure

2011-03-07 Thread K. Y. Srinivasan
With the consolidation of all driver state into one data structure; blkvsc_driver_context structure is not needed; get rid of it. Signed-off-by: K. Y. Srinivasan k...@microsoft.com Signed-off-by: Abhishek Kane v-abk...@microsoft.com Signed-off-by: Haiyang Zhang haiya...@microsoft.com

[PATCH 10/16] Staging: hv: Eliminate netvsc_driver_context

2011-03-07 Thread K. Y. Srinivasan
With the consolidation of all driver state into one data structure; netvsc_driver_context structure is not needed; get rid of it. Signed-off-by: K. Y. Srinivasan k...@microsoft.com Signed-off-by: Abhishek Kane v-abk...@microsoft.com Signed-off-by: Haiyang Zhang haiya...@microsoft.com

[PATCH 11/16] Staging: hv: Eliminate storvsc_driver_context structure

2011-03-07 Thread K. Y. Srinivasan
With the consolidation of all driver state into one data structure; storvsc_driver_context structure is not needed; get rid of it. Signed-off-by: K. Y. Srinivasan k...@microsoft.com Signed-off-by: Abhishek Kane v-abk...@microsoft.com Signed-off-by: Haiyang Zhang haiya...@microsoft.com

[PATCH 14/16] Staging: hv: Get rid of class_id from vm_device

2011-03-07 Thread K. Y. Srinivasan
Both device abstractions: vm_device and hv_device maintain state to reperesent the device type (and they refer to them by different names - class_id in vm_device and dev_type in hv_device). In preparation for consolidating all device state in struct hv_device; eliminate class_id from struct

[PATCH 12/16] Staging: hv: Move probe_failed_work_item from vm_device

2011-03-07 Thread K. Y. Srinivasan
In preparation for consolidating all device related state into struct hv_device, move probe_failed_work_item from vm_device to hv_device. Signed-off-by: K. Y. Srinivasan k...@microsoft.com Signed-off-by: Abhishek Kane v-abk...@microsoft.com Signed-off-by: Haiyang Zhang haiya...@microsoft.com

[PATCH 13/16] Staging: hv: Remove probe_error from vm_device

2011-03-07 Thread K. Y. Srinivasan
In preparation for consolidating all device related state into struct hv_device, move probe_error from vm_device to hv_device. Signed-off-by: K. Y. Srinivasan k...@microsoft.com Signed-off-by: Abhishek Kane v-abk...@microsoft.com Signed-off-by: Haiyang Zhang haiya...@microsoft.com Signed-off-by:

[PATCH 15/16] Staging: hv: Eliminate device_id from vm_device

2011-03-07 Thread K. Y. Srinivasan
Both device abstractions: vm_device and hv_device maintain state to reperesent the device instance (and they refer to them by different names - device_id in vm_device and dev_instance in hv_device). In preparation for consolidating all device state in struct hv_device; eliminate device_id from

[PATCH 16/16] Staging: hv: Remove the vm_device structure

2011-03-07 Thread K. Y. Srinivasan
Consolidate all device related state in struct hv_device by moving the device field from struct vm_device to struct hv_device. As part of this, also get rid of struct vm_device since the consolidation is complete. Signed-off-by: K. Y. Srinivasan k...@microsoft.com Signed-off-by: Abhishek Kane

[PATCH 06/16] Staging: hv: Change the signature for vmbus_child_driver_unregister

2011-03-07 Thread K. Y. Srinivasan
In preperation for moving the element driver from the struct driver_context to struct hv_driver, change the signature for the function vmbus_child_driver_unregister() to take a pointer to struct device_driver. Signed-off-by: K. Y. Srinivasan k...@microsoft.com Signed-off-by: Abhishek Kane

[PATCH 07/16] Staging: hv: Eliminate driver_context structure

2011-03-07 Thread K. Y. Srinivasan
We need to move the following elements from struct driver_context: class_id and driver in one step. As part of this operation get rid of the struct driver_context. With this patch we will have consolidated all driver state into one data structure: struct hv_driver. Signed-off-by: K. Y. Srinivasan

[PATCH 00/16] Staging: hv: Consolidate driver and device abstractions

2011-03-07 Thread K. Y. Srinivasan
Hyper-V has maintained both its class independent driver and device state in two independent data structures: Driver state: struct driver_context (vmbus.h) and struct hv_driver (vmbus_api.h) Device state: struct vm_device (vmbus.h) and struct hv_device (vmbus_api.h) While sruct driver_context

[PATCH 09/16] Staging: hv: Eliminate mousevsc_driver_context

2011-03-07 Thread K. Y. Srinivasan
With the consolidation of all driver state into one data structure; mousevsc_driver_context structure is not needed; get rid of it. Signed-off-by: K. Y. Srinivasan k...@microsoft.com Signed-off-by: Abhishek Kane v-abk...@microsoft.com Signed-off-by: Haiyang Zhang haiya...@microsoft.com

[PATCH 09/16] Staging: hv: Eliminate mousevsc_driver_context

2011-03-07 Thread K. Y. Srinivasan
With the consolidation of all driver state into one data structure; mousevsc_driver_context structure is not needed; get rid of it. Signed-off-by: K. Y. Srinivasan k...@microsoft.com Signed-off-by: Abhishek Kane v-abk...@microsoft.com Signed-off-by: Haiyang Zhang haiya...@microsoft.com

RE: [PATCH 00/16] Staging: hv: Consolidate driver and device abstractions

2011-03-07 Thread KY Srinivasan
-Original Message- From: Greg KH [mailto:g...@kroah.com] Sent: Monday, March 07, 2011 5:24 PM To: KY Srinivasan Cc: gre...@suse.de; linux-ker...@vger.kernel.org; de...@linuxdriverproject.org; virtualizat...@lists.osdl.org Subject: Re: [PATCH 00/16] Staging: hv: Consolidate driver

Re: [PATCH 00/16] Staging: hv: Consolidate driver and device abstractions

2011-03-07 Thread Greg KH
On Mon, Mar 07, 2011 at 10:45:15PM +, KY Srinivasan wrote: I'm guessing that you will have follow-on patches now to complete the migration to the correct driver core use (i.e. proper driver and device usage?) Or do you want me to look into doing this? My immediate goal is to get the

RE: [PATCH 00/16] Staging: hv: Consolidate driver and device abstractions

2011-03-07 Thread KY Srinivasan
-Original Message- From: Greg KH [mailto:g...@kroah.com] Sent: Monday, March 07, 2011 6:00 PM To: KY Srinivasan Cc: gre...@suse.de; linux-ker...@vger.kernel.org; de...@linuxdriverproject.org; virtualizat...@lists.osdl.org Subject: Re: [PATCH 00/16] Staging: hv: Consolidate driver