[GIT PULL] Armada DRM fixes

2014-01-27 Thread Russell King
missed in the initial merge. Based on 3.13. This will update the following files: drivers/gpu/drm/armada/Kconfig | 1 + 1 file changed, 1 insertion(+) through these changes: Russell King (1): DRM: armada: fix missing DRM_KMS_FB_HELPER select Thanks.

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

2014-07-01 Thread Russell King
Update MSM's DRM driver to use the component match support rather than add_components. Signed-off-by: Russell King --- This patch is destined for Greg's driver and David's DRM trees. drivers/gpu/drm/msm/msm_drv.c | 83 ++- 1 file changed

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

2014-07-01 Thread Russell King
Update MSM's DRM driver to use the component match support rather than add_components. Signed-off-by: Russell King --- This patch is destined for Greg's driver and David's DRM trees. drivers/gpu/drm/msm/msm_drv.c | 83 ++- 1 file changed

[PATCH RFC] drm: add of_graph endpoint helper to find possible CRTCs

2014-07-03 Thread Russell King
their index, matching the appropriate CRTC using the port device_node, thus building up the possible CRTC mask. Signed-off-by: Russell King --- This helper will be shared between imx-drm and Armada DRM, and should be useful for other OF-based drivers. At the moment, this is being sent for

[PATCH RFC 03/15] component: add support for component match array

2014-07-05 Thread Russell King
. Acked-by: Laurent Pinchart Signed-off-by: Russell King --- drivers/base/component.c | 120 -- include/linux/component.h | 7 +++ 2 files changed, 124 insertions(+), 3 deletions(-) diff --git a/drivers/base/component.c b/drivers/base/component.c

[PATCH RFC 05/15] drm/armada: use number of CRTCs registered

2014-07-05 Thread Russell King
Use the number of CRTCs registered to size the vblank arrays rather than our own count. Number CRTCs using this as well. This permits us to register CRTCs as components in the near future rather than as part of a single device. Signed-off-by: Russell King --- drivers/gpu/drm/armada

[PATCH RFC 07/15] drm/armada: make variant a CRTC thing

2014-07-05 Thread Russell King
Move the variant pointer into the armada_crtc structure, and update for the resulting changes. Signed-off-by: Russell King --- drivers/gpu/drm/armada/armada_510.c | 4 ++-- drivers/gpu/drm/armada/armada_crtc.c | 27 --- drivers/gpu/drm/armada/armada_crtc.h | 5

[PATCH RFC 01/15] component: fix missed cleanup in case of devres failure

2014-07-05 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. Acked-by: Laurent Pinchart Signed-off-by: Russell King --- drivers/base/component.c

[PATCH RFC 08/15] drm: add of_graph endpoint helper to find possible CRTCs

2014-07-05 Thread Russell King
their index, matching the appropriate CRTC using the port device_node, thus building up the possible CRTC mask. Signed-off-by: Russell King --- drivers/gpu/drm/Makefile | 1 + drivers/gpu/drm/drm_of.c | 65 include/drm/drm_crtc.h | 2

[PATCH RFC 09/15] component: fix bug with legacy API

2014-07-05 Thread Russell King
Sachin Kamat reports that "component: add support for component match array" broke Exynos DRM due to a NULL pointer deref. Fix this. Reported-by: Sachin Kamat Tested-by: Sachin Kamat Signed-off-by: Russell King --- drivers/base/component.c | 10 ++ 1 file changed, 6 insert

[PATCH RFC 12/15] dt-bindings: add Marvell Dove LCD controller documentation

2014-07-05 Thread Russell King
Add the Marvell Dove LCD controller DT binding documentation. The clock names used here are intentionally taken from the specification for the Dove SoC. Signed-off-by: Russell King --- .../bindings/drm/armada/marvell,dove-lcd.txt | 30 ++ 1 file changed, 30 insertions

[PATCH RFC 13/15] drm/armada: permit CRTCs to be registered as separate devices

