Re: [PATCH v2 0/2] Staging: rts5208: rtsx_reset_chip style clean up

2014-10-20 Thread Dan Carpenter
These look good to me. Reviewed-by: Dan Carpenter dan.carpe...@oracle.com regards, dan carpenter ___ devel mailing list de...@linuxdriverproject.org http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel

Re: [PATCH 3/7] staging: ft1000: space required after that ','

2014-10-20 Thread Chen Weixiang
On Sun, Oct 19, 2014 at 03:27:00PM +0200, Konrad Zapalowicz wrote: On 10/19, Chen Weixiang wrote: -u8 ConnectionMsg[] = {0x00,0x44,0x10,0x20,0x80,0x00,0x00,0x00,0x00,0x00,0x03,0x00,0x00,0x00,0x93,0x64, -

Re: [PATCH] staging: android: binder: move to the real part of the kernel

2014-10-20 Thread Dan Carpenter
Having documentation would help reviewers. Here is some documentation I found online. http://www.phonesdevelopers.com/1793504/ But it seems like it was originally written in another language and auto translated to English. I don't see who is going to maintain this, if no one has time to even

[PATCH] staging: comedi: fix memory leak / bad pointer freeing for chanlist

2014-10-20 Thread Ian Abbott
As a follow-up to commit 6cab7a37f5c04 (staging: comedi: (regression) channel list must be set for COMEDI_CMD ioctl), Hartley Sweeten pointed out another couple of bugs stemming from commit 6cab7a37f5c04 (staging: comedi: comedi_fops: introduce __comedi_get_user_chanlist()). Firstly,

Re: [PATCH] staging: android: binder: move to the real part of the kernel

2014-10-20 Thread Arnd Bergmann
On Thursday 16 October 2014 14:47:41 Greg Kroah-Hartman wrote: From: Greg Kroah-Hartman gre...@linuxfoundation.org The Android binder code has been stable for many years now. No matter what comes in the future, we are going to have to support this API, so might as well move it to the real

[PATCH] staging: comedi: addi_apci_035: remove driver

2014-10-20 Thread H Hartley Sweeten
According to ADDI-DATA, this board was discontinued last year and they feel that no further development is needed for this driver. Remove the driver from comedi to help with the addi-data cleanup. Signed-off-by: H Hartley Sweeten hswee...@visionengravers.com Cc: Ian Abbott abbo...@mev.co.uk Cc:

[PATCH 4/9] staging: comedi: addi_apci_1564: board has 4 timers

2014-10-20 Thread H Hartley Sweeten
Now that the timer 'channels' are handled correctly in the subdevice functions, fix the number of timer channels. The APCI-1564 has 4 timers. Also, remove the unnecessary initialzation of the subdevice 'len_chanlist'. That member is only used by subdevices that support async commands.

[PATCH 1/9] staging: comedi: addi_apci_1564: remove APCI1564_COUNTER[1234] defines

2014-10-20 Thread H Hartley Sweeten
These defines don't add any significant clarity to the driver. Remove them. Signed-off-by: H Hartley Sweeten hswee...@visionengravers.com Cc: Ian Abbott abbo...@mev.co.uk Cc: Greg Kroah-Hartman gre...@linuxfoundation.org --- drivers/staging/comedi/drivers/addi-data/hwdrv_apci1564.c | 12

[PATCH 0/9] staging: comedi: addi_apci_1564: additional clean up

2014-10-20 Thread H Hartley Sweeten
This driver currently passes the timer channel in a manner that violates the comedi API. Fix the timer subdevice so that the timers channels are correctly used from the insn-chanspec. Fix the I/O access for the boards registers. Currently the iobase used to access the counters and the main board

[PATCH 9/9] staging: comedi: addi_apci_1564: move APCI1564_DO_INT_CTRL/STATUS_REG bit defines

2014-10-20 Thread H Hartley Sweeten
Move the bit defines for the APCI1564_DO_INT_CTRL/STATUS_REG from the included source file to the main driver source file. For aesthetics, rename the bit defines so they have namespace associated with the register defines. Also, remove the unnecessary 'disable' defines and convert the 'enable'

[PATCH 8/9] staging: comedi: addi_apci_1564: move APCI1564_DI_IRQ_REG bit defines

2014-10-20 Thread H Hartley Sweeten
Move the defines for the APCI1564_DI_IRQ_REG from the included source file to the main driver source file. For aesthetics, rename the bit defines so they have namespace associated with the register define. Also, remove the unnecessary 'disable' define and convert the 'enable' define to a

[PATCH 7/9] staging: comedi: addi_apci_1564: move register map defines to driver

2014-10-20 Thread H Hartley Sweeten
Move the defines for the register map from the included source file to the main driver source file. Signed-off-by: H Hartley Sweeten hswee...@visionengravers.com Cc: Ian Abbott abbo...@mev.co.uk Cc: Greg Kroah-Hartman gre...@linuxfoundation.org --- .../comedi/drivers/addi-data/hwdrv_apci1564.c

[PATCH 2/9] staging: comedi: addi_apci_1564: remove private data 'mode_select_register'

2014-10-20 Thread H Hartley Sweeten
This driver currently passes the timer channel as the data[5] element to the timer (*insn_config) function. This is stored in the private data and use in the timer (*insn_read) and (*insn_write) functions to read/write the timer. This is just wrong, comedi passes the channel number in the

[PATCH 6/9] staging: comedi: addi_apci_1564: tidy up private data 'amcc_iobase'

2014-10-20 Thread H Hartley Sweeten
For aesthetics, rename this member to simply 'amcc'. Change the type to match the type returned by pci_resource_start(). Signed-off-by: H Hartley Sweeten hswee...@visionengravers.com Cc: Ian Abbott abbo...@mev.co.uk Cc: Greg Kroah-Hartman gre...@linuxfoundation.org ---

[PATCH 3/9] staging: comedi: addi_apci_1564: fix counter register access

2014-10-20 Thread H Hartley Sweeten
According to the I/O map information from ADDI-DATA, the counters are accessed using the base address found in PCI BAR 2 not the one in PCI BAR 1. Add a new member to the private data for this base address and fix all the counter I/O. Signed-off-by: H Hartley Sweeten hswee...@visionengravers.com

[PATCH 5/9] staging: comedi: addi_apci_1564: fix board register access

2014-10-20 Thread H Hartley Sweeten
According to the I/O map information from ADDI-DATA, the board registers are accessed using the base address found in PCI BAR 1 not the one in PCI BAR 0. The PCI BAR 1 address is stored in dev-iobase during the attach. Use that instead of devpriv-amcc_iobase (PCI BAR 0). Signed-off-by: H Hartley

Re: [PATCH v2 1/2] timekeeping: add EXPORT_SYMBOL_GPL for do_adjtimex()

2014-10-20 Thread Thomas Gleixner
On Wed, 15 Oct 2014, Thomas Shao wrote: And again you forgot to cc John Stultz on this Export do_adjtimex function for hyper-v Time Synchronization component Signed-off-by: Thomas Shao huis...@microsoft.com --- kernel/time/timekeeping.c |1 + 1 files changed, 1 insertions(+), 0

[PATCH 05/22] staging: comedi: addi_apci_3120: remove private data 'i_IobaseReserved'

2014-10-20 Thread H Hartley Sweeten
This member of the private data is not used by the driver. Remove it. Signed-off-by: H Hartley Sweeten hswee...@visionengravers.com Cc: Ian Abbott abbo...@mev.co.uk Cc: Greg Kroah-Hartman gre...@linuxfoundation.org --- drivers/staging/comedi/drivers/addi_apci_3120.c | 2 -- 1 file changed, 2

[PATCH 01/22] staging: comedi: addi_apci_3120: DMA requires an interrupt

2014-10-20 Thread H Hartley Sweeten
An interrupt is required for DMA to work. Factor out the DMA buffer allocation from the (*auto_attach) and only allocate the buffers if the interrupt is available. For aesthetics, also factor the DMA buffer free from the (*detach). Signed-off-by: H Hartley Sweeten hswee...@visionengravers.com

[PATCH 02/22] staging: comedi: addi_apci_3120: introduce struct apci3120_dmabuf

2014-10-20 Thread H Hartley Sweeten
For aesthetics, wrap the DMA buffer information in a struct. Signed-off-by: H Hartley Sweeten hswee...@visionengravers.com Cc: Ian Abbott abbo...@mev.co.uk Cc: Greg Kroah-Hartman gre...@linuxfoundation.org --- .../comedi/drivers/addi-data/hwdrv_apci3120.c | 85 +-

[PATCH 00/22] staging: comedi: addi_apci_3120: additional clean up

2014-10-20 Thread H Hartley Sweeten
More cleanup of the addi_apci_3120 driver. These apply after: [PATCH 00/34] staging: comedi: addi-data: remove common code bloat H Hartley Sweeten (22): staging: comedi: addi_apci_3120: DMA requires an interrupt staging: comedi: addi_apci_3120: introduce struct apci3120_dmabuf staging:

[PATCH 06/22] staging: comedi: addi_apci_3120: use correct iobase to write AMCC registers

2014-10-20 Thread H Hartley Sweeten
The AMCC registers are accessed using the base address devpriv-i_IobaseAmcc not devpriv-i_IobaseAddon. Fix a couple writes in apci3120_interrupt_dma() that are using the wrong base address. Signed-off-by: H Hartley Sweeten hswee...@visionengravers.com Cc: Ian Abbott abbo...@mev.co.uk Cc: Greg

[PATCH 08/22] staging: comedi: addi_apci_3120: rename private data 'i_IobaseAddon'

2014-10-20 Thread H Hartley Sweeten
This member of the private data holds the start address of PCI BAR 2 that is used to access the AMCC Add-On registers. Rename this CamelCase member and fix its type. Signed-off-by: H Hartley Sweeten hswee...@visionengravers.com Cc: Ian Abbott abbo...@mev.co.uk Cc: Greg Kroah-Hartman

[PATCH 16/22] staging: comedi: addi_apci_3120: tidy up digital input subdevice init

2014-10-20 Thread H Hartley Sweeten
For aesthetics, add some white space to the digital input subdevice initialization. Remove the subdev_flags SDF_GROUND and SDF_COMMON. These only apply to analog subdevices. Signed-off-by: H Hartley Sweeten hswee...@visionengravers.com Cc: Ian Abbott abbo...@mev.co.uk Cc: Greg Kroah-Hartman

[PATCH 18/22] staging: comedi: addi_apci_3120: tidy up analog input subdevice init

2014-10-20 Thread H Hartley Sweeten
For aesthetics, add some white space to the analog input subdevice initialization. The async command support in this driver is pretty messed up. I'm not really sure if it actually works yet. Luckly this driver was not setting the SDF_CMD_READ subdev_flag so the command support was not actually

[PATCH 04/22] staging: comedi: addi_apci_3120: remove unipolar range from analog outputs

2014-10-20 Thread H Hartley Sweeten
The analog outputs of the APCI-3120 have a 14-bit bipolar range and use straight binary values (0x = -10V to 0x3fff = +10V) to set the outputs. This driver tries to fake a unipolar range by munging the comedi data values to only output 0V to +10V signals (0x to 0x1fff values are munged to

[PATCH 15/22] staging: comedi: addi_apci_3120: tidy up analog output subdevice init

2014-10-20 Thread H Hartley Sweeten
For aesthetics, add some white space to the analog output subdevice initialization. Signed-off-by: H Hartley Sweeten hswee...@visionengravers.com Cc: Ian Abbott abbo...@mev.co.uk Cc: Greg Kroah-Hartman gre...@linuxfoundation.org --- drivers/staging/comedi/drivers/addi_apci_3120.c | 18

[PATCH 11/22] staging: comedi: addi_apci_3120: prevent deadlock in apci3120_ao_insn_write()

2014-10-20 Thread H Hartley Sweeten
The DA_READY bit (0x0001) in the status register needs to be set before the analog outputs can be updated. Use comedi_timeout() to prevent a deadlock condition while waiting for the DA_READY bit to get set. Signed-off-by: H Hartley Sweeten hswee...@visionengravers.com Cc: Ian Abbott

[PATCH 03/22] staging: comedi: addi_apci_3120: remove unused struct definition

2014-10-20 Thread H Hartley Sweeten
The struct str_AnalogReadInformation is not used in this driver. Remove it. Signed-off-by: H Hartley Sweeten hswee...@visionengravers.com Cc: Ian Abbott abbo...@mev.co.uk Cc: Greg Kroah-Hartman gre...@linuxfoundation.org --- .../staging/comedi/drivers/addi-data/hwdrv_apci3120.c | 17

[PATCH 19/22] staging: comedi: addi_apci_3120: tidy up timer subdevice init

2014-10-20 Thread H Hartley Sweeten
It appears that this subdevice is actually broken. The subdevice functions all violate the comedi API and, it they did work, it appears they would break the analog input async commands. For now just tidy up the subdevice init. Add the SDF_READABLE subdev_flag, this subdevice provides an

[PATCH 21/22] staging: comedi: addi_apci_3120: don't reset board when canceling ai command

2014-10-20 Thread H Hartley Sweeten
The analog input (*cancel) stops the async command. There is not reason to also call the board reset function. Signed-off-by: H Hartley Sweeten hswee...@visionengravers.com Cc: Ian Abbott abbo...@mev.co.uk Cc: Greg Kroah-Hartman gre...@linuxfoundation.org ---

[PATCH 07/22] staging: comedi: addi_apci_3120: use correct iobase to read board register

2014-10-20 Thread H Hartley Sweeten
The board registers are accessed using the bse address devpriv-iobase not devpriv-i_IobaseAmcc. Fix a read in apci3120_interrupt() that is using the wrong base address. Signed-off-by: H Hartley Sweeten hswee...@visionengravers.com Cc: Ian Abbott abbo...@mev.co.uk Cc: Greg Kroah-Hartman

[PATCH 09/22] staging: comedi: addi_apci_3120: rename private data 'i_IobaseAmcc'

2014-10-20 Thread H Hartley Sweeten
This member of the private data holds the start address of PCI BAR 0 that is used to access the AMCC registers. Rename this CamelCase member and fix its type. Remove an unnecessary local variable, 'ui_Tmp', in apci3120_cyclic_ai() and tidy up the rest of the local variable declarations.

[PATCH 20/22] staging: comedi: addi_apci_3120: reset the board before hooking up the interrupt

2014-10-20 Thread H Hartley Sweeten
Move the apci3120_reset() call in the (*auto_attach) to ensure that the board is reset before hooking up the interrupt. Signed-off-by: H Hartley Sweeten hswee...@visionengravers.com Cc: Ian Abbott abbo...@mev.co.uk Cc: Greg Kroah-Hartman gre...@linuxfoundation.org ---

[PATCH 12/22] staging: comedi: addi_apci_3120: remove analog output reset

2014-10-20 Thread H Hartley Sweeten
The apci3120_reset() function is called at the end of the (*auto_attach) and with the (*detach) is called to unload the driver. Part of this function resets all the analog output channels to 0V. There are two problems with this. 1) Only the APCI-3120 has analog outputs, the APCI-3001 does not. 2)

