[PATCH v2 2/2] staging: skein: Add Loadable Module Support

2014-10-22 Thread Eric Rost
Adds loadable module support for skein_mod, containing skein256, skein512, and skein1024 algorithms. Signed-off-by: Eric Rost --- drivers/staging/skein/Kconfig | 2 +- drivers/staging/skein/skein_generic.c | 122 ++ 2 files changed, 123 insertions(+), 1

[PATCH v2 1/2] staging: skein: Add Crypto API support

2014-10-22 Thread Eric Rost
Adds crypto API support for the skein module. Also collapses the threefish module into the skein module. Signed-off-by: Eric Rost --- drivers/staging/skein/Kconfig | 22 +-- drivers/staging/skein/Makefile| 13 ++-- drivers/staging/skein/skein.c | 1 + drivers/stag

[PATCH v2 0/2] staging: skein: Add Crypto API and Loadable Module support

2014-10-22 Thread Eric Rost
This patchset adds crypto api support and loadable module support to the skein driver. Eric Rost (2): staging: skein: Add Crypto API support staging: skein: Add Loadable Module Support drivers/staging/skein/Kconfig | 24 +--- drivers/staging/skein/Makefile| 13 +- drivers/s

Re: [PATCH 0/3] scsi: Add Hyper-V logical block provisioning quirks

2014-10-22 Thread Martin K. Petersen
> "Sitsofe" == Sitsofe Wheeler writes: Sitsofe> 2. On top of the above, when a disk is "small" (has less than Sitsofe>2^32 sectors which is typically < 2 TBytes in size) READ Sitsofe>CAPACITY(16) won't be triggered. static int sd_try_rc16_first(struct scsi_device *sdp) { if (

Re: [PATCH 2/3] scsi: add try_rc16 blacklist flag

2014-10-22 Thread Martin K. Petersen
> "Sitsofe" == Sitsofe Wheeler writes: >> Last time around we identified this as a problem with Microsoft's >> interpretation of the T10 SBC spec. And they promised that they are >> going to fix that. Sitsofe> OK but if we were happy to wait for Microsoft to fix the Sitsofe> problem on the h

[PATCH 37/55] staging: comedi: pcl711: use comedi_buf_write_samples()

2014-10-22 Thread H Hartley Sweeten
Use comedi_buf_write_samples() to add the sample to the async buffer. The async events will set properly by the core. Remove the unnecessary events in the driver. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/pcl711.c | 6 ++ 1 f

[PATCH 51/55] staging: comedi: pcmuio: use comedi_buf_write_samples()

2014-10-22 Thread H Hartley Sweeten
The dev->read_subdev used in this driver for async commands returns 32-bit samples and should have the SDF_LSAMPL subdev_flag set. It also returns the full scan with each sample so it should have the SDF_PACKED subdev_flag set. Add the missing subdev_flags and use comedi_buf_write_samples() to a

[PATCH 39/55] staging: comedi: pcl812: use comedi_buf_write_samples()

2014-10-22 Thread H Hartley Sweeten
For aesthetics, use comedi_buf_write_samples() to add the sample to the async buffer. The core will add the COMEDI_CB_BLOCK event when data is written to the async buffer. Remove the nnecessary event in the driver. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- dri

[PATCH 43/55] staging: comedi: rtd520: use comedi_buf_write_samples()

2014-10-22 Thread H Hartley Sweeten
For aesthetics, use comedi_buf_write_samples() to add the sample to the async buffer. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/rtd520.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/comedi/dr

[PATCH 55/55] staging: comedi: comedi_buf: absorb __comedi_buf_write_alloc()

2014-10-22 Thread H Hartley Sweeten
This function is only called by comedi_buf_write_alloc(). Absorb it and remove the unused 'strict' parameter. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/comedi_buf.c | 15 --- 1 file changed, 4 insertions(+), 11 deletions(-) d

[PATCH 35/55] staging: comedi: ni_65xx: use comedi_buf_write_samples()

2014-10-22 Thread H Hartley Sweeten
Use comedi_buf_write_samples() to add the sample to the async buffer. The async events COMEDI_CB_EOS will automatically be set by the core with the end-of-scan is detected. Remove the unnecessary event in the driver. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- d

[PATCH 06/55] staging: comedi: s626: use comedi_buf_write_samples()

2014-10-22 Thread H Hartley Sweeten
Use comedi_buf_write_samples() instead of cfc_write_to_buffer() to add the single sample to the async buffer. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/s626.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/d

[PATCH 23/55] staging: comedi: comedi_fc.h: remove cfc_write_array_to_buffer()