2014-07-05 Thread Russell King
Signed-off-by: Russell King --- drivers/gpu/drm/armada/armada_crtc.c | 114 --- drivers/gpu/drm/armada/armada_crtc.h | 4 +- drivers/gpu/drm/armada/armada_drv.c | 5 +- 3 files changed, 110 insertions(+), 13 deletions(-) diff --git a/drivers/gpu/drm/armada

[PATCH RFC 14/15] drm/armada: register crtc with port

2014-07-05 Thread Russell King
Register the CRTC with the port node so that the DRM OF helpers can find the appropriate CRTC. This is important so that encoders can identify their corresponding possible CRTCs. Signed-off-by: Russell King --- drivers/gpu/drm/armada/armada_crtc.c | 21 +++-- drivers/gpu/drm

[GIT PULL] TDA998x fixes

2014-07-05 Thread Russell King
DT documentation Russell King (2): drm/i2c: tda998x: faster polling for edid drm/i2c: tda998x: add some basic mode validation Many thanks.

[PATCH RFC 02/15] component: ignore multiple additions of the same component

2014-07-05 Thread Russell King
urent Pinchart Signed-off-by: Russell King --- drivers/base/component.c | 10 -- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/drivers/base/component.c b/drivers/base/component.c index d0ebd4431736..55813e91bf0d 100644 --- a/drivers/base/component.c +++ b/drivers/base/compon

[PATCH RFC 04/15] drm/armada: move IRQ handling into CRTC

2014-07-05 Thread Russell King
Signed-off-by: Russell King --- drivers/gpu/drm/armada/armada_crtc.c | 36 +-- drivers/gpu/drm/armada/armada_crtc.h | 4 +-- drivers/gpu/drm/armada/armada_drv.c | 68 +--- 3 files changed, 45 insertions(+), 63 deletions(-) diff --git a/drivers

[PATCH RFC 06/15] drm/armada: move variant initialisation to CRTC init

2014-07-05 Thread Russell King
Move the variant initialisation entirely to the CRTC init function - the variant support is really about the CRTC properties than the whole system, and we want to treat each CRTC individually when we support DT. Signed-off-by: Russell King --- drivers/gpu/drm/armada/armada_510.c | 19

[PATCH RFC 10/15] drm/armada: convert to componentized support

2014-07-05 Thread Russell King
Convert the Armada DRM driver to use the component helpers, which will permit us to clean up the driver and move towards an implementation which is compatible with a DT description of the hardware. Signed-off-by: Russell King --- drivers/gpu/drm/armada/armada_drv.c | 155

[PATCH RFC 11/15] drm/armada: update Armada 510 (Dove) to use "ext_ref_clk1" as the clock

2014-07-05 Thread Russell King
Remove the underscore between "clk" and "1" so that we match the name of the clock given in the documentation. Signed-off-by: Russell King --- drivers/gpu/drm/armada/armada_510.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/armada/arm

[PATCH RFC 15/15] ARM: dts: dove: add DT LCD controllers

2014-07-05 Thread Russell King
Add the DT fragment for the Marvell Dove LCD controllers. Signed-off-by: Russell King --- arch/arm/boot/dts/dove.dtsi | 14 ++ 1 file changed, 14 insertions(+) diff --git a/arch/arm/boot/dts/dove.dtsi b/arch/arm/boot/dts/dove.dtsi index 3b891dd20993..a5441d5482a6 100644 --- a/arch

[GIT PULL] msm drm update for component changes

2014-07-09 Thread Russell King
rv.c | 83 -- include/linux/component.h | 7 ++ 3 files changed, 199 insertions(+), 83 deletions(-) through these changes: Russell King (5): component: fix missed cleanup in case of devres failure component: ignore multiple additions of the same component component: add s

[PATCH RFA] drm: add of_graph endpoint helper to find possible CRTCs

2014-07-10 Thread Russell King
their index, matching the appropriate CRTC using the port device_node, thus building up the possible CRTC mask. Signed-off-by: Russell King --- RFA = request for acks - Updated commentry in the drm_of_find_possible_crtcs() comment block to point at the description of the of_graph bindings. - Not

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

2013-05-16 Thread Russell King
Signed-off-by: Russell King --- 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/gpu/drm/i2c/tda998x_drv.c

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