[PATCH 22/22] staging: comedi: addi_apci_3120: don't reset board when detaching driver

2014-10-20 Thread H Hartley Sweeten
The comedi core calls all the subdevice (*cancel) functions before it does the driver (*detach). There is no reason to call the board reset function in the (*detach). Signed-off-by: H Hartley Sweeten hswee...@visionengravers.com Cc: Ian Abbott abbo...@mev.co.uk Cc: Greg Kroah-Hartman

[PATCH 14/22] staging: comedi: addi_apci_3120: provide analog output 'readback'

2014-10-20 Thread H Hartley Sweeten
Use the comedi_subdevice 'readback' member and the core provided (*insn_read) function to provide radback of the analog output channels. Signed-off-by: H Hartley Sweeten hswee...@visionengravers.com Cc: Ian Abbott abbo...@mev.co.uk Cc: Greg Kroah-Hartman gre...@linuxfoundation.org ---

[PATCH 13/22] staging: comedi: addi_apci_3120: fix apci3120_ao_insn_write()

2014-10-20 Thread H Hartley Sweeten
The comedi core expects (*insn_write) functions to write insn-n values and return the number of values written or an errno. This function currently returns insn-n but it only writes a single data value. Fix the function to work like the core expects. There are two registers used to update the

[PATCH 10/22] staging: comedi: addi_apci_3120: remove private data 'iobase'

