Re: BUG: circular locking dependency detected

2013-01-30 Thread Russell King
On Wed, Jan 30, 2013 at 11:07:16PM +0100, Daniel Vetter wrote: On Wed, Jan 30, 2013 at 10:52 PM, Russell King r...@arm.linux.org.uk wrote: Also adding Greg and Daniel to this as Daniel introduced the lockdep checking. This looks extremely horrid to be to solve - the paths are rather deep

Re: BUG: circular locking dependency detected

2013-01-30 Thread Russell King
On Thu, Jan 31, 2013 at 10:52:51AM +1100, Linus Torvalds wrote: On Thu, Jan 31, 2013 at 9:19 AM, Russell King r...@arm.linux.org.uk wrote: So... what you seem to be telling me is that 3.9 is going to be a release which issues lockdep complaints when the console blanks, and you think

Re: BUG: circular locking dependency detected

2013-01-30 Thread Russell King
On Thu, Jan 31, 2013 at 10:04:05AM +1000, Dave Airlie wrote: On Thu, Jan 31, 2013 at 9:52 AM, Linus Torvalds torva...@linux-foundation.org wrote: On Thu, Jan 31, 2013 at 9:19 AM, Russell King r...@arm.linux.org.uk wrote: So... what you seem to be telling me is that 3.9 is going

Re: BUG: circular locking dependency detected

2013-01-31 Thread Russell King
On Thu, Jan 31, 2013 at 10:51:27PM +1100, Dave Airlie wrote: I'll ship them via my tree at this point I think, since I now need to queue a revert of the revert on top. I have a few vgacon/fbcon fixes that I need to go in this cycle. Great, thanks. -- Russell King Linux kernel2.6 ARM

[RFC 5/8] drm/i2c: nxp-tda998x: prepare for video input configuration

2013-05-16 Thread Russell King
Signed-off-by: Russell King rmk+ker...@arm.linux.org.uk --- drivers/gpu/drm/i2c/tda998x_drv.c | 16 ++-- 1 files changed, 10 insertions(+), 6 deletions(-) diff --git a/drivers/gpu/drm/i2c/tda998x_drv.c b/drivers/gpu/drm/i2c/tda998x_drv.c index da2917b..d6afd02 100644 --- a/drivers

[RFC 7/8] DRM: Dove: add support for drm tda19988 driver

2013-05-16 Thread Russell King
Signed-off-by: Russell King rmk+ker...@arm.linux.org.uk --- drivers/gpu/drm/dove/Kconfig |9 ++ drivers/gpu/drm/dove/Makefile|2 + drivers/gpu/drm/dove/dove_drm.h |1 + drivers/gpu/drm/dove/dove_drv.c |4 + drivers/gpu/drm/dove/dove_tda19988.c | 249

[RFC 4/8] drm/i2c: nxp-tda998x: fix npix/nline programming

2013-05-16 Thread Russell King
The npix/nline registers are supposed to be programmed with the total number of pixels/lines, not the displayed pixels/lines, and not minus one either. Signed-off-by: Russell King rmk+ker...@arm.linux.org.uk --- drivers/gpu/drm/i2c/tda998x_drv.c |4 ++-- 1 files changed, 2 insertions(+), 2

[RFC 3/8] drm/i2c: nxp-tda998x: ensure VIP output mux is properly set

2013-05-16 Thread Russell King
. This results in incorrect colours. Fix this by ensuring that the register is always set to the power on default setting. Signed-off-by: Russell King rmk+ker...@arm.linux.org.uk --- drivers/gpu/drm/i2c/tda998x_drv.c |3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/drivers

[RFC 2/8] drm/i2c: nxp-tda998x: fix EDID reading on TDA19988 devices

2013-05-16 Thread Russell King
TDA19988 devices need their RAM enabled in order to read EDID information. Add support for this. Signed-off-by: Russell King rmk+ker...@arm.linux.org.uk --- drivers/gpu/drm/i2c/tda998x_drv.c | 14 +- 1 files changed, 13 insertions(+), 1 deletions(-) diff --git a/drivers/gpu/drm

[RFC 6/8] drm/i2c: nxp-tda998x: add video and audio input configuration

2013-05-16 Thread Russell King
Signed-off-by: Russell King rmk+ker...@arm.linux.org.uk --- drivers/gpu/drm/i2c/tda998x_drv.c | 308 - 1 files changed, 301 insertions(+), 7 deletions(-) diff --git a/drivers/gpu/drm/i2c/tda998x_drv.c b/drivers/gpu/drm/i2c/tda998x_drv.c index d6afd02

[RFC 8/8] DRM: dove: provide a couple of generic slave encoder helpers

2013-05-16 Thread Russell King
Signed-off-by: Russell King rmk+ker...@arm.linux.org.uk --- drivers/gpu/drm/dove/dove_output.c | 20 drivers/gpu/drm/dove/dove_output.h |6 ++ drivers/gpu/drm/dove/dove_tda19988.c | 23 ++- 3 files changed, 28 insertions(+), 21 deletions