2013-05-16 Thread Russell King
Signed-off-by: Russell King --- 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 3/8] drm/i2c: nxp-tda998x: ensure VIP output mux is properly set

2013-05-16 Thread Russell King
0x12. 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 --- drivers/gpu/drm/i2c/tda998x_drv.c |3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/drivers/gpu/drm/i2c/tda998x_drv

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

[RFC 1/8] DRM: Add Dove DRM driver

2013-05-16 Thread Russell King
operation - video overlay on each LCD crt - page flipping of the main scanout buffers Included in this commit is the core driver with no output support; output support is platform and encoder driver dependent. Signed-off-by: Russell King --- drivers/gpu/drm/Kconfig |2 + drivers/gpu/drm

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

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

2013-05-16 Thread Russell King
Signed-off-by: Russell King --- 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..8ffb844 100644 --- a/drivers/gpu

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

2013-05-16 Thread Russell King
Signed-off-by: Russell King --- 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(-) diff --git a/drivers/gpu

[PATCH 2/5] DRM: Armada: Add Armada DRM driver

2013-10-06 Thread Russell King
. Signed-off-by: Russell King --- drivers/gpu/drm/Kconfig |2 + drivers/gpu/drm/Makefile|1 + drivers/gpu/drm/armada/Kconfig | 15 + drivers/gpu/drm/armada/Makefile |7 + drivers/gpu/drm/armada/armada_510.c | 86 +++ drivers/gpu

[PATCH 1/3] drm: bridge/dw_hdmi: combine hdmi_set_clock_regenerator_n() and hdmi_regenerate_cts()

2015-03-27 Thread Russell King
Combine these two functions into a single implementation. These two functions are called consecutively anyway. Idea from a patch by Yakir Yang. Signed-off-by: Russell King --- drivers/gpu/drm/bridge/dw_hdmi.c | 16 ++-- 1 file changed, 6 insertions(+), 10 deletions(-) diff --git

[PATCH 3/3] drm: bridge/dw_hdmi: adjust n/cts setting order

2015-03-27 Thread Russell King
. Having requested clarification from FSL, it appears that neither of these bits are implemented in their version of the IP. Signed-off-by: Russell King --- drivers/gpu/drm/bridge/dw_hdmi.c | 16 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/drivers/gpu/drm/bridge

[PATCH 2/3] drm: bridge/dw_hdmi: protect n/cts setting with a mutex

2015-03-27 Thread Russell King
update the video clock rate and pixel clock simultaneously. Signed-off-by: Russell King --- drivers/gpu/drm/bridge/dw_hdmi.c | 8 1 file changed, 8 insertions(+) diff --git a/drivers/gpu/drm/bridge/dw_hdmi.c b/drivers/gpu/drm/bridge/dw_hdmi.c index 78363552d80e..b75922d4901e 100644

[PATCH RFC 01/11] drm: bridge/dw_hdmi: clean up hdmi_set_clk_regenerator()

2015-03-30 Thread Russell King
Clean up hdmi_set_clk_regenerator() by allowing it to take the audio sample rate and ratio directly, rather than hiding it inside the function. Raise the unsupported pixel clock/sample rate message from debug to error level as this results in audio not working correctly. Signed-off-by: Russell

[PATCH RFC 07/11] drm/edid: add function to help find SADs

2015-03-30 Thread Russell King
Add a function to find the start of the SADs in the ELD. This complements the helper to retrieve the SAD count. Signed-off-by: Russell King --- include/drm/drm_edid.h | 19 +++ 1 file changed, 19 insertions(+) diff --git a/include/drm/drm_edid.h b/include/drm/drm_edid.h index

[PATCH RFC 08/11] sound/core: add DRM ELD helper

2015-03-30 Thread Russell King
Add a helper for the EDID like data structure, which is typically passed from a HDMI adapter to its associated audio driver. This informs the audio driver of the capabilities of the attached HDMI sink. Signed-off-by: Russell King --- include/sound/pcm_drm_eld.h | 6 +++ sound/core/Kconfig

