[PATCH 2/4] drm/exynos: init kms poll at the end of initialization

2014-10-10 Thread Andrzej Hajda
HPD events can be generated by components even if drm_dev is not fully initialized, to skip such events kms poll initialization should be performed at the end of load callback followed directly by forced connection detection. Signed-off-by: Andrzej Hajda a.ha...@samsung.com --- drivers/gpu/drm

[PATCH 0/4] drm/exynos: misc fixes

2014-10-10 Thread Andrzej Hajda
patches: drm/exynos: remove explicit encoder/connector de-initialization drm/exynos: init vblank with real number of crtcs drm/exynos: remove ifdeferry from initialization code It has been tested on trats board. [1]: https://lkml.org/lkml/2014/10/2/154 Regards Andrzej Andrzej

[PATCH 4/4] drm/exynos: correct connector-dpms field before resuming

2014-10-10 Thread Andrzej Hajda
During system suspend after connector switch off its dpms field is set to connector previous dpms state. To properly resume dpms field should be set to its actual state (off) before resuming to previous dpms state. Signed-off-by: Andrzej Hajda a.ha...@samsung.com --- drivers/gpu/drm/exynos

[PATCH 1/4] drm/exynos: propagate plane initialization errors

2014-10-10 Thread Andrzej Hajda
In case of error during plane initialization load callback incorrectly return success, this patch fixes it. Signed-off-by: Andrzej Hajda a.ha...@samsung.com --- drivers/gpu/drm/exynos/exynos_drm_drv.c | 7 +-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm

[PATCH 3/4] drm/exynos: enable vblank after DPMS on

2014-10-10 Thread Andrzej Hajda
Before DPMS off driver disables vblank. It should be balanced by vblank enable after DPMS on. The patch fixes issue with page_flip ioctl not being able to acquire vblank counter introduced by patch: drm: Always reject drm_vblank_get() after drm_vblank_off() Signed-off-by: Andrzej Hajda a.ha

Re: [PATCH] drm/exynos: fix vblank handling during dpms off

2014-10-10 Thread Andrzej Hajda
On 10/02/2014 12:52 PM, Inki Dae wrote: On 2014년 10월 02일 17:58, Joonyoung Shim wrote: Hi Andrzej, On 10/01/2014 05:14 PM, Andrzej Hajda wrote: The patch disables vblanks during dpms off only if pagefilp has not been finished. It also replaces drm_vblank_off with drm_crtc_vblank_put

Re: [RFC 1/2] core: Add generic object registry implementation