[PATCH RFC 5/8] drm/i2c: nxp-tda998x: fix npix/nline programming

2013-06-09 Thread Russell King
The npix/nline registers are supposed to be programmed with the total number of pixels/lines, not the displayed pixels/lines, and not minus one either. Signed-off-by: Russell King rmk+ker...@arm.linux.org.uk --- drivers/gpu/drm/i2c/tda998x_drv.c |4 ++-- 1 files changed, 2 insertions(+), 2

[PATCH RFC 4/8] drm/i2c: nxp-tda998x: ensure VIP output mux is properly set

2013-06-09 Thread Russell King
. This results in incorrect colours. Fix this by ensuring that the register is always set to the power on default setting. Signed-off-by: Russell King rmk+ker...@arm.linux.org.uk --- drivers/gpu/drm/i2c/tda998x_drv.c |4 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/drivers

[PATCH RFC 3/8] drm/i2c: nxp-tda998x: fix EDID reading on TDA19988 devices

2013-06-09 Thread Russell King
TDA19988 devices need their RAM enabled in order to read EDID information. Add support for this. Signed-off-by: Russell King rmk+ker...@arm.linux.org.uk --- drivers/gpu/drm/i2c/tda998x_drv.c | 14 +- 1 files changed, 13 insertions(+), 1 deletions(-) diff --git a/drivers/gpu/drm

[PATCH RFC 6/8] drm/i2c: nxp-tda998x: prepare for video input configuration

2013-06-09 Thread Russell King
Signed-off-by: Russell King rmk+ker...@arm.linux.org.uk --- drivers/gpu/drm/i2c/tda998x_drv.c | 16 ++-- 1 files changed, 10 insertions(+), 6 deletions(-) diff --git a/drivers/gpu/drm/i2c/tda998x_drv.c b/drivers/gpu/drm/i2c/tda998x_drv.c index cd1526c..c0d17ae 100644 --- a/drivers

[PATCH RFC 7/8] drm/i2c: nxp-tda998x: add video and audio input configuration

2013-06-09 Thread Russell King
Signed-off-by: Russell King rmk+ker...@arm.linux.org.uk --- drivers/gpu/drm/i2c/tda998x_drv.c | 308 - include/drm/i2c/tda998x.h | 30 2 files changed, 331 insertions(+), 7 deletions(-) create mode 100644 include/drm/i2c/tda998x.h diff --git

[PATCH RFC 8/8] DRM: Armada: add support for drm tda19988 driver

2013-06-09 Thread Russell King
Signed-off-by: Russell King rmk+ker...@arm.linux.org.uk --- drivers/gpu/drm/armada/Kconfig |9 +++ drivers/gpu/drm/armada/armada_drv.c | 42 +++ 2 files changed, 51 insertions(+), 0 deletions(-) diff --git a/drivers/gpu/drm/armada/Kconfig b/drivers

[PATCH RFC v3 4/4] DRM: Armada: convert hardware cursor support to 64x32 or 32x64 ARGB

2013-06-10 Thread Russell King
Signed-off-by: Russell King rmk+ker...@arm.linux.org.uk --- drivers/gpu/drm/armada/armada_crtc.c | 125 +++--- drivers/gpu/drm/armada/armada_hw.h |6 +- 2 files changed, 43 insertions(+), 88 deletions(-) diff --git a/drivers/gpu/drm/armada/armada_crtc.c b

[PATCH RFC v3 2/4] DRM: Armada: Add support for hardware cursors

2013-06-10 Thread Russell King
This patch adds hardware cursor support to the DRM driver for the Marvell Armada SoCs. Signed-off-by: Russell King rmk+ker...@arm.linux.org.uk --- drivers/gpu/drm/armada/Kconfig |7 + drivers/gpu/drm/armada/armada_crtc.c | 201 ++ drivers/gpu/drm/armada

[PATCH RFC v3 3/4] DRM: Armada: convert Armada hardware cursor support to RGB+transparency

2013-06-10 Thread Russell King
Signed-off-by: Russell King rmk+ker...@arm.linux.org.uk --- drivers/gpu/drm/armada/Kconfig |6 +- drivers/gpu/drm/armada/armada_crtc.c | 186 +++-- drivers/gpu/drm/armada/armada_crtc.h |5 +- 3 files changed, 135 insertions(+), 62 deletions(-) diff

[PATCH RFC 2/3] DRM: Armada: Add support for ARGB 32x64 or 64x32 hardware cursors

2013-06-29 Thread Russell King
This patch adds ARGB hardware cursor support to the DRM driver for the Marvell Armada SoCs. ARGB cursors are supported at either 32x64 or 64x32 resolutions. Signed-off-by: Russell King rmk+ker...@arm.linux.org.uk --- drivers/gpu/drm/armada/armada_510.c |1 + drivers/gpu/drm/armada

[PATCH RFC 3/3] DRM: Armada: support for dma_buf import into gem