2014-10-22 Thread H Hartley Sweeten
The inline function is no longer used. Remove it. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/comedi_fc.h | 7 --- 1 file changed, 7 deletions(-) diff --git a/drivers/staging/comedi/drivers/comedi_fc.h b/drivers/staging/comedi

[PATCH 46/55] staging: comedi: drivers: handle SDF_PACKED in comedi_inc_scan_progress()

2014-10-22 Thread H Hartley Sweeten
Subdevices that set the SDF_PACKED flag return all the scan data in a single sample. The cmd->chanlist_len is used to pass the DIO channel information to the command and does not indicate the length (cmd->scan_end_arg) of the scan. Currently this flag is not handled in the comedi core files. Modif

[PATCH 54/55] staging: comedi: comedi_buf: absorb comedi_write_array_to_buffer()

2014-10-22 Thread H Hartley Sweeten
This function is only called by comedi_buf_write_samples(). Absorb it. The buffer overflow was already checked so the overflow check of comedi_buf_write_alloc() can be removed. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/comedi_buf.c | 36

[PATCH 27/55] staging: comedi: adv_pci1710: use comedi_buf_write_samples()

2014-10-22 Thread H Hartley Sweeten
For aesthetics, use comedi_buf_write_samples() to add the sample to the async buffer. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/adv_pci1710.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/stagin

[PATCH 41/55] staging: comedi: pcl818: use comedi_buf_write_samples()

2014-10-22 Thread H Hartley Sweeten
For aesthetics, use comedi_buf_write_samples() to add the sample to the async buffer. The core will add the COMEDI_CB_BLOCK event when data is written to the async buffer. Remove the unnecessary event in the driver. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- dr

[PATCH 28/55] staging: comedi: amplc_pc236_common: use comedi_buf_write_samples()

2014-10-22 Thread H Hartley Sweeten
Use comedi_buf_write_samples() to add the sample to the async buffer. The async events COMEDI_CB_BLOCK and COMEDI_CB_EOS will be detected and set by the core. Remove the unnecessary events in the driver. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/stagin

[PATCH 00/55] staging: comedi: clean up writing data to the async buffer

2014-10-22 Thread H Hartley Sweeten
Currently there are 5 exported methods to add sample data to the async buffer. 1) cfc_write_long_to_buffer() - a wrapper around comedi_write_array_to_buffer() to add a single unsigned int size sample 2) cfc_write_to_buffer() - a wrapper aropund comedi_write_array_to_buffer() to add

[PATCH 53/55] staging: comedi: comedi_buf: don't export comedi_write_array_to_buffer()

2014-10-22 Thread H Hartley Sweeten
All the comedi drivers have been converted to use comedi_buf_write_samples(). This function is now only used internally by comedi_buf. Remvoe the export. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/comedi_buf.c | 19 +++ dri

[PATCH 42/55] staging: comedi: quatech_daqp_cs: use comedi_buf_write_samples()

2014-10-22 Thread H Hartley Sweeten
For aesthetics, use comedi_buf_write_samples() to add the sample to the async buffer. The core will add the COMEDI_CB_BLOCK event when data is written to the async buffer. Remove the unnecessary event in the driver. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- dr

[PATCH 44/55] staging: comedi: usbdux: use comedi_buf_write_samples()

2014-10-22 Thread H Hartley Sweeten
Use comedi_buf_write_samples() to add the sample to the async buffer. The async events COMEDI_CB_BLOCK and COMEDI_CB_EOS will be detected and set by the core. Remove the unnecessary events in the driver. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/stagin

[PATCH 45/55] staging: comedi: hwdrv_apci3120: use comedi_buf_write_samples()

2014-10-22 Thread H Hartley Sweeten
Use comedi_buf_write_samples() to add the samples to the async buffer. The COMEDI_CB_EOS and COMEDI_CB_OVERFLOW events will be automatically handled by the core. Remove the unecessary handling in the driver. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- .../stagin

[PATCH 50/55] staging: comedi: pcmmio: use comedi_buf_write_samples()

2014-10-22 Thread H Hartley Sweeten
The dev->read_subdev used in this driver for async commands returns 32-bit samples and should have the SDF_LSAMPL subdev_flag set. It also returns the full scan with each sample so it should have the SDF_PACKED subdev_flag set. Add the missing subdev_flags and use comedi_buf_write_samples() to a

[PATCH 52/55] staging: comedi: comedi_buf: remove comedi_buf_put()

2014-10-22 Thread H Hartley Sweeten
All comedi drivers now use comedi_buf_write_samples() to add the samples to the async buffer. Remove this unused function. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/comedi_buf.c | 15 --- drivers/staging/comedi/comedidev.h |

[PATCH 48/55] staging: comedi: amplc_dio200_common: use comedi_buf_write_samples()