2014-11-05 Thread Andrzej Hajda
On 11/04/2014 05:29 PM, Thierry Reding wrote: From: Thierry Reding tred...@nvidia.com Add a generic implementation of an object registry. This targets drivers and subsystems that provide auxiliary objects that other drivers need to look up. The goal is to put the difficult parts (keep object

Re: [RFC 1/2] core: Add generic object registry implementation

2014-11-05 Thread Andrzej Hajda
On 11/05/2014 03:04 PM, Thierry Reding wrote: On Wed, Nov 05, 2014 at 01:36:24PM +0100, Andrzej Hajda wrote: On 11/04/2014 05:29 PM, Thierry Reding wrote: From: Thierry Reding tred...@nvidia.com Add a generic implementation of an object registry. This targets drivers and subsystems

Re: [PATCH] drm/panel: ld9040: Update calls to gpiod_get*()

2014-11-05 Thread Andrzej Hajda
On 11/06/2014 04:32 AM, Alexandre Courbot wrote: On Thu, Oct 23, 2014 at 6:45 PM, Andrzej Hajda a.ha...@samsung.com wrote: On 10/23/2014 10:16 AM, Alexandre Courbot wrote: Add the new flags argument to calls of (devm_)gpiod_get*() and remove any direction setting code afterwards. Currently

[RFC 00/15] Resource tracking/allocation framework

2014-12-10 Thread Andrzej Hajda
-exynos.git/log/?h=exynos-drm-next Regards Andrzej Andrzej Hajda (15): drivers/base: add track framework drivers/base: add restrack framework drm/panel: add restrack support regulator: add restrack support gpio: move DT parsing code to separate functions gpio: add restrack support clk: add

[RFC 05/15] gpio: move DT parsing code to separate functions

2014-12-10 Thread Andrzej Hajda
The patch moves Device Tree parsing logic to separate function. Signed-off-by: Andrzej Hajda a.ha...@samsung.com --- drivers/gpio/gpiolib-of.c | 59 +-- drivers/gpio/gpiolib.c| 33 +++--- drivers/gpio/gpiolib.h| 4 ++-- 3

[RFC 15/15] drm/panel/ld9040: convert to restrack API

2014-12-10 Thread Andrzej Hajda
, - simplified initialization. Signed-off-by: Andrzej Hajda a.ha...@samsung.com --- drivers/gpu/drm/panel/panel-ld9040.c | 41 ++-- 1 file changed, 20 insertions(+), 21 deletions(-) diff --git a/drivers/gpu/drm/panel/panel-ld9040.c b/drivers/gpu/drm/panel/panel-ld9040.c index

[RFC 12/15] drm/exynos/dpi: use common of_graph functions

2014-12-10 Thread Andrzej Hajda
The patch removes private of_graph functions and uses common ones. Signed-off-by: Andrzej Hajda a.ha...@samsung.com --- drivers/gpu/drm/exynos/exynos_drm_dpi.c | 117 +++- 1 file changed, 24 insertions(+), 93 deletions(-) diff --git a/drivers/gpu/drm/exynos

[RFC 14/15] drm/panel/ld9040: do not power off panel on removal

2014-12-10 Thread Andrzej Hajda
Panel is powered off already by connector during drm_panel_remove call. Signed-off-by: Andrzej Hajda a.ha...@samsung.com --- drivers/gpu/drm/panel/panel-ld9040.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/gpu/drm/panel/panel-ld9040.c b/drivers/gpu/drm/panel/panel-ld9040.c index

[RFC 11/15] drm/exynos/dsi: convert to restrack API

2014-12-10 Thread Andrzej Hajda
it, - simplified initialization. Signed-off-by: Andrzej Hajda a.ha...@samsung.com --- drivers/gpu/drm/exynos/exynos_drm_dsi.c | 52 + 1 file changed, 21 insertions(+), 31 deletions(-) diff --git a/drivers/gpu/drm/exynos/exynos_drm_dsi.c b/drivers/gpu/drm/exynos

[RFC 08/15] clk: add restrack support

2014-12-10 Thread Andrzej Hajda
Clocks supports different methods of lookup. The patch adds restrack support only to DT based clocks. Signed-off-by: Andrzej Hajda a.ha...@samsung.com --- drivers/clk/clk.c| 6 drivers/clk/clkdev.c | 74 include/linux/clk.h

[RFC 13/15] drm/exynos/dpi: convert to restrack API

2014-12-10 Thread Andrzej Hajda
to late initcall, unless other components delays it, - it starts/stops tracking panel presence only when necessary. Signed-off-by: Andrzej Hajda a.ha...@samsung.com --- drivers/gpu/drm/exynos/exynos_drm_dpi.c | 80 +++- drivers/gpu/drm/exynos/exynos_drm_fimd.c | 7

[RFC 10/15] drm/exynos/dsi: simplify hotplug code

2014-12-10 Thread Andrzej Hajda
from unbind code. Signed-off-by: Andrzej Hajda a.ha...@samsung.com --- drivers/gpu/drm/exynos/exynos_drm_dsi.c | 61 - 1 file changed, 38 insertions(+), 23 deletions(-) diff --git a/drivers/gpu/drm/exynos/exynos_drm_dsi.c b/drivers/gpu/drm/exynos/exynos_drm_dsi.c

[RFC 09/15] phy: add restrack support

2014-12-10 Thread Andrzej Hajda
PHYs supports different methods of lookup. The patch adds restrack support only to DT based PHYs. Signed-off-by: Andrzej Hajda a.ha...@samsung.com --- drivers/phy/phy-core.c | 90 include/linux/phy/phy.h | 3 ++ include/linux/restrack.h | 1

[RFC 01/15] drivers/base: add track framework

2014-12-10 Thread Andrzej Hajda
should be used in process context. Signed-off-by: Andrzej Hajda a.ha...@samsung.com --- drivers/base/Makefile | 2 +- drivers/base/track.c | 241 ++ include/linux/track.h | 148 +++ 3 files changed, 390 insertions(+), 1

[RFC 06/15] gpio: add restrack support

2014-12-10 Thread Andrzej Hajda
GPIO supports different methods of lookup. The patch adds restrack support only to DT based GPIOs. Signed-off-by: Andrzej Hajda a.ha...@samsung.com --- drivers/gpio/gpiolib.c| 81 +++ include/linux/gpio/consumer.h | 4 +++ include/linux/restrack.h

[RFC 04/15] regulator: add restrack support

2014-12-10 Thread Andrzej Hajda
Regulators supports various methods of lookup. The patch adds restrack support only to DT based regulators. Signed-off-by: Andrzej Hajda a.ha...@samsung.com --- drivers/regulator/core.c | 77 ++ include/linux/regulator/consumer.h | 10 + include

[RFC 07/15] clk: add DT parsing function

2014-12-10 Thread Andrzej Hajda
The patch adds function for parsing Device Tree to get clock specifier. The function could be ultimately used by clock core. Signed-off-by: Andrzej Hajda a.ha...@samsung.com --- drivers/clk/clkdev.c | 23 +++ 1 file changed, 23 insertions(+) diff --git a/drivers/clk/clkdev.c

[RFC 02/15] drivers/base: add restrack framework

2014-12-10 Thread Andrzej Hajda
framework + * + * Copyright (c) 2014 Samsung Electronics Co., Ltd + * Andrzej Hajda a.ha...@samsung.com + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 as + * published by the Free Software Foundation

[RFC 03/15] drm/panel: add restrack support

2014-12-10 Thread Andrzej Hajda
The patch adds Device Tree restrack support to drm/panel framework. As panels supports only Device Tree based lookup all panels can be converted to restrack. Signed-off-by: Andrzej Hajda a.ha...@samsung.com --- drivers/gpu/drm/drm_panel.c | 97

Re: [RFC PATCH 0/4] kstrdup optimization

2014-12-31 Thread Andrzej Hajda
On 12/29/2014 03:48 PM, Andrzej Hajda wrote: (...) As I have tested it on mobile platform (exynos4210-trats) it saves above 2600 string duplications. Below simple stats about the most frequent duplications: Count String 880 power 874 subsystem 130 device 126 parameters 61

Re: [PATCH] [media] s5k5baf: Add missing error check for devm_kzalloc

2015-02-05 Thread Andrzej Hajda
, struct s5k5baf_fw **fw, count -= S5K5BAG_FW_TAG_LEN; d = devm_kzalloc(dev, count * sizeof(u16), GFP_KERNEL); + if (!d) + return -ENOMEM; for (i = 0; i count; ++i) d[i] = le16_to_cpu(data[i]); Acked-by: Andrzej Hajda a.ha...@samsung.com

[RFC PATCH 3/3] ARM: dts: exynos5420: add async-bridge clock to disp1 power domain

2015-02-05 Thread Andrzej Hajda
disp1 power domain requires operational async-bridge associated with HDMI, ie its clock should be enabled during power on/off. This patch fixes broken Odroid XU3 HDMI support. Signed-off-by: Andrzej Hajda a.ha...@samsung.com --- arch/arm/boot/dts/exynos5420.dtsi | 6 -- 1 file changed, 4

[RFC PATCH 1/3] arm/exynos: add asynchronous bridge clock bindings

2015-02-05 Thread Andrzej Hajda
The patch adds bindings for clocks required by async-bridges present in the particular power domain. Signed-off-by: Andrzej Hajda a.ha...@samsung.com --- Documentation/devicetree/bindings/arm/exynos/power_domain.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Documentation/devicetree

[RFC PATCH 0/3] Fix power domains handling on exynos542x

2015-02-05 Thread Andrzej Hajda
]. It was successfully tested on OdroidXU3. [1]: http://permalink.gmane.org/gmane.linux.kernel.samsung-soc/42743 Regards Andrzej Andrzej Hajda (3): arm/exynos: add asynchronous bridge clock bindings arm/exynos/pm_domains: add support for async-bridge clocks ARM: dts: exynos5420: add async-bridge