2013-06-29 Thread Russell King
Support importing certain dma_bufs back into gem - notably those which are either contiguous or are our own exports which do not use dma_map_sg(). Signed-off-by: Russell King rmk+ker...@arm.linux.org.uk --- drivers/gpu/drm/armada/armada_drv.c |4 +- drivers/gpu/drm/armada/armada_fb.c |6

Re: Best practice device tree design for display subsystems/DRM

2013-07-03 Thread Russell King
. This is why I will not adopt such a solution for my driver; it is a bad design. -- Russell King ___ dri-devel mailing list dri-devel@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/dri-devel

Re: Best practice device tree design for display subsystems/DRM

2013-07-03 Thread Russell King
On Tue, Jul 02, 2013 at 12:54:41PM -0600, Daniel Drake wrote: On Tue, Jul 2, 2013 at 12:43 PM, Russell King r...@arm.linux.org.uk wrote: I will point out that relying on driver probing orders has already been stated by driver model people to be unsafe. This is why I will not adopt

Re: Best practice device tree design for display subsystems/DRM

2013-07-03 Thread Russell King
into one super DRM driver. -- Russell King ___ dri-devel mailing list dri-devel@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/dri-devel

Re: Best practice device tree design for display subsystems/DRM

2013-07-03 Thread Russell King
that there's any funding out there to make such a project happen, which would make it a volunteer/spare time effort. -- Russell King ___ dri-devel mailing list dri-devel@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/dri-devel

Re: Best practice device tree design for display subsystems/DRM

2013-07-03 Thread Russell King
solution for all the multi-part drivers. If we use Sebastian's idea of using phandles (it seems there's a precident for it with the direction v4l2 is going to solve a similar problem) then we likely have a standard way of describing component-ized display setups in DT. -- Russell King

Re: Best practice device tree design for display subsystems/DRM

2013-07-03 Thread Russell King
in DT, otherwise you're not describing the hardware properly. -- Russell King ___ dri-devel mailing list dri-devel@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/dri-devel

Re: Best practice device tree design for display subsystems/DRM

2013-07-04 Thread Russell King
towards having a single kernel image which runs on every (modern) ARM board with DT describing not only the board level hardware but also the internal SoC as well. -- Russell King ___ dri-devel mailing list dri-devel@lists.freedesktop.org http

Re: Best practice device tree design for display subsystems/DRM

2013-07-05 Thread Russell King
On Thu, Jul 04, 2013 at 10:33:07AM +0200, Sascha Hauer wrote: On Wed, Jul 03, 2013 at 10:52:49AM +0100, Russell King wrote: Sorry but I'd like to say that this cannot be used commonly. Shouldn't you really consider Linux framebuffer or other subsystems? The above dtsi file

Re: Best practice device tree design for display subsystems/DRM

2013-07-05 Thread Russell King
nor the time available to go down that route of majorly rewriting kernel subsystems. Not only that but I believe it to be an unsafe approach as I've already outlined. -- Russell King ___ dri-devel mailing list dri-devel@lists.freedesktop.org http

Re: Best practice device tree design for display subsystems/DRM

2013-07-05 Thread Russell King
On Thu, Jul 04, 2013 at 10:58:17AM +0200, Sascha Hauer wrote: On Thu, Jul 04, 2013 at 09:40:52AM +0100, Russell King wrote: Wrong. Please read the example with the diagrams I gave. Consider what happens if you have two display devices connected to a single output, one which fixes

Re: Best practice device tree design for display subsystems/DRM

2013-07-05 Thread Russell King
shared data so that other drivers can find it. shared data might be a standardized operations struct or something similar to 'struct device_driver' but for componentised devices. -- Russell King ___ dri-devel mailing list dri-devel@lists.freedesktop.org http

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

2013-09-20 Thread Russell King
mask only if dma_set_mask() succeeded, and to error out if either fails. Signed-off-by: Russell King rmk+ker...@arm.linux.org.uk --- drivers/net/ethernet/intel/ixgbevf/ixgbevf_main.c | 15 +-- 1 files changed, 5 insertions(+), 10 deletions(-) diff --git a/drivers/net/ethernet/intel

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

2013-09-20 Thread Russell King
mask only if dma_set_mask() succeeded, and to error out if either fails. Signed-off-by: Russell King rmk+ker...@arm.linux.org.uk --- drivers/net/ethernet/intel/ixgbe/ixgbe_main.c | 15 +-- 1 files changed, 5 insertions(+), 10 deletions(-) diff --git a/drivers/net/ethernet/intel/ixgbe

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

2013-09-20 Thread Russell King
it to set the coherent DMA mask only if dma_set_mask() succeeded, and to error out if either fails. Signed-off-by: Russell King rmk+ker...@arm.linux.org.uk --- drivers/net/ethernet/intel/e1000e/netdev.c | 18 ++ 1 files changed, 6 insertions(+), 12 deletions(-) diff --git

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

