[PATCH 4/4] drm/bridge: dw-hdmi: add cec driver

2017-05-31 Thread Russell King
Add a CEC driver for the dw-hdmi hardware. Signed-off-by: Russell King --- drivers/gpu/drm/bridge/synopsys/Kconfig | 8 + drivers/gpu/drm/bridge/synopsys/Makefile | 1 + drivers/gpu/drm/bridge/synopsys/dw-hdmi-cec.c | 320 ++ drivers/gpu/drm/bridge

[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 --- drivers/gpu/drm/i2c/tda998x_drv.c | 58 +-- 1 file changed, 32 insertions(+), 26 deletions(-) diff --git a/drivers/gpu/drm/i2c

[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 --- drivers/gpu/drm/i2c/tda998x_drv.c | 18 +++--- 1 file changed, 7

[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 --- drivers/gpu/drm/i2c/tda998x_drv.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/i2c/tda998x_drv.c b

[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 --- drivers/gpu/drm/i2c/tda998x_drv.c |

[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 --- drivers/gpu/drm/i2c/tda998x_drv.c | 278 +++--- 1 file changed, 140 insertions(+), 138 deletions

[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 --- drivers/gpu/drm/i2c/tda998x_drv.c | 316 +++--- 1

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

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

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

2016-10-23 Thread Russell King
t must 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 --- drivers/gpu/drm/i2c/tda998x_drv.c | 7 +++ 1 fi

[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 --- drivers/gpu/drm/i2c/tda998x_drv.c | 40

[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 --- drivers/gpu/drm/i2c/tda998x_drv.c | 21 ++--- 1 file changed, 10 insertions(+), 11 deletions(-) diff --git a/drivers/gpu/drm/i2c/tda998x_drv.c

[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. T

[PATCH] Update my email address in various drivers

2020-03-30 Thread Russell King
Globally update my email address in six files scattered through the tree. Signed-off-by: Russell King --- drivers/gpu/drm/armada/armada_drv.c | 2 +- drivers/gpu/drm/bridge/synopsys/dw-hdmi-ahb-audio.c | 2 +- drivers/gpu/drm/etnaviv/etnaviv_drv.c | 2 +- drivers

[GIT PULL] TDA998x I2C driver development updates

2015-05-28 Thread Russell King
. This will update the following files: drivers/gpu/drm/i2c/tda998x_drv.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) through these changes: Russell King (1): drm/i2c: tda998x: fix compiler warning for ssize_t Many thanks.

[GIT PULL] Armada DRM development updates development updates

2015-05-28 Thread Russell King
David, Please incorporate the latest Armada DRM development updates development updates, which can be found at: git://ftp.arm.linux.org.uk/~rmk/linux-arm.git drm-armada-devel with SHA1 38bf3aee3ec7b5b264b701da14114a618cddd1a1. A couple of patches from Rickard Strandqvist removing code which i

[PATCH] drm: clean up drm_mm debugfs output

2015-05-28 Thread Russell King
0x8001b000-0x817a1000: 24666112: free 0x817a1000-0x817a8000: 28672: used 0x817a8000-0x81ba8000: 4194304: used Signed-off-by: Russell King --- David, Please apply this patch; I didn't see the need to create a new branch just for one patch. Thanks. dr

[PATCH] drm: convert DT component matching to component_match_add_release()

2016-06-03 Thread Russell King
Convert DT component matching to use component_match_add_release(). Signed-off-by: Russell King --- drivers/gpu/drm/arm/hdlcd_drv.c | 10 -- drivers/gpu/drm/armada/armada_drv.c | 9 +++-- drivers/gpu/drm/drm_of.c| 13 + drivers

[PATCH v2 2/3] drm: convert DT component matching to component_match_add_release()

2016-06-03 Thread Russell King
Convert DT component matching to use component_match_add_release(). Signed-off-by: Russell King --- drivers/gpu/drm/arm/hdlcd_drv.c | 9 +++-- drivers/gpu/drm/armada/armada_drv.c | 8 ++-- drivers/gpu/drm/drm_of.c| 6 -- drivers/gpu/drm

[PATCH v2 1/3] of: add common OF-based component functionality

2016-06-03 Thread Russell King
Add common OF-based component functionality for matching devices by device node, and releasing the device node at the appropraite time. Signed-off-by: Russell King --- drivers/of/Makefile | 2 +- drivers/of/of_component.c| 41 + include

[PATCH v2 3/3] iommu: convert DT component matching to component_match_add_release()

2016-06-03 Thread Russell King
Convert DT component matching to use component_match_add_release(). Signed-off-by: Russell King --- drivers/iommu/mtk_iommu.c | 14 ++ 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/drivers/iommu/mtk_iommu.c b/drivers/iommu/mtk_iommu.c index c3043d8754e3..71cf62af4e24

linux-next: manual merge of the drm-misc tree with the arm tree

2016-06-22 Thread Russell King
ries which is part of the component helper updates (which I'm the author and maintainer of). Then someone came up with an alternative way of some of part of it. You can't merge the above DRM part, because that means you also need to merge patch 1, which is core component stuff. -- Russell King ARM architecture Linux Kernel maintainer

linux-next: manual merge of the drm-misc tree with the arm tree

2016-06-22 Thread Russell King
On Wed, Jun 22, 2016 at 10:23:36AM +0200, Daniel Vetter wrote: > On Wed, Jun 22, 2016 at 09:21:11AM +0100, Russell King wrote: > > On Wed, Jun 22, 2016 at 09:31:18AM +0200, Daniel Vetter wrote: > > > On Wed, Jun 22, 2016 at 3:47 AM, Stephen Rothwell > > canb.auug.org.a

[PATCH 2/2] drm: etnaviv: add further minor features and varyings count

2016-01-19 Thread Russell King
Export further minor feature bitmasks and the varyings count from the GPU specifications registers to userspace. Signed-off-by: Russell King --- drivers/gpu/drm/etnaviv/etnaviv_gpu.c | 57 ++- drivers/gpu/drm/etnaviv/etnaviv_gpu.h | 9 ++ include/uapi/drm

[PATCH 1/2] drm: etnaviv: update common and state_hi xml.h files

2016-01-19 Thread Russell King
Update the common and state_hi xml.h header files from the etnaviv repository. Signed-off-by: Russell King --- drivers/gpu/drm/etnaviv/common.xml.h | 48 -- drivers/gpu/drm/etnaviv/state_hi.xml.h | 26 -- 2 files changed, 64 insertions(+), 10

[PATCH] drm: etnaviv: fix failure path if model is zero

2016-01-24 Thread Russell King
Fix the failure path to call pm_runtime_mark_last_busy() when failing due to the model field being zero. Acked-by: Christian Gmeiner Signed-off-by: Russell King --- drivers/gpu/drm/etnaviv/etnaviv_gpu.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm

[PATCH 1/5] drm: etnaviv: update common and state_hi xml.h files

2016-01-24 Thread Russell King
Update the common and state_hi xml.h header files from the etnaviv repository. Acked-by: Christian Gmeiner Signed-off-by: Russell King --- drivers/gpu/drm/etnaviv/common.xml.h | 59 +- drivers/gpu/drm/etnaviv/state_hi.xml.h | 26 +-- 2 files

[PATCH 2/5] drm: etnaviv: use defined constants for the chip model

2016-01-24 Thread Russell King
Use the defined constants in common.xml.h for the chip model rather than coding these as hex numbers. Acked-by: Christian Gmeiner Signed-off-by: Russell King --- drivers/gpu/drm/etnaviv/etnaviv_gpu.c | 31 +-- 1 file changed, 17 insertions(+), 14 deletions(-) diff

[PATCH 3/5] drm: etnaviv: add helper to extract bitfields

2016-01-24 Thread Russell King
Add a helper to extract etnaviv bitfields from register values. Acked-by: Christian Gmeiner Signed-off-by: Russell King --- drivers/gpu/drm/etnaviv/etnaviv_gpu.c | 54 --- 1 file changed, 24 insertions(+), 30 deletions(-) diff --git a/drivers/gpu/drm/etnaviv

[PATCH 4/5] drm: etnaviv: add helper for comparing model/revision IDs

2016-01-24 Thread Russell King
Add and use a helper for comparing the model and revision IDs. Acked-by: Christian Gmeiner Signed-off-by: Russell King --- drivers/gpu/drm/etnaviv/etnaviv_gpu.c | 20 ++-- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/drivers/gpu/drm/etnaviv/etnaviv_gpu.c b

[PATCH 5/5] drm: etnaviv: add further minor features and varyings count

2016-01-24 Thread Russell King
Export further minor feature bitmasks and the varyings count from the GPU specifications registers to userspace. Acked-by: Christian Gmeiner Signed-off-by: Russell King --- drivers/gpu/drm/etnaviv/etnaviv_gpu.c | 62 ++- drivers/gpu/drm/etnaviv/etnaviv_gpu.h

[GIT PULL] Armada DRM devel updates

2014-07-11 Thread Russell King
dove-lcd.txt create mode 100644 drivers/gpu/drm/drm_of.c create mode 100644 include/drm/drm_of.h through these changes: Russell King (15): component: fix missed cleanup in case of devres failure component: ignore multiple additions of the same component component: add support

[PATCH] drm: omapdrm: fix compiler errors

2014-07-12 Thread Russell King
/drm/omapdrm/omap_dmm_tiler.c: In function 'dmm_txn_append': drivers/gpu/drm/omapdrm/omap_dmm_tiler.c:226:2: error: passing argument 3 of 'alloc_dma' from incompatible pointer type [-Werror] make[5]: *** [drivers/gpu/drm/omapdrm/omap_dmm_tiler.o] Error 1 make[5]: Target

[PATCH] drm: bochs: fix warnings

2014-07-12 Thread Russell King
nused-function] Fix these by adding the same condition that SET_SYSTEM_SLEEP_PM_OPS() uses. Signed-off-by: Russell King --- There is no maintainers entry for this driver, so I don't know who this should be sent to. drivers/gpu/drm/bochs/bochs_drv.c | 2 ++ 1 file changed, 2 insertions(+)

[PATCH] drm: cirrus: fix warnings

2014-07-12 Thread Russell King
d [-Wunused-function] Fix these by adding the same condition that SET_SYSTEM_SLEEP_PM_OPS() uses. Signed-off-by: Russell King --- There is no maintainers entry for this driver, so I don't know who this should be sent to. drivers/gpu/drm/cirrus/cirrus_drv.c | 2 ++ 1 file changed, 2 insertions

[PATCH] drm: shmobile: fix warnings

2014-07-13 Thread Russell King
drivers/gpu/drm/shmobile/shmob_drm_drv.c:300:5: warning: "CONFIG_PM_SLEEP" is not defined [-Wundef] Always use #ifdef with CONFIG symbols, never just bare #if Signed-off-by: Russell King --- drivers/gpu/drm/shmobile/shmob_drm_drv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletio

[PATCH] drm: rcar-du: fix warnings

2014-07-13 Thread Russell King
drivers/gpu/drm/rcar-du/rcar_du_drv.c:190:5: warning: "CONFIG_PM_SLEEP" is not defined [-Wundef] Always use #ifdef with CONFIG symbols, never just bare #if Signed-off-by: Russell King --- drivers/gpu/drm/rcar-du/rcar_du_drv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) di

[GIT PULL] msm drm update for component changes

2014-07-22 Thread Russell King
On Wed, Jul 09, 2014 at 10:34:58AM +0100, Russell King wrote: > David, > > Please incorporate the latest msm drm update for component changes, which can > be found at: > > git://ftp.arm.linux.org.uk/~rmk/linux-arm.git component-for-drm Pin

[GIT PULL] Armada DRM devel updates

2014-07-22 Thread Russell King
On Fri, Jul 11, 2014 at 09:03:44PM +0100, Russell King wrote: > David, > > Please incorporate the latest Armada DRM updates, which can be found at: > > git://ftp.arm.linux.org.uk/~rmk/linux-arm.git drm-armada-devel Ping? > > with SHA1 9611cb93fa65dde199f4f888bd034ffc80c

[PATCH RFA 1/2] drm/i2c: tda998x: allow re-use of tda998x support code

2014-07-24 Thread Russell King
the slave_encoder interface as there are existing users of this; we need to give them time to convert and test. Signed-off-by: Russell King --- RFA = request for acks, but tested-by's would also be great, particularly from the tilcdc folk. drivers/gpu/drm/i2c/tda998x_drv.c

[PATCH RFA 2/2] drm/i2c: tda998x: add component support

2014-07-24 Thread Russell King
prevent regressions. Signed-off-by: Russell King --- RFA = request for acks, but tested-by's are also welcome, particularly for tilcdc hardware. drivers/gpu/drm/i2c/tda998x_drv.c | 212 +++--- 1 file changed, 198 insertions(+), 14 deletions(-) diff --git a/dr

[PATCH] imx-drm: imx-hdmi: fix hdmi hotplug detection initial state

2014-06-06 Thread Russell King
ethod. Signed-off-by: Russell King --- This fix should go in for -rc - though it's probably too late to get it in for 3.15, it may be considered as a potential stable candidate. If not, can we get this in for 3.16-rc1 please? Thanks. drivers/staging/imx-drm/imx-hdmi.c | 9 +++-- 1 file

[PATCH 2/2] drm/panel: make DRM_PANEL_LD9040 depend on SPI

2014-06-12 Thread Russell King
T_ADP8860 depends on BACKLIGHT_CLASS_DEVICE symbol BACKLIGHT_CLASS_DEVICE is selected by FB_MX3 symbol FB_MX3 depends on MX3_IPU symbol MX3_IPU depends on DMADEVICES Signed-off-by: Russell King --- drivers/gpu/drm/panel/Kconfig | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff

[PATCH v2 2/2] drm/panel: make DRM_PANEL_LD9040 depend on SPI

2014-06-12 Thread Russell King
T_ADP8860 depends on BACKLIGHT_CLASS_DEVICE symbol BACKLIGHT_CLASS_DEVICE is selected by FB_MX3 symbol FB_MX3 depends on MX3_IPU symbol MX3_IPU depends on DMADEVICES Acked-by: Arnd Bergmann Signed-off-by: Russell King --- drivers/gpu/drm/panel/Kconfig | 3 +-- 1 file changed, 1 inser

[PATCH 1/2] drm/panel: remove unnecessary dependencies

2014-06-12 Thread Russell King
lready beneath a menu which depends on DRM_PANEL being enabled; these options will not be visible without DRM_PANEL already being enabled. Let's just remove this unnecessary verbosity. Signed-off-by: Russell King --- drivers/gpu/drm/panel/Kconfig | 2 -- 1 file changed, 2 deletions(-) dif

[PATCH v2 1/2] drm/panel: remove unnecessary dependencies

2014-06-12 Thread Russell King
lready beneath a menu which depends on DRM_PANEL being enabled; these options will not be visible without DRM_PANEL already being enabled. Let's just remove this unnecessary verbosity. Signed-off-by: Russell King --- drivers/gpu/drm/panel/Kconfig | 4 +--- 1 file changed, 1 insertion(+),

[PATCH v3 2/2] drm/panel: make DRM_PANEL_LD9040 depend on SPI

2014-06-13 Thread Russell King
T_ADP8860 depends on BACKLIGHT_CLASS_DEVICE symbol BACKLIGHT_CLASS_DEVICE is selected by FB_MX3 symbol FB_MX3 depends on MX3_IPU symbol MX3_IPU depends on DMADEVICES Acked-by: Arnd Bergmann Signed-off-by: Russell King --- drivers/gpu/drm/panel/Kconfig | 3 +-- 1 file changed, 1 inser

[PATCH v3 1/2] drm/panel: consolidate unnecessary explicit dependencies

2014-06-13 Thread Russell King
ntry in the menu depend on DRM_PANEL && DRM without this needing to be explicitly stated against every entry. Signed-off-by: Russell King --- drivers/gpu/drm/panel/Kconfig | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/gpu/drm/panel/Kconfig b/drivers/gpu

[PATCH RFC v2 1/8] component: fix missed cleanup in case of devres failure

2014-06-24 Thread Russell King
In try_to_bring_up_master(), we tear down the master's component list for each error case, except for devres group failure. Fix this oversight by making the code less prone to such mistakes. Signed-off-by: Russell King --- drivers/base/component.c

[PATCH RFC v2 2/8] component: ignore multiple additions of the same component

2014-06-24 Thread Russell King
Permit masters to call component_master_add_child() and match the same child multiple times. This may happen if there's multiple connections to a single component device from other devices. In such scenarios, we should not return a failure, but instead ignore the attempt. Signed-off-by: Ru

[PATCH RFC v2 3/8] component: add support for component match array

2014-06-24 Thread Russell King
. Signed-off-by: Russell King --- drivers/base/component.c | 119 -- include/linux/component.h | 7 +++ 2 files changed, 123 insertions(+), 3 deletions(-) diff --git a/drivers/base/component.c b/drivers/base/component.c index 55813e91bf0d..bd8b4908593b

[PATCH RFC v2 4/8] drm: msm: update to use component match support

2014-06-24 Thread Russell King
Update MSM's DRM driver to use the component match support rather than add_components. Signed-off-by: Russell King --- drivers/gpu/drm/msm/msm_drv.c | 83 ++- 1 file changed, 35 insertions(+), 48 deletions(-) diff --git a/drivers/gpu/drm/msm/msm_dr

[PATCH RFC v2 5/8] imx-drm: update to use component match support

2014-06-24 Thread Russell King
Update the imx-drm driver to use the component match support rather than add_components. Signed-off-by: Russell King --- drivers/staging/imx-drm/imx-drm-core.c | 57 +++--- 1 file changed, 4 insertions(+), 53 deletions(-) diff --git a/drivers/staging/imx-drm/imx-drm

[PATCH RFC v2 6/8] component: remove old add_components method

2014-06-24 Thread Russell King
. Signed-off-by: Russell King --- drivers/base/component.c | 21 + include/linux/component.h | 5 - 2 files changed, 1 insertion(+), 25 deletions(-) diff --git a/drivers/base/component.c b/drivers/base/component.c index bd8b4908593b..c0a5b1abc931 100644 --- a/drivers/base

[PATCH RFC v2 7/8] component: move check for unbound master into try_to_bring_up_masters()

2014-06-24 Thread Russell King
Clean up the code a little; we don't need to check that the master is unbound for every invocation of try_to_bring_up_master(), so let's move it to where it's really needed - try_to_bring_up_masters(), where we may encounter already bound masters. Signed-off-by: Russell King --

[PATCH RFC v2 8/8] component: track components via array rather than list

2014-06-24 Thread Russell King
which adds the component determines its position. Signed-off-by: Russell King --- drivers/base/component.c | 140 +-- 1 file changed, 62 insertions(+), 78 deletions(-) diff --git a/drivers/base/component.c b/drivers/base/component.c index 0863cfeea769

[PATCH] drm/i2c: tda998x: add some basic mode validation

2014-06-26 Thread Russell King
The TDA998x can't handle modes with clocks above 150MHz, or resolutions larger than 8192x2048. Signed-off-by: Russell King --- David, this will be part of a pull request which I intend to send during the next few days. Luckily, the mode_valid method in tda998x hasn't was not deleted.

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

2013-09-20 Thread Russell King
DMA mask set failed, which is silly. This fixes 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 --- drivers/net/ethernet/intel/ixgbevf/ixgbevf_main.c | 15 +-- 1 files changed, 5 insertions(+), 1

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

2013-09-20 Thread Russell King
set failed, which is silly. This fixes 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 --- drivers/net/ethernet/intel/ixgbe/ixgbe_main.c | 15 +-- 1 files changed, 5 insertions(+), 10 deletions(-) diff

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

2013-09-20 Thread Russell King
th if the DMA mask set failed, which is silly. This fixes 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 --- drivers/net/ethernet/intel/e1000e/netdev.c | 18 ++ 1 files changed, 6 insertions(+), 12 de

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

2013-09-20 Thread Russell King
th if the DMA mask set failed, which is silly. This fixes 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 --- drivers/net/ethernet/intel/igb/igb_main.c | 18 ++ 1 files changed, 6 insertions(+), 12 de

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

2013-09-20 Thread Russell King
ake use of dma_max_pfn() which is expected to return the DMAable maximum pfn value across architectures. Signed-off-by: Santosh Shilimkar Signed-off-by: Russell King --- drivers/scsi/scsi_lib.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/scsi/scsi_lib.c b/dr

[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
ions about dma_mask wherever it could be miss-interpreted. Signed-off-by: Santosh Shilimkar Signed-off-by: Russell King --- block/blk-settings.c |8 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/block/blk-settings.c b/block/blk-settings.c index c50ecf0..026c151 100644 -

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

2013-09-20 Thread Russell King
allback path if the DMA mask set failed, which is silly. This fixes 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 --- drivers/net/ethernet/intel/igbvf/netdev.c | 18 ++ 1 files changed, 6 insertions

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

2013-09-20 Thread Russell King
This means we only try and set the coherent DMA 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 fallbac

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

2013-09-23 Thread Russell King
s 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 --- drivers/net/ethernet/intel/ixgb/ixgb_main.c | 16 +--- 1 files changed, 5 insertions(+), 11 deletions(-) diff --git a/drivers/net/ethernet/intel/ix

[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 --- Documentation/DMA-API

[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 --- drivers/block/nvme-core.c | 10 -- 1 files changed, 4 insertions(+), 6 deletions

[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-of

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

2013-09-23 Thread Russell King
making use of of these variable to calculate the dma bounce limit using dma_mask. Now since we have a architecture override possibility for DMAable maximum pfns, lets make meaning of max*pfns as maximum pnfs on ARM as well. Signed-off-by: Santosh Shilimkar Signed-off-by: Russell King --- arch

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

2013-09-23 Thread Russell King
ake use of dma_max_pfn() which is expected to return the DMAable maximum pfn value across architectures. Signed-off-by: Santosh Shilimkar Signed-off-by: Russell King --- drivers/mmc/card/queue.c |3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/drivers/mmc/card/queue.c b/d

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

2013-09-23 Thread Russell King
DMA bitmask of bits to a block PFN number. In all the generic cases, it is just "dev->dma_mask >> PAGE_SHIFT" and hence default behavior is maintained as is. Subsequent patches will make use of the helper. No functional change. Signed-off-by: Santosh Shilimkar Signed-o

[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 --- drivers/firmware/google/gsmi.c |

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

2013-09-23 Thread Russell King
and using 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:

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

2013-09-23 Thread Russell King
vert 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 ---

[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 --- drivers/dma/edma.c |6 ++ 1

[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
: Russell King --- drivers/usb/musb/am35x.c| 50 ++ drivers/usb/musb/da8xx.c| 49 ++--- drivers/usb/musb/davinci.c | 48 ++-- drivers/usb/musb/tusb6010.c | 49

[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 --- 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/ixp4xx_crypto.c +++ b/drivers

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

2013-09-23 Thread Russell King
: Russell King --- 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 b/drivers/ata

[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 --- drivers/amba/bus.c |6 +- drivers/of/platform.c|3 --- include/linux/amba/bus.h |2 -- 3 files chang

[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 --- drivers/dma/pl330.c |4 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/drivers

[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 --- drivers/net/ethernet/emulex/benet/be_main.c | 12 ++-- 1 files changed, 2 insertions

[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 --- drivers/net/ethernet/sfc/efx.c | 12 +--- 1 files changed, 1 insertions(+), 11

[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 --- drivers/staging/et131x/et131x.c | 17 ++--- 1 files changed, 2 insertions(+), 15

[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 --- drivers/net/ethernet/intel/e1000/e1000_main.c |9 ++--- 1 files changed, 2 insertions

[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 --- drivers/staging/media/dt3155v4l/dt3155v4l.c |5 + 1 files changed, 1 insertions(+), 4

[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 --- drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c |8 ++-- 1 files changed, 2 insertions

[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 --- drivers/net/wireless/b43legacy/dma.c |9 +++-- 1 files changed, 3 insertions(+), 6

[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 --- drivers/usb/host/bcma-hcd.c |3 +-- 1 files changed, 1 insertions(+), 2 deletions(-) diff

[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 --- drivers/video/amba-clcd.c |5 + 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a

[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 --- drivers/usb/host/ssb-hcd.c |3 +-- 1 files changed, 1 insertions(+), 2 deletions(-) diff

[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 --- drivers/usb/host/ohci-sa.c |6 ++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/drivers/usb/host/ohci-sa.c b/drivers/usb/host

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

2013-09-23 Thread Russell King
ues to be properly dealt with via dma_set_mask()/ dma_is_supported(). Signed-off-by: Russell King --- 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 10

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

2013-09-23 Thread Russell King
. Fix these issues by using the new dma_coerce_coherent_and_mask() function. Signed-off-by: Russell King --- 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

[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 ---

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

2013-09-23 Thread Russell King
be replaced with dma_coerce_mask_and_coherent(), avoiding the direct initialization of this mask. Signed-off-by: Russell King --- 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
), avoiding the direct initialization of this mask. Signed-off-by: Russell King --- 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/m

[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:

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

2013-09-23 Thread Russell King
initialization of this mask. Signed-off-by: Russell King --- 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
mask. Signed-off-by: Russell King --- 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/net/et

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

2013-09-23 Thread Russell King
: Russell King --- 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/ehci-omap.c |8

<    1   2   3   4   5   6   7   8   9   10   >