2014-10-22 Thread H Hartley Sweeten
The dev->read_subdev used in this driver for async commands returns the full scan with each sample so it should have the SDF_PACKED subdev_flag set. Add the missing subdev_flags and use comedi_buf_write_samples() to add the sample to the async buffer. The async events will set properly by the cor

[PATCH 47/55] staging: comedi: addi_apci_2032: use comedi_buf_write_samples()

2014-10-22 Thread H Hartley Sweeten
The dev->read_subdev used in this driver for async commands returns the full scan with each sample so it should have the SDF_PACKED subdev_flag set. Add the missing subdev_flags and use comedi_buf_write_samples() to add the sample to the async buffer. The core sets the async events appropriately.

[PATCH 21/55] staging: comedi: usbduxsigma: use comedi_buf_write_samples()

2014-10-22 Thread H Hartley Sweeten
Use comedi_buf_write_samples() to add the sample to the async buffer. That function will determining the number of bytes to add based on the bytes_per_sample(). Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/usbduxsigma.c | 3 +-- 1 fi

[PATCH 49/55] staging: comedi: ni_pcidio: use comedi_buf_write_samples()

2014-10-22 Thread H Hartley Sweeten
Use comedi_buf_write_samples() to add the sample to the async buffer. The 32-bit sample size is automatically determined due to the subddev_flag SDF_LSAMPL. The async event COMEDI_CB_BLOCK will be automatically set by the core. Remove the unnecessary event in the driver. This driver also has the

[PATCH 29/55] staging: comedi: amplc_pci230: use comedi_buf_write_samples()

2014-10-22 Thread H Hartley Sweeten
Use comedi_buf_write_samples() to add the sample to the async buffer. The async events will set properly by the core. A dev_warn() message will also be output by the core if the buffer overflows. Remove the unnecessary events and dev_err() message in the driver. The core will also add the COMEDI_

[PATCH 25/55] staging: comedi: addi_apci_1564: use comedi_buf_write_samples()

2014-10-22 Thread H Hartley Sweeten
Use comedi_buf_write_samples() to add the sample to the async buffer. The async events COMEDI_CB_BLOCK and COMEDI_CB_EOS will be detected and set by the core. Remove the unnecessary events in the driver. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/stagin

[PATCH 38/55] staging: comedi: pcl726: use comedi_buf_write_samples()

2014-10-22 Thread H Hartley Sweeten
Use comedi_buf_write_samples() to add the sample to the async buffer. The async events will set properly by the core. Remove the unnecessary events in the driver. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/pcl726.c | 3 +-- 1 file

[PATCH 24/55] staging: comedi: addi_apci_1032: use comedi_buf_write_samples()

2014-10-22 Thread H Hartley Sweeten
Use comedi_buf_write_samples() to add the sample to the async buffer. The async events COMEDI_CB_BLOCK and COMEDI_CB_EOS will be detected and set by the core. Remove the unnecessary events in the driver. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/stagin

[PATCH 26/55] staging: comedi: addi_apci_3xxx: use comedi_buf_write_samples()

2014-10-22 Thread H Hartley Sweeten
For aesthetics, use comedi_buf_write_samples() to add the sample to the async buffer. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/addi_apci_3xxx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/c

[PATCH 12/55] staging: comedi: cb_pcidas64: use comedi_buf_write_samples()

2014-10-22 Thread H Hartley Sweeten
Use comedi_buf_write_samples() to add the samples to the async buffer. That function will handle single and multi samples writes by determining the number of bytes to add based on the bytes_per_sample(). Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging

[PATCH 36/55] staging: comedi: ni_atmio16d: use comedi_buf_write_samples()

2014-10-22 Thread H Hartley Sweeten
For aesthetics, use comedi_buf_write_samples() to add the sample to the async buffer. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/ni_atmio16d.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/stagin

[PATCH 33/55] staging: comedi: me4000: use comedi_buf_write_samples()

2014-10-22 Thread H Hartley Sweeten
Use comedi_buf_write_samples() to add the sample to the async buffer. The async events COMEDI_CB_OVERFLOW will be set by the core if the async buffer overflows. A dev_warn() message will also be output by the core if the buffer overflows. Remove the unnecessary event and the dev_err() messages in

[PATCH 05/55] staging: comedi: ni_at_a2150: use comedi_buf_write_samples()

2014-10-22 Thread H Hartley Sweeten
Use comedi_buf_write_samples() instead of cfc_write_to_buffer() to add the single sample to the async buffer. The core will add the COMEDI_CB_BLOCK event when data is written to the async buffer. Remove the unnecessary event in the driver. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Gre

[PATCH 18/55] staging: comedi: das16: use comedi_buf_write_samples()