2013-09-20 Thread Russell King
it to set the coherent DMA mask only if dma_set_mask() succeeded, and to error out if either fails. Signed-off-by: Russell King rmk+ker...@arm.linux.org.uk --- drivers/net/ethernet/intel/igb/igb_main.c | 18 ++ 1 files changed, 6 insertions(+), 12 deletions(-) diff --git a/drivers

[PATCH 49/51] ARM: 7796/1: scsi: Use dma_max_pfn(dev) helper for bounce_limit calculations

2013-09-20 Thread Russell King
architectures. So make use of dma_max_pfn() which is expected to return the DMAable maximum pfn value across architectures. Signed-off-by: Santosh Shilimkar santosh.shilim...@ti.com Signed-off-by: Russell King rmk+ker...@arm.linux.org.uk --- drivers/scsi/scsi_lib.c |2 +- 1 files changed, 1 insertions

[PATCH 47/51] ARM: 7794/1: block: Rename parameter dma_mask to max_addr for blk_queue_bounce_limit()

2013-09-20 Thread Russell King
assumptions about dma_mask wherever it could be miss-interpreted. Signed-off-by: Santosh Shilimkar santosh.shilim...@ti.com Signed-off-by: Russell King rmk+ker...@arm.linux.org.uk --- block/blk-settings.c |8 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/block/blk

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

2013-09-20 Thread Russell King
it to set the coherent DMA mask only if dma_set_mask() succeeded, and to error out if either fails. Signed-off-by: Russell King rmk+ker...@arm.linux.org.uk --- drivers/net/ethernet/intel/igbvf/netdev.c | 18 ++ 1 files changed, 6 insertions(+), 12 deletions(-) diff --git a/drivers

[PATCH 02/51] DMA-API: net: brocade/bna/bnad.c: fix 32-bit DMA mask handling

2013-09-20 Thread Russell King
mask if we failed to set a 32-bit DMA mask, and only if both fail do we fail the driver. Adjust this so that if either setting fails, we fail the driver - and thereby end up properly setting both the DMA mask and the coherent DMA mask in the fallback case. Signed-off-by: Russell King rmk+ker

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

2013-09-23 Thread Russell King
if dma_set_mask() succeeded, and to error out if either fails. Signed-off-by: Russell King rmk+ker...@arm.linux.org.uk --- drivers/net/ethernet/intel/ixgb/ixgb_main.c | 16 +--- 1 files changed, 5 insertions(+), 11 deletions(-) diff --git a/drivers/net/ethernet/intel/ixgb/ixgb_main.c b

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

2013-09-23 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-23 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 35/51] DMA-API: parport: parport_pc.c: use dma_coerce_mask_and_coherent()

2013-09-23 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

[PATCH 51/51] ARM: 7805/1: mm: change max*pfn to include the physical offset of memory

2013-09-23 Thread Russell King
...@ti.com Signed-off-by: Russell King rmk+ker...@arm.linux.org.uk --- arch/arm/include/asm/dma-mapping.h |8 arch/arm/mm/init.c | 10 -- 2 files changed, 12 insertions(+), 6 deletions(-) diff --git a/arch/arm/include/asm/dma-mapping.h b/arch/arm/include/asm

[PATCH 50/51] ARM: 7797/1: mmc: Use dma_max_pfn(dev) helper for bounce_limit calculations

2013-09-23 Thread Russell King
architectures. So make use of dma_max_pfn() which is expected to return the DMAable maximum pfn value across architectures. Signed-off-by: Santosh Shilimkar santosh.shilim...@ti.com Signed-off-by: Russell King rmk+ker...@arm.linux.org.uk --- drivers/mmc/card/queue.c |3 ++- 1 files changed, 2

[PATCH 48/51] ARM: 7795/1: mm: dma-mapping: Add dma_max_pfn(dev) helper function

2013-09-23 Thread Russell King
...@ti.com Signed-off-by: Russell King rmk+ker...@arm.linux.org.uk --- include/linux/dma-mapping.h |7 +++ 1 files changed, 7 insertions(+), 0 deletions(-) diff --git a/include/linux/dma-mapping.h b/include/linux/dma-mapping.h index 27d1421..fd4aee2 100644 --- a/include/linux/dma-mapping.h

[PATCH 45/51] DMA-API: firmware/google/gsmi.c: avoid direct access to DMA masks

2013-09-23 Thread Russell King
This driver doesn't need to directly access DMA masks if it uses the platform_device_register_full() API rather than platform_device_register_simple() - the former function can initialize the DMA mask appropriately. Signed-off-by: Russell King rmk+ker...@arm.linux.org.uk --- drivers/firmware

[PATCH 44/51] DMA-API: dcdbas: update DMA mask handing

2013-09-23 Thread Russell King
the platform_device_register_full() avoids some of this explicit initialization. Convert the driver to use platform_device_register_full(), and as it makes use of coherent DMA, also call dma_set_coherent_mask() to ensure that the architecture gets to check the mask. Signed-off-by: Russell King rmk+ker

[PATCH 46/51] ARM: DMA-API: better handing of DMA masks for coherent allocations