[RFC PATCH 2/3] arm/exynos/pm_domains: add support for async-bridge clocks

2015-02-05 Thread Andrzej Hajda
Since Exynos5420 there are async-bridges (ASB) between different IPs. These bridges must be operational during power domain on/off, ie. clocks used by these bridges should be enabled. This patch enabled these clocks during domain on/off. Signed-off-by: Andrzej Hajda a.ha...@samsung.com --- arch

[RFC PATCH v2 3/3] ARM: dts: exynos5420: add async-bridge clocks to disp1 power domain

2015-02-06 Thread Andrzej Hajda
FIMD and MIXER IPs in disp1 power domain have async-bridges (to GSCALER), therefore their clocks should be enabled during power domain switch. Signed-off-by: Andrzej Hajda a.ha...@samsung.com --- Hi, This is 2nd version of the patch. After decrypting manual and discussion with Marek I guess

Re: [PATCH v2 1/2] mmc: dw_mmc: fix bug that cause 'Timeout sending command'

2015-02-12 Thread Andrzej Hajda
On 02/12/2015 03:28 AM, addy ke wrote: Hi Andrzej and Alim On 2015/2/12 07:20, Alim Akhtar wrote: Hi Andrzej, On Wed, Feb 11, 2015 at 5:28 PM, Andrzej Hajda a.ha...@samsung.com wrote: Hi Alim, On 02/11/2015 03:57 AM, Addy wrote: On 2015/02/10 23:22, Alim Akhtar wrote: Hi Addy, On Mon

Re: [PATCH v2 1/2] mmc: dw_mmc: fix bug that cause 'Timeout sending command'

2015-02-12 Thread Andrzej Hajda
On 02/12/2015 12:20 AM, Alim Akhtar wrote: Hi Andrzej, On Wed, Feb 11, 2015 at 5:28 PM, Andrzej Hajda a.ha...@samsung.com wrote: Hi Alim, On 02/11/2015 03:57 AM, Addy wrote: On 2015/02/10 23:22, Alim Akhtar wrote: Hi Addy, On Mon, Feb 9, 2015 at 12:55 PM, Addy Ke addy...@rock-chips.com

Re: [PATCHv2 1/2] drm: atmel-hlcdc: Add PM suspend/resume support

2015-02-17 Thread Andrzej Hajda
Hi Sylvain, Few comments below. On 02/12/2015 09:49 PM, Sylvain Rochet wrote: On suspend: switch off CRTC if not already suspended with runtime PM On resume: switch on CRTC if we were not already suspended from runtime PM while suspending. Signed-off-by: Sylvain Rochet

[PATCH 3/5] clk: convert clock name allocations to kstrdup_const

2015-01-12 Thread Andrzej Hajda
Clock subsystem frequently performs duplication of strings located in read-only memory section. Replacing kstrdup by kstrdup_const allows to avoid such operations. Signed-off-by: Andrzej Hajda a.ha...@samsung.com --- drivers/clk/clk.c | 12 ++-- 1 file changed, 6 insertions(+), 6

[PATCH 5/5] fs/namespace: convert devname allocation to kstrdup_const

2015-01-12 Thread Andrzej Hajda
VFS frequently performs duplication of strings located in read-only memory section. Replacing kstrdup by kstrdup_const allows to avoid such operations. Signed-off-by: Andrzej Hajda a.ha...@samsung.com --- fs/namespace.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/fs

[PATCH 1/5] mm/util: add kstrdup_const

2015-01-12 Thread Andrzej Hajda
performing conditional memory deallocation of the string. Signed-off-by: Andrzej Hajda a.ha...@samsung.com --- include/linux/string.h | 3 +++ mm/util.c | 38 ++ 2 files changed, 41 insertions(+) diff --git a/include/linux/string.h b/include/linux

[PATCH 4/5] mm/slab: convert cache name allocations to kstrdup_const

2015-01-12 Thread Andrzej Hajda
slab frequently performs duplication of strings located in read-only memory section. Replacing kstrdup by kstrdup_const allows to avoid such operations. Signed-off-by: Andrzej Hajda a.ha...@samsung.com --- mm/slab_common.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git

[PATCH 0/5] kstrdup optimization

2015-01-12 Thread Andrzej Hajda
. The patchset is based on 3.19-rc4. This patchset have been already sent to the list as RFC. Current version have following changes: - added missing export, - added kerneldocs, - constified kstrdup in VFS devname allocation. Regards Andrzej Andrzej Hajda (5): mm/util: add kstrdup_const kernfs

[PATCH 2/5] kernfs: convert node name allocation to kstrdup_const

2015-01-12 Thread Andrzej Hajda
sysfs frequently performs duplication of strings located in read-only memory section. Replacing kstrdup by kstrdup_const allows to avoid such operations. Signed-off-by: Andrzej Hajda a.ha...@samsung.com --- fs/kernfs/dir.c | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff

