[PATCH] staging: usbip: Fix build on Debian ppc

2013-09-19 Thread Dominik Paulus
From: Tobias Polzer tobias.pol...@fau.de One missing include was added. Signed-off-by: Dominik Paulus dominik.pau...@fau.de Signed-off-by: Tobias Polzer tobias.pol...@fau.de --- drivers/staging/usbip/userspace/src/usbip_network.c | 4 1 file changed, 4 insertions(+) diff --git

Re: [PATCH] staging: usbip: Fix build on Debian ppc

2013-09-19 Thread Tobias Polzer
When testing usbip under powerpc, it (unexpectedly) worked, but only after removing the following lines from vhch_hcd.c: 1004 /* will be removed */ 1005 if (pdev-dev.dma_mask) { 1006 dev_info(pdev-dev, vhci_hcd DMA not supported\n); 1007 return

Re: [PATCH] staging: usbip: Fix build on Debian ppc

2013-09-19 Thread Dan Carpenter
On Thu, Sep 19, 2013 at 10:55:18AM +0200, Tobias Polzer wrote: When testing usbip under powerpc, it (unexpectedly) worked, but only after removing the following lines from vhch_hcd.c: 1004 /* will be removed */ 1005 if (pdev-dev.dma_mask) { 1006

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

2013-09-19 Thread Ian Abbott
On 2013-09-18 19:46, H Hartley Sweeten wrote: 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

Re: [PATCH] staging: usbip: Fix build on Debian ppc

2013-09-19 Thread Dominik Paulus
On Thu, Sep 19, 2013 at 12:12:44PM +0300, Dan Carpenter wrote: On Thu, Sep 19, 2013 at 10:55:18AM +0200, Tobias Polzer wrote: When testing usbip under powerpc, it (unexpectedly) worked, but only after removing the following lines from vhch_hcd.c: 1004 /* will be removed */ 1005

Re: [PATCH] staging: usbip: Fix build on Debian ppc

2013-09-19 Thread navin patidar
On September 19, 2013 at 3:40 PM Dominik Paulus domi...@d-paulus.de wrote: On Thu, Sep 19, 2013 at 12:12:44PM +0300, Dan Carpenter wrote: On Thu, Sep 19, 2013 at 10:55:18AM +0200, Tobias Polzer wrote: When testing usbip under powerpc, it (unexpectedly) worked, but only after removing the

Re: [PATCH] staging: usbip: Fix build on Debian ppc

2013-09-19 Thread Dan Carpenter
Ah, ok. I had no idea what you were talking about before. I thought you were talking about build errors in a file that didn't exist... (Because the subject says build and there was a typo in the file name). Navin, says you can remove it. regards, dan carpenter

[PATCH 6/7] Staging/iio/adc/touchscreen/MXS: Remove old touchscreen detection implementation

2013-09-19 Thread Juergen Beisert
Signed-off-by: Juergen Beisert j...@pengutronix.de CC: linux-arm-ker...@lists.infradead.org CC: de...@driverdev.osuosl.org CC: Marek Vasut ma...@denx.de CC: Fabio Estevam fabio.este...@freescale.com CC: Jonathan Cameron ji...@cam.ac.uk --- drivers/staging/iio/adc/mxs-lradc.c | 163

[PATCH 2/7] Staging/iio/adc/touchscreen/MXS: separate i.MX28 specific register bits

2013-09-19 Thread Juergen Beisert
In order to support i.MX23 and i.MX28 within one driver we need to separate the register definitions which differ in both SoC variants. Signed-off-by: Juergen Beisert j...@pengutronix.de CC: linux-arm-ker...@lists.infradead.org CC: de...@driverdev.osuosl.org CC: Marek Vasut ma...@denx.de CC:

[PATCH 5/7] Staging/iio/adc/touchscreen/MXS: add interrupt driven touch detection

2013-09-19 Thread Juergen Beisert
For battery driven systems it is a very bad idea to collect the touchscreen data within a kernel busy loop. This change uses the features of the hardware to delay and accumulate samples in hardware to avoid a high interrupt and CPU load. Note: this is only tested on an i.MX23 SoC yet.

[PATCH 3/7] Staging/iio/adc/touchscreen/MXS: simplify register access

2013-09-19 Thread Juergen Beisert
Replace the individual register access by a few shared access function to make the code easier to read and in order to add the i.MX23 SoC in the next step. Signed-off-by: Juergen Beisert j...@pengutronix.de CC: linux-arm-ker...@lists.infradead.org CC: de...@driverdev.osuosl.org CC: Marek Vasut

[PATCH 7/7] Staging/iio/adc/touchscreen/MXS: provide devicetree adaption

2013-09-19 Thread Juergen Beisert
This is an RFC for the new touchscreen properties. Signed-off-by: Juergen Beisert j...@pengutronix.de CC: linux-arm-ker...@lists.infradead.org CC: de...@driverdev.osuosl.org CC: Marek Vasut ma...@denx.de CC: Fabio Estevam fabio.este...@freescale.com CC: Jonathan Cameron ji...@cam.ac.uk CC:

[PATCHv5] staging/iio/adc: change the MXS touchscreen driver implementation

2013-09-19 Thread Juergen Beisert
The following series replaces the current busy loop touchscreen implementation for i.MX28/i.MX23 SoCs by a fully interrupt driven implementation. Since i.MX23 and i.MX28 silicon differs, the existing implementation can be used for the i.MX28 SoC only. So, the first two patches of this series

[PATCH] staging: usbip: Fix build with --with-tcp-wrappers

2013-09-19 Thread Dominik Paulus
With --with-tcp-wrappers=no specified, the build system reset LIBS to the empty string and thus fails to link against libsysfs. Signed-off-by: Dominik Paulus dominik.pau...@fau.de Signed-off-by: Tobias Polzer tobias.pol...@fau.de --- drivers/staging/usbip/userspace/configure.ac | 1 - 1 file

Re: [PATCH 5/6] Staging/iio/adc/touchscreen/MXS: add interrupt driven touch detection

2013-09-19 Thread Jürgen Beisert
Hi Jonathan, On Monday 16 September 2013 17:30:32 Jonathan Cameron wrote: On Sunday 15 September 2013 12:56:25 Jonathan Cameron wrote: On 09/11/13 09:18, Juergen Beisert wrote: For battery driven systems it is a very bad idea to collect the touchscreen data within a kernel busy loop.

[PATCH 0/7] staging: usbip: Extend crypto support

2013-09-19 Thread Dominik Paulus
Hi, this patch series extends our previous set of patches (see [1]). We extended the crypto support so all of the usbip network traffic can now be completely encrypted and authenticated. We now use GnuTLS not only for password verification, but extend the lifetime of the TLS connection to cover

[PATCH 3/7] staging: usbip: Pass session keys to the kernel

2013-09-19 Thread Dominik Paulus
This extends the userspace code to write the generated session keys to sysfs in hexadecimal encoding after establishing the connection. The kernel code is modified to parse the session keys. Signed-off-by: Dominik Paulus dominik.pau...@fau.de Signed-off-by: Tobias Polzer tobias.pol...@fau.de ---

[PATCH 2/7] staging: usbip: Exchange session keys in userspace

2013-09-19 Thread Dominik Paulus
In preparation for the kernel crypto support, we exchange two - randomly generated - session keys between usbip and usbipd to be used for encrypting all traffic generated in kernelspace. We use two different 128-bit keys, one for sending and one for receiving. Both are generated by the client

[PATCH 4/7] staging: usbip: Wrap kernel_sendmsg()/recvmsg()

2013-09-19 Thread Dominik Paulus
This adds two simple wrappers around kernel_sendmsg() and kernel_recvmsg() that can be extended to perform additional cryptographic operations on the data before sending it. Signed-off-by: Dominik Paulus dominik.pau...@fau.de Signed-off-by: Tobias Polzer tobias.pol...@fau.de ---

[PATCH 7/7] staging: usbip: Increment version number to 1.2.1

2013-09-19 Thread Dominik Paulus
Also increment the kernel module version number to match the userspace version, as compatibility with old userspace utilities is now at least partially broken. Signed-off-by: Dominik Paulus dominik.pau...@fau.de Signed-off-by: Tobias Polzer tobias.pol...@fau.de ---

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

2013-09-19 Thread Dmitry Torokhov
On Wed, Sep 18, 2013 at 11:27:51PM +, KY Srinivasan wrote: -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;

Re: [PATCH 5/6] Staging/iio/adc/touchscreen/MXS: add interrupt driven touch detection

2013-09-19 Thread Jonathan Cameron
. Jürgen Beisert j...@pengutronix.de wrote: Hi Jonathan, On Monday 16 September 2013 17:30:32 Jonathan Cameron wrote: On Sunday 15 September 2013 12:56:25 Jonathan ,,, wrote: On 09/11/13 09:18, Juergen Beisert wrote: For battery driven systems it is a very bad idea to collect the

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

2013-09-19 Thread KY Srinivasan
-Original Message- From: Dmitry Torokhov [mailto:dmitry.torok...@gmail.com] Sent: Thursday, September 19, 2013 8:53 AM To: KY Srinivasan Cc: gre...@linuxfoundation.org; linux-ker...@vger.kernel.org; de...@linuxdriverproject.org; o...@aepfle.de; a...@canonical.com;

[PATCH 00/51] DMA mask changes

2013-09-19 Thread Russell King - ARM Linux
This started out as a request to look at the DMA mask situation, and how to solve the issues which we have on ARM - notably how the DMA mask should be setup. However, I started off reviewing how the dma_mask and coherent_dma_mask was being used, and what I found was rather messy, and in some

[PATCH 9/10] staging: r8188eu: Cocci spatch noderef

2013-09-19 Thread Thomas Meyer
sizeof when applied to a pointer typed expression gives the size of the pointer. Found by coccinelle spatch misc/noderef.cocci Signed-off-by: Thomas Meyer tho...@m3y3r.de --- diff -u -p a/drivers/staging/rtl8188eu/os_dep/ioctl_linux.c b/drivers/staging/rtl8188eu/os_dep/ioctl_linux.c ---

[PATCH 7/10] staging: r8188eu: Add files for new drive: Cocci spatch noderef

2013-09-19 Thread Thomas Meyer
sizeof when applied to a pointer typed expression gives the size of the pointer. Found by coccinelle spatch misc/noderef.cocci Signed-off-by: Thomas Meyer tho...@m3y3r.de --- diff -u -p a/drivers/staging/rtl8188eu/core/rtw_mp.c b/drivers/staging/rtl8188eu/core/rtw_mp.c ---

[PATCH 07/51] DMA-API: net: intel/ixgbe: fix 32-bit DMA mask handling

2013-09-19 Thread Russell King
The fallback to 32-bit DMA mask is rather odd: if (!dma_set_mask(pdev-dev, DMA_BIT_MASK(64)) !dma_set_coherent_mask(pdev-dev, DMA_BIT_MASK(64))) { pci_using_dac = 1; } else { err = dma_set_mask(pdev-dev, DMA_BIT_MASK(32));

[PATCH 5/10] staging: lustre: Cocci spatch noderef

2013-09-19 Thread Thomas Meyer
sizeof when applied to a pointer typed expression gives the size of the pointer. Found by coccinelle spatch misc/noderef.cocci Signed-off-by: Thomas Meyer tho...@m3y3r.de --- diff -u -p a/drivers/staging/lustre/lustre/obdecho/echo_client.c b/drivers/staging/lustre/lustre/obdecho/echo_client.c

[PATCH 05/51] DMA-API: net: intel/igbvf: fix 32-bit DMA mask handling

2013-09-19 Thread Russell King
The fallback to 32-bit DMA mask is rather odd: err = dma_set_mask(pdev-dev, DMA_BIT_MASK(64)); if (!err) { err = dma_set_coherent_mask(pdev-dev, DMA_BIT_MASK(64)); if (!err) pci_using_dac = 1; } else {

[PATCH 04/51] DMA-API: net: intel/igb: fix 32-bit DMA mask handling

2013-09-19 Thread Russell King
The fallback to 32-bit DMA mask is rather odd: err = dma_set_mask(pdev-dev, DMA_BIT_MASK(64)); if (!err) { err = dma_set_coherent_mask(pdev-dev, DMA_BIT_MASK(64)); if (!err) pci_using_dac = 1; } else {

[PATCH 06/51] DMA-API: net: intel/ixgb: fix 32-bit DMA mask handling

2013-09-19 Thread Russell King
The fallback to 32-bit DMA mask is rather odd: err = dma_set_mask(pdev-dev, DMA_BIT_MASK(64)); if (!err) { err = dma_set_coherent_mask(pdev-dev, DMA_BIT_MASK(64)); if (!err) pci_using_dac = 1; } else {

[PATCH 01/51] DMA-API: provide a helper to set both DMA and coherent DMA masks

2013-09-19 Thread Russell King
Provide a helper to set both the DMA and coherent DMA masks to the same value - this avoids duplicated code in a number of drivers, sometimes with buggy error handling, and also allows us identify which drivers do things differently. Signed-off-by: Russell King rmk+ker...@arm.linux.org.uk ---

[PATCH 17/51] DMA-API: block: nvme-core: replace dma_set_mask()+dma_set_coherent_mask() with new helper

2013-09-19 Thread Russell King
Replace the following sequence: dma_set_mask(dev, mask); dma_set_coherent_mask(dev, mask); with a call to the new helper dma_set_mask_and_coherent(). Signed-off-by: Russell King rmk+ker...@arm.linux.org.uk --- drivers/block/nvme-core.c | 10 -- 1 files changed, 4

[PATCH 42/51] DMA-API: usb: musb: use platform_device_register_full() to avoid directly messing with dma masks

2013-09-19 Thread Russell King
Use platform_device_register_full() for those drivers which can, to avoid messing directly with DMA masks. This can only be done when the driver does not need to access the allocated musb platform device from within its callbacks, which may be called during the musb device probing.

[PATCH 35/51] DMA-API: parport: parport_pc.c: use dma_coerce_mask_and_coherent()

2013-09-19 Thread Russell King
The code sequence: dev-coherent_dma_mask = DMA_BIT_MASK(24); dev-dma_mask = dev-coherent_dma_mask; bypasses the architectures check on the DMA mask. It can be replaced with dma_coerce_mask_and_coherent(), avoiding the direct initialization of this mask. Signed-off-by: Russell

Re: [PATCH 01/51] DMA-API: provide a helper to set both DMA and coherent DMA masks

2013-09-19 Thread Ben Hutchings
On Thu, 2013-09-19 at 22:25 +0100, Russell King wrote: Provide a helper to set both the DMA and coherent DMA masks to the same value - this avoids duplicated code in a number of drivers, sometimes with buggy error handling, and also allows us identify which drivers do things differently.