2013-09-23 Thread Russell King
the DMA mask to a PFN using the device specific dma_to_pfn() macro. This is the reverse of the pfn_to_dma() macro which is used to get the DMA address for the device. This gives us a PFN mask, which we can then check against the PFN limit of the DMA zone. Signed-off-by: Russell King rmk+ker

[PATCH 43/51] DMA-API: dma: edma.c: no need to explicitly initialize DMA masks

2013-09-23 Thread Russell King
register_platform_device_full() can setup the DMA mask provided the appropriate member is set in struct platform_device_info. So lets make that be the case. This avoids a direct reference to the DMA masks by this driver. Signed-off-by: Russell King rmk+ker...@arm.linux.org.uk --- drivers/dma

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

2013-09-23 Thread Russell King
-by: Russell King rmk+ker...@arm.linux.org.uk --- drivers/usb/musb/am35x.c| 50 ++ drivers/usb/musb/da8xx.c| 49 ++--- drivers/usb/musb/davinci.c | 48 ++-- drivers/usb/musb

[PATCH 41/51] DMA-API: crypto: remove last references to 'static struct device *dev'

2013-09-23 Thread Russell King
Signed-off-by: Russell King rmk+ker...@arm.linux.org.uk --- drivers/crypto/ixp4xx_crypto.c | 13 - 1 files changed, 8 insertions(+), 5 deletions(-) diff --git a/drivers/crypto/ixp4xx_crypto.c b/drivers/crypto/ixp4xx_crypto.c index 8306185..214357e 100644 --- a/drivers/crypto

[PATCH 39/51] DMA-API: others: use dma_set_coherent_mask()

2013-09-23 Thread Russell King
-by: Russell King rmk+ker...@arm.linux.org.uk --- drivers/ata/pata_ixp4xx_cf.c |5 - drivers/gpu/drm/exynos/exynos_drm_drv.c |6 +- drivers/gpu/drm/omapdrm/omap_dmm_tiler.c |5 +++-- 3 files changed, 12 insertions(+), 4 deletions(-) diff --git a/drivers/ata/pata_ixp4xx_cf.c

[PATCH 22/51] DMA-API: amba: get rid of separate dma_mask

2013-09-23 Thread Russell King
AMBA Primecell devices always treat streaming and coherent DMA exactly the same, so there's no point in having the masks separated. Signed-off-by: Russell King rmk+ker...@arm.linux.org.uk --- drivers/amba/bus.c |6 +- drivers/of/platform.c|3 --- include/linux/amba/bus.h

[PATCH 24/51] DMA-API: dma: pl330: add dma_set_mask_and_coherent() call

2013-09-23 Thread Russell King
The DMA API requires drivers to call the appropriate dma_set_mask() functions before doing any DMA mapping. Add this required call to the AMBA PL08x driver. Signed-off-by: Russell King rmk+ker...@arm.linux.org.uk --- drivers/dma/pl330.c |4 1 files changed, 4 insertions(+), 0 deletions

[PATCH 11/51] DMA-API: net: emulex/benet: replace dma_set_mask()+dma_set_coherent_mask() with new helper

2013-09-23 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/net/ethernet/emulex/benet/be_main.c | 12 ++-- 1

[PATCH 13/51] DMA-API: net: sfc/efx.c: replace dma_set_mask()+dma_set_coherent_mask() with new helper

2013-09-23 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/net/ethernet/sfc/efx.c | 12 +--- 1 files changed

[PATCH 18/51] DMA-API: staging: et131x: replace dma_set_mask()+dma_set_coherent_mask() with new helper

2013-09-23 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/staging/et131x/et131x.c | 17 ++--- 1 files

[PATCH 12/51] DMA-API: net: intel/e1000: replace dma_set_mask()+dma_set_coherent_mask() with new helper

2013-09-23 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/net/ethernet/intel/e1000/e1000_main.c |9 ++--- 1

[PATCH 19/51] DMA-API: media: dt3155v4l: replace dma_set_mask()+dma_set_coherent_mask() with new helper

2013-09-23 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/staging/media/dt3155v4l/dt3155v4l.c |5 + 1 files

[PATCH 10/51] DMA-API: net: broadcom/bnx2x: replace dma_set_mask()+dma_set_coherent_mask() with new helper

2013-09-23 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/net/ethernet/broadcom/bnx2x/bnx2x_main.c |8 ++-- 1

[PATCH 15/51] DMA-API: net: b43legacy: replace dma_set_mask()+dma_set_coherent_mask() with new helper

2013-09-23 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/net/wireless/b43legacy/dma.c |9 +++-- 1 files

[PATCH 20/51] DMA-API: usb: bcma: replace dma_set_mask()+dma_set_coherent_mask() with new helper

2013-09-23 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/usb/host/bcma-hcd.c |3 +-- 1 files changed, 1

[PATCH 25/51] DMA-API: video: clcd: add dma_set_mask_and_coherent() call

