firefly-linux-kernel-4.4.55.git
13 years agoStaging: hv: Make rndis_filter_device_remove() non static
K. Y. Srinivasan [Tue, 10 May 2011 14:54:57 +0000 (07:54 -0700)]
Staging: hv: Make rndis_filter_device_remove() non static

Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: Abhishek Kane <v-abkane@microsoft.com>
Signed-off-by: Hank Janssen <hjanssen@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agoStaging: hv: Make rndis_filte_device_add() non static
K. Y. Srinivasan [Tue, 10 May 2011 14:54:56 +0000 (07:54 -0700)]
Staging: hv: Make rndis_filte_device_add() non static

Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: Abhishek Kane <v-abkane@microsoft.com>
Signed-off-by: Hank Janssen <hjanssen@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agoStaging: hv: Get rid of netvsc_cleanup()
K. Y. Srinivasan [Tue, 10 May 2011 14:54:55 +0000 (07:54 -0700)]
Staging: hv: Get rid of netvsc_cleanup()

netvsc_cleanup() is an empty function; get rid of it.

Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: Abhishek Kane <v-abkane@microsoft.com>
Signed-off-by: Hank Janssen <hjanssen@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agoStaging: hv: Make netvsc_device_remove non static
K. Y. Srinivasan [Tue, 10 May 2011 14:54:54 +0000 (07:54 -0700)]
Staging: hv: Make netvsc_device_remove non static

Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: Abhishek Kane <v-abkane@microsoft.com>
Signed-off-by: Hank Janssen <hjanssen@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agoStaging: hv: Make the function netvsc_device_add() non static
K. Y. Srinivasan [Tue, 10 May 2011 14:54:53 +0000 (07:54 -0700)]
Staging: hv: Make the function netvsc_device_add() non static

Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: Abhishek Kane <v-abkane@microsoft.com>
Signed-off-by: Hank Janssen <hjanssen@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agoStaging: hv: storvsc_drv: Simplify the code for getting the drive parameters
K. Y. Srinivasan [Tue, 10 May 2011 14:54:52 +0000 (07:54 -0700)]
Staging: hv: storvsc_drv: Simplify the code for getting the drive parameters

We are making up the drive parameters; simplify the code.

Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: Abhishek Kane <v-abkane@microsoft.com>
Signed-off-by: Hank Janssen <hjanssen@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agoStaging: hv: storvsc_drv: Get rid of the code initializing the dispatch table
K. Y. Srinivasan [Tue, 10 May 2011 14:54:51 +0000 (07:54 -0700)]
Staging: hv: storvsc_drv: Get rid of the code initializing the dispatch table

Now that we have eliminated the indirection, we can get rid of
the code to initialize the dispatch table.

Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: Abhishek Kane <v-abkane@microsoft.com>
Signed-off-by: Hank Janssen <hjanssen@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agoStaging: hv: storvsc_drv: Get rid of the indirection in invoking storvsc_do_io()
K. Y. Srinivasan [Tue, 10 May 2011 14:54:50 +0000 (07:54 -0700)]
Staging: hv: storvsc_drv: Get rid of the indirection in invoking storvsc_do_io()

Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: Abhishek Kane <v-abkane@microsoft.com>
Signed-off-by: Hank Janssen <hjanssen@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agoStaging: hv: storvsc_drv: Get rid of the indirection in invoking storvsc_dev_add()
K. Y. Srinivasan [Tue, 10 May 2011 14:54:49 +0000 (07:54 -0700)]
Staging: hv: storvsc_drv: Get rid of the indirection in invoking storvsc_dev_add()

Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: Abhishek Kane <v-abkane@microsoft.com>
Signed-off-by: Hank Janssen <hjanssen@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agoStaging: hv: storvsc_drv: Get rid of the indirection in invoking storvsc_dev_remove()
K. Y. Srinivasan [Tue, 10 May 2011 14:54:48 +0000 (07:54 -0700)]
Staging: hv: storvsc_drv: Get rid of the indirection in invoking storvsc_dev_remove()

Get rid of the indirection in invoking storvsc_dev_remove()

Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: Abhishek Kane <v-abkane@microsoft.com>
Signed-off-by: Hank Janssen <hjanssen@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agoStaging: hv: storvsc_drv: Get rid of unnecessary comments/dead code
K. Y. Srinivasan [Tue, 10 May 2011 14:54:47 +0000 (07:54 -0700)]
Staging: hv: storvsc_drv: Get rid of unnecessary comments/dead code

Get rid of unnecessary comments/dead code.

Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: Abhishek Kane <v-abkane@microsoft.com>
Signed-off-by: Hank Janssen <hjanssen@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agoStaging: hv: storvsc_drv: Statically initialize probe/remove elements of the driver
K. Y. Srinivasan [Tue, 10 May 2011 14:54:46 +0000 (07:54 -0700)]
Staging: hv: storvsc_drv: Statically initialize probe/remove elements of the driver

Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: Abhishek Kane <v-abkane@microsoft.com>
Signed-off-by: Hank Janssen <hjanssen@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agoStaging: hv: storvsc_drv: Move the declaration of the driver variable
K. Y. Srinivasan [Tue, 10 May 2011 14:54:45 +0000 (07:54 -0700)]
Staging: hv: storvsc_drv: Move the declaration of the driver variable

Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: Abhishek Kane <v-abkane@microsoft.com>
Signed-off-by: Hank Janssen <hjanssen@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agoStaging: hv: storvsc_drv: Rename the driver variable
K. Y. Srinivasan [Tue, 10 May 2011 14:54:44 +0000 (07:54 -0700)]
Staging: hv: storvsc_drv: Rename the driver variable

Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: Abhishek Kane <v-abkane@microsoft.com>
Signed-off-by: Hank Janssen <hjanssen@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agoStaging: hv: Get rid of the forward declaration of storvsc_probe()
K. Y. Srinivasan [Tue, 10 May 2011 14:54:43 +0000 (07:54 -0700)]
Staging: hv: Get rid of the forward declaration of storvsc_probe()