[PATCH RFC 10/11] drm: bridge/dw_hdmi-ahb-audio: add audio driver

2015-03-30 Thread Russell King
formats for 2 to 6 channels, which we convert to its hardware format. A more desirable solution would be to have this conversion in userspace, but ALSA does not appear to allow such transformations outside of libasound itself. Signed-off-by: Russell King --- drivers/gpu/drm/bridge/Kconfig

[PATCH RFC 06/11] drm: bridge/dw_hdmi: introduce interfaces to enable and disable audio

2015-03-30 Thread Russell King
can't race, ensuring that the audio driver calling the enable/disable functions (which are called in an atomic context) can't race with a modeset. Signed-off-by: Russell King --- drivers/gpu/drm/bridge/dw_hdmi.c | 34 +- include/drm/bridge/dw_hdmi.h

[PATCH RFC 03/11] drm: bridge/dw_hdmi: simplify hdmi_config_AVI() a little

2015-03-30 Thread Russell King
When a YCBCR format is selected, we can merely copy the colorimetry information directly as we use the same definitions for both the unpacked AVI info frame and the hdmi_data_info structure. Signed-off-by: Russell King --- drivers/gpu/drm/bridge/dw_hdmi.c | 5 + 1 file changed, 1 insertion

[PATCH RFC 04/11] drm: bridge/dw_hdmi: remove mhsyncpolarity/mvsyncpolarity/minterlaced

2015-03-30 Thread Russell King
Remove the struct hdmi_vmode mhsyncpolarity/mvsyncpolarity/minterlaced members, which are only used within a single function. We can directly reference the appropriate mode->flags instead. Signed-off-by: Russell King --- drivers/gpu/drm/bridge/dw_hdmi.c | 22 -- 1 f

[PATCH RFC 05/11] drm: bridge/dw_hdmi: introduce interface to setting sample rate

2015-03-30 Thread Russell King
Introduce dw_hdmi_set_sample_rate(), which allows us to configure the audio sample rate, setting the CTS/N values appropriately. Signed-off-by: Russell King --- drivers/gpu/drm/bridge/dw_hdmi.c | 10 ++ include/drm/bridge/dw_hdmi.h | 5 + 2 files changed, 15 insertions(+) diff

[PATCH RFC 09/11] sound/core: add IEC958 channel status helper

2015-03-30 Thread Russell King
Add a helper to create the IEC958 channel status from an ALSA snd_pcm_runtime structure, taking account of the sample rate. Signed-off-by: Russell King --- include/sound/pcm_iec958.h | 9 ++ sound/core/Kconfig | 3 ++ sound/core/Makefile| 2 ++ sound/core/pcm_iec958.c

[PATCH RFC 11/11] drm: bridge/dw_hdmi-ahb-audio: parse ELD from HDMI driver

2015-03-30 Thread Russell King
: Russell King --- drivers/gpu/drm/bridge/Kconfig | 1 + drivers/gpu/drm/bridge/dw_hdmi-ahb-audio.c | 6 ++ drivers/gpu/drm/bridge/dw_hdmi-ahb-audio.h | 1 + drivers/gpu/drm/bridge/dw_hdmi.c | 3 +++ 4 files changed, 11 insertions(+) diff --git a/drivers/gpu/drm/bridge/Kconfig

[PATCH] drm/i2c: tda998x: use drm_hdmi_avi_infoframe_from_display_mode()

2015-03-30 Thread Russell King
Make use of the DRM HDMI AVI infoframe helper to construct the AVI infoframe, rather than coding this up ourselves. This allows DRM to supply proper aspect ratio information derived from the DRM display mode structure. Signed-off-by: Russell King --- I noticed this helper in the kernel over the

[PATCH RFC 02/11] drm: bridge/dw_hdmi: use drm_hdmi_avi_infoframe_from_display_mode()

2015-03-30 Thread Russell King
Use drm_hdmi_avi_infoframe_from_display_mode() to compose the AVI frame. Signed-off-by: Russell King --- drivers/gpu/drm/bridge/dw_hdmi.c | 126 +-- 1 file changed, 67 insertions(+), 59 deletions(-) diff --git a/drivers/gpu/drm/bridge/dw_hdmi.c b/drivers/gpu