2014-10-22 Thread H Hartley Sweeten
Use comedi_buf_write_samples() to add the samples to the async buffer. That function will determining the number of bytes to add based on the bytes_per_sample(). Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/das16.c | 6 -- 1 file

[PATCH 31/55] staging: comedi: dmm32at: use comedi_buf_write_samples()

2014-10-22 Thread H Hartley Sweeten
For aesthetics, use comedi_buf_write_samples() to add the sample to the async buffer. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/dmm32at.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/comedi/d

[PATCH 20/55] staging: comedi: gsc_hpdi: use comedi_buf_write_samples()

2014-10-22 Thread H Hartley Sweeten
Use comedi_buf_write_samples() to add the samples to the async buffer. That function will handle the '* sizeof(foo)' calculation to determine the number of bytes to add. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/gsc_hpdi.c | 4 ++-

[PATCH 34/55] staging: comedi: ni_6527: use comedi_buf_write_samples()

2014-10-22 Thread H Hartley Sweeten
Use comedi_buf_write_samples() to add the sample to the async buffer. The async events COMEDI_CB_EOS will automatically be set by the core with the end-of-scan is detected. Remove the unnecessary event in the driver. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- d

[PATCH 40/55] staging: comedi: pcl816: use comedi_buf_write_samples()

2014-10-22 Thread H Hartley Sweeten
For aesthetics, use comedi_buf_write_samples() to add the sample to the async buffer. The core will add the COMEDI_CB_BLOCK event when data is written to the async buffer. Remove the unnecessary event in the driver. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- dr

[PATCH 17/55] staging: comedi: das16m1: use comedi_buf_write_samples()

2014-10-22 Thread H Hartley Sweeten
Use comedi_buf_write_samples() to add the samples to the async buffer. The number of bytes to add is determined automatically based on the number of samples and the bytes_per_sample(). Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/das

[PATCH 30/55] staging: comedi: comedi_parport: use comedi_buf_write_samples()

2014-10-22 Thread H Hartley Sweeten
Use comedi_buf_write_samples() to add the sample to the async buffer. The async events COMEDI_CB_BLOCK and COMEDI_CB_EOS will be detected and set by the core. Remove the unnecessary events in the driver. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/stagin

[PATCH 22/55] staging: comedi: usbduxfast: use comedi_buf_write_samples()

2014-10-22 Thread H Hartley Sweeten
Use comedi_buf_write_samples() to add the samples to the async buffer. That function will determining the number of bytes to add based on the bytes_per_sample(). Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/usbduxfast.c | 6 ++ 1

[PATCH 11/55] staging: comedi: adl_pci9118: use comedi_buf_write_samples()

2014-10-22 Thread H Hartley Sweeten
Use comedi_buf_write_samples() to add the samples to the async buffer. The number of bytes to add is determined automatically based on the number of samples and the bytes_per_sample(). Change the return type of move_block_from_dma() to void and remove the unnecessary check of the return value of c

[PATCH 32/55] staging: comedi: dt3000: use comedi_buf_write_samples()

2014-10-22 Thread H Hartley Sweeten
For aesthetics, use comedi_buf_write_samples() to add the sample to the async buffer. The core will set the COMEDi_CB_BLOCK event when data is written to the async buffer. Remove the unnecessary event from the driver. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman ---

[PATCH 13/55] staging: comedi: ni_mio_common: use comedi_buf_write_samples()

2014-10-22 Thread H Hartley Sweeten
Use comedi_buf_write_samples() to add the samples to the async buffer. That function will handle single and multi sample writes by determining the number of bytes to add based on the bytes_per_sample(). Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/

[PATCH 14/55] staging: comedi: comedi_fc.h: remove cfc_write_to_buffer()

2014-10-22 Thread H Hartley Sweeten
The inline function is no longer used. Remove it. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/comedi_fc.h | 6 -- 1 file changed, 6 deletions(-) diff --git a/drivers/staging/comedi/drivers/comedi_fc.h b/drivers/staging/comedi/

[PATCH 16/55] staging: comedi: hwdrv_apci3120: use comedi_buf_write_samples()

2014-10-22 Thread H Hartley Sweeten
Use comedi_buf_write_samples() to add the samples to the async buffer. That function will handle the '* sizeof(foo)' calculation to determine the number of bytes to add. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/addi-data/hwdrv_ap

[PATCH 08/55] staging: comedi: ni_labpc_isadma: use comedi_buf_write_samples()

2014-10-22 Thread H Hartley Sweeten
Use comedi_buf_write_samples() instead of cfc_write_to_buffer() to add all the samples to the async buffer in one operation. The core will add the COMEDI_CB_BLOCK event when data is written to the async buffer. Remove the unnecessary event in the driver. Signed-off-by: H Hartley Sweeten Cc: Ian