Get rid of the forward declaration by moving the code around.

Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: Abhishek Kane <v-abkane@microsoft.com>
Signed-off-by: Hank Janssen <hjanssen@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agoStaging: hv: Get rid of the forward declaration of storvsc_queuecommand()
K. Y. Srinivasan [Tue, 10 May 2011 14:54:42 +0000 (07:54 -0700)]
Staging: hv: Get rid of the forward declaration of storvsc_queuecommand()

Get rid of the forward declaration by moving the code around.

Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: Abhishek Kane <v-abkane@microsoft.com>
Signed-off-by: Hank Janssen <hjanssen@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agoStaging: hv: Move the function storvsc_commmand_completion() to earlier in the file
K. Y. Srinivasan [Tue, 10 May 2011 14:54:41 +0000 (07:54 -0700)]
Staging: hv: Move the function storvsc_commmand_completion() to earlier in the file

Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: Abhishek Kane <v-abkane@microsoft.com>
Signed-off-by: Hank Janssen <hjanssen@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agoStaging: hv: storvsc_drv: Move module parameters to earlier in the file
K. Y. Srinivasan [Tue, 10 May 2011 14:54:40 +0000 (07:54 -0700)]
Staging: hv: storvsc_drv: Move module parameters to earlier in the file

Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: Abhishek Kane <v-abkane@microsoft.com>
Signed-off-by: Hank Janssen <hjanssen@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agoStaging: hv: Move the definition of storvsc_ringbuffer_size to earlier in the file
K. Y. Srinivasan [Tue, 10 May 2011 14:54:39 +0000 (07:54 -0700)]
Staging: hv: Move the definition of storvsc_ringbuffer_size to earlier in the file

Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: Abhishek Kane <v-abkane@microsoft.com>
Signed-off-by: Hank Janssen <hjanssen@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agoStaging: hv: Get rid of the forward declaration for storvsc_host_reset_handler()
K. Y. Srinivasan [Tue, 10 May 2011 14:54:38 +0000 (07:54 -0700)]
Staging: hv: Get rid of the forward declaration for storvsc_host_reset_handler()

Get rid of the forward declaration by moving the code around.

Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: Abhishek Kane <v-abkane@microsoft.com>
Signed-off-by: Hank Janssen <hjanssen@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agoStaging: hv: Move the definition of storvsc_host_reset() to earlier in the file
K. Y. Srinivasan [Tue, 10 May 2011 14:54:37 +0000 (07:54 -0700)]
Staging: hv: Move the definition of storvsc_host_reset() to earlier in the file

Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: Abhishek Kane <v-abkane@microsoft.com>
Signed-off-by: Hank Janssen <hjanssen@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agoStaging: hv: Rename stor_vsc_initialize()
K. Y. Srinivasan [Tue, 10 May 2011 14:54:36 +0000 (07:54 -0700)]
Staging: hv: Rename stor_vsc_initialize()

Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: Abhishek Kane <v-abkane@microsoft.com>
Signed-off-by: Hank Janssen <hjanssen@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agoStaging: hv: Rename the function stor_vsc_on_host_reset()
K. Y. Srinivasan [Tue, 10 May 2011 14:54:35 +0000 (07:54 -0700)]
Staging: hv: Rename the function stor_vsc_on_host_reset()

Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: Abhishek Kane <v-abkane@microsoft.com>
Signed-off-by: Hank Janssen <hjanssen@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agoStaging: hv: Get rid of the forward declaration of storvsc_get_chs()
K. Y. Srinivasan [Tue, 10 May 2011 14:54:34 +0000 (07:54 -0700)]
Staging: hv: Get rid of the forward declaration of storvsc_get_chs()

Get rid of the forward declaration by moving the code around.

Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: Abhishek Kane <v-abkane@microsoft.com>
Signed-off-by: Hank Janssen <hjanssen@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agoStaging: hv: Get rid of the forward declaration of storvsc_remove()
K. Y. Srinivasan [Tue, 10 May 2011 14:54:33 +0000 (07:54 -0700)]
Staging: hv: Get rid of the forward declaration of storvsc_remove()

Get rid of the forward declaration by moving the code around.

Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: Abhishek Kane <v-abkane@microsoft.com>
Signed-off-by: Hank Janssen <hjanssen@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agoStaging: hv: Get rid of the forward declaration for copy_to_bounce_buffer()
K. Y. Srinivasan [Tue, 10 May 2011 14:54:32 +0000 (07:54 -0700)]
Staging: hv: Get rid of the forward declaration for copy_to_bounce_buffer()

Get rid of the forward declaration by moving the code around.

Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: Abhishek Kane <v-abkane@microsoft.com>
Signed-off-by: Hank Janssen <hjanssen@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agoStaging: hv: Get rid of the forward declaration of copy_from_bounce_buffer()
K. Y. Srinivasan [Tue, 10 May 2011 14:54:31 +0000 (07:54 -0700)]
Staging: hv: Get rid of the forward declaration of copy_from_bounce_buffer()