2014-10-20 Thread H Hartley Sweeten
This member of the private data holds the start address of PCI BAR 1 that is used to access the board registers. The start address is also stored in the comedi_device 'iobase' member. Use that instead and remove the private data member. Remove some unnecessary casts when reading the board

[PATCH 17/22] staging: comedi: addi_apci_3120: tidy up digital output subdevice init

2014-10-20 Thread H Hartley Sweeten
For aesthetics, add some white space to the digital output subdevice initialization. Remove the subdev_flags SDF_GROUND and SDF_COMMON. These only apply to analog subdevices. Also remove the unnecessary SDF_READABLE subdev_flag. Signed-off-by: H Hartley Sweeten hswee...@visionengravers.com Cc:

Re: [PATCH v2 1/2] timekeeping: add EXPORT_SYMBOL_GPL for do_adjtimex()

2014-10-20 Thread Thomas Gleixner
On Mon, 20 Oct 2014, Thomas Gleixner wrote: On Wed, 15 Oct 2014, Thomas Shao wrote: And again you forgot to cc John Stultz on this Export do_adjtimex function for hyper-v Time Synchronization component Aside of that, we really want to see the use case for this and how you addressed

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

2014-10-20 Thread H Hartley Sweeten
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' for all the requested samples. This value is

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