[GIT PULL] Armada DRM development updates development updates

2015-05-09 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 cleanups from Rickard Strandqvist to remove some unuse

[GIT PULL] TDA998x I2C driver development updates

2015-05-09 Thread Russell King
. This will update the following files: drivers/gpu/drm/i2c/tda998x_drv.c | 26 ++ 1 file changed, 14 insertions(+), 12 deletions(-) through these changes: Russell King (1): drm/i2c: tda998x: use drm_hdmi_avi_infoframe_from_display_mode() Many thanks.

[PATCH 03/13] drm: bridge/dw_hdmi: clean up hdmi_set_clk_regenerator()

2015-05-09 Thread Russell King
Clean up hdmi_set_clk_regenerator() by allowing it to take the audio sample rate and ratio directly, rather than hiding it inside the function. Raise the unsupported pixel clock/sample rate message from debug to error level as this results in audio not working correctly. Signed-off-by: Russell

[PATCH 04/13] drm: bridge/dw_hdmi: use drm_hdmi_avi_infoframe_from_display_mode()

2015-05-09 Thread Russell King
Use drm_hdmi_avi_infoframe_from_display_mode() to compose the AVI frame. Signed-off-by: Russell King --- drivers/gpu/drm/bridge/dw_hdmi.c | 126 +-- 1 file changed, 67 insertions(+), 59 deletions(-) diff --git a/drivers/gpu/drm/bridge/dw_hdmi.c b/drivers/gpu

[PATCH 05/13] drm: bridge/dw_hdmi: simplify hdmi_config_AVI() a little

2015-05-09 Thread Russell King
When a YCBCR format is selected, we can merely copy the colorimetry information directly as we use the same definitions for both the unpacked AVI info frame and the hdmi_data_info structure. Signed-off-by: Russell King --- drivers/gpu/drm/bridge/dw_hdmi.c | 5 + 1 file changed, 1 insertion

[PATCH 10/13] sound/core: add DRM ELD helper

2015-05-09 Thread Russell King
Add a helper for the EDID like data structure, which is typically passed from a HDMI adapter to its associated audio driver. This informs the audio driver of the capabilities of the attached HDMI sink. Signed-off-by: Russell King --- include/sound/pcm_drm_eld.h | 6 +++ sound/core/Kconfig

[PATCH 13/13] drm: bridge/dw_hdmi-ahb-audio: parse ELD from HDMI driver

2015-05-09 Thread Russell King
: Russell King --- drivers/gpu/drm/bridge/Kconfig | 1 + drivers/gpu/drm/bridge/dw_hdmi-ahb-audio.c | 6 ++ drivers/gpu/drm/bridge/dw_hdmi-ahb-audio.h | 1 + drivers/gpu/drm/bridge/dw_hdmi.c | 3 +++ 4 files changed, 11 insertions(+) diff --git a/drivers/gpu/drm/bridge/Kconfig

[PATCH 06/13] drm: bridge/dw_hdmi: remove mhsyncpolarity/mvsyncpolarity/minterlaced

2015-05-09 Thread Russell King
Remove the struct hdmi_vmode mhsyncpolarity/mvsyncpolarity/minterlaced members, which are only used within a single function. We can directly reference the appropriate mode->flags instead. Signed-off-by: Russell King --- drivers/gpu/drm/bridge/dw_hdmi.c | 22 -- 1 f

[PATCH 07/13] drm: bridge/dw_hdmi: introduce interface to setting sample rate

2015-05-09 Thread Russell King
Introduce dw_hdmi_set_sample_rate(), which allows us to configure the audio sample rate, setting the CTS/N values appropriately. Signed-off-by: Russell King --- drivers/gpu/drm/bridge/dw_hdmi.c | 10 ++ include/drm/bridge/dw_hdmi.h | 5 + 2 files changed, 15 insertions(+) diff

[PATCH 09/13] drm/edid: add function to help find SADs