Get rid of the forward declaration by moving the code around.

Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: Abhishek Kane <v-abkane@microsoft.com>
Signed-off-by: Hank Janssen <hjanssen@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agoStaging: hv: Get rid of the forward declaration for create_bounce_buffer()
K. Y. Srinivasan [Tue, 10 May 2011 14:54:30 +0000 (07:54 -0700)]
Staging: hv: Get rid of the forward declaration for create_bounce_buffer()

Get rid of the forward declaration by moving the code around.

Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: Abhishek Kane <v-abkane@microsoft.com>
Signed-off-by: Hank Janssen <hjanssen@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agoStaging: hv: Get rid of the forward declaration for do_bounce_buffer()
K. Y. Srinivasan [Tue, 10 May 2011 14:54:29 +0000 (07:54 -0700)]
Staging: hv: Get rid of the forward declaration for do_bounce_buffer()

Get rid of the forward declaration by moving the code around.

Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: Abhishek Kane <v-abkane@microsoft.com>
Signed-off-by: Hank Janssen <hjanssen@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agoStaging: hv: Get rid of the forwrd declaration of destroy_bounce_buffer
K. Y. Srinivasan [Tue, 10 May 2011 14:54:28 +0000 (07:54 -0700)]
Staging: hv: Get rid of the forwrd declaration of destroy_bounce_buffer

Get rid of the forward declaration by moving the code around.

Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: Abhishek Kane <v-abkane@microsoft.com>
Signed-off-by: Hank Janssen <hjanssen@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agoStaging: hv: Get rid of the forward declaration for storvsc_device_configure()
K. Y. Srinivasan [Tue, 10 May 2011 14:54:27 +0000 (07:54 -0700)]
Staging: hv: Get rid of the forward declaration for storvsc_device_configure()

Get rid of the forward declaration by moving the code around.

Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: Abhishek Kane <v-abkane@microsoft.com>
Signed-off-by: Hank Janssen <hjanssen@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agoStaging: hv: Move the function storvsc_merge_bvec() to earlier in the file
K. Y. Srinivasan [Tue, 10 May 2011 14:54:26 +0000 (07:54 -0700)]
Staging: hv: Move the function storvsc_merge_bvec() to earlier in the file

Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: Abhishek Kane <v-abkane@microsoft.com>
Signed-off-by: Hank Janssen <hjanssen@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agoStaging: hv: Get rid of the forward declaration for storvsc_device_alloc()
K. Y. Srinivasan [Tue, 10 May 2011 14:54:25 +0000 (07:54 -0700)]
Staging: hv: Get rid of the forward declaration for storvsc_device_alloc()

Get rid of the forward declaration by moving the code around.

Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: Abhishek Kane <v-abkane@microsoft.com>
Signed-off-by: Hank Janssen <hjanssen@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agoStaging: hv: storvsc_drv: Get rid of some DPRINTS
K. Y. Srinivasan [Tue, 10 May 2011 14:54:24 +0000 (07:54 -0700)]
Staging: hv: storvsc_drv: Get rid of some DPRINTS

Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: Abhishek Kane <v-abkane@microsoft.com>
Signed-off-by: Hank Janssen <hjanssen@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agoStaging: hv: storvsc_drv: Get rid of some dated comments
K. Y. Srinivasan [Tue, 10 May 2011 14:54:23 +0000 (07:54 -0700)]
Staging: hv: storvsc_drv: Get rid of some dated comments

Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: Abhishek Kane <v-abkane@microsoft.com>
Signed-off-by: Hank Janssen <hjanssen@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agoStaging: hv: storvsc_drv: Rename variables pointing to struct hv_device
K. Y. Srinivasan [Tue, 10 May 2011 14:54:22 +0000 (07:54 -0700)]
Staging: hv: storvsc_drv: Rename variables pointing to struct hv_device

Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: Abhishek Kane <v-abkane@microsoft.com>
Signed-off-by: Hank Janssen <hjanssen@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agoStaging: hv: storvsc_drv: Rename the struct hv_device * element of struct hv_host_device
K. Y. Srinivasan [Tue, 10 May 2011 14:54:21 +0000 (07:54 -0700)]
Staging: hv: storvsc_drv: Rename the struct hv_device * element of struct hv_host_device

Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: Abhishek Kane <v-abkane@microsoft.com>
Signed-off-by: Hank Janssen <hjanssen@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agoStaging: hv: storvsc_drv: Rename variables pointing to struct hv_host_device
K. Y. Srinivasan [Tue, 10 May 2011 14:54:20 +0000 (07:54 -0700)]
Staging: hv: storvsc_drv: Rename variables pointing to struct hv_host_device

Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: Abhishek Kane <v-abkane@microsoft.com>
Signed-off-by: Hank Janssen <hjanssen@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agoStaging: hv: storvsc_drv: Rename struct host_device_context
K. Y. Srinivasan [Tue, 10 May 2011 14:54:19 +0000 (07:54 -0700)]
Staging: hv: storvsc_drv: Rename struct host_device_context

Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: Abhishek Kane <v-abkane@microsoft.com>
Signed-off-by: Hank Janssen <hjanssen@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agoStaging: hv: storvsc_drv: Rename g_driver_name
K. Y. Srinivasan [Tue, 10 May 2011 14:54:18 +0000 (07:54 -0700)]
Staging: hv: storvsc_drv: Rename g_driver_name

Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: Abhishek Kane <v-abkane@microsoft.com>
Signed-off-by: Hank Janssen <hjanssen@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agoStaging: hv: storvsc: Get rid of some unnecessary DPRINTS
K. Y. Srinivasan [Tue, 10 May 2011 14:54:17 +0000 (07:54 -0700)]
Staging: hv: storvsc: Get rid of some unnecessary DPRINTS

Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: Abhishek Kane <v-abkane@microsoft.com>
Signed-off-by: Hank Janssen <hjanssen@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agoStaging: hv: storvsc: Get rid of/change some dated comments
K. Y. Srinivasan [Tue, 10 May 2011 14:54:16 +0000 (07:54 -0700)]
Staging: hv: storvsc: Get rid of/change some dated comments

Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: Abhishek Kane <v-abkane@microsoft.com>
Signed-off-by: Hank Janssen <hjanssen@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agoStaging: hv: Rename stor_vsc_connect_to_vsp
K. Y. Srinivasan [Tue, 10 May 2011 14:54:15 +0000 (07:54 -0700)]
Staging: hv: Rename stor_vsc_connect_to_vsp

Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: Abhishek Kane <v-abkane@microsoft.com>
Signed-off-by: Hank Janssen <hjanssen@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agoStaging: hv: Rename stor_vsc_on_channel_callback
K. Y. Srinivasan [Tue, 10 May 2011 14:54:14 +0000 (07:54 -0700)]
Staging: hv: Rename stor_vsc_on_channel_callback

Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: Abhishek Kane <v-abkane@microsoft.com>
Signed-off-by: Hank Janssen <hjanssen@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agoStaging: hv: Rename stor_vsc_on_receive
K. Y. Srinivasan [Tue, 10 May 2011 14:54:13 +0000 (07:54 -0700)]
Staging: hv: Rename stor_vsc_on_receive

Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: Abhishek Kane <v-abkane@microsoft.com>
Signed-off-by: Hank Janssen <hjanssen@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agoStaging: hv: Rename stor_vsc_on_io_completion
K. Y. Srinivasan [Tue, 10 May 2011 14:54:12 +0000 (07:54 -0700)]
Staging: hv: Rename stor_vsc_on_io_completion

Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: Abhishek Kane <v-abkane@microsoft.com>
Signed-off-by: Hank Janssen <hjanssen@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agoStaging: hv: Rename stor_vsc_channel_init()
K. Y. Srinivasan [Tue, 10 May 2011 14:54:11 +0000 (07:54 -0700)]
Staging: hv: Rename stor_vsc_channel_init()

Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: Abhishek Kane <v-abkane@microsoft.com>
Signed-off-by: Hank Janssen <hjanssen@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agoStaging: hv: Cleanup blkvsc_shutdown()
K. Y. Srinivasan [Tue, 10 May 2011 14:54:10 +0000 (07:54 -0700)]
Staging: hv: Cleanup blkvsc_shutdown()