[PATCH 09/55] staging: comedi: das1800: use comedi_buf_write_samples()

2014-10-22 Thread H Hartley Sweeten
Use comedi_buf_write_samples() to add the samples to the async buffer. That function will handle single and multi samples writes by determining the number of bytes to add based on the number of samples and the bytes_per_sample(). Also, remove the unnecessary COMEDI_CB_BLOCK event. comedi_buf_write

[PATCH 19/55] staging: comedi: dt282x: use comedi_buf_write_samples()

2014-10-22 Thread H Hartley Sweeten
Use comedi_buf_write_samples() to add the samples to the async buffer. That function will determining the number of bytes to add based on the bytes_per_sample(). Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/dt282x.c | 15 +---

[PATCH 10/55] staging: comedi: cb_pcidas: use comedi_buf_write_samples()

2014-10-22 Thread H Hartley Sweeten
Use comedi_buf_write_samples() to add the samples to the async buffer. That function will handle single and multi samples writes by determining the number of bytes to add based on the number of samples and the bytes_per_sample(). Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Har

[PATCH 03/55] staging: comedi: comedi_test: use comedi_buf_write_samples()

2014-10-22 Thread H Hartley Sweeten
Use comedi_buf_write_samples() instead of cfc_write_to_buffer() to add the single sample to the async buffer. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/comedi_test.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --gi

[PATCH 02/55] staging: comedi: comedi_fc.h: remove cfc_write_long_to_buffer()

2014-10-22 Thread H Hartley Sweeten
The inline function is not used. Remove it. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/comedi_fc.h | 6 -- 1 file changed, 6 deletions(-) diff --git a/drivers/staging/comedi/drivers/comedi_fc.h b/drivers/staging/comedi/driver

[PATCH 01/55] staging: comedi: comedi_buf: introduce comedi_buf_write_samples()

2014-10-22 Thread H Hartley Sweeten
Introduce a generic method to write samples to the async buffer. The number of samples is first checked against the number of samples that would fill the async buffer. The size of each sample is determined using the bytes_per_sample() helper. If all the samples will fit in the async buffer they ar

[PATCH 04/55] staging: comedi: das800: use comedi_buf_write_samples()

2014-10-22 Thread H Hartley Sweeten
Use comedi_buf_write_samples() instead of cfc_write_to_buffer() to add the single sample to the async buffer. The core will add the COMEDI_CB_BLOCK event when data is written to the async buffer. Remove the unnecessary event from the driver. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: G

[PATCH 15/55] staging: comedi: adl_pci9111: use comedi_buf_write_samples()

2014-10-22 Thread H Hartley Sweeten
Use comedi_buf_write_samples() to add the samples to the async buffer. The number of bytes to add is determined automatically based on the number of samples and the bytes_per_sample(). Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/adl

[PATCH 07/55] staging: comedi: ni_labpc_common: use comedi_buf_write_samples()

2014-10-22 Thread H Hartley Sweeten
Use comedi_buf_write_samples() instead of cfc_write_to_buffer() to add the single sample to the async buffer. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/ni_labpc_common.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff

[PATCH 06/10] staging: unisys: remove all unnecessary space after cast visorchannel_funcs

2014-10-22 Thread Erik Arfvidson
This patch removes all unnecessary spaces after cast for visorchannel_funcs Signed-off-by: Erik Arfvidson Signed-off-by: Benjamin Romer --- .../unisys/visorchannel/visorchannel_funcs.c | 61 +++--- 1 file changed, 31 insertions(+), 30 deletions(-) diff --git a/drivers/sta

Re: [PATCH net] hyperv: Fix the total_data_buflen in send path

2014-10-22 Thread David Miller
From: Haiyang Zhang Date: Wed, 22 Oct 2014 13:47:18 -0700 > total_data_buflen is used by netvsc_send() to decide if a packet can be put > into send buffer. It should also include the size of RNDIS message before the > Ethernet frame. Otherwise, a messge with total size bigger than > send_section

[PATCH 08/10] staging: unisys: fixed aligment in visorchannel_funcs

2014-10-22 Thread Erik Arfvidson
this patch fixes aligment for visorchanne_funcs Signed-off-by: Erik Arfvidson Signed-off-by: Benjamin Romer --- drivers/staging/unisys/visorchannel/visorchannel_funcs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/unisys/visorchannel/visorchannel_funcs.c

[PATCH 10/10] staging: unisys: fixed braces check in visorchannel_funcs

2014-10-22 Thread Erik Arfvidson
this patch adds braces to an else statement to remove check in checkpatch.pl for visorchannel_funcs.c Signed-off-by: Erik Arfvidson Signed-off-by: Benjamin Romer --- drivers/staging/unisys/visorchannel/visorchannel_funcs.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dr