Re: [PATCH 0/5] kstrdup optimization

2015-01-14 Thread Andrzej Hajda
On 01/14/2015 12:37 AM, Andrew Morton wrote: On Mon, 12 Jan 2015 10:18:38 +0100 Andrzej Hajda a.ha...@samsung.com wrote: Hi, kstrdup if often used to duplicate strings where neither source neither destination will be ever modified. In such case we can just reuse the source instead

Re: [PATCH 3/5] clk: convert clock name allocations to kstrdup_const

2015-01-12 Thread Andrzej Hajda
On 01/13/2015 12:11 AM, Mike Turquette wrote: Quoting Andrzej Hajda (2015-01-12 01:18:41) Clock subsystem frequently performs duplication of strings located in read-only memory section. Replacing kstrdup by kstrdup_const allows to avoid such operations. Signed-off-by: Andrzej Hajda a.ha

Re: [PATCH v2 1/2] mmc: dw_mmc: fix bug that cause 'Timeout sending command'

2015-02-11 Thread Andrzej Hajda
Hi Alim, On 02/11/2015 03:57 AM, Addy wrote: On 2015/02/10 23:22, Alim Akhtar wrote: Hi Addy, On Mon, Feb 9, 2015 at 12:55 PM, Addy Ke addy...@rock-chips.com wrote: Because of some uncertain factors, such as worse card or worse hardware, DAT[3:0](the data lines) may be pulled down by

Re: [RFC PATCH 0/4] kstrdup optimization

2015-01-08 Thread Andrzej Hajda
Hi Andi, Andreas, Thanks for comments. On 12/30/2014 10:29 PM, Andi Kleen wrote: This symmetry issue probably could be cleanly avoided only by having kfree() itself contain such an identifying check, as you suggest (thereby slowing down kfree() performance). It actually shouldn't slow it

[PATCH v2 RESEND 3/4] ARM: dts: exynos5420: add async-bridge clocks to disp1 power domain

2015-03-12 Thread Andrzej Hajda
FIMD and MIXER IPs in disp1 power domain have async-bridges (to GSCALER), therefore their clocks should be enabled during power domain switch. Signed-off-by: Andrzej Hajda a.ha...@samsung.com Reviewed-by: Javier Martinez Canillas javier.marti...@collabora.co.uk Tested-by: Javier Martinez Canillas

[PATCH v2 RESEND 2/4] arm/exynos/pm_domains: add support for async-bridge clocks

2015-03-12 Thread Andrzej Hajda
Since Exynos5420 there are async-bridges (ASB) between different IPs. These bridges must be operational during power domain on/off, ie. clocks used by these bridges should be enabled. This patch enabled these clocks during domain on/off. Signed-off-by: Andrzej Hajda a.ha...@samsung.com Reviewed

[PATCH v2 RESEND 4/4] ARM: dts: exynos5420: add async-bridge clocks to gsc power domain

2015-03-12 Thread Andrzej Hajda
Both GSCALER IPs in gsc power domain have async-bridges (to FIMD and MIXER), therefore their clocks should be enabled during power domain switch. Signed-off-by: Andrzej Hajda a.ha...@samsung.com Reviewed-by: Javier Martinez Canillas javier.marti...@collabora.co.uk Tested-by: Javier Martinez

[PATCH v2 RESEND 1/4] arm/exynos: add asynchronous bridge clock bindings

2015-03-12 Thread Andrzej Hajda
The patch adds bindings for clocks required by async-bridges present in the particular power domain. Signed-off-by: Andrzej Hajda a.ha...@samsung.com Reviewed-by: Javier Martinez Canillas javier.marti...@collabora.co.uk Tested-by: Javier Martinez Canillas javier.marti...@collabora.co.uk

[PATCH v2 RESEND 0/4] Fix power domains handling on exynos542x

2015-03-12 Thread Andrzej Hajda
faults. The patchset is based on samsung-fixes-dt tag from kgene/linux-samsung. It was successfully tested on OdroidXU3. Regards Andrzej Andrzej Hajda (4): arm/exynos: add asynchronous bridge clock bindings arm/exynos/pm_domains: add support for async-bridge clocks ARM: dts: exynos5420: add

Re: [PATCHv3 1/2] drm: atmel-hlcdc: Add PM suspend/resume support

2015-02-23 Thread Andrzej Hajda
On 02/22/2015 06:51 PM, Sylvain Rochet wrote: On suspend: switch off CRTC if not already suspended with runtime PM On resume: switch on CRTC if we were not already suspended from runtime PM while suspending. Signed-off-by: Sylvain Rochet sylvain.roc...@finsecur.com Reviewed-by: Andrzej

Re: [PATCH 1/2] ARM: EXYNOS: Get current parent clock for power domain on/off

2015-04-03 Thread Andrzej Hajda
On 04/02/2015 02:44 PM, Krzysztof Kozlowski wrote: 2015-04-02 14:29 GMT+02:00 Javier Martinez Canillas javier.marti...@collabora.co.uk: Hello Krzysztof, On 04/02/2015 10:06 AM, Krzysztof Kozlowski wrote: Using a fixed (by DTS) parent for clocks when turning on the power domain may introduce

Re: [PATCH] drm/exynos: Fix build breakage on !DRM_EXYNOS_FIMD

2015-05-04 Thread Andrzej Hajda
Hi, On 05/04/2015 02:43 PM, Krzysztof Kozlowski wrote: 2015-05-04 20:34 GMT+09:00 Daniel Stone dan...@fooishbar.org: Hi, On 4 May 2015 at 08:43, Inki Dae inki@samsung.com wrote: On 2015년 05월 02일 13:08, Krzysztof Kozlowski wrote: Selecting CONFIG_FB_S3C disables CONFIG_DRM_EXYNOS_FIMD