Use the newly introduced function to wait for draining I/Os to
cleanup blkvsc_shutdown().

Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: Abhishek Kane <v-abkane@microsoft.com>
Signed-off-by: Hank Janssen <hjanssen@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agoStaging: hv: Cleanup blkvsc_remove()
K. Y. Srinivasan [Tue, 10 May 2011 14:54:09 +0000 (07:54 -0700)]
Staging: hv: Cleanup blkvsc_remove()

The function storvsc_dev_remove() already deals with draining of
the outstanding I/O. Cleanup blkvsc_remove() keeping this in mind.

Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: Abhishek Kane <v-abkane@microsoft.com>
Signed-off-by: Hank Janssen <hjanssen@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agoStaging: hv: Use the newly introduced I/O drain synch method
K. Y. Srinivasan [Tue, 10 May 2011 14:54:08 +0000 (07:54 -0700)]
Staging: hv: Use the newly introduced I/O drain synch method

Use the newly introduced I/O drain synch method.

Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: Abhishek Kane <v-abkane@microsoft.com>
Signed-off-by: Hank Janssen <hjanssen@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agoStaging: hv: Introduce a function to wait to drain outgoing I/O
K. Y. Srinivasan [Tue, 10 May 2011 14:54:07 +0000 (07:54 -0700)]
Staging: hv: Introduce a function to wait to drain outgoing I/O

Rather than busy loop waiting to drain I/O, introduce a function
that does not burn CPU cycles waiting.

Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: Abhishek Kane <v-abkane@microsoft.com>
Signed-off-by: Hank Janssen <hjanssen@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agoStaging: hv: Rename the function stor_vsc_get_major_info()
K. Y. Srinivasan [Tue, 10 May 2011 14:54:06 +0000 (07:54 -0700)]
Staging: hv: Rename the function stor_vsc_get_major_info()

Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: Abhishek Kane <v-abkane@microsoft.com>
Signed-off-by: Hank Janssen <hjanssen@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agoStaging: hv: blkvsc_drv: Get rid of the calls to storvsc_cleanup
K. Y. Srinivasan [Tue, 10 May 2011 14:54:05 +0000 (07:54 -0700)]
Staging: hv: blkvsc_drv: Get rid of the calls to storvsc_cleanup

