[PATCH 1/9] staging: comedi: adl_pci6208: save raw data for analog output readback

2013-09-18 Thread H Hartley Sweeten
This driver munges the raw data from the comedi core into its two's complement form before writing it to the hardware. The last value written to the hardware is saved in the private data for readback. Since the comedi core always expects the data to be in offset binary coding, make sure to save th

[PATCH 2/9] staging: comedi: adl_pci6208: don't deadlock while waiting to write ao data

2013-09-18 Thread H Hartley Sweeten
Remove a possible deadlock while waiting to write the analog output data. The data transfer rate for every D/A data write in this driver is 2.2us. Wait up to 10us for the board to be ready then and return -ETIME. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drive

[PATCH 4/9] staging: comedi: adl_pci6208: use comedi_offset_munge()

2013-09-18 Thread H Hartley Sweeten
Use comedi_offset_munge() to munge the offset binary values from the comedi core into the two's complement form that the hardware expects. This removes the hard coded assumption that the analog outputs are 16-bits and instead does the munging based on the s->maxdata. Signed-off-by: H Hartley Swee

[PATCH 3/9] staging: comedi: core: introduce comedi_offset_munge()

2013-09-18 Thread H Hartley Sweeten
The comedi core expects the data to/from analog subdevices to be in offset binary coding. This means that a value of '0' represents the most negative and a value of 's->maxdata' the most positive signal of the analog subdevice. Many comedi drivers require the data written to the analog outputs, or

[PATCH 5/9] staging: comedi: adl_pci6208: tidy up pci6208_ao_winsn()

2013-09-18 Thread H Hartley Sweeten
For aesthetics, rename this function to help with greps, Change the type of 'chan' to match the type of the insn->chanspec that it is derived from using the CR_CHAN macro. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/adl_pci6208.c |

[PATCH 6/9] staging: comedi: adl_pci6208: tidy up pci6208_ao_rinsn()

2013-09-18 Thread H Hartley Sweeten
For aesthetics, rename this function to help with greps, Change the type of 'chan' to match the type of the insn->chanspec that it is derived from using the CR_CHAN macro. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/adl_pci6208.c |

[PATCH 8/9] staging: comedi: adl_pci6208: tidy up multi-line comments

2013-09-18 Thread H Hartley Sweeten
Tidy up the multi-line comments to follow the CodingStyle. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/adl_pci6208.c | 64 1 file changed, 27 insertions(+), 37 deletions(-) diff --git a/drivers/staging/

[PATCH 9/9] staging: comedi: adl_pci6208: change MODULE_DESCRIPTION

2013-09-18 Thread H Hartley Sweeten
Change the MODULE_DESCRIPTION to something useful instead of the generic "Comedi low-level driver". Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/adl_pci6208.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/driver

[PATCH 0/9] staging: comedi: adl_pci6208: cleanup driver

2013-09-18 Thread H Hartley Sweeten
Fix two issues with the analog output subdevice: 1) The raw data from the comedi core should be saved for readback not the munged two's complement data that is written to the hardware. 2) Avoid a possible deadlock while waiting to write the analog output data. Introduce a comedi

New Purchases Order

2013-09-18 Thread Jessica Richard.
Attention: Sorry for such delay, we have been busy trying to compare products from our sellers for Optimum and best quality and product services, View Attachment for new Purchases Order. Kindly, send to us your Proforma Invoice with details below: *Minimum Order Quantity

Re: [PATCH V2 1/1] Drivers: input: serio: New driver to support Hyper-V synthetic keyboard

2013-09-18 Thread Dmitry Torokhov
Hi K.Y., On Tue, Sep 17, 2013 at 04:26:58PM -0700, K. Y. Srinivasan wrote: > Add a new driver to support synthetic keyboard. On the next generation > Hyper-V guest firmware, many legacy devices will not be emulated and this > driver will be required. > > I would like to thank Vojtech Pavlik for

[PATCH 7/9] staging: comedi: adl_pci6208: remove board attach noise

2013-09-18 Thread H Hartley Sweeten
Remove the final dev_info() at the end of the board attach. This is just added noise. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/adl_pci6208.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/staging/comedi/drivers/adl

RE: [PATCH V2 1/1] Drivers: input: serio: New driver to support Hyper-V synthetic keyboard

2013-09-18 Thread KY Srinivasan
> -Original Message- > From: Dmitry Torokhov [mailto:dmitry.torok...@gmail.com] > Sent: Wednesday, September 18, 2013 2:01 PM > To: KY Srinivasan > Cc: gre...@linuxfoundation.org; linux-ker...@vger.kernel.org; > de...@linuxdriverproject.org; o...@aepfle.de; a...@canonical.com; > jasow...@