Re: [Suggestion] kernel: 'now' may be used uninitialized in posix_cpu_timer_schedule function

2013-03-26 Thread Chen Gang
oh, sorry, it seems better to let ARM folks know about it. ;-) On 2013年03月26日 14:36, Chen Gang wrote: Hello Maintainers: compiling with EXTRA_CFLAGS=-W: make V=1 EXTRA_CFLAGS=-W ARCH=arm s3c2410_defconfig make V=1 EXTRA_CFLAGS=-W ARCH=arm menuconfig set

[PATCH] ARM:s3c24xx: beautify code, data-hwirq is unsigned long which is always = 0

2013-03-26 Thread Chen Gang
data-hwirq is unsigned long which is always = 0 Signed-off-by: Chen Gang gang.c...@asianux.com --- arch/arm/mach-s3c24xx/irq.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/arch/arm/mach-s3c24xx/irq.c b/arch/arm/mach-s3c24xx/irq.c index 5c9f8b7..143f57b 100644 ---

Re: [PATCH V5 8/9] ARM: tegra: Provide regulator to pwm-backlight

2013-03-26 Thread Thierry Reding
On Mon, Mar 25, 2013 at 06:21:52PM -0700, Andrew Chew wrote: The pwm-backlight driver now takes a mandatory regulator that is gotten during driver probe. Initialize a dummy regulator to satisfy this requirement. Signed-off-by: Andrew Chew ac...@nvidia.com Acked-by: Alexandre Courbot

Re: [PATCH v5 7/7] irqchip: s3c24xx: add devicetree support

2013-03-26 Thread Heiko Stübner
Hi Arnd, thanks again for taking the time to look at the changes. Am Montag, 25. März 2013, 23:00:46 schrieb Arnd Bergmann: On Monday 25 March 2013, Heiko Stübner wrote: Add the necessary code to initialize the interrupt controller thru devicetree data using the irqchip infrastructure.

Re: [PATCH V5 9/9] pwm_bl: Add mandatory backlight power regulator

2013-03-26 Thread Thierry Reding
On Mon, Mar 25, 2013 at 06:21:53PM -0700, Andrew Chew wrote: [...] diff --git a/Documentation/devicetree/bindings/video/backlight/pwm-backlight.txt b/Documentation/devicetree/bindings/video/backlight/pwm-backlight.txt index 1e4fc72..cb2d46a 100644 ---

Re: [RFC: PATCH v5] i2c: exynos5: add High Speed I2C controller driver