[PATCH 07/10] staging: unisys: fixed logical continuation visorchannel_funcs

2014-10-22 Thread Erik Arfvidson
this patch fixes a logical continuation check in visorchannel Signed-off-by: Erik Arfvidson Signed-off-by: Benjamin Romer --- drivers/staging/unisys/visorchannel/visorchannel_funcs.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/staging/unisys/visorchannel/viso

[PATCH 09/10] staging: unisys: remove unnecessary blank line in visorchannel_funcs

2014-10-22 Thread Erik Arfvidson
this patch removes unnecessary blank line in visorchannel_funcs Signed-off-by: Erik Arfvidson Signed-off-by: Benjamin Romer --- drivers/staging/unisys/visorchannel/visorchannel_funcs.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/staging/unisys/visorchannel/visorchannel_funcs.c b

[PATCH 03/10] staging: unisys: virthba fix all alingment issues

2014-10-22 Thread Erik Arfvidson
this patch fixes all aligment issues in virthba.c Signed-off-by: Erik Arfvidson Signed-off-by: Benjamin Romer --- drivers/staging/unisys/virthba/virthba.c | 82 1 file changed, 42 insertions(+), 40 deletions(-) diff --git a/drivers/staging/unisys/virthba/virthb

[PATCH 01/10] staging: unisys: fix blank lines virthba

2014-10-22 Thread Erik Arfvidson
This patch removes unnecessary blanks lines and adds necessary blank lines in virthba. Signed-off-by: Erik Arfvidson Signed-off-by: Benjamin Romer --- drivers/staging/unisys/virthba/virthba.c | 9 +++-- 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/drivers/staging/unisys/vi

[PATCH 02/10] staging: unisys: virthba fix all spaces after cast

2014-10-22 Thread Erik Arfvidson
This patch fixes all spaces after cast for virthba Signed-off-by: Erik Arfvidson Signed-off-by: Benjamin Romer --- drivers/staging/unisys/virthba/virthba.c | 130 +++ 1 file changed, 65 insertions(+), 65 deletions(-) diff --git a/drivers/staging/unisys/virthba/virth

[PATCH 04/10] staging: unisys: fix all logical continuation virthba

2014-10-22 Thread Erik Arfvidson
This patch fixes all logical continuations issues in virthba.c Signed-off-by: Erik Arfvidson Signed-off-by: Benjamin Romer --- drivers/staging/unisys/virthba/virthba.c | 42 1 file changed, 21 insertions(+), 21 deletions(-) diff --git a/drivers/staging/unisys/v

[PATCH 05/10] staging: unisys: added spinlock comments visorchannel_funcs

2014-10-22 Thread Erik Arfvidson
This patch adds comment documentation to visorchannel_tag struct Signed-off-by: Erik Arfvidson Signed-off-by: Benjamin Romer --- drivers/staging/unisys/visorchannel/visorchannel_funcs.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/staging/unisys/visorchannel/v

[PATCH v2 05/18] staging: comedi: dt282x: introduce dt282x_ao_setup_dma()

2014-10-22 Thread H Hartley Sweeten
Introduce a helper function to read the analog output samples from the async buffer and prep the DMA. Use comedi_buf_read_samples() to read the analog output samples from the async buffer. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/driver

[PATCH v2 15/18] staging: comedi: comedi_buf: dont't export comedi_buf_memcpy_from()

2014-10-22 Thread H Hartley Sweeten
This function is only used internally. Remove the export. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/comedi_buf.c | 6 +++--- drivers/staging/comedi/comedidev.h | 3 +-- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/drive

[PATCH v2 07/18] staging: comedi: comedi_buf: remove export of comedi_read_array_from_buffer()

2014-10-22 Thread H Hartley Sweeten
This function is only used internally. Remove the export. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/comedi_buf.c | 17 +++-- drivers/staging/comedi/comedidev.h | 2 -- 2 files changed, 3 insertions(+), 16 deletions(-) diff

[PATCH v2 16/18] staging: comedi: comedi_buf: don't export comedi_buf_memcpy_to()

2014-10-22 Thread H Hartley Sweeten
This function is only used internally. Remove the export. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/comedi_buf.c | 6 +++--- drivers/staging/comedi/comedidev.h | 3 --- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/drive

[PATCH v2 09/18] staging: comedi: comedi_buf: make comedi_buf_read_samples() always return full samples

2014-10-22 Thread H Hartley Sweeten
A number of drivers currently use comedi_buf_get() to read single samples from the the async buffer. This works but the drivers have to handle the COMEDI_CB_BLOCK and COMEDI_CB_EOS events. Converting those drivers to use comedi_buf_read_samples() moves the handling of those events into the core. M