The storvsc_cleanup() is an empty function; get rid of it.

Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: Abhishek Kane <v-abkane@microsoft.com>
Signed-off-by: Hank Janssen <hjanssen@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agoStaging: hv: blkvsc_drv: Statically initialize pointers for probe etc
K. Y. Srinivasan [Tue, 10 May 2011 14:54:04 +0000 (07:54 -0700)]
Staging: hv: blkvsc_drv: Statically initialize pointers for probe etc

Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: Abhishek Kane <v-abkane@microsoft.com>
Signed-off-by: Hank Janssen <hjanssen@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agoStaging: hv: blkvsc_drv: Get rid of the indirection for invoking io request
K. Y. Srinivasan [Tue, 10 May 2011 14:54:03 +0000 (07:54 -0700)]
Staging: hv: blkvsc_drv: Get rid of the indirection for invoking io request

Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: Abhishek Kane <v-abkane@microsoft.com>
Signed-off-by: Hank Janssen <hjanssen@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agoStaging: hv: Rename the function stor_vsc_on_io_request
K. Y. Srinivasan [Tue, 10 May 2011 14:54:02 +0000 (07:54 -0700)]
Staging: hv: Rename the function stor_vsc_on_io_request

Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: Abhishek Kane <v-abkane@microsoft.com>
Signed-off-by: Hank Janssen <hjanssen@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agoStaging: hv: blkvsc_drv: Get rid of the indirection for invoking cleanup function
K. Y. Srinivasan [Tue, 10 May 2011 14:54:01 +0000 (07:54 -0700)]
Staging: hv: blkvsc_drv: Get rid of the indirection for invoking cleanup function

Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: Abhishek Kane <v-abkane@microsoft.com>
Signed-off-by: Hank Janssen <hjanssen@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agoStaging: hv: Rename the function stor_vsc_on_cleanup
K. Y. Srinivasan [Tue, 10 May 2011 14:54:00 +0000 (07:54 -0700)]
Staging: hv: Rename the function stor_vsc_on_cleanup

Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: Abhishek Kane <v-abkane@microsoft.com>
Signed-off-by: Hank Janssen <hjanssen@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agoStaging: hv: blkvsc_drv: Get rid of the indirection for removing stor device
K. Y. Srinivasan [Tue, 10 May 2011 14:53:59 +0000 (07:53 -0700)]
Staging: hv: blkvsc_drv: Get rid of the indirection for removing stor device

Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: Abhishek Kane <v-abkane@microsoft.com>
Signed-off-by: Hank Janssen <hjanssen@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agoStaging: hv: Rename the function stor_vsc_on_device_remove
K. Y. Srinivasan [Tue, 10 May 2011 14:53:58 +0000 (07:53 -0700)]
Staging: hv: Rename the function stor_vsc_on_device_remove

Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: Abhishek Kane <v-abkane@microsoft.com>
Signed-off-by: Hank Janssen <hjanssen@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agoStaging: hv: Rename the function stor_vsc_device_add
K. Y. Srinivasan [Tue, 10 May 2011 14:53:57 +0000 (07:53 -0700)]
Staging: hv: Rename the function stor_vsc_device_add

Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: Abhishek Kane <v-abkane@microsoft.com>
Signed-off-by: Hank Janssen <hjanssen@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agoStaging: hv: blkvsc_drv: Get rid of the indirection for invoking device_add
K. Y. Srinivasan [Tue, 10 May 2011 14:53:56 +0000 (07:53 -0700)]
Staging: hv: blkvsc_drv: Get rid of the indirection for invoking device_add

Get rid of the indirection for invoking device_add.

Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: Abhishek Kane <v-abkane@microsoft.com>
Signed-off-by: Hank Janssen <hjanssen@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agoStaging: hv: Rename the function blk_vsc_on_device_add
K. Y. Srinivasan [Tue, 10 May 2011 14:53:55 +0000 (07:53 -0700)]
Staging: hv: Rename the function blk_vsc_on_device_add

Rename the function blk_vsc_on_device_add.

Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: Abhishek Kane <v-abkane@microsoft.com>
Signed-off-by: Hank Janssen <hjanssen@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agoStaging: hv: Rename variables of type struct storvsc_driver *
K. Y. Srinivasan [Tue, 10 May 2011 14:53:54 +0000 (07:53 -0700)]
Staging: hv: Rename variables of type struct storvsc_driver *

Rename the variables pointing to variables of type struct storvsc_driver *.

Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: Abhishek Kane <v-abkane@microsoft.com>
Signed-off-by: Hank Janssen <hjanssen@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agoStaging: hv: Change the name of blkvsc driver variable
K. Y. Srinivasan [Tue, 10 May 2011 14:53:53 +0000 (07:53 -0700)]
Staging: hv: Change the name of blkvsc driver variable

Rename the variable g_blkvsc_drv.

Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: Abhishek Kane <v-abkane@microsoft.com>
Signed-off-by: Hank Janssen <hjanssen@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agoStaging: hv: Change the name of struct storvsc_driver_object
K. Y. Srinivasan [Tue, 10 May 2011 14:53:52 +0000 (07:53 -0700)]
Staging: hv: Change the name of struct storvsc_driver_object

Rename the struct storvsc_driver_object.

Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: Abhishek Kane <v-abkane@microsoft.com>
Signed-off-by: Hank Janssen <hjanssen@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agoStaging: hv: blkvsc_drv: Rename the device type variable
K. Y. Srinivasan [Tue, 10 May 2011 14:53:51 +0000 (07:53 -0700)]
Staging: hv: blkvsc_drv: Rename the device type variable

Rename the variable g_blk_device_type.

Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: Abhishek Kane <v-abkane@microsoft.com>
Signed-off-by: Hank Janssen <hjanssen@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agoStaging: hv: blkvsc_drv: Rename driver name variable
K. Y. Srinivasan [Tue, 10 May 2011 14:53:50 +0000 (07:53 -0700)]
Staging: hv: blkvsc_drv: Rename driver name variable