2013-03-26 Thread Wolfram Sang
+ /* CLK_DIV max is 256 */ + for (i = 0; i 256; i++) { + utemp1 = utemp0 / (i + 1); + /* SCLK_L/H max is 256 / 2 */ + if (utemp1 128) { I think TSCLK_L and TSCLK_H both can be configured upto 255.Why limiting it to 128 ? By

[PATCH] spi: spi-s3c64xx.c Remove unused argument.

2013-03-26 Thread Matthias Brugger
The pointer to the driver data is never used to get the slave controller data. We can delete the unused argument from the function. Signed-off-by: Matthias Brugger matthias@gmail.com --- drivers/spi/spi-s3c64xx.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git

[PATCH 1/1] clk: samsung: Fix compilation error

2013-03-26 Thread Sachin Kamat
Fixes the below compilation error during non-dt build. drivers/clk/samsung/clk.c: In function ‘samsung_clk_of_register_fixed_ext’: drivers/clk/samsung/clk.c:252:2: error: implicit declaration of function ‘for_each_matching_node_and_match’ [-Werror=implicit-function-declaration]

Re: [PATCH] arm:exynos5250: Restore CLK_SRC_TOP3 register via CCF

2013-03-26 Thread Tomasz Figa
Hi Prasanna, On Tuesday 26 of March 2013 10:12:15 Prasanna Kumar wrote: From: Prasanna Kumar prasanna...@samsung.com This patch adds support for restoring CLK_SRC_TOP3 register which gets modified while powergating corresponding power domains after a cycle of Suspend-to-Resume. Please

[PATCH 8/9] thermal: exynos: Parse the platform data from the device tree.

2013-03-26 Thread Amit Daniel Kachhap
This patch adds code to parse the DT based platform data like threshold temp, sensor configuration parameters like gain, reference voltages, calibration modes etc. Signed-off-by: Amit Daniel Kachhap amit.dan...@samsung.com --- .../bindings/thermal/exynos5440-thermal.txt| 93

[PATCH 9/9] ARM: dts: Add device tree node for exynos5440 TMU controller

2013-03-26 Thread Amit Daniel Kachhap
This patch adds device node for TMU controller. There are 3 instances of the controllers so 3 nodes are created. Signed-off-by: Amit Daniel Kachhap amit.dan...@samsung.com --- arch/arm/boot/dts/exynos5440.dtsi | 43 + 1 files changed, 43 insertions(+), 0

[PATCH 7/9] thermal: exynos: Add support for exynos5440 TMU sensor.

2013-03-26 Thread Amit Daniel Kachhap
This sensor registers 3 instance of the tmu controller with the thermal zone and hence reports 3 temperature output. This driver supports upto five trip points. For critical threshold the driver uses the core driver thermal framework for shutdown and for non-critical threshold it invokes the hw

[PATCH 5/9] thermal: exynos: Make the zone handling dependent on trip count

2013-03-26 Thread Amit Daniel Kachhap
This code changes the zone handling to use the trip count passed by the TMU driver. This also helps in adding more zone support. Signed-off-by: Amit Daniel Kachhap amit.dan...@samsung.com --- drivers/thermal/samsung/exynos_common.c | 56 +

[PATCH 1/9] thermal: exynos: Adapt to temperature emulation core thermal framework

2013-03-26 Thread Amit Daniel Kachhap
This removes the driver specific sysfs support of the temperature emulation and uses the newly added core thermal framework for thermal emulation. An exynos platform specific handler is added to support this. In this patch, the exynos senor(tmu) related code and exynos framework related (thermal

[PATCH 2/9] thermal: exynos: Add support for instance based register/unregister

2013-03-26 Thread Amit Daniel Kachhap
This code modifies the thermal driver to have multiple thermal zone support by replacing the global thermal zone varibale with device data member of thermal_zone_device. Signed-off-by: Amit Daniel Kachhap amit.dan...@samsung.com --- drivers/thermal/exynos_thermal.c | 65

[PATCH 6/9] thermal: exynos: small cleanups to prepare for adding exynos5440 driver

2013-03-26 Thread Amit Daniel Kachhap
Add calib mode, trigger types and trigger_enable array. This is needed for adding exynos5440 TMU driver. Signed-off-by: Amit Daniel Kachhap amit.dan...@samsung.com --- drivers/thermal/samsung/exynos4210_thermal.c | 30 include/linux/platform_data/exynos_thermal.h |

Re: [RFC 01/12] exynos-fimc-is: Adding device tree nodes

2013-03-26 Thread Arun Kumar K
Hi Sylwester, Thank you for the review. +Sensor sub-nodes: + +FIMC-IS IP supports custom built sensors to be controlled exclusively by +the FIMC-IS firmware. These sensor properties are to be defined here. [snip] Defining image sensor nodes in a standard way as ISP I2C bus controller

[PATCH v2] ARM: dts: Add SYSREG block node for S5P/Exynos4 SoC series

2013-03-26 Thread Sylwester Nawrocki
This patch adds device tree node for the SYSREG registers block found in Samsung S5P/Exynos SoC series. The SYSREG module generates control signals for the ARM CPU and various IP blocks and buses. SYSREG block registers are exposed through APB bus interface. A sysreg device tree node is to be

Re: [PATCH] spi: spi-s3c64xx.c Remove unused argument.

2013-03-26 Thread Mark Brown
On Tue, Mar 26, 2013 at 10:27:35AM +0100, Matthias Brugger wrote: The pointer to the driver data is never used to get the slave controller data. We can delete the unused argument from the function. Applied, thanks. signature.asc Description: Digital signature

[PATCH] i2c: s3c2410: Add SMBus emulation for block read

2013-03-26 Thread Prasanna Kumar
From: Jaemin Yoo jmin@samsung.com SMBus read and write are supported by the emulation layer of i2c framework if the controller doesn't have SMBus features. I2C_M_RECV_LEN flag is used to let i2c drivers know rx length is not yet determined but will be read to the first byte in rx buffer.

[PATCH 0/6] Samsung USB PHY SoC support cleanup

2013-03-26 Thread Tomasz Figa
This patch series intends to improve handling of SoC-specific differences in Samsung USB PHY drivers, by reducing the need to explicitly check SoC type using if and switch statements. In addition, last patch adds support for Exynos 4x12, as this is simply a matter of adding appropriate driver

[PATCH 1/6] usb: phy: samsung: Select common driver part implicitly

2013-03-26 Thread Tomasz Figa
Since phy-samsung-usb library can be used only by phy-samsung-usb2 and phy-samsung-usb3 drivers, there is no need to give explicit control over its Kconfig symbol. This patch makes CONFIG_SAMSUNG_USBPHY symbol hidden and selected implicitly by CONFIG_SAMSUNG_USB2PHY and CONFIG_SAMSUNG_USB3PHY.

[PATCH 2/6] usb: phy: samsung: Use clk_get to get reference clock

2013-03-26 Thread Tomasz Figa
There is no need to use devm_clk_get to get a clock that is being put at the end of the function. This patch changes the code getting reference clock to use clk_get instead of useless in this case devm_clk_get. Signed-off-by: Tomasz Figa t.f...@samsung.com Signed-off-by: Kyungmin Park

[PATCH 3/6] usb: phy: samsung: Consolidate reference clock rate handling

2013-03-26 Thread Tomasz Figa
This patch cleans up handling of reference clock rate in Samsung USB PHY drivers. It is mostly a cosmetic change but improves error handling in case of failing to get reference clock or invalid clock rate. Signed-off-by: Tomasz Figa t.f...@samsung.com Signed-off-by: Kyungmin Park

[PATCH 4/6] usb: phy: samsung: Pass set_isolation callback through driver data

2013-03-26 Thread Tomasz Figa
This patch extends driver data structure with set_isolation callback, which allows to remove the need for checking for SoC type in a switch statement. Signed-off-by: Tomasz Figa t.f...@samsung.com Signed-off-by: Kyungmin Park kyungmin.p...@samsung.com --- drivers/usb/phy/phy-samsung-usb.c | 36

[PATCH 5/6] usb: phy: samsung: Pass enable/disable callbacks through driver data

2013-03-26 Thread Tomasz Figa
To remove unnecessary if statements, this patch introduces phy_enable and phy_disable callbacks in driver data structure that implement SoC-specific PHY initialization and deinitialization. Signed-off-by: Tomasz Figa t.f...@samsung.com Signed-off-by: Kyungmin Park kyungmin.p...@samsung.com ---

[PATCH] tty: serial: samsung: Disable interrupts in a suspend-friendly way

2013-03-26 Thread Tomasz Figa
Since the interrupt mask register is not preserved across system suspend and it defaults to all interrupts enabled, it is not enough to disable UART interrupt. This patch adds free_irq to port shutdown and mask setting to port startup to handle IRQ disabling in a suspend-friendly way. In

[REVIEW PATCH 0/3] s5p-fimc driver updates

2013-03-26 Thread Sylwester Nawrocki
This patch series contains mostly conversion of the video capture node drivers to videobuf2 ioctl/fop helpers. Sylwester Nawrocki (3): s5p-fimc: Use video entity for marking media pipeline as streaming s5p-fimc: Use vb2 ioctl/fop helpers in FIMC capture driver s5p-fimc: Use vb2 ioctl

[REVIEW PATCH 1/3] s5p-fimc: Use video entity for marking media pipeline as streaming

2013-03-26 Thread Sylwester Nawrocki
It doesn't matter whether we start from the sensor of from the video node entity. Remove use of pipeline-subdevs array where possible, so we can partly drop dependency on struct fimc_pipeline in the fimc-lite module, which is also used by the exynos5-is driver. Also make sure we revert any media

[REVIEW PATCH 2/3] s5p-fimc: Use vb2 ioctl/fop helpers in FIMC capture driver

2013-03-26 Thread Sylwester Nawrocki
mmap/poll file operation and several ioctl handlers are replaced with the vb2 helper functions. Some helpers are used indirectly to maintain the buffer queue ownership. Signed-off-by: Sylwester Nawrocki s.nawro...@samsung.com Signed-off-by: Kyungmin Park kyungmin.p...@samsung.com ---

[REVIEW PATCH 3/3] s5p-fimc: Use vb2 ioctl helpers in fimc-lite

2013-03-26 Thread Sylwester Nawrocki
Replace some ioctl, file and video buffer queue operation handlers with the videobuf2 helpers. This allows to get rid of significant amount of boilerplate. Signed-off-by: Sylwester Nawrocki s.nawro...@samsung.com Signed-off-by: Kyungmin Park kyungmin.p...@samsung.com ---

[PATCH v3] of/pci: Provide support for parsing PCI DT ranges property

2013-03-26 Thread Andrew Murray
This patch factors out common implementation patterns to reduce overall kernel code and provide a means for host bridge drivers to directly obtain struct resources from the DT's ranges property without relying on architecture specific DT handling. This will make it easier to write archiecture

Re: [PATCH v2 0/7] Add G2D nodes to Exynos4 machines

2013-03-26 Thread Sachin Kamat
On 11 March 2013 12:24, Kukjin Kim kgene@samsung.com wrote: Sachin Kamat wrote: Hi Kukjin, Can you please look into this series as it is pending since quite some time. Applied, I have another opinion about the compatible string though... Couldn't find this series in your latest

[PATCH v5 0/6] Device tree support for Exynos SoC camera subsystem

2013-03-26 Thread Sylwester Nawrocki
Changes in this iteration include mostly adaptation to changes at the V4L2 OF parser lib and an addition of clocks/clock-names properties in the bindings of the IP blocks. If there is no more comments I intend to send a pull request including the DT bindings documentation, the V4L2 OF parser and

[PATCH v5 1/6] s5p-csis: Add device tree support

2013-03-26 Thread Sylwester Nawrocki
This patch support for binding the driver to the MIPI-CSIS devices instantiated from device tree and parsing the SoC and board specific properties. The MIPI CSI-2 channel is determined by the value of reg property placed in csis' port subnode. Signed-off-by: Sylwester Nawrocki

[PATCH v5 2/6] s5p-fimc: Add device tree support for FIMC device driver

2013-03-26 Thread Sylwester Nawrocki
This patch adds device tree support for FIMC driver on S5PV210 and Exynos4 SoCs. The FIMC IP block's features and quirks encoded statically in the driver are now parsed from the device tree. Once all relevant platforms are converted to device tree based booting the FIMC variant data structures

[PATCH v5 3/6] s5p-fimc: Add device tree support for FIMC-LITE device driver

2013-03-26 Thread Sylwester Nawrocki
This patch adds the device tree support for FIMC-LITE device driver. The bindings include compatible property for the Exynos5 SoC series, however the actual implementation for these SoCs will be added in a separate patch. Signed-off-by: Sylwester Nawrocki s.nawro...@samsung.com Signed-off-by:

[PATCH v5 6/6] s5p-fimc: Use pinctrl API for camera ports configuration

2013-03-26 Thread Sylwester Nawrocki
Before the camera ports can be used the pinmux needs to be configured properly. This patch adds a function to set the camera ports pinctrl to a default state within the media driver's probe(). The camera port(s) are then configured for the video bus operation. Signed-off-by: Sylwester Nawrocki

Re: [PATCH v5 0/6] Device tree support for Exynos SoC camera subsystem

2013-03-26 Thread Sylwester Nawrocki
On 03/26/2013 05:39 PM, Sylwester Nawrocki wrote: Changes in this iteration include mostly adaptation to changes at the V4L2 OF parser lib and an addition of clocks/clock-names properties in the bindings of the IP blocks. If there is no more comments I intend to send a pull request including

[PATCH v2 00/10] s5p-fimc: Exynos4x12 FIMC-IS support prerequisite

2013-03-26 Thread Sylwester Nawrocki
This patch series contains a few fixes to the s5p-fimc driver and changes necessary for the Exynos4x12 FIMC-IS support. The changes are listed at each patch, if there were any. I have removed two patches, adding support for setting parent clocks and added a patch changing the driver directory to

[PATCH v2 01/10] V4L: Add MATRIX option to V4L2_CID_EXPOSURE_METERING control

2013-03-26 Thread Sylwester Nawrocki
This patch adds a menu option to the V4L2_CID_EXPOSURE_METERING control for multi-zone metering. Signed-off-by: Sylwester Nawrocki s.nawro...@samsung.com Signed-off-by: Kyungmin Park kyungmin.p...@samsung.com --- Documentation/DocBook/media/v4l/controls.xml |7 +++

[PATCH v2 02/10] s5p-fimc: Add error checks for pipeline stream on callbacks

2013-03-26 Thread Sylwester Nawrocki
From: Andrzej Hajda a.ha...@samsung.com set_stream error for pipelines is logged or reported to user space if possible. Signed-off-by: Andrzej Hajda a.ha...@samsung.com Signed-off-by: Sylwester Nawrocki s.nawro...@samsung.com Signed-off-by: Kyungmin Park kyungmin.p...@samsung.com ---

[PATCH v2 04/10] s5p-fimc: Add support for PIXELASYNCMx clocks

2013-03-26 Thread Sylwester Nawrocki
This patch ads handling of clocks for the CAMBLK subsystem which is a glue logic for FIMC-IS or LCD controller and FIMC IP. Signed-off-by: Sylwester Nawrocki s.nawro...@samsung.com Signed-off-by: Kyungmin Park kyungmin.p...@samsung.com --- Changes since v1: - Do not keep PXLASYNC clocks always

[PATCH v2 06/10] s5p-fimc: Ensure CAMCLK clock can be enabled by FIMC-LITE devices

2013-03-26 Thread Sylwester Nawrocki
In configurations where FIMC-LITE is used to capture image signal from an external sensor only we need to ensure one of FIMC devices is in active power state and the fimc gate clock is enabled. Otherwise the CAMCLK clock output signal will be masked off preventing an external sensor's operation.

[PATCH v2 07/10] s5p-fimc: Ensure proper s_stream() call order in the ISP datapaths

2013-03-26 Thread Sylwester Nawrocki
Since the FIMC-IS firmware communicates with an image sensor directly through the ISP I2C bus controllers data streaming cannot be simply enabled from left to right or disabled from right to left along the processing pipeline. Thus a subdev index to call s_stream() on is looked up from a table,

[PATCH v2 08/10] s5p-fimc: Ensure proper s_power() call order in the ISP datapaths

2013-03-26 Thread Sylwester Nawrocki
Since the FIMC-IS firmware communicates with an image sensor directly through the ISP I2C bus controllers the sub-devices power supplies cannot be simply enabled from left to right or disabled from right to left along the processing pipeline. Thus a subdev index to call s_power() on is looked up

[PATCH v2 09/10] s5p-fimc: Remove dependency on fimc-core.h in fimc-lite driver

2013-03-26 Thread Sylwester Nawrocki
Drop fimc-lite.h header inclusion to make the exynos-fimc-lite module independent on other modules. Move struct fimc_fmt declaration to the driver's private headers as it is used in multiple modules. Reported-by: Shaik Ameer Basha shaik.am...@samsung.com Signed-off-by: Sylwester Nawrocki

[PATCH v2 10/10] s5p-fimc: Change the driver directory name to exynos4-is

2013-03-26 Thread Sylwester Nawrocki
The s5p-fimc directory now contains drivers for multiple IP blocks found in multiple Samsung application processors. This includes FIMC (CAMIF), MIPI CSIS and FIMC LITE. FIMC-IS (Imaging Subsystem) driver is going to be put into same directory. Hence we rename it to exynos4-is as s5p-fimc was only

[PATCH v2 03/10] s5p-fimc: Update graph traversal for entities with multiple source pads

2013-03-26 Thread Sylwester Nawrocki
We cannot assume that the passed entity the fimc_pipeline_prepare() function is supposed to start the media graph traversal from will always have its sink pad at pad index 0. Find the starting media entity's sink pad by iterating over its all pads and checking the pad flags. This ensures proper

[PATCH v2 05/10] s5p-fimc: Add support for ISP Writeback data input bus type

2013-03-26 Thread Sylwester Nawrocki
A second sink pad is added to each FIMC.N subdev that will be used to link it to the FIMC-IS-ISP subdev. Only V4L2_MBUS_FMT_YUV10_1X30 format is supported at this pad (FIMC_SD_PAD_SINK_FIFO). The routine checking for mismatch in the image formats at sides of the links is updated to account for

[PATCH v2 0/7] V4L2 driver for Exynos4x12 Imaging Subsystem

2013-03-26 Thread Sylwester Nawrocki
This iteration includes couple bug fixes and minor cleanup comparing to the original version (original cover letter can be found below). A patch adding ISP capture node has been removed as I'll need more time to enable this feature and I'd like to possibly have this series included in 3.10.

[PATCH v2 2/7] exynos4-is: Add FIMC-IS ISP I2C bus driver

2013-03-26 Thread Sylwester Nawrocki
This patch adds the ISP I2C bus controller driver files. Creating a standard I2C bus adapter, even if the driver doesn't actually communicates with the hardware and it is instead used by the ISP firmware running on the Cortex-A5, allows to use standard hardware description in the device tree. As

[PATCH v2 3/7] exynos4-is: Add FIMC-IS parameter region definitions

2013-03-26 Thread Sylwester Nawrocki
This patch adds ISP processing parameters interface files. Signed-off-by: Younghwan Joo yhwan@samsung.com Signed-off-by: Sylwester Nawrocki s.nawro...@samsung.com Signed-off-by: Kyungmin Park kyungmin.p...@samsung.com --- drivers/media/platform/exynos4-is/fimc-is-param.c | 971

[PATCH v2 4/7] exynos4-is: Add common FIMC-IS image sensor driver

2013-03-26 Thread Sylwester Nawrocki
This patch adds a common image sensor driver and Makefile/Kconfig to enable cpmpilation of the whole IS drives. The sensor subdev driver currently only handles an image sensor's power supplies and reset signal. There is no an I2C communication as it is handled by the ISP's firmware.

[PATCH v2 5/7] exynos4-is: Add Exynos4x12 FIMC-IS device tree bindings documentation

2013-03-26 Thread Sylwester Nawrocki
Signed-off-by: Sylwester Nawrocki s.nawro...@samsung.com Signed-off-by: Kyungmin Park kyungmin.p...@samsung.com --- .../devicetree/bindings/media/exynos4-fimc-is.txt | 45 1 file changed, 45 insertions(+) create mode 100644

[PATCH v2 7/7] s5p-fimc: Create media links for the FIMC-IS entities

2013-03-26 Thread Sylwester Nawrocki
Create disabled links from the FIMC-LITE subdevs to the FIMC-IS-ISP subdev and from FIMC-IS-ISP to all FIMC subdevs. Signed-off-by: Sylwester Nawrocki s.nawro...@samsung.com Signed-off-by: Kyungmin Park kyungmin.p...@samsung.com --- drivers/media/platform/exynos4-is/media-dev.c | 83

[PATCH v2 6/7] s5p-fimc: Add fimc-is subdevs registration

2013-03-26 Thread Sylwester Nawrocki
This patch allows to register FIMC-IS device represented by FIMC-IS-ISP subdev to the top level media device driver. The use_isp platform data structure field allows to select whether the fimc-is ISP subdev should be tried to be registered or not. Signed-off-by: Sylwester Nawrocki

[PATCH v2 0/4] exynos4-is updates

2013-03-26 Thread Sylwester Nawrocki
This patch series includes YUV order handling fix for the FIMC and FIMC-LITE, a fix for media entity ref_count issue, minor refactoring and removal of some static data that will no longer be needed since starting from 3.10 Exynos platform is going to be DT only. All dependencies of this series

[PATCH v2 1/5] exynos4-is: Remove static driver data for Exynos4210 FIMC variants

2013-03-26 Thread Sylwester Nawrocki
All Exynos4210 based boards files using FIMC are going to be removed in 3.10 and corresponding device trees are to be used instead. The FIMC variant data will be parsed directly form the device tree for those SoCs as well. Hence now unused static data is removed. Signed-off-by: Sylwester Nawrocki

[PATCH v2 2/4] exynos4-is: Allow colorspace conversion at fimc-lite

2013-03-26 Thread Sylwester Nawrocki
The FIMC-LITE output DMA allows to configure different YUV order than the order at the camera input interface. Thus there is some limited colorspace conversion possible. This patch makes the color format variable be per FIMC-LITE input/output, rather than a global per device. This also fixes

[PATCH v2 2/5] exynos4-is: Use common driver data for all FIMC-LITE IP instances

2013-03-26 Thread Sylwester Nawrocki
There is no need to use separate variant data structure for each FIMC-LITE IP instance. According to my knowledge there are no differences across them on Exynos4 as well as Exynos5 SoCs. Drop flite_variant data structure and use struct flite_drvdata instead. Signed-off-by: Sylwester Nawrocki

[PATCH v2 3/5] exynos4-is: Allow colorspace conversion at fimc-lite

2013-03-26 Thread Sylwester Nawrocki
The FIMC-LITE output DMA allows to configure different YUV order than the order at the camera input interface. Thus there is some limited colorspace conversion possible. This patch makes the color format variable be per FIMC-LITE input/output, rather than a global per device. This also fixes

[PATCH v2 3/4] exynos4-is: Correct input DMA YUV order configuration

2013-03-26 Thread Sylwester Nawrocki
This patch fixes erroneous setup of the YUV order caused by not clearing FIMC_REG_MSCTRL_ORDER422_MASK bit field before setting proper FIMC_REG_MSCTRL_ORDER422 bits. This resulted in false colors for YUYV, YVYU, UYVY, VYUY color formats, depending in what sequence those were configured by user

[PATCH v2 4/5] exynos4-is: Correct input DMA YUV order configuration

2013-03-26 Thread Sylwester Nawrocki
This patch fixes erroneous setup of the YUV order caused by not clearing FIMC_REG_MSCTRL_ORDER422_MASK bit field before setting proper FIMC_REG_MSCTRL_ORDER422 bits. This resulted in false colors for YUYV, YVYU, UYVY, VYUY color formats, depending in what sequence those were configured by user

[PATCH v2 4/4] exynos4-is: Ensure proper media pipeline state on device close

2013-03-26 Thread Sylwester Nawrocki
Make sure media_entity_pipeline_stop() is called on video device close in cases where there was VIDIOC_STREAMON ioctl and no VIDIOC_STREAMOFF. This patch fixes media entities stream_count state which could prevent links from being disconnected, due to non-zero stream_count. Signed-off-by:

Re: [PATCH v2 0/4] exynos4-is updates

2013-03-26 Thread Sylwester Nawrocki
On 03/26/2013 07:38 PM, Sylwester Nawrocki wrote: This patch series includes YUV order handling fix for the FIMC and FIMC-LITE, a fix for media entity ref_count issue, minor refactoring and removal of some static data that will no longer be needed since starting from 3.10 Exynos platform is

Re: [PATCH 4/6] pci: Add PCIe driver for Samsung Exynos

2013-03-26 Thread Rob Herring
On 03/22/2013 11:07 PM, Jingoo Han wrote: Exynos5440 has a PCIe controller which can be used as Root Complex. This driver supports a PCIe controller as Root Complex mode. Signed-off-by: Surendranath Gurivireddy Balla suren.re...@samsung.com Signed-off-by: Siva Reddy Kallam

[PATCH v6 0/7] move s3c24xx-irq to drivers/irqchip and add dt support

2013-03-26 Thread Heiko Stübner
This v6 addresses more comments from Arnd Bergmann, setting the compatible property to the first supported SoC (s3c2410) instead of using the s3c24xx wildcard. It also switches the parent-irq and controller irq in the dt irq descriptor bringing it to a format of ctrl_num parent_irq ctrl_irq

[PATCH v6 1/7] ARM: S3C24XX: move irq driver to drivers/irqchip

2013-03-26 Thread Heiko Stübner
This move is necessary to make use of the irqchip infrastructure for the following devicetree support for s3c24xx architectures. Signed-off-by: Heiko Stuebner he...@sntech.de --- arch/arm/mach-s3c24xx/Makefile |2 +- drivers/irqchip/Makefile

[PATCH v6 2/7] irqchip: s3c24xx: fix comments on some camera interrupts

2013-03-26 Thread Heiko Stübner
Might be confusing for people to read the code without having the datasheet nearby. Signed-off-by: Heiko Stuebner he...@sntech.de --- drivers/irqchip/irq-s3c24xx.c |8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/irqchip/irq-s3c24xx.c

[PATCH v6 3/7] irqchip: s3c24xx: fix irqlist of second s3c2416 controller

2013-03-26 Thread Heiko Stübner
The list in used was from the s3c2450, a close cousin of the s3c2416. As it's not possible to distinguish between the s3c2416 and s3c2450 the additional interrupts of the s3c2450 will only be available thru devicetree later. Signed-off-by: Heiko Stuebner he...@sntech.de ---

[PATCH v6 4/7] irqchip: s3c24xx: add irq_set_type callback for basic interrupt types

2013-03-26 Thread Heiko Stübner
Enables post-init setting of the desired typehandler for the interrupt. Signed-off-by: Heiko Stuebner he...@sntech.de --- drivers/irqchip/irq-s3c24xx.c | 24 1 file changed, 24 insertions(+) diff --git a/drivers/irqchip/irq-s3c24xx.c b/drivers/irqchip/irq-s3c24xx.c

[PATCH v6 5/7] irqchip: s3c24xx: globally keep track of the created intc instances

2013-03-26 Thread Heiko Stübner
For dt-enabled machines we want to use a big irq_domain over all controllers and therefore need to access not only the main controllers but the sub-controller as well. Signed-off-by: Heiko Stuebner he...@sntech.de --- drivers/irqchip/irq-s3c24xx.c | 99 +

[PATCH v6 6/7] irqchip: s3c24xx: make interrupt handling independent of irq_domain structure

2013-03-26 Thread Heiko Stübner
Keep a pointer to the corresponding s3c_irq_data struct as irq_chip_data. This removes the need to fetch the intc struct from the irq_domains host_data, thus making it independent of the underlying irq_domain structure. Also keep the real register offset of the interrupt in the s3c_irq_data

[PATCH v6 7/7] irqchip: s3c24xx: add devicetree support

2013-03-26 Thread Heiko Stübner
Add the necessary code to initialize the interrupt controller thru devicetree data using the irqchip infrastructure. Signed-off-by: Heiko Stuebner he...@sntech.de --- .../interrupt-controller/samsung,s3c24xx-irq.txt | 53 + drivers/irqchip/irq-s3c24xx.c | 231

Re: [RFC 01/12] exynos-fimc-is: Adding device tree nodes

2013-03-26 Thread Sylwester Nawrocki
On 03/26/2013 01:17 PM, Arun Kumar K wrote: +Sensor sub-nodes: + +FIMC-IS IP supports custom built sensors to be controlled exclusively by +the FIMC-IS firmware. These sensor properties are to be defined here. [snip] Defining image sensor nodes in a standard way as ISP I2C bus controller

Re: [PATCH v6 1/7] media: V4L2: add temporary clock helpers

2013-03-26 Thread Laurent Pinchart
Hello, On Tuesday 19 March 2013 10:52:29 Sylwester Nawrocki wrote: On 03/19/2013 08:32 AM, Guennadi Liakhovetski wrote: On Mon, 18 Mar 2013, Sylwester Nawrocki wrote: On 03/15/2013 10:27 PM, Guennadi Liakhovetski wrote: [...] diff --git a/drivers/media/v4l2-core/v4l2-clk.c

Re: [PATCH v6 1/7] media: V4L2: add temporary clock helpers

2013-03-26 Thread Laurent Pinchart
Hi Guennadi, On Tuesday 19 March 2013 11:27:56 Guennadi Liakhovetski wrote: On Tue, 19 Mar 2013, Sylwester Nawrocki wrote: + if (!IS_ERR(clk) !try_module_get(clk-ops-owner)) + clk = ERR_PTR(-ENODEV); + mutex_unlock(clk_lock); + + if (!IS_ERR(clk))

Re: RE: [PATCH v2 0/4] clk: samsung: pm fixes and multiple aliases

2013-03-26 Thread Mike Turquette
Quoting Kukjin Kim (2013-03-25 02:26:34) Heiko Stübner wrote: Second version of the fixes to address comments gathered from the first version, like not entering the dt code on non-dt platforms even if dt-support is present in the kernel. Patch 1 and 3 got Reviewed-by tags but I only

Re: [PATCH 4/6] pci: Add PCIe driver for Samsung Exynos

2013-03-26 Thread Jingoo Han
On Wednesday, March 27, 2013 6:33 AM, Rob Herring wrote: On 03/22/2013 11:07 PM, Jingoo Han wrote: Exynos5440 has a PCIe controller which can be used as Root Complex. This driver supports a PCIe controller as Root Complex mode. Signed-off-by: Surendranath Gurivireddy Balla

Re: [PATCH] arm:exynos5250: Restore CLK_SRC_TOP3 register via CCF

2013-03-26 Thread Mike Turquette
Quoting Tomasz Figa (2013-03-26 04:28:13) Hi Prasanna, On Tuesday 26 of March 2013 10:12:15 Prasanna Kumar wrote: From: Prasanna Kumar prasanna...@samsung.com This patch adds support for restoring CLK_SRC_TOP3 register which gets modified while powergating corresponding power domains

Re: [PATCH] [media] s5p-mfc: Change MFC clock reference w.r.t Common Clock Framework

2013-03-26 Thread Mike Turquette
Quoting Prasanna Kumar (2013-03-25 22:20:51) From: Prasanna Kumar prasanna...@samsung.com According to Common Clock framework , modified the method of getting clock for MFC Block. Signed-off-by: Prasanna Kumar prasanna...@samsung.com --- drivers/media/platform/s5p-mfc/s5p_mfc_pm.c |