2015-05-09 Thread Russell King
Add a function to find the start of the SADs in the ELD. This complements the helper to retrieve the SAD count. Signed-off-by: Russell King --- include/drm/drm_edid.h | 19 +++ 1 file changed, 19 insertions(+) diff --git a/include/drm/drm_edid.h b/include/drm/drm_edid.h index

[PATCH 02/13] drm: bridge/dw_hdmi: clean up phy configuration

2015-05-09 Thread Russell King
register. Move all these lookups to the start of this function instead, so we can check that all lookups were successful before beginning to program the phy. Signed-off-by: Russell King --- drivers/gpu/drm/bridge/dw_hdmi.c | 68 +--- 1 file changed, 35 insertions

[PATCH 08/13] drm: bridge/dw_hdmi: introduce interfaces to enable and disable audio

2015-05-09 Thread Russell King
values can't race, ensuring that the audio driver calling the enable/disable functions (which are called in an atomic context) can't race with a modeset. Signed-off-by: Russell King --- drivers/gpu/drm/bridge/dw_hdmi.c | 34 +- include/drm/bridge/dw_hdmi.

[PATCH 01/13] drm: imx/dw_hdmi: move phy comments

2015-05-09 Thread Russell King
The phy comments in dw_hdmi.c applied to the iMX6 version. Move these comments to the iMX6 dw_hdmi-imx data along side the data. Signed-off-by: Russell King --- drivers/gpu/drm/bridge/dw_hdmi.c | 3 --- drivers/gpu/drm/imx/dw_hdmi-imx.c | 5 + 2 files changed, 5 insertions(+), 3 deletions

[PATCH 12/13] drm: bridge/dw_hdmi-ahb-audio: add audio driver

2015-05-09 Thread Russell King
formats for 2 to 6 channels, which we convert to its hardware format. A more desirable solution would be to have this conversion in userspace, but ALSA does not appear to allow such transformations outside of libasound itself. Signed-off-by: Russell King --- drivers/gpu/drm/bridge/Kconfig

[PATCH 11/13] sound/core: add IEC958 channel status helper

2015-05-09 Thread Russell King
Add a helper to create the IEC958 channel status from an ALSA snd_pcm_runtime structure, taking account of the sample rate and sample size. Signed-off-by: Russell King --- include/sound/pcm_iec958.h | 9 + sound/core/Kconfig | 3 ++ sound/core/Makefile| 1 + sound/core

[PATCH 1/4] component: remove old add_components method

2015-11-23 Thread Russell King
. Signed-off-by: Russell King --- drivers/base/component.c | 31 +-- include/linux/component.h | 5 - 2 files changed, 5 insertions(+), 31 deletions(-) diff --git a/drivers/base/component.c b/drivers/base/component.c index f748430bb654..2ca22738ae92 100644 --- a

[PATCH 3/4] component: track components via array rather than list

2015-11-23 Thread Russell King
which adds the component determines its position. Signed-off-by: Russell King --- drivers/base/component.c | 154 --- 1 file changed, 80 insertions(+), 74 deletions(-) diff --git a/drivers/base/component.c b/drivers/base/component.c index cd70b68d9780

[PATCH 4/4] component: add support for releasing match data

2015-11-23 Thread Russell King
: Russell King --- drivers/base/component.c | 101 ++ include/linux/component.h | 28 + 2 files changed, 87 insertions(+), 42 deletions(-) diff --git a/drivers/base/component.c b/drivers/base/component.c index d99b06b341fb..89f5cf68d80a 100644

[PATCH 2/4] component: move check for unbound master into try_to_bring_up_masters()

2015-11-23 Thread Russell King
Signed-off-by: Russell King --- drivers/base/component.c | 15 +-- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/drivers/base/component.c b/drivers/base/component.c index 2ca22738ae92..cd70b68d9780 100644 --- a/drivers/base/component.c +++ b/drivers/base/component.c @@

[PATCH] drm: imx: convert to drm_crtc_send_vblank_event()

2015-11-25 Thread Russell King
t a result of the above commit. Since we don't care about the staging versions, I've tagged this with the earliest mainline commit where we do care, even though this commit did not introduce the bug. Fixes: 6556f7f82b9c ("drm: imx: Move imx-drm driver out of staging") Signed-off