2013-09-23 Thread Russell King
The DMA API requires drivers to call the appropriate dma_set_mask() functions before doing any DMA mapping. Add this required call to the AMBA PL08x driver. Signed-off-by: Russell King rmk+ker...@arm.linux.org.uk --- drivers/video/amba-clcd.c |5 + 1 files changed, 5 insertions(+), 0

[PATCH 21/51] DMA-API: usb: ssb-hcd: replace dma_set_mask()+dma_set_coherent_mask() with new helper

2013-09-23 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/usb/host/ssb-hcd.c |3 +-- 1 files changed, 1 insertions

[PATCH 26/51] DMA-API: usb: ohci-sa1111: add a note about DMA masks

2013-09-23 Thread Russell King
Add a comment to explain why this driver doesn't call any of the DMA API dma_set_mask() functions. Signed-off-by: Russell King rmk+ker...@arm.linux.org.uk --- drivers/usb/host/ohci-sa.c |6 ++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/drivers/usb/host/ohci-sa

[PATCH 27/51] DMA-API: provide a helper to setup DMA masks

2013-09-23 Thread Russell King
with via dma_set_mask()/ dma_is_supported(). Signed-off-by: Russell King rmk+ker...@arm.linux.org.uk --- include/linux/dma-mapping.h | 10 ++ 1 files changed, 10 insertions(+), 0 deletions(-) diff --git a/include/linux/dma-mapping.h b/include/linux/dma-mapping.h index ec951f9..27d1421

[PATCH 28/51] DMA-API: sound: fix dma mask handling in a lot of drivers

2013-09-23 Thread Russell King
dma_coerce_coherent_and_mask() function. Signed-off-by: Russell King rmk+ker...@arm.linux.org.uk --- sound/arm/pxa2xx-pcm.c |9 +++-- sound/soc/atmel/atmel-pcm.c | 11 --- sound/soc/blackfin/bf5xx-ac97-pcm.c | 11 --- sound/soc/blackfin/bf5xx-i2s-pcm.c | 10

[PATCH 29/51] DMA-API: ata: pata_octeon_cf: convert to use dma_coerce_mask_and_coherent()

2013-09-23 Thread Russell King
Convert this code sequence: pdev-dev.coherent_dma_mask = DMA_BIT_MASK(64); pdev-dev.dma_mask = pdev-dev.coherent_dma_mask; to use dma_coerce_mask_and_coherent() to avoid bypassing the architecture check on the DMA mask. Signed-off-by: Russell King rmk+ker...@arm.linux.org.uk

[PATCH 30/51] DMA-API: dma: dw_dmac.c: convert to use dma_coerce_mask_and_coherent()

2013-09-23 Thread Russell King
(), avoiding the direct initialization of this mask. Signed-off-by: Russell King rmk+ker...@arm.linux.org.uk --- drivers/dma/dw/platform.c |8 +++- 1 files changed, 3 insertions(+), 5 deletions(-) diff --git a/drivers/dma/dw/platform.c b/drivers/dma/dw/platform.c index e35d975..453822c 100644

[PATCH 31/51] DMA-API: media: omap3isp: use dma_coerce_mask_and_coherent()

2013-09-23 Thread Russell King
initialization of this mask. Signed-off-by: Russell King rmk+ker...@arm.linux.org.uk --- drivers/media/platform/omap3isp/isp.c |6 +++--- drivers/media/platform/omap3isp/isp.h |3 --- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/drivers/media/platform/omap3isp/isp.c b/drivers

[PATCH 32/51] DMA-API: mmc: sdhci-acpi: use dma_coerce_mask_and_coherent()

2013-09-23 Thread Russell King
The code sequence: dev-dma_mask = dev-coherent_dma_mask; dev-coherent_dma_mask = 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 King rmk

[PATCH 33/51] DMA-API: net: nxp/lpc_eth: use dma_coerce_mask_and_coherent()

2013-09-23 Thread Russell King
. Signed-off-by: Russell King rmk+ker...@arm.linux.org.uk --- drivers/net/ethernet/nxp/lpc_eth.c |6 -- 1 files changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/net/ethernet/nxp/lpc_eth.c b/drivers/net/ethernet/nxp/lpc_eth.c index a061b93..ba3ca18 100644 --- a/drivers/net

[PATCH 34/51] DMA-API: net: octeon: use dma_coerce_mask_and_coherent()

2013-09-23 Thread Russell King
-by: Russell King rmk+ker...@arm.linux.org.uk --- drivers/net/ethernet/octeon/octeon_mgmt.c |5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/net/ethernet/octeon/octeon_mgmt.c b/drivers/net/ethernet/octeon/octeon_mgmt.c index 622aa75..2006a07 100644 --- a/drivers

[PATCH 36/51] DMA-API: usb: use dma_set_coherent_mask()

2013-09-23 Thread Russell King
-by: Russell King rmk+ker...@arm.linux.org.uk --- drivers/usb/chipidea/ci_hdrc_imx.c |5 +++-- drivers/usb/dwc3/dwc3-exynos.c |5 +++-- drivers/usb/gadget/lpc32xx_udc.c |4 +++- drivers/usb/host/ehci-atmel.c |5 +++-- drivers/usb/host/ehci-octeon.c |4 +++- drivers/usb/host