2014-10-20 Thread H Hartley Sweeten
This function is only called by comedi_buf_read_samples(). Absorb it. Signed-off-by: H Hartley Sweeten hswee...@visionengravers.com Cc: Ian Abbott abbo...@mev.co.uk Cc: Greg Kroah-Hartman gre...@linuxfoundation.org --- drivers/staging/comedi/comedi_buf.c | 27 ++- 1 file

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

2014-10-20 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 hswee...@visionengravers.com Cc: Ian Abbott abbo...@mev.co.uk Cc: Greg Kroah-Hartman gre...@linuxfoundation.org --- drivers/staging/comedi/drivers/amplc_pci224.c | 7 +++ 1

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

2014-10-20 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

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

2014-10-20 Thread H Hartley Sweeten
This inline function is no longer used. Remove it. Signed-off-by: H Hartley Sweeten hswee...@visionengravers.com Cc: Ian Abbott abbo...@mev.co.uk Cc: Greg Kroah-Hartman gre...@linuxfoundation.org --- drivers/staging/comedi/drivers/comedi_fc.h | 7 --- 1 file changed, 7 deletions(-) diff

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

2014-10-20 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.

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

2014-10-20 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

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

2014-10-20 Thread H Hartley Sweeten
This function is no longer used. Remove it. Signed-off-by: H Hartley Sweeten hswee...@visionengravers.com Cc: Ian Abbott abbo...@mev.co.uk Cc: Greg Kroah-Hartman gre...@linuxfoundation.org --- drivers/staging/comedi/comedi_buf.c | 14 -- drivers/staging/comedi/comedidev.h | 1 - 2

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