Re: [PATCH] [media] s5k5baf: Convert use of __constant_cpu_to_be16 to cpu_to_be16

2015-06-08 Thread Andrzej Hajda
Reviewed-by: Andrzej Hajda a.ha...@samsung.com --- drivers/media/i2c/s5k5baf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/media/i2c/s5k5baf.c b/drivers/media/i2c/s5k5baf.c index 297ef04..7a43b55 100644 --- a/drivers/media/i2c/s5k5baf.c +++ b/drivers/media/i2c

Re: [PATCH 00/21] On-demand device registration

2015-06-10 Thread Andrzej Hajda
On 06/10/2015 12:19 PM, Tomeu Vizoso wrote: On 10 June 2015 at 09:30, Linus Walleij linus.wall...@linaro.org wrote: On Tue, Jun 2, 2015 at 12:14 PM, Tomeu Vizoso tomeu.viz...@collabora.com wrote: On 2 June 2015 at 10:48, Linus Walleij linus.wall...@linaro.org wrote: This is what systemd is

Re: [PATCH 00/13] Discover and probe dependencies

2015-06-18 Thread Andrzej Hajda
On 06/18/2015 12:36 PM, Mark Brown wrote: On Thu, Jun 18, 2015 at 11:42:01AM +0200, Andrzej Hajda wrote: There's something really messed up with how your mailer is word wrapping paragraphs, might want to check it out - it looks like it's making lines that are longer than 80 columns

Re: [PATCH 6/6] [media] s5c73m3: Remove redundant spi driver bus initialization

2015-06-23 Thread Andrzej Hajda
To: Mauro Carvalho Chehab mche...@osg.samsung.com To: Kyungmin Park kyungmin.p...@samsung.com To: Andrzej Hajda a.ha...@samsung.com To: linux-me...@vger.kernel.org Cc: linux-kernel@vger.kernel.org Reviewed-by: Andrzej Hajda a.ha...@samsung.com Regards Andrzej --- drivers/media/i2c/s5c73m3

Re: [PATCH 00/13] Discover and probe dependencies

2015-06-18 Thread Andrzej Hajda
Hi Tomeu, I have few comments about the design. On 06/17/2015 03:42 PM, Tomeu Vizoso wrote: Hi, this is another attempt at preventing deferred probe from obscuring why your devices aren't probing and from delaying to the end of the boot process the probe of the device you care the most.

Re: [RFC 1/2] drm/dsi: Create dummy DSI devices