Rename the variable g_blk_driver_name.

Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: Abhishek Kane <v-abkane@microsoft.com>
Signed-off-by: Hank Janssen <hjanssen@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agoStaging: hv: blkvsc_drv: Fix some locking issues
K. Y. Srinivasan [Tue, 10 May 2011 14:53:49 +0000 (07:53 -0700)]
Staging: hv: blkvsc_drv: Fix some locking issues

Additional lock related cleanup. Properly serialize access to
state even for command related operations.

Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: Abhishek Kane <v-abkane@microsoft.com>
Signed-off-by: Hank Janssen <hjanssen@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agoStaging: hv: blkvsc_drv: Cleanup spin lock usage
K. Y. Srinivasan [Tue, 10 May 2011 14:53:48 +0000 (07:53 -0700)]
Staging: hv: blkvsc_drv: Cleanup spin lock usage

This spin lock is potentially acquired from interrupt context.
Ensure that the interrupts are blocked whenever the lock is held.
The current code was not consistent with regards to blocking
interrupts - the same lock would be acquired without blocking
interrupts in some instance while the interrupts would be blocked
in other instances. Fix this potential deadlock problem.

Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: Abhishek Kane <v-abkane@microsoft.com>
Signed-off-by: Hank Janssen <hjanssen@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agoStaging: hv: Get rid of blkvsc_mutex
K. Y. Srinivasan [Tue, 10 May 2011 14:53:47 +0000 (07:53 -0700)]
Staging: hv: Get rid of blkvsc_mutex

The blkvsc_mutex is unnecessary as the state it is protecting
(blkdev->users) is already protected by the spin lock.

Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: Abhishek Kane <v-abkane@microsoft.com>
Signed-off-by: Hank Janssen <hjanssen@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agointel_sst: fix output noises when it's not in playback
Lu Guanqun [Tue, 3 May 2011 16:43:53 +0000 (17:43 +0100)]
intel_sst: fix output noises when it's not in playback

When the corresponding output device is not in playback, we can hear a little
noises.

Fix it by powering on the device only when it's in playback.

Signed-off-by: Lu Guanqun <guanqun.lu@intel.com>
Reviewed-by: Wu Fengguang <fengguang.wu@intel.com>
Signed-off-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agointel_sst: internal speaker needs setting a GPIO line
Lu Guanqun [Tue, 3 May 2011 16:43:40 +0000 (17:43 +0100)]
intel_sst: internal speaker needs setting a GPIO line

On Moorestown platform, internal speaker's power line is connected to a GPIO
line, so we need to enable or disable it properly.

Reviewed-by: Wu Fengguang <fengguang.wu@intel.com>
Signed-off-by: Jeff Cheng <jeff_cheng@wistron.com>
Signed-off-by: Lu Guanqun <guanqun.lu@intel.com>
Signed-off-by: Wang Xingchao <xingchao.wang@intel.com>
Signed-off-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agointel_sst: add Master Volume
Lu Guanqun [Tue, 3 May 2011 16:38:18 +0000 (17:38 +0100)]
intel_sst: add Master Volume

With this patch, Master Volume will control AUDIOLVOL(0x10c) and
AUDIORVOL(0x10d); while PCM Volume will control HPLVOL(0x123) and
HPRVOL(0x124).

Signed-off-by: Lu Guanqun <guanqun.lu@intel.com>
Signed-off-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agointel_sst: set default output and input device
Lu Guanqun [Tue, 3 May 2011 16:38:04 +0000 (17:38 +0100)]
intel_sst: set default output and input device

Signed-off-by: Lu Guanqun <guanqun.lu@intel.com>
Signed-off-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agointel_sst: fix runtime pm issue
Chandramouli Narayanan [Tue, 3 May 2011 16:37:48 +0000 (17:37 +0100)]
intel_sst: fix runtime pm issue

Use correct api for enabling/disabling runtime pm.  Additionally,
fix runtime suspend/resume to not duplicate pci core functions

Signed-off-by: Chandramouli Narayanan <chandramouli.narayanan@intel.com>
Tested-by: Kristen Carlson Accardi <kristen@linux.intel.com>
Signed-off-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agointel_sst: intelmid_v2_control: correct jack event type
Andy CH Lin [Tue, 3 May 2011 16:35:51 +0000 (17:35 +0100)]
intel_sst: intelmid_v2_control: correct jack event type

Correct event type of audio jack while receiving long press event.

Signed-off-by: Andy CH Lin <andy_ch_lin@wistron.com>
Signed-off-by: Jekyll Lai <jekyll_lai@wistron.com>
Signed-off-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agointel_sst: MRST can only do 16bit recording
Wu Fengguang [Tue, 3 May 2011 16:35:31 +0000 (17:35 +0100)]
intel_sst: MRST can only do 16bit recording

Fix bug

$ arecord -D dsnoop -r 48000 -f S16_LE 1.wav
ALSA lib pcm_direct.c:980:(snd1_pcm_direct_initialize_slave) unable to install hw params
ALSA lib pcm_dsnoop.c:604:(snd_pcm_dsnoop_open) unable to initialize slave
arecord: main:654: audio open error: Interrupted system call

Root cause is, the driver is reporting 32-bit capture capability
that is not supported by the MRST hardware. So the dsnoop plugin
end up requesting 32-bit capture which fails.