[PATCH 37/51] DMA-API: usb: use new dma_coerce_mask_and_coherent()

2013-09-23 Thread Russell King
Signed-off-by: Russell King rmk+ker...@arm.linux.org.uk --- drivers/usb/chipidea/ci_hdrc_imx.c |4 +--- drivers/usb/dwc3/dwc3-exynos.c |4 +--- drivers/usb/host/ehci-atmel.c |4 +--- drivers/usb/host/ehci-omap.c |4 +--- drivers/usb/host/ehci-orion.c |4

[PATCH 38/51] DMA-API: staging: use dma_set_coherent_mask()

2013-09-23 Thread Russell King
-by: Russell King rmk+ker...@arm.linux.org.uk --- drivers/staging/dwc2/platform.c|5 +++-- drivers/staging/imx-drm/imx-drm-core.c |8 ++-- drivers/staging/imx-drm/ipuv3-crtc.c |4 +++- 3 files changed, 12 insertions(+), 5 deletions(-) diff --git a/drivers/staging/dwc2/platform.c b

[PATCH 09/51] DMA-API: net: broadcom/b44: replace dma_set_mask()+dma_set_coherent_mask() with new helper

2013-09-23 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/net/ethernet/broadcom/b44.c |3 +-- 1 files changed, 1

[PATCH 40/51] DMA-API: crypto: fix ixp4xx crypto platform device support

2013-09-23 Thread Russell King
-by: Russell King rmk+ker...@arm.linux.org.uk --- drivers/crypto/ixp4xx_crypto.c | 37 + 1 files changed, 17 insertions(+), 20 deletions(-) diff --git a/drivers/crypto/ixp4xx_crypto.c b/drivers/crypto/ixp4xx_crypto.c index 21180d6..8306185 100644 --- a/drivers

[PATCH 23/51] DMA-API: dma: pl08x: add dma_set_mask_and_coherent() call

2013-09-23 Thread Russell King
The DMA API requires drivers to call the appropriate dma_set_mask() functions before doing any DMA mapping. Add this required call to the AMBA PL08x driver. Signed-off-by: Russell King rmk+ker...@arm.linux.org.uk --- drivers/dma/amba-pl08x.c |5 + 1 files changed, 5 insertions(+), 0

[PATCH 14/51] DMA-API: net: b43: replace dma_set_mask()+dma_set_coherent_mask() with new helper

2013-09-23 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/net/wireless/b43/dma.c |9 +++-- 1 files changed, 3

[PATCH 16/51] DMA-API: ppc: vio.c: replace dma_set_mask()+dma_set_coherent_mask() with new helper

2013-09-23 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 --- arch/powerpc/kernel/vio.c |3 +-- 1 files changed, 1 insertions

[PATCH 1/5] drm/i2c: tda998x: set VIF for full range, underscanned display

2013-10-07 Thread Russell King
Signed-off-by: Russell King rmk+ker...@arm.linux.org.uk --- drivers/gpu/drm/i2c/tda998x_drv.c |2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/drivers/gpu/drm/i2c/tda998x_drv.c b/drivers/gpu/drm/i2c/tda998x_drv.c index 60e8404..704040b5 100644 --- a/drivers/gpu/drm/i2c

[PATCH 3/5] DRM: Armada: Add support for ARGB 32x64 or 64x32 hardware cursors

2013-10-07 Thread Russell King
This patch adds ARGB hardware cursor support to the DRM driver for the Marvell Armada SoCs. ARGB cursors are supported at either 32x64 or 64x32 resolutions. Signed-off-by: Russell King rmk+ker...@arm.linux.org.uk --- drivers/gpu/drm/armada/armada_510.c |1 + drivers/gpu/drm/armada

[PATCH 4/5] DRM: Armada: start of MMP2/MMP3 support

2013-10-07 Thread Russell King
Signed-off-by: Russell King rmk+ker...@arm.linux.org.uk --- drivers/gpu/drm/armada/Makefile |1 + drivers/gpu/drm/armada/armada_610.c | 49 ++ drivers/gpu/drm/armada/armada_crtc.c |1 + drivers/gpu/drm/armada/armada_drm.h |1 + drivers/gpu/drm

[PATCH 5/5] DRM: Armada: add support for drm tda19988 driver

2013-10-07 Thread Russell King
Signed-off-by: Russell King rmk+ker...@arm.linux.org.uk --- drivers/gpu/drm/armada/Kconfig |9 +++ drivers/gpu/drm/armada/armada_drv.c | 42 +++ 2 files changed, 51 insertions(+), 0 deletions(-) diff --git a/drivers/gpu/drm/armada/Kconfig b/drivers

[PATCH] drm: ensure atomic messages consistently include the name of the component