[PATCH v2 06/18] staging: comedi: comedi_fc.h: remove cfc_read_array_from_buffer()

2014-10-22 Thread H Hartley Sweeten
This inline function is no longer used. Remove it. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/comedi_fc.h | 7 --- 1 file changed, 7 deletions(-) diff --git a/drivers/staging/comedi/drivers/comedi_fc.h b/drivers/staging/comed

[PATCH v2 10/18] staging: comedi: ni_mio_common: use comedi_buf_read_samples()

2014-10-22 Thread H Hartley Sweeten
Use comedi_buf_read_samples() to get the single samples from the async buffer. The number of samples in the buffer was validated by the callers so the error checking can be removed. In addition, the core will set the COMEDI_CB_BLOCK event so it can also be removed. Signed-off-by: H Hartley Sweeten

[PATCH v2 14/18] staging: comedi: comedi_buf: remove comedi_buf_get()

2014-10-22 Thread H Hartley Sweeten
This function is no longer used. Remove it. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/comedi_buf.c | 14 -- drivers/staging/comedi/comedidev.h | 1 - 2 files changed, 15 deletions(-) diff --git a/drivers/staging/comedi/come

[PATCH v2 12/18] staging: comedi: usbdux: use comedi_buf_read_samples()

2014-10-22 Thread H Hartley Sweeten
Use comedi_buf_read_samples() to read the analog output samples from the async buffer. That function will set the COMEDI_CB_BLOCK event when samples are read from the async buffer. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/usbdux.

[PATCH v2 04/18] staging: comedi: cb_pcidas: introduce cb_pcidas64_ao_fill_buffer()

2014-10-22 Thread H Hartley Sweeten
Introduce a helper function to read the analog output samples from the async buffer. This fixes a bug in load_ao_dma_buffer(). That function was decrementing the 'ao_count' by the number of bytes, not the number of samples, that were read from the async buffer. Use comedi_buf_read_samples() to re

[PATCH v2 11/18] staging: comedi: amplc_pci230: use comedi_buf_read_samples()

2014-10-22 Thread H Hartley Sweeten
Use comedi_buf_read_samples() to read the analog output samples from the async buffer. That function will set the COMEDI_CB_BLOCK event when samples are read from the async buffer. In addition, the core will also handle the end-of-scan detection and set the COMEDI_CB_EOS event. Signed-off-by: H Ha

[PATCH v2 08/18] staging: comedi: comedi_buf: absorb comedi_read_array_from_buffer()

2014-10-22 Thread H Hartley Sweeten
This function is only called by comedi_buf_read_samples(). Absorb it. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/comedi_buf.c | 26 +- 1 file changed, 9 insertions(+), 17 deletions(-) diff --git a/drivers/staging/c

[PATCH v2 01/18] staging: comedi: comedi_buf: introduce comedi_buf_read_samples()

2014-10-22 Thread H Hartley Sweeten
Introduce a generic method to read samples from the async buffer. The number of requested samples is clampled to the number of samples that would fill the async buffer. The size of each sample is determined using the bytes_per_sample() helper. The number of bytes need are then read from the async

[PATCH v2 03/18] staging: comedi: cb_pcidas: introduce cb_pcidas_ao_load_fifo()

2014-10-22 Thread H Hartley Sweeten
Introduce a helper function to load the analog output FIFO. This fixes a bug in cb_pcidas_ao_inttrig(). That function was writing 'num_bytes' data values to the FIFO instead of 'num_points'. This results in twice the number of data values getting written to the FIFO. Use comedi_buf_read_samples()

[PATCH v2 02/18] staging: comedi: amplc_pci224: use comedi_buf_read_samples()

2014-10-22 Thread H Hartley Sweeten
Use the new generic method to read the analog output samples from the async buffer. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/amplc_pci224.c | 7 +++ 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/drivers/stagin

[PATCH v2 18/18] staging: comedi: comedi_buf: comedi_buf_memcpy_from() remove 'offset' param

2014-10-22 Thread H Hartley Sweeten
This parameter is always passed as '0'. Remove the unnecessary parameter. This allows removing the unnecessary check of the read_ptr overflow. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/comedi_buf.c | 8 ++-- 1 file changed, 2 inserti

[PATCH v2 13/18] staging: comedi: usbduxsigma: use comedi_buf_read_samples()

2014-10-22 Thread H Hartley Sweeten
Use comedi_buf_read_samples() to read the analog output samples from the async buffer. That function will set the COMEDI_CB_BLOCK event when samples are read from the async buffer. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/usbduxs