Signed-off-by: Wu Fengguang <fengguang.wu@intel.com>
Signed-off-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agointel_sst: MRST can only do mono recording
Wu Fengguang [Tue, 3 May 2011 16:35:19 +0000 (17:35 +0100)]
intel_sst: MRST can only do mono recording

Fix bug

$ arecord -Dplughw -c2
Recording WAVE 'stdin' : Unsigned 8 bit, Rate 8000 Hz, Stereo
arecord: set_params:1116: Unable to install hw params:
ACCESS:  RW_INTERLEAVED
FORMAT:  U8
SUBFORMAT:  STD
SAMPLE_BITS: 8
FRAME_BITS: 16
CHANNELS: 2
[...]

Root cause is, the driver is reporting 2-channel capture capability
that is not supported by the MRST hardware. So the plughw plugin
end up requesting 2-channel capture which fails.

Signed-off-by: Wu Fengguang <fengguang.wu@intel.com>
Signed-off-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agointel_sst: make sure the sst_drop_stream() get called when needed
Feng Tang [Tue, 3 May 2011 16:34:55 +0000 (17:34 +0100)]
intel_sst: make sure the sst_drop_stream() get called when needed

When "aplay test.wav", if we "ctrl+z" to suspend it, the last piece of
sound will be played endlessly. So we need make sure the drop_stream
is called in such a case.

Signed-off-by: Feng Tang <feng.tang@intel.com>
Signed-off-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agointel_sst: return correct output/input device id
Lu Guanqun [Tue, 3 May 2011 16:34:40 +0000 (17:34 +0100)]
intel_sst: return correct output/input device id

Without this patch, the change of output/input device can't be reflected
correctly. The mismatch reflects insane design, and should be fixed when
switching to the ASoC framework.

Signed-off-by: Lu Guanqun <guanqun.lu@intel.com>
Acked-by: Wu Fengguang <fengguang.wu@intel.com>
Signed-off-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agointel_sst: move jack detection related configs to init time
Lu Guanqun [Tue, 3 May 2011 16:34:27 +0000 (17:34 +0100)]
intel_sst: move jack detection related configs to init time

The old policy will not enable MIC2BIAS on Moorstown platform
by default, it's only enabled when the user selects HS_MIC as input source.
Therefore when user selects DMIC and then inserts the jack,
no interrupt will be generated to notify the driver about the
jack insertion event and to take action to auto mute the speaker.

The new policy will enable this bit by default,
then no matter what the output device is, an interrupt will be generated.

This behaviour is more likely what a user expects.

Signed-off-by: Lu Guanqun <guanqun.lu@intel.com>
Reviewed-by: Wu Fengguang <fengguang.wu@intel.com>
Signed-off-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agointel_sst: Headphone Automute support
xingchao [Tue, 3 May 2011 16:34:13 +0000 (17:34 +0100)]
intel_sst: Headphone Automute support

When detected a Jack event, Audio sound routes between internal speaker
and headphone/headset automatically.

Signed-off-by: xingchao <xingchao.wang@intel.com>
Signed-off-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agointel_sst: Enable recording via DMIC
Lu Guanqun [Tue, 3 May 2011 16:33:59 +0000 (17:33 +0100)]
intel_sst: Enable recording via DMIC

We may need to make some of this board specific eventually

Signed-off-by: Lu Guanqun <guanqun.lu@intel.com>
Signed-off-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agointel_sst: Enable recording via HS_MIC
Lu Guanqun [Tue, 3 May 2011 16:33:43 +0000 (17:33 +0100)]
intel_sst: Enable recording via HS_MIC

We may need to make some of this board specific eventually.

Signed-off-by: Lu Guanqun <guanqun.lu@intel.com>
Signed-off-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agointel_sst: Set de-bounce time
Lu Guanqun [Tue, 3 May 2011 16:33:28 +0000 (17:33 +0100)]
intel_sst: Set de-bounce time

In order to make jack detection behave properly, we have to set
the de-bounce time, otherwise, some weird events happens:
e.g. no plug-out event seen.

Signed-off-by: Lu Guanqun <guanqun.lu@intel.com>
Signed-off-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agointel_sst: rework jack implementation
Ramesh Babu K V [Tue, 3 May 2011 16:33:13 +0000 (17:33 +0100)]
intel_sst: rework jack implementation

This patch fixes the below issues w.r.t jack implementation

a) The current jack implementation in driver is implemented
   in intelmid.c. It has moved to vendor files for better managebility
b) Cleaned up jack reporting per upstream comments
c) Implemented jack for msic, added code to read adc and deduce jack
   type based on mic bias
d) Support detection of american headset

Signed-off-by: Dharageswari R <dharageswari.r@intel.com>
Signed-off-by: Ramesh Babu K V <ramesh.babu@intel.com>
[Corrections]
Signed-off-by: Lu Guanqun <guanqun.lu@intel.com>
Signed-off-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agointel_sst: DMIC routing
Sitanshu Nanavati [Tue, 3 May 2011 16:33:01 +0000 (17:33 +0100)]
intel_sst: DMIC routing

This patch adds support for configuring and routing the
DMICs (assigned HW route to DMICs)

Signed-off-by: Sitanshu Nanavati <sitanshu.nanavati@intel.com>
Signed-off-by: Ramesh Babu K V <ramesh.babu@intel.com>
Signed-off-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agointel_sst: parameter tuning ioctl
Vinod Koul [Tue, 3 May 2011 16:32:49 +0000 (17:32 +0100)]
intel_sst: parameter tuning ioctl

This patch adds new IOCTL for application interface.