[GIT PULL] Armada DRM development updates development updates

2015-10-14 Thread Russell King
, 658 deletions(-) delete mode 100644 drivers/gpu/drm/armada/armada_output.c delete mode 100644 drivers/gpu/drm/armada/armada_output.h delete mode 100644 drivers/gpu/drm/armada/armada_slave.c delete mode 100644 drivers/gpu/drm/armada/armada_slave.h through these changes: Russell King (20):

[GIT PULL] TDA998x I2C driver development updates

2015-10-14 Thread Russell King
: Russell King (11): drm/i2c: tda998x: remove useless NULL checks drm/i2c: tda998x: report whether we actually handled the IRQ drm/i2c: tda998x: re-implement "Fix EDID read timeout on HDMI connect" drm/i2c: tda998x: convert to u8/u16/u32 types drm/i2c: tda998x:

[PATCH] drm: fix writing to /sys/class/drm/*/status

2015-06-05 Thread Russell King
nice behaviour. Fix it by returning the number of characters written to sysfs files. Signed-off-by: Russell King --- drivers/gpu/drm/drm_sysfs.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/drm_sysfs.c b/drivers/gpu/drm/drm_sysfs.c index ffc305f

[GIT PULL] TDA998x I2C driver fixes

2015-01-21 Thread Russell King
David, Please incorporate the latest TDA998x I2C driver fixes, which can be found at: git://ftp.arm.linux.org.uk/~rmk/linux-arm.git drm-tda998x-fixes with SHA1 cfe387572585216ffd452256181a719ca90b529e. This will update the following files: drivers/gpu/drm/i2c/tda998x_drv.c | 52

[GIT PULL] Armada DRM fixes fixes

2015-07-15 Thread Russell King
drm/armada/armada_overlay.c | 121 3 files changed, 78 insertions(+), 50 deletions(-) through these changes: Russell King (6): drm/armada: fix missing overlay wake-up drm/armada: fix incorrect overlay plane cleanup drm/armada: fix gem object free af

[GIT PULL] Synopsis DesignWare HDMI driver development updates

2015-07-15 Thread Russell King
lude/drm/bridge/dw_hdmi.h | 7 + include/drm/drm_edid.h| 19 +++ 4 files changed, 198 insertions(+), 130 deletions(-) through these changes: Russell King (11): drm: imx/dw_hdmi: move phy comments drm: bridge/dw_hdmi: clean up phy configuration drm: bridge/dw

[GIT PULL] Synopsis DesignWare HDMI driver development updates

2015-10-15 Thread Russell King
/gpu/drm/bridge/dw_hdmi-audio.h through these changes: Russell King (13): gpu: imx: simplify sync polarity setting gpu: imx: fix support for interlaced modes drm: bridge/dw_hdmi: add support for interlaced video modes drm: bridge/dw_hdmi: add connector mode forcing drm

[GIT PULL] Armada DRM development updates development updates

2015-12-22 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 0b8ebeacf5ef43a467c7ec5400ccc1ffc3fbdfba. These are the patches from Daniel Vetter, getting rid of struct_mu

[GIT PULL] TDA998x I2C driver development updates

2015-12-22 Thread Russell King
David, Please incorporate the latest TDA998x I2C driver development updates, which can be found at: git://ftp.arm.linux.org.uk/~rmk/linux-arm.git drm-tda998x-devel with SHA1 9736e988d32807d5a186c722928a97f37346fec8. These changes from Liviu add support for atomic mode setting, add the TMDS cl

[GIT PULL] TDA998x I2C driver updates

2015-02-27 Thread Russell King
-- 1 file changed, 31 insertions(+), 70 deletions(-) through these changes: Julia Lawall (1): drm/i2c: tda998x: fix misspelling of current function in string Laurent Pinchart (1): drm/i2c: tda998x: use drm_do_get_edid() Russell King (1): drm/i2c

Best practice device tree design for display subsystems/DRM

2013-07-02 Thread Russell King
model people to be unsafe. This is why I will not adopt such a solution for my driver; it is a bad design. -- Russell King

Best practice device tree design for display subsystems/DRM

2013-07-02 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 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 s

Best practice device tree design for display subsystems/DRM

2013-07-02 Thread Russell King
ices. I'm actually starting to come towards the conclusion that we should go for the easiest solution, which is the one I just mentioned, and forget trying to combine these devices into one super DRM driver. -- Russell King

Best practice device tree design for display subsystems/DRM

2013-07-02 Thread Russell King
part.) Such a thing could be turned into a generic 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

Best practice device tree design for display subsystems/DRM

2013-07-02 Thread Russell King
o we have enough people with sufficient knowledge and willingness to be able to make all that happen? I don't think we do, and I don't see that there's any funding out there to make such a project happen, which would make it a volunteer/spare time effort. -- Russell King

Best practice device tree design for display subsystems/DRM

2013-07-03 Thread Russell King
ot "describing the hardware" to put into DT that LCD0, DCON, and the HDMI transceiver are all connected together and therefore are required? One of the points of DT after all is that it can and should be used to represent the relationship between devices. No - using the tree approach doesn't work, because LCD0, LCD1 and DCON are all on the same physical bus, but are themselves connected together. If you like, there are multiple heirarchies here - there's the bus heirarchy, and then there's the device heirarchy. Both of these heirarchies need to be represented in DT, otherwise you're not describing the hardware properly. -- Russell King

Best practice device tree design for display subsystems/DRM

2013-07-03 Thread Russell King
em which we're having with DRM. -- Russell King

Best practice device tree design for display subsystems/DRM

2013-07-03 Thread Russell King
t the LCD panel because the driver doesn't know that there's a LCD panel also connected? This is why I feel that the hotplug idea is actually rather unsafe, and if we go down that path we're building in that risk. (And I think the OLPC guys may be have exactly that kind of setup...) -- Russell King

Best practice device tree design for display subsystems/DRM

2013-07-03 Thread Russell King
of details, and we've firmly decided that this is the wrong approach. Today, there is a very strong push 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

Best practice device tree design for display subsystems/DRM

2013-07-04 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 Linu

Best practice device tree design for display subsystems/DRM

2013-07-04 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 > > ou

Best practice device tree design for display subsystems/DRM

2013-07-04 Thread Russell King
unteering? :) I don't think that Sebastian nor myself have either the motivation 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

Best practice device tree design for display subsystems/DRM

2013-07-05 Thread Russell King
s to register their devices OF node plus "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

[PATCH RFC 2/8] DRM: Armada: Add Armada DRM driver

2013-06-09 Thread Russell King
overlay on each LCD crt - page flipping of the main scanout buffers Included in this commit is the core driver with no output support; output support is platform and encoder driver dependent. Signed-off-by: Russell King --- drivers/gpu/drm/Kconfig |2 + drivers/gpu/drm

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

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

2013-06-09 Thread Russell King
0x12. 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 --- drivers/gpu/drm/i2c/tda998x_drv.c |4 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/drivers/gpu/drm/i2c/tda998x_

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

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

2013-06-09 Thread Russell King
Signed-off-by: Russell King --- 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/gpu/drm/i2c/tda998x_drv.c

[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 --- 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 a/drivers/gpu/drm/i2c

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

2013-06-09 Thread Russell King
Signed-off-by: Russell King --- 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/gpu/drm/armada/Kconfig

[PATCH RFC v3 1/4] DRM: Armada: Add Armada DRM driver

2013-06-10 Thread Russell King
overlay on each LCD crt - page flipping of the main scanout buffers Included in this commit is the core driver with no output support; output support is platform and encoder driver dependent. Signed-off-by: Russell King --- drivers/gpu/drm/Kconfig |2 + drivers/gpu/drm

[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 --- 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/drivers/gpu/drm/armada

[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 --- drivers/gpu/drm/armada/Kconfig |7 + drivers/gpu/drm/armada/armada_crtc.c | 201 ++ drivers/gpu/drm/armada/armada_crtc.h |8 ++ 3

[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 --- 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 --git a/drivers/gpu/drm/armada

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