[PATCH v2 00/18] staging: comedi: clean up reading data from the async buffer

2014-10-22 Thread H Hartley Sweeten
Currently there are 3 exported methods to read sample data from the async buffer. 1) cfc_read_array_from_buffer() - a wrapper around comedi_read_array_from_buffer() 2) comedi_read_array_from_buffer() - reads multiple samples 3) comedi_buf_get() - reads a single sample In addition there ar

[PATCH v2 17/18] staging: comedi: comedi_buf: comedi_buf_memcpy_to() remove 'offset' param

2014-10-22 Thread H Hartley Sweeten
This parameter is always passed as '0'. Remove the unnecessary parameter. This allows removing the unnecessary check of the write_ptr overflow. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/comedi_buf.c | 8 ++-- 1 file changed, 2 insert

[PATCH v2] staging: rtl8712: Remove redundant cast

2014-10-22 Thread Rasmus Villemoes
struct firmware::data has type const u8*, as does *ppmappedfw, so the cast to u8* is unnecessary and slightly confusing. Signed-off-by: Rasmus Villemoes --- drivers/staging/rtl8712/hal_init.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/rtl8712/hal_init.c

[PATCH net] hyperv: Fix the total_data_buflen in send path

2014-10-22 Thread Haiyang Zhang
total_data_buflen is used by netvsc_send() to decide if a packet can be put into send buffer. It should also include the size of RNDIS message before the Ethernet frame. Otherwise, a messge with total size bigger than send_section_size may be copied into the send buffer, and cause data corruption.

RE: [PATCH 01/18] staging: comedi: comedi_buf: introduce comedi_buf_read_samples()

2014-10-22 Thread Hartley Sweeten
On Wednesday, October 22, 2014 8:18 AM, Ian Abbott wrote: > On 20/10/14 19:52, H Hartley Sweeten wrote: >> Introduce a generic method to read samples from the async buffer. >> >> The size of each sample is detected automatically using the >> bytes_per_sample() >> helper. The unsigned long long is

RE: [PATCH] tools: hv: introduce -n/--no-daemon option

2014-10-22 Thread KY Srinivasan
> -Original Message- > From: Vitaly Kuznetsov [mailto:vkuzn...@redhat.com] > Sent: Wednesday, October 22, 2014 9:07 AM > To: KY Srinivasan; Haiyang Zhang; de...@linuxdriverproject.org > Cc: linux-ker...@vger.kernel.org > Subject: [PATCH] tools: hv: introduce -n/--no-daemon option > > All

Re: [PATCH 09/18] staging: comedi: comedi_buf: make comedi_buf_read_samples() work for single samples

2014-10-22 Thread Ian Abbott
On 20/10/14 19:52, H Hartley Sweeten wrote: A number of drivers currently use comedi_buf_get() to read single samples from the the async buffer. This works but the drivers have to handle the COMEDI_CB_BLOCK and COMEDI_CB_EOS events. Converting those drivers to use comedi_buf_read_samples() moves

Re: [PATCH v2] staging: skein: Loadable Module Support

2014-10-22 Thread Jason Cooper
On Wed, Oct 22, 2014 at 10:54:26AM -0500, Eric Rost wrote: > On Wed, 2014-10-22 at 11:10 -0400, Jason Cooper wrote: > > At some point, Eric Rost wrote: ... > > > diff --git a/drivers/staging/skein/Makefile > > > b/drivers/staging/skein/Makefile > > > index a14aadd..1be01fe 100644 > > > --- a/drive

[PATCH] tools: hv: introduce -n/--no-daemon option

2014-10-22 Thread Vitaly Kuznetsov
All tools/hv daemons do mandatory daemon() on startup. However, no pidfile is created, this make it difficult for an init system to track such daemons. Modern linux distros use systemd as their init system. It can handle the daemonizing by itself, however, it requires a daemon to stay in foreground

Re: [PATCH v2] staging: skein: Loadable Module Support

2014-10-22 Thread Eric Rost
On Wed, 2014-10-22 at 11:10 -0400, Jason Cooper wrote: > > If you don't mind, could you split this > patch in two? The first integrating into the crypto API (such that > userspace could call into it), and the second enabling loadable module > support? > Will do! > > Signed-off-by: Eric Rost

Re: [PATCH 01/18] staging: comedi: comedi_buf: introduce comedi_buf_read_samples()

2014-10-22 Thread Ian Abbott
On 20/10/14 19:52, H Hartley Sweeten wrote: Introduce a generic method to read samples from the async buffer. The size of each sample is detected automatically using the bytes_per_sample() helper. The unsigned long long is used to avoid any possible integer overflow when calculating the 'nbytes'

  1   2   >