2014-10-20 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 hswee...@visionengravers.com Cc: Ian Abbott abbo...@mev.co.uk Cc: Greg Kroah-Hartman gre...@linuxfoundation.org ---

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

2014-10-20 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 hswee...@visionengravers.com Cc: Ian Abbott abbo...@mev.co.uk Cc: Greg

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

2014-10-20 Thread H Hartley Sweeten
This function is only used internally. Remove the export. Signed-off-by: H Hartley Sweeten hswee...@visionengravers.com Cc: Ian Abbott abbo...@mev.co.uk Cc: Greg Kroah-Hartman gre...@linuxfoundation.org --- drivers/staging/comedi/comedi_buf.c | 6 +++--- drivers/staging/comedi/comedidev.h | 3

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

2014-10-20 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 hswee...@visionengravers.com Cc: Ian Abbott abbo...@mev.co.uk Cc: Greg Kroah-Hartman gre...@linuxfoundation.org ---

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

2014-10-20 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

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

2014-10-20 Thread H Hartley Sweeten
This function is only used internally. Remove the export. Signed-off-by: H Hartley Sweeten hswee...@visionengravers.com Cc: Ian Abbott abbo...@mev.co.uk Cc: Greg Kroah-Hartman gre...@linuxfoundation.org --- drivers/staging/comedi/comedi_buf.c | 17 +++--

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

2014-10-20 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

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

2014-10-20 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

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

2014-10-20 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 hswee...@visionengravers.com Cc: Ian Abbott abbo...@mev.co.uk Cc: Greg

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

2014-10-20 Thread H Hartley Sweeten
This function is only used internally. Remove the export. Signed-off-by: H Hartley Sweeten hswee...@visionengravers.com Cc: Ian Abbott abbo...@mev.co.uk Cc: Greg Kroah-Hartman gre...@linuxfoundation.org --- drivers/staging/comedi/comedi_buf.c | 6 +++--- drivers/staging/comedi/comedidev.h | 3

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

2014-10-20 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 hswee...@visionengravers.com Cc: Ian Abbott abbo...@mev.co.uk Cc: Greg

[PATCH] staging: clocking-wizard: Contain macro argument in parenthesis