2017-02-13 Thread Russell King
quot;) Fixes: cc4ceb484b37 ("drm: Global atomic state handling") Signed-off-by: Russell King <rmk+ker...@armlinux.org.uk> --- drivers/gpu/drm/drm_atomic.c| 9 + drivers/gpu/drm/drm_atomic_helper.c | 12 +++- 2 files changed, 12 insertions(+), 9 deletions(-) dif

[PATCH RFC 07/10] drm/i2c: tda998x: separate connector initialisation

2016-10-23 Thread Russell King
Separate out the connector initialisation from the rest of the drivers initialisation. Signed-off-by: Russell King <rmk+kernel at armlinux.org.uk> --- drivers/gpu/drm/i2c/tda998x_drv.c | 58 +-- 1 file changed, 32 insertions(+), 26 deletions(-) diff

[PATCH RFC 03/10] drm/i2c: tda998x: avoid racy access to mode clock

2016-10-23 Thread Russell King
Avoid a racy access to the mode clock by storing the current mode clock during a mode set under the audio mutex. This allows us to access it from the audio path in a safe way. Signed-off-by: Russell King <rmk+kernel at armlinux.org.uk> --- drivers/gpu/drm/i2c/tda998x_drv.

[PATCH RFC 04/10] drm/i2c: tda998x: correct function name in comments

2016-10-23 Thread Russell King
Correct two references to tda998x_connector_get_modes() which were incorrectly referring to tda998x_encoder_get_modes(). Signed-off-by: Russell King <rmk+kernel at armlinux.org.uk> --- drivers/gpu/drm/i2c/tda998x_drv.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff

[PATCH RFC 09/10] drm/i2c: tda998x: remove complexity from tda998x_audio_get_eld()

2016-10-23 Thread Russell King
tda998x_audio_get_eld() is needlessly complex - the connector associated with the encoder is always our own priv->connector. Remove this complexity, but ensure that there are no races when copying out the ELD. Signed-off-by: Russell King <rmk+kernel at armlinux.org.uk> --- drivers/gp

[PATCH RFC 08/10] drm/i2c: tda998x: group audio functions together

2016-10-23 Thread Russell King
Group the TDA998x audio functions together rather than split between two different locations in the file, keeping like code together. Signed-off-by: Russell King <rmk+kernel at armlinux.org.uk> --- drivers/gpu/drm/i2c/tda998x_drv.c | 278 +++--- 1 file c

[PATCH RFC 06/10] drm/i2c: tda998x: group connector functions and funcs together

2016-10-23 Thread Russell King
Group the TDA998x connector functions and funcs structures together before the encoder support, rather than scattered amongst the rest of the file. This keeps like code together. Signed-off-by: Russell King <rmk+kernel at armlinux.org.uk> --- drivers/gpu/drm/i2c/tda998x_drv.c

[PATCH RFC 02/10] drm/i2c: tda998x: avoid configuring audio for DVI mode

2016-10-23 Thread Russell King
configuration, so that if a HDMI device is hotplugged, audio will then work. This seems a reasonable expectation. Signed-off-by: Russell King <rmk+kernel at armlinux.org.uk> --- drivers/gpu/drm/i2c/tda998x_drv.c | 17 - 1 file changed, 12 insertions(+), 5 deletions(-) diff

[PATCH RFC 01/10] drm/i2c: tda998x: avoid race in tda998x_encoder_mode_set()

2016-10-23 Thread Russell King
ust not be unmuted until we have finished the mode set. It is possible that the audio side may start while a mode set is in progress, so take the audio_mutex lock around the whole mode setting procedure. Signed-off-by: Russell King <rmk+kernel at armlinux.org.uk> --- drivers/gpu/drm/i2c/tda998x_

[PATCH RFC 05/10] drm/i2c: tda998x: move and rename tda998x_encoder_set_config()

2016-10-23 Thread Russell King
The naming of tda998x_encoder_set_config() is a left-over from when TDA998x was a slave encoder. Since this is part of the initialisation, drop the _encoder from the name, and move it near tda998x_bind(). Signed-off-by: Russell King <rmk+kernel at armlinux.org.uk> --- drivers/gpu/d

[PATCH RFC 10/10] drm/i2c: tda998x: switch to boolean is_on

2016-10-23 Thread Russell King
Rather than storing the DPMS mode (which will always be on or off) use a boolean to store this instead. Signed-off-by: Russell King <rmk+kernel at armlinux.org.uk> --- drivers/gpu/drm/i2c/tda998x_drv.c | 21 ++--- 1 file changed, 10 insertions(+), 11 deletions(-) diff

[GIT PULL] TDA998x I2C driver development updates

2016-09-09 Thread Russell King
David, Please incorporate the latest TDA998x I2C driver development updates, which can be found at: git://git.armlinux.org.uk/~rmk/linux-arm.git drm-tda998x-devel with SHA1 3e980591945eadbfdf4cbc05d56e5f44010a5a87. This adds the ASoC codec interfaces for TDA998x HDMI audio from Jyri Sarha.

  1   2   3   4   5   6   7   8   9   10   >