2015-08-19 Thread Andrzej Hajda
On 06/30/2015 07:24 AM, Archit Taneja wrote: We can have devices where the data bus is MIPI DSI, but the control bus is something else (i2c, spi etc). A typical example is i2c controlled encoder bridge chips. Such devices too require passing DSI specific parameters (number of data lanes, DSI

Re: [RFC 2/2] drm/dsi: Get DSI host by DT device node

2015-08-19 Thread Andrzej Hajda
that mipi_dsi_host returned by of_find_mipi_dsi_host_by_node is still valid, or will be valid long enough. But this issue affects many kernel frameworks so I am not sure if it should block this particular patch. Reviewed-by: Andrzej Hajda a.ha...@samsung.com Regards Andrzej Signed-off-by: Archit Taneja arch

[PATCH 01/31] arch/arm/mach-lpc32xx: use kmemdup rather than duplicating its implementation

2015-08-07 Thread Andrzej Hajda
The patch was generated using fixed coccinelle semantic patch scripts/coccinelle/api/memdup.cocci [1]. [1]: http://permalink.gmane.org/gmane.linux.kernel/2014320 Signed-off-by: Andrzej Hajda a.ha...@samsung.com --- arch/arm/mach-lpc32xx/pm.c | 7 ++- 1 file changed, 2 insertions(+), 5

[PATCH 22/31] fs/ntfs: use kmemdup rather than duplicating its implementation

2015-08-07 Thread Andrzej Hajda
The patch was generated using fixed coccinelle semantic patch scripts/coccinelle/api/memdup.cocci [1]. [1]: http://permalink.gmane.org/gmane.linux.kernel/2014320 Signed-off-by: Andrzej Hajda a.ha...@samsung.com --- fs/ntfs/dir.c | 7 +++ 1 file changed, 3 insertions(+), 4 deletions(-) diff

[PATCH 18/31] scsi/aic7xxx: use kmemdup rather than duplicating its implementation

2015-08-07 Thread Andrzej Hajda
The patch was generated using fixed coccinelle semantic patch scripts/coccinelle/api/memdup.cocci [1]. [1]: http://permalink.gmane.org/gmane.linux.kernel/2014320 Signed-off-by: Andrzej Hajda a.ha...@samsung.com --- drivers/scsi/aic7xxx/aic79xx_core.c | 4 ++-- drivers/scsi/aic7xxx

[PATCH 13/31] memstick: use kmemdup rather than duplicating its implementation

2015-08-07 Thread Andrzej Hajda
The patch was generated using fixed coccinelle semantic patch scripts/coccinelle/api/memdup.cocci [1]. [1]: http://permalink.gmane.org/gmane.linux.kernel/2014320 Signed-off-by: Andrzej Hajda a.ha...@samsung.com --- drivers/memstick/core/mspro_block.c | 3 +-- 1 file changed, 1 insertion(+), 2

[PATCH 28/31] net/xfrm: use kmemdup rather than duplicating its implementation

2015-08-07 Thread Andrzej Hajda
The patch was generated using fixed coccinelle semantic patch scripts/coccinelle/api/memdup.cocci [1]. [1]: http://permalink.gmane.org/gmane.linux.kernel/2014320 Signed-off-by: Andrzej Hajda a.ha...@samsung.com --- net/xfrm/xfrm_user.c | 6 ++ 1 file changed, 2 insertions(+), 4 deletions

[PATCH 23/31] fs/ocfs2: use kmemdup rather than duplicating its implementation

2015-08-07 Thread Andrzej Hajda
The patch was generated using fixed coccinelle semantic patch scripts/coccinelle/api/memdup.cocci [1]. [1]: http://permalink.gmane.org/gmane.linux.kernel/2014320 Signed-off-by: Andrzej Hajda a.ha...@samsung.com --- fs/ocfs2/localalloc.c | 6 ++ 1 file changed, 2 insertions(+), 4 deletions

[PATCH 29/31] sound/oxfw: use kmemdup rather than duplicating its implementation

2015-08-07 Thread Andrzej Hajda
The patch was generated using fixed coccinelle semantic patch scripts/coccinelle/api/memdup.cocci [1]. [1]: http://permalink.gmane.org/gmane.linux.kernel/2014320 Signed-off-by: Andrzej Hajda a.ha...@samsung.com --- sound/firewire/oxfw/oxfw-stream.c | 9 +++-- 1 file changed, 3 insertions

[PATCH 27/31] net/tipc: use kmemdup rather than duplicating its implementation

2015-08-07 Thread Andrzej Hajda
The patch was generated using fixed coccinelle semantic patch scripts/coccinelle/api/memdup.cocci [1]. [1]: http://permalink.gmane.org/gmane.linux.kernel/2014320 Signed-off-by: Andrzej Hajda a.ha...@samsung.com --- net/tipc/server.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff

[PATCH 10/31] clk/mmp: use kmemdup rather than duplicating its implementation

2015-08-07 Thread Andrzej Hajda
The patch was generated using fixed coccinelle semantic patch scripts/coccinelle/api/memdup.cocci [1]. [1]: http://permalink.gmane.org/gmane.linux.kernel/2014320 Signed-off-by: Andrzej Hajda a.ha...@samsung.com --- drivers/clk/mmp/clk-mix.c | 7 +++ 1 file changed, 3 insertions(+), 4

[PATCH 11/31] cpufreq/sfi: use kmemdup rather than duplicating its implementation

2015-08-07 Thread Andrzej Hajda
The patch was generated using fixed coccinelle semantic patch scripts/coccinelle/api/memdup.cocci [1]. [1]: http://permalink.gmane.org/gmane.linux.kernel/2014320 Signed-off-by: Andrzej Hajda a.ha...@samsung.com --- drivers/cpufreq/sfi-cpufreq.c | 4 +--- 1 file changed, 1 insertion(+), 3

[PATCH 04/31] arch/mips/bcm47xx: use kmemdup rather than duplicating its implementation

2015-08-07 Thread Andrzej Hajda
The patch was generated using fixed coccinelle semantic patch scripts/coccinelle/api/memdup.cocci [1]. [1]: http://permalink.gmane.org/gmane.linux.kernel/2014320 Signed-off-by: Andrzej Hajda a.ha...@samsung.com --- arch/mips/bcm47xx/buttons.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions

[PATCH 30/31] sound/atom: use kmemdup rather than duplicating its implementation

2015-08-07 Thread Andrzej Hajda
The patch was generated using fixed coccinelle semantic patch scripts/coccinelle/api/memdup.cocci [1]. [1]: http://permalink.gmane.org/gmane.linux.kernel/2014320 Signed-off-by: Andrzej Hajda a.ha...@samsung.com --- sound/soc/intel/atom/sst/sst_ipc.c | 3 +-- 1 file changed, 1 insertion(+), 2

[PATCH 09/31] crypto: use kmemdup rather than duplicating its implementation

2015-08-07 Thread Andrzej Hajda
The patch was generated using fixed coccinelle semantic patch scripts/coccinelle/api/memdup.cocci [1]. [1]: http://permalink.gmane.org/gmane.linux.kernel/2014320 Signed-off-by: Andrzej Hajda a.ha...@samsung.com --- crypto/echainiv.c | 7 ++- crypto/seqiv.c| 6 ++ 2 files changed, 4

[PATCH 25/31] fs/ubifs: use kmemdup rather than duplicating its implementation

2015-08-07 Thread Andrzej Hajda
The patch was generated using fixed coccinelle semantic patch scripts/coccinelle/api/memdup.cocci [1]. [1]: http://permalink.gmane.org/gmane.linux.kernel/2014320 Signed-off-by: Andrzej Hajda a.ha...@samsung.com --- fs/ubifs/lpt.c | 6 ++ fs/ubifs/tnc.c | 3 +-- 2 files changed, 3 insertions

[PATCH 31/31] sound/soc: use kmemdup rather than duplicating its implementation

2015-08-07 Thread Andrzej Hajda
The patch was generated using fixed coccinelle semantic patch scripts/coccinelle/api/memdup.cocci [1]. [1]: http://permalink.gmane.org/gmane.linux.kernel/2014320 Signed-off-by: Andrzej Hajda a.ha...@samsung.com --- sound/soc/soc-topology.c | 6 +++--- 1 file changed, 3 insertions(+), 3

[PATCH 16/31] net/cavium/liquidio: use kmemdup rather than duplicating its implementation

2015-08-07 Thread Andrzej Hajda
The patch was generated using fixed coccinelle semantic patch scripts/coccinelle/api/memdup.cocci [1]. [1]: http://permalink.gmane.org/gmane.linux.kernel/2014320 Signed-off-by: Andrzej Hajda a.ha...@samsung.com --- drivers/net/ethernet/cavium/liquidio/octeon_device.c | 4 +--- 1 file changed, 1

[PATCH 17/31] scsi/aacraid: use kmemdup rather than duplicating its implementation

2015-08-07 Thread Andrzej Hajda
The patch was generated using fixed coccinelle semantic patch scripts/coccinelle/api/memdup.cocci [1]. [1]: http://permalink.gmane.org/gmane.linux.kernel/2014320 Signed-off-by: Andrzej Hajda a.ha...@samsung.com --- drivers/scsi/aacraid/commctrl.c | 7 +++ 1 file changed, 3 insertions(+), 4

[PATCH 15/31] misc/vmw_vmci: use kmemdup rather than duplicating its implementation

2015-08-07 Thread Andrzej Hajda
The patch was generated using fixed coccinelle semantic patch scripts/coccinelle/api/memdup.cocci [1]. [1]: http://permalink.gmane.org/gmane.linux.kernel/2014320 Signed-off-by: Andrzej Hajda a.ha...@samsung.com --- drivers/misc/vmw_vmci/vmci_datagram.c | 3 +-- 1 file changed, 1 insertion(+), 2

[PATCH 06/31] arch/powerpc/pseries: use kmemdup rather than duplicating its implementation

2015-08-07 Thread Andrzej Hajda
The patch was generated using fixed coccinelle semantic patch scripts/coccinelle/api/memdup.cocci [1]. [1]: http://permalink.gmane.org/gmane.linux.kernel/2014320 Signed-off-by: Andrzej Hajda a.ha...@samsung.com --- arch/powerpc/platforms/pseries/hotplug-memory.c | 3 +-- 1 file changed, 1

[PATCH 00/31] use kmemdup rather than duplicating its implementation

2015-08-07 Thread Andrzej Hajda
Hi, This patchset was created using fixed version of memdup.cocci semantic patch [1]. It was compile tested only. It is based on latest linux-next. [1]: http://permalink.gmane.org/gmane.linux.kernel/2014320 Regards Andrzej Andrzej Hajda (31): arch/arm/mach-lpc32xx: use kmemdup rather than

[PATCH 08/31] arch/x86/intel-mid: use kmemdup rather than duplicating its implementation

2015-08-07 Thread Andrzej Hajda
The patch was generated using fixed coccinelle semantic patch scripts/coccinelle/api/memdup.cocci [1]. [1]: http://permalink.gmane.org/gmane.linux.kernel/2014320 Signed-off-by: Andrzej Hajda a.ha...@samsung.com --- arch/x86/platform/intel-mid/sfi.c | 3 +-- 1 file changed, 1 insertion(+), 2

[PATCH 19/31] staging/lustre: use kmemdup rather than duplicating its implementation

2015-08-07 Thread Andrzej Hajda
The patch was generated using fixed coccinelle semantic patch scripts/coccinelle/api/memdup.cocci [1]. [1]: http://permalink.gmane.org/gmane.linux.kernel/2014320 Signed-off-by: Andrzej Hajda a.ha...@samsung.com --- drivers/staging/lustre/lustre/obdclass/acl.c | 6 ++ 1 file changed, 2

[PATCH 24/31] fs/omfs: use kmemdup rather than duplicating its implementation

2015-08-07 Thread Andrzej Hajda
The patch was generated using fixed coccinelle semantic patch scripts/coccinelle/api/memdup.cocci [1]. [1]: http://permalink.gmane.org/gmane.linux.kernel/2014320 Signed-off-by: Andrzej Hajda a.ha...@samsung.com --- fs/omfs/inode.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff

[PATCH 07/31] arch/x86/microcode: use kmemdup rather than duplicating its implementation

2015-08-07 Thread Andrzej Hajda
The patch was generated using fixed coccinelle semantic patch scripts/coccinelle/api/memdup.cocci [1]. [1]: http://permalink.gmane.org/gmane.linux.kernel/2014320 Signed-off-by: Andrzej Hajda a.ha...@samsung.com --- arch/x86/kernel/cpu/microcode/amd.c | 4 +--- arch/x86/kernel/cpu

[PATCH 21/31] fs/dlm: use kmemdup rather than duplicating its implementation

2015-08-07 Thread Andrzej Hajda
The patch was generated using fixed coccinelle semantic patch scripts/coccinelle/api/memdup.cocci [1]. [1]: http://permalink.gmane.org/gmane.linux.kernel/2014320 Signed-off-by: Andrzej Hajda a.ha...@samsung.com --- fs/dlm/lowcomms.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff

[PATCH 26/31] net/sched: use kmemdup rather than duplicating its implementation

2015-08-07 Thread Andrzej Hajda
The patch was generated using fixed coccinelle semantic patch scripts/coccinelle/api/memdup.cocci [1]. [1]: http://permalink.gmane.org/gmane.linux.kernel/2014320 Signed-off-by: Andrzej Hajda a.ha...@samsung.com --- net/sched/act_bpf.c | 4 +--- net/sched/cls_bpf.c | 4 +--- 2 files changed, 2

[PATCH 02/31] arch/ia64/tioce: use kmemdup rather than duplicating its implementation

2015-08-07 Thread Andrzej Hajda
The patch was generated using fixed coccinelle semantic patch scripts/coccinelle/api/memdup.cocci [1]. [1]: http://permalink.gmane.org/gmane.linux.kernel/2014320 Signed-off-by: Andrzej Hajda a.ha...@samsung.com --- arch/ia64/sn/pci/tioce_provider.c | 4 ++-- 1 file changed, 2 insertions(+), 2

[PATCH 20/31] fs/cifs: use kmemdup rather than duplicating its implementation

2015-08-07 Thread Andrzej Hajda
The patch was generated using fixed coccinelle semantic patch scripts/coccinelle/api/memdup.cocci [1]. [1]: http://permalink.gmane.org/gmane.linux.kernel/2014320 Signed-off-by: Andrzej Hajda a.ha...@samsung.com --- fs/cifs/smb2pdu.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions

[PATCH 12/31] drm/amdgpu: use kmemdup rather than duplicating its implementation

2015-08-07 Thread Andrzej Hajda
The patch was generated using fixed coccinelle semantic patch scripts/coccinelle/api/memdup.cocci [1]. [1]: http://permalink.gmane.org/gmane.linux.kernel/2014320 Signed-off-by: Andrzej Hajda a.ha...@samsung.com --- drivers/gpu/drm/amd/amdgpu/amdgpu_object.c | 4 +--- 1 file changed, 1 insertion

[PATCH 14/31] message/fusion: use kmemdup rather than duplicating its implementation

2015-08-07 Thread Andrzej Hajda
The patch was generated using fixed coccinelle semantic patch scripts/coccinelle/api/memdup.cocci [1]. [1]: http://permalink.gmane.org/gmane.linux.kernel/2014320 Signed-off-by: Andrzej Hajda a.ha...@samsung.com --- drivers/message/fusion/mptbase.c | 3 +-- 1 file changed, 1 insertion(+), 2

[PATCH 03/31] arch/m68k/bootinfo: use kmemdup rather than duplicating its implementation

2015-08-07 Thread Andrzej Hajda
The patch was generated using fixed coccinelle semantic patch scripts/coccinelle/api/memdup.cocci [1]. [1]: http://permalink.gmane.org/gmane.linux.kernel/2014320 Signed-off-by: Andrzej Hajda a.ha...@samsung.com --- arch/m68k/kernel/bootinfo_proc.c | 4 +--- 1 file changed, 1 insertion(+), 3

[PATCH 05/31] arch/powerpc/nvram: use kmemdup rather than duplicating its implementation

2015-08-07 Thread Andrzej Hajda
The patch was generated using fixed coccinelle semantic patch scripts/coccinelle/api/memdup.cocci [1]. [1]: http://permalink.gmane.org/gmane.linux.kernel/2014320 Signed-off-by: Andrzej Hajda a.ha...@samsung.com --- arch/powerpc/kernel/nvram_64.c | 3 +-- 1 file changed, 1 insertion(+), 2

[PATCH] coccinelle: memdup.cocci: fix matching rules

2015-08-06 Thread Andrzej Hajda
message. Signed-off-by: Andrzej Hajda a.ha...@samsung.com --- Hi Julia, I guess 1st and 3rd changes are OK. I am not sure about 2nd change, without it I was not able to catch cases containing unlikely macro. For example fs/ntfs/dir.c:1175: ir = kmalloc(rc, GFP_NOFS); if (unlikely(!ir)) { err

Re: [PATCH 04/19] v4l: omap3isp: fix handling platform_get_irq result

2015-11-09 Thread Andrzej Hajda
On 11/09/2015 09:16 PM, Laurent Pinchart wrote: > Hi Andrzej, > > Thank you for the patch. > > On Thursday 24 September 2015 16:00:12 Andrzej Hajda wrote: >> The function can return negative value. >> >> The problem has been detected using proposed semantic

Re: [PATCH 04/19] v4l: omap3isp: fix handling platform_get_irq result

2015-11-10 Thread Andrzej Hajda
On 11/10/2015 09:53 AM, Laurent Pinchart wrote: > Hi Andrzej, > > On Tuesday 10 November 2015 07:48:54 Andrzej Hajda wrote: >> On 11/09/2015 09:16 PM, Laurent Pinchart wrote: >>> On Thursday 24 September 2015 16:00:12 Andrzej Hajda wrote: >>>> Th

Re: [RFD] Functional dependencies between devices

2015-11-17 Thread Andrzej Hajda
Hi Rafael, Please forgive me late reply, but I have missed this thread before. On 10/27/2015 04:24 PM, Rafael J. Wysocki wrote: > Hi All, > > As discussed in the recent "On-demand device probing" thread and in a Kernel > Summit session earlier today, there is a problem with handling cases where

Re: [RFD] Functional dependencies between devices

2015-11-17 Thread Andrzej Hajda
Hi Rafael, It is just re-send of the previous message with fixed e-mail. Please forgive me late reply, but I have missed this thread before. On 10/27/2015 04:24 PM, Rafael J. Wysocki wrote: > Hi All, > > As discussed in the recent "On-demand device probing" thread and in a Kernel > Summit

Re: [RFC v2 1/5] drm/dsi: Refactor device creation

2015-10-30 Thread Andrzej Hajda
> Signed-off-by: Archit Taneja <arch...@codeaurora.org> Reviewed-by: Andrzej Hajda <a.ha...@samsung.com> Regards Andrzej > --- > drivers/gpu/drm/drm_mipi_dsi.c | 61 > +- > include/drm/drm_mipi_dsi.h | 15 +++ >

Re: [RFC v2 3/5] drm/dsi: Check for used channels

2015-10-30 Thread Andrzej Hajda
; Signed-off-by: Archit Taneja <arch...@codeaurora.org> Beside few non-blcking nitpicks. Reviewed-by: Andrzej Hajda <a.ha...@samsung.com> > --- > drivers/gpu/drm/drm_mipi_dsi.c | 26 -- > 1 file changed, 24 insertions(+), 2 deletions(-) > >

Re: [RFC v2 2/5] drm/dsi: Try to match non-DT dsi devices

2015-10-30 Thread Andrzej Hajda
> didn't want to touch that for now. > > Signed-off-by: Archit Taneja <arch...@codeaurora.org> Beside small comments below. Reviewed-by: Andrzej Hajda <a.ha...@samsung.com> > --- > drivers/gpu/drm/drm_mipi_dsi.c | 29 - > include/drm/drm_mip

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