Using parameter tuning IOCTL, application can fine
tune the audio firmware for it's requirement.

Signed-off-by: Vinod Koul <vinod.koul@intel.com>
Signed-off-by: Ramesh Babu K V <ramesh.babu@intel.com>
Signed-off-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agointel_sst: Line out support
Dharageswari R [Tue, 3 May 2011 16:32:38 +0000 (17:32 +0100)]
intel_sst: Line out support

This patch adds the support for lineout. The
lineout input can be selected as any input channel
by using a new alsa mixer kcontrol.

Signed-off-by: Dharageswari R <dharageswari.r@intel.com>
Signed-off-by: Ramesh Babu K V <ramesh.babu@intel.com>
Signed-off-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agointel_sst: ignore IRQ when suspended
Vinod Koul [Tue, 3 May 2011 16:32:25 +0000 (17:32 +0100)]
intel_sst: ignore IRQ when suspended

The irq for audio is shared, so when device is supended driver should
not the read register and ignore the interrupt.

This patch ignores interrupts when device is suspended.

Signed-off-by: Vinod Koul <vinod.koul@intel.com>
Signed-off-by: Ramesh Babu K V <ramesh.babu@intel.com>
Signed-off-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agointel_sst: fix unload bugs
Vinod Koul [Tue, 3 May 2011 16:32:13 +0000 (17:32 +0100)]
intel_sst: fix unload bugs

The current driver remove was erroneous and causes
errors when unloading or loading second time

This patch fixes both of these issues

Signed-off-by: Vinod Koul <vinod.koul@intel.com>
Signed-off-by: Ramesh Babu K V <ramesh.babu@intel.com>
Signed-off-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agointel_sst: MSIC codec power optimisation
Vinod Koul [Tue, 3 May 2011 16:32:01 +0000 (17:32 +0100)]
intel_sst: MSIC codec power optimisation

This patch adds power optimization for the msic codec and ensure
codec is completely powered off when codec is idle.

Signed-off-by: Vinod Koul <vinod.koul@intel.com>
Signed-off-by: Ramesh Babu K V <ramesh.babu@intel.com>
Signed-off-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agosst: fix compile error
Lu Guanqun [Fri, 8 Apr 2011 00:41:38 +0000 (08:41 +0800)]
sst: fix compile error

Add several include files to fix the below compile error.

drivers/staging/intel_sst/intelmid.c: In function ‘snd_intelmad_sst_register’:
drivers/staging/intel_sst/intelmid.c:805:2: error: ‘sst_drv_ctx’ undeclared (first use in this function)
drivers/staging/intel_sst/intelmid.c:805:2: note: each undeclared identifier is reported only once for each function it appears in

Signed-off-by: Lu Guanqun <guanqun.lu@intel.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Cc: Alan Cox <alan@lxorguk.ukuu.org.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agointel_sst: Save audio state across D3 on Medfield
Vinod Koul [Tue, 3 May 2011 16:31:49 +0000 (17:31 +0100)]
intel_sst: Save audio state across D3 on Medfield

During suspend and runtime_suspend audio dsp will be in D3 state
and will loose its context.

This patch adds support in driver to save the dsp context
and restore this context during resume

Signed-off-by: Vinod Koul <vinod.koul@intel.com>
Signed-off-by: Ramesh Babu K V <ramesh.babu@intel.com>
Signed-off-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agosst: make register_sst_card more self-contained
Lu Guanqun [Wed, 6 Apr 2011 02:20:42 +0000 (10:20 +0800)]
sst: make register_sst_card more self-contained

register_sst_card is used in ASoC code with field `scard_ops` being NULL.
Without this patch, there will be NULL dereference.

Signed-off-by: Lu Guanqun <guanqun.lu@intel.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Cc: Alan Cox <alan@lxorguk.ukuu.org.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agostaging/keucr: don't use SUCCESS as macro name
Randy Dunlap [Mon, 9 May 2011 17:47:51 +0000 (10:47 -0700)]
staging/keucr: don't use SUCCESS as macro name

Don't use "SUCCESS" as a macro name.  This collides with SCSI's macro
of the same name, but with a different value:

drivers/staging/keucr/smcommon.h:9:9: warning: preprocessor token SUCCESS redefined
include/scsi/scsi.h:463:9: this was the original definition

Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agostaging/keucr: eliminate sparse warnings in ms.c
Randy Dunlap [Mon, 9 May 2011 17:47:14 +0000 (10:47 -0700)]
staging/keucr: eliminate sparse warnings in ms.c

Eliminate sparse warnings in ms.c:

drivers/staging/keucr/ms.c:28:58: warning: right shift by bigger than source value
drivers/staging/keucr/ms.c:31:58: warning: right shift by bigger than source value
drivers/staging/keucr/ms.c:789:59: warning: cast truncates bits from constant value (ffffff7f becomes 7f)

Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agostaging/keucr: fix sparse statics and non-ANSI function warnings
Randy Dunlap [Mon, 9 May 2011 17:46:24 +0000 (10:46 -0700)]
staging/keucr: fix sparse statics and non-ANSI function warnings

Make lots of functions and data static (fixes sparse warnings).
Fix 5 functions to use ANSI format for function parameters (fixes
sparse warnings).

Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 years agostaging: ath6kl: provide hardware version to userspace
Kalle Valo [Tue, 10 May 2011 04:40:34 +0000 (07:40 +0300)]
staging: ath6kl: provide hardware version to userspace

Signed-off-by: Kalle Valo <kalle.valo@atheros.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>