2014-10-20 Thread Soren Brinkmann
A macro doing some arithmetic to calculate a register offset, did not contain an argument to the macro in parentheses, potentially leading to unexpected results when using that macro with arithmetic expressions as argument. Signed-off-by: Soren Brinkmann soren.brinkm...@xilinx.com ---

RE: [PATCH] staging: comedi: fix memory leak / bad pointer freeing for chanlist

2014-10-20 Thread Hartley Sweeten
On Monday, October 20, 2014 7:11 AM, Ian Abbott wrote: As a follow-up to commit 6cab7a37f5c04 (staging: comedi: (regression) channel list must be set for COMEDI_CMD ioctl), Hartley Sweeten pointed out another couple of bugs stemming from commit 6cab7a37f5c04 (staging: comedi: comedi_fops:

[PATCH] staging: comedi: ni_65xx: remove deadcode in ni_65xx_intr_cmdtest()

2014-10-20 Thread H Hartley Sweeten
Reported by: coverity (CID 142963) Signed-off-by: H Hartley Sweeten hswee...@visionengravers.com Cc: Ian Abbott abbo...@mev.co.uk Cc: Greg Kroah-Hartman gre...@linuxfoundation.org --- drivers/staging/comedi/drivers/ni_65xx.c | 3 --- 1 file changed, 3 deletions(-) diff --git

[PATCH] staging: comedi: ni_6527: remove deadcode in ni6527_intr_cmdtest()

2014-10-20 Thread H Hartley Sweeten
Reported by: coverity (CID 142962) Signed-off-by: H Hartley Sweeten hswee...@visionengravers.com Cc: Ian Abbott abbo...@mev.co.uk Cc: Greg Kroah-Hartman gre...@linuxfoundation.org --- drivers/staging/comedi/drivers/ni_6527.c | 3 --- 1 file changed, 3 deletions(-) diff --git

[PATCH] staging: comedi: ni_mio_common: remove deadcode in ni_cdio_cmdtest()

2014-10-20 Thread H Hartley Sweeten
Reported by: coverity (CID 142967) Signed-off-by: H Hartley Sweeten hswee...@visionengravers.com Cc: Ian Abbott abbo...@mev.co.uk Cc: Greg Kroah-Hartman gre...@linuxfoundation.org --- drivers/staging/comedi/drivers/ni_mio_common.c | 3 --- 1 file changed, 3 deletions(-) diff --git

Re: [PATCH] staging: android: binder: move to the real part of the kernel

2014-10-20 Thread Arve Hjønnevåg
On Mon, Oct 20, 2014 at 2:20 AM, Dan Carpenter dan.carpen...@oracle.com wrote: On Mon, Oct 20, 2014 at 06:05:47AM +0800, Greg Kroah-Hartman wrote: On Fri, Oct 17, 2014 at 12:26:01PM +0300, Dan Carpenter wrote: The code isn't very beautiful and there are lots of details wrong like the error

[PATCH] staging: skein: Loadable Module Support

2014-10-20 Thread Eric Rost
Adds loadable module support for Skein256, Skein512, and Skein1024 NOTE: skein1024_generic does not load, sending patch for feedback! I don't understand why skein256_generic and skein512_generic load no problem but skein1024_generic gives ERROR: Invalid argument from modprobe. Signed-off-by: Eric

RE: [PATCH v2 1/2] timekeeping: add EXPORT_SYMBOL_GPL for do_adjtimex()

2014-10-20 Thread Thomas Shao
-Original Message- From: Thomas Gleixner [mailto:t...@linutronix.de] Sent: Tuesday, October 21, 2014 2:28 AM To: Thomas Shao Cc: gre...@linuxfoundation.org; LKML; de...@linuxdriverproject.org; o...@aepfle.de; a...@canonical.com; jasow...@redhat.com; KY Srinivasan; John Stultz

RE: [PATCH v2 1/2] timekeeping: add EXPORT_SYMBOL_GPL for do_adjtimex()

2014-10-20 Thread Thomas Shao
-Original Message- From: linux-kernel-ow...@vger.kernel.org [mailto:linux-kernel- ow...@vger.kernel.org] On Behalf Of Thomas Gleixner Sent: Tuesday, October 21, 2014 2:41 AM To: Thomas Shao Cc: gre...@linuxfoundation.org; LKML; de...@linuxdriverproject.org; o...@aepfle.de;

Re: [PATCH v2 1/2] timekeeping: add EXPORT_SYMBOL_GPL for do_adjtimex()

2014-10-20 Thread John Stultz
On Mon, Oct 20, 2014 at 8:18 PM, Thomas Shao huis...@microsoft.com wrote: -Original Message- From: linux-kernel-ow...@vger.kernel.org [mailto:linux-kernel- ow...@vger.kernel.org] On Behalf Of Thomas Gleixner Sent: Tuesday, October 21, 2014 2:41 AM To: Thomas Shao Cc:

RE: [PATCH v2 1/2] timekeeping: add EXPORT_SYMBOL_GPL for do_adjtimex()

2014-10-20 Thread Thomas Shao
-Original Message- From: John Stultz [mailto:john.stu...@linaro.org] Sent: Tuesday, October 21, 2014 11:24 AM To: Thomas Shao Cc: Thomas Gleixner; gre...@linuxfoundation.org; LKML; de...@linuxdriverproject.org; o...@aepfle.de; a...@canonical.com; jasow...@redhat.com; KY

[PATCH v2 33/47] staging: nvec: Register with kernel poweroff handler

2014-10-20 Thread Guenter Roeck
Register with kernel poweroff handler instead of setting pm_power_off directly. Register with default priority since we don't know any better. Cc: Julian Andres Klode j...@jak-linux.org Cc: Marc Dietrich marvi...@gmx.de Cc: Greg Kroah-Hartman gre...@linuxfoundation.org Acked-by: Greg

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

2014-10-20 Thread Sitsofe Wheeler
On Tue, Oct 14, 2014 at 09:06:37PM -0400, Martin K. Petersen wrote: Sitsofe == Sitsofe Wheeler sits...@gmail.com writes: Sitsofe A previous patch attempted to add a quirk to workaround this Sitsofe but the quirk was only enabled after the features had been Sitsofe scanned for, wouldn't work

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

2014-10-20 Thread Sitsofe Wheeler
On Tue, Oct 14, 2014 at 09:08:28PM -0400, Martin K. Petersen wrote: Sitsofe == Sitsofe Wheeler sits...@gmail.com writes: Sitsofe Microsoft Hyper-V virtual disks currently only claim SPC-2 Sitsofe compliance causing the kernel skip checks for features such as Sitsofe thin provisioning even

Re: [PATCH v2 1/2] timekeeping: add EXPORT_SYMBOL_GPL for do_adjtimex()

2014-10-20 Thread Jeff Epler
On Tue, Oct 21, 2014 at 03:18:58AM +, Thomas Shao wrote: In some situation, the user is not able to enable guest VM to sync with external time source, like NTP. But the host is still synced with a trusted time source. In this case, host-guest time synchronization is useful. It's

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

2014-10-20 Thread Sitsofe Wheeler
On Sun, Oct 12, 2014 at 01:21:01AM +, KY Srinivasan wrote: -Original Message- From: Jeff Leung [mailto:jle...@v10networks.ca] Sent: Saturday, October 11, 2014 1:22 PM On the current release of Windows (windows 10), we are advertising SPC3 compliance. We are ok with

RE: [PATCH v2 1/2] timekeeping: add EXPORT_SYMBOL_GPL for do_adjtimex()

2014-10-20 Thread Thomas Shao
-Original Message- From: Jeff Epler [mailto:jep...@unpythonic.net] Sent: Tuesday, October 21, 2014 12:02 PM To: Thomas Shao Cc: Thomas Gleixner; gre...@linuxfoundation.org; LKML; de...@linuxdriverproject.org; o...@aepfle.de; a...@canonical.com; jasow...@redhat.com; KY Srinivasan;

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

2014-10-20 Thread Jeff Leung
Is it OK to replace a scsi_level of SCSI-2 with SCSI_SPC_3? Additionally is it also OK to force SCSI_SPC_3 on Hyper-V 2008? I would patch the driver accordingly to force the SPC-3 flag. For a Win2k8 host, I don't know what the side effects are, so it's safe to say it's not a good idea to

[PATCH] scsi: storvsc: Force SPC-3 for Win8 Hosts or Later

2014-10-20 Thread Jeff Leung
This patch forces SPC-3 for Hyper-V disks on the VMBus. As Windows 10's virtual SAS bus is SPC-3 compliant and there are no negative side effects on forcing SPC-3 compliance for Win8 hosts, this patch enables SPC-3 compliance by forcing it on for hosts with versions later than Win8. Forcing SPC-3