[PATCH] genalloc: add best fit algorithm

2012-09-04 Thread benjamin . gaignard
From: Benjamin Gaignard Allow genalloc to use another algorithm than first-fit one. Add a best-fit algorithm. Change-Id: Ie783c9f9687c08195b4cb1914856cd6aca50c611 Signed-off-by: Benjamin Gaignard --- include/linux/genalloc.h | 28 +++ lib/genalloc.c | 85

Re: [PATCH] genalloc: make possible to use a custom allocation algorithm

2012-09-13 Thread Benjamin Gaignard
>From b78b2fea3899c5170b780f5ff138490ac6cf4cb7 Mon Sep 17 00:00:00 2001 From: Benjamin Gaignard Date: Thu, 13 Sep 2012 11:29:03 +0200 Subject: [PATCH] genalloc: make possible to use a custom allocation algorithm This patch allow to use another algorithm than the default first-fit one.

[PATCH] genalloc: make possible to use a custom allocation algorithm

2012-09-07 Thread Benjamin Gaignard
From: Benjamin Gaignard This patch allow to use another algorithm than the default first-fit one. For example a custom algorithm could be used to manage alignment requirements. Add of best-fit algorithm function: most of the time best-fit is slower then first-fit but memory fragmentation is

Re: [PATCH] genalloc: make possible to use a custom allocation algorithm

2012-09-10 Thread Benjamin Gaignard
detail about that in kerneldoc and fix the other mistakes before send a new version of this patch. Regards, Benjamin Gaignard -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://v

Re: [PATCH] genalloc: make possible to use a custom allocation algorithm

2012-09-10 Thread Benjamin Gaignard
>From e790af0773193c3c7e5950ab74fa5e1e29204ad5 Mon Sep 17 00:00:00 2001 From: Benjamin Gaignard Date: Mon, 10 Sep 2012 10:11:05 +0200 Subject: [PATCH] genalloc: make possible to use a custom allocation algorithm This patch allow to use another algorithm than the default first-fit one.

Re: [PATCH] drm/sti: mark symbols static where possible

2016-09-27 Thread Benjamin Gaignard
>plane.drm_plane; >> } >> >> -int sti_hqvdp_bind(struct device *dev, struct device *master, void *data) >> +static int sti_hqvdp_bind(struct device *dev, struct device *master, void >> *data) >> { >> struct sti_hqvdp *hqvdp = dev_get_drvdata(dev); >> struct drm_device *drm_dev = data; >> diff --git a/drivers/gpu/drm/sti/sti_mixer.c >> b/drivers/gpu/drm/sti/sti_mixer.c >> index 7d9aea8..b78cec5 100644 >> --- a/drivers/gpu/drm/sti/sti_mixer.c >> +++ b/drivers/gpu/drm/sti/sti_mixer.c >> @@ -358,7 +358,7 @@ int sti_mixer_set_plane_status(struct sti_mixer *mixer, >> return 0; >> } >> >> -void sti_mixer_set_matrix(struct sti_mixer *mixer) >> +static void sti_mixer_set_matrix(struct sti_mixer *mixer) >> { >> unsigned int i; >> >> -- >> 2.7.4 >> -- Benjamin Gaignard Graphic Study Group Linaro.org │ Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog

[PATCH v9 3/3] SMAF: add test secure module

2016-09-07 Thread Benjamin Gaignard
This module is allow testing secure calls of SMAF. Signed-off-by: Benjamin Gaignard --- drivers/smaf/Kconfig | 6 +++ drivers/smaf/Makefile | 1 + drivers/smaf/smaf-testsecure.c | 90 ++ 3 files changed, 97 insertions(+) create mode

[PATCH v9 1/3] create SMAF module

2016-09-07 Thread Benjamin Gaignard
check if the devices are compatible or not with it allocation method. Securing module (smaf-secure.h): The way of how securing memory it is done is platform specific. Secure module is responsible of grant/revoke memory access. Signed-off-by: Benjamin Gaignard --- drivers/Kconfig

[PATCH v9 2/3] SMAF: add CMA allocator

2016-09-07 Thread Benjamin Gaignard
be compatible with ARM 64bits architecture Signed-off-by: Benjamin Gaignard --- drivers/smaf/Kconfig| 6 ++ drivers/smaf/Makefile | 1 + drivers/smaf/smaf-cma.c | 186 3 files changed, 193 insertions(+) create mode 100644 drivers/smaf

[PATCH v9 0/3] Secure Memory Allocation Framework

2016-09-07 Thread Benjamin Gaignard
e/benjamin.gaignard/optee-sdp.git This code isn't yet part of the patch set because it depends on generic TEE which is still under discussion (https://lwn.net/Articles/644646/) For allocation part of SMAF code I get inspirated by Sumit Semwal work about constraint aware allocator. Benjamin Gaig

Re: [PATCH] drm/sti: mark symbols static where possible

2016-09-08 Thread Benjamin Gaignard
Acked-by: Benjamin Gaignard 2016-09-07 13:05 GMT+02:00 Baoyou Xie : > We get 2 warnings when building kernel with W=1: > drivers/gpu/drm/sti/sti_mixer.c:361:6: warning: no previous prototype for > 'sti_mixer_set_matrix' [-Wmissing-prototypes] > drivers/gpu/drm/sti/sti_dv

[PATCH 04/51] rtc: 88pm80x: stop using rtc deprecated functions

2017-06-20 Thread Benjamin Gaignard
rtc_time_to_tm() and rtc_tm_to_time() are deprecated because they rely on 32bits variables and that will make rtc break in y2038/2016. Stop using those two functions to safer 64bits ones. Signed-off-by: Benjamin Gaignard CC: Alessandro Zummo CC: Alexandre Belloni CC: rtc-li...@googlegroups.com

[PATCH 27/51] rtc: imxdi: stop using rtc deprecated functions

2017-06-20 Thread Benjamin Gaignard
rtc_time_to_tm() and rtc_tm_to_time() are deprecated because they rely on 32bits variables and that will make rtc break in y2038/2016. Stop using those two functions to safer 64bits ones. For the same reasons use set_mmss64 callback instead of set_mmss Signed-off-by: Benjamin Gaignard CC

[PATCH 51/51] power: suspend test: stop using rtc deprecated functions

2017-06-20 Thread Benjamin Gaignard
rtc_time_to_tm() and rtc_tm_to_time() are deprecated because they rely on 32bits variables and that will make rtc break in y2038/2016. Stop using those two functions to safer 64bits ones. Signed-off-by: Benjamin Gaignard CC: "Rafael J. Wysocki" CC: Pavel Machek CC: Len Brown CC:

[PATCH 44/51] rtc: sysfs: stop using rtc deprecated functions

2017-06-20 Thread Benjamin Gaignard
rtc_time_to_tm() and rtc_tm_to_time() are deprecated because they rely on 32bits variables and that will make rtc break in y2038/2016. Stop using those two functions to safer 64bits ones. Signed-off-by: Benjamin Gaignard CC: Alessandro Zummo CC: Alexandre Belloni CC: rtc-li...@googlegroups.com

[PATCH 46/51] rtc: test: stop using rtc deprecated functions

2017-06-20 Thread Benjamin Gaignard
module parameter. Signed-off-by: Benjamin Gaignard CC: Alessandro Zummo CC: Alexandre Belloni CC: rtc-li...@googlegroups.com CC: linux-kernel@vger.kernel.org --- drivers/rtc/rtc-test.c | 17 + 1 file changed, 1 insertion(+), 16 deletions(-) diff --git a/drivers/rtc/rtc-test.c b

[PATCH 50/51] rtc: xgene stop using rtc deprecated functions

2017-06-20 Thread Benjamin Gaignard
rtc_time_to_tm() and rtc_tm_to_time() are deprecated because they rely on 32bits variables and that will make rtc break in y2038/2016. Stop using those two functions to safer 64bits ones. For the same reasons use set_mmss64 callback instead of set_mmss Signed-off-by: Benjamin Gaignard CC

[PATCH 47/51] rtc: tps6586: stop using rtc deprecated functions

2017-06-20 Thread Benjamin Gaignard
rtc_time_to_tm() and rtc_tm_to_time() are deprecated because they rely on 32bits variables and that will make rtc break in y2038/2016. Stop using those two functions to safer 64bits ones. Signed-off-by: Benjamin Gaignard CC: Alessandro Zummo CC: Alexandre Belloni CC: rtc-li...@googlegroups.com

[PATCH 49/51] rtc: wm831x: stop using rtc deprecated functions

2017-06-20 Thread Benjamin Gaignard
rtc_time_to_tm() and rtc_tm_to_time() are deprecated because they rely on 32bits variables and that will make rtc break in y2038/2016. Stop using those two functions to safer 64bits ones. For the same reasons use set_mmss64 callback instead of set_mmss Signed-off-by: Benjamin Gaignard CC

[PATCH 48/51] rtc: vr41xx: stop using rtc deprecated functions

2017-06-20 Thread Benjamin Gaignard
rtc_time_to_tm() and rtc_tm_to_time() are deprecated because they rely on 32bits variables and that will make rtc break in y2038/2016. Stop using those two functions to safer 64bits ones. Signed-off-by: Benjamin Gaignard CC: Alessandro Zummo CC: Alexandre Belloni CC: rtc-li...@googlegroups.com

[PATCH 45/51] rtc: tegra stop using rtc deprecated functions

2017-06-20 Thread Benjamin Gaignard
rtc_time_to_tm() and rtc_tm_to_time() are deprecated because they rely on 32bits variables and that will make rtc break in y2038/2016. Stop using those two functions to safer 64bits ones. Signed-off-by: Benjamin Gaignard CC: Thierry Reding CC: Jonathan Hunter CC: Alessandro Zummo CC

[PATCH 41/51] rtc: stk17ta8: stop using rtc deprecated functions

2017-06-20 Thread Benjamin Gaignard
rtc_time_to_tm() and rtc_tm_to_time() are deprecated because they rely on 32bits variables and that will make rtc break in y2038/2016. Stop using those two functions to safer 64bits ones. Signed-off-by: Benjamin Gaignard CC: Alessandro Zummo CC: Alexandre Belloni CC: rtc-li...@googlegroups.com

[PATCH 38/51] rtc: sh: stop using rtc deprecated functions

2017-06-20 Thread Benjamin Gaignard
rtc_time_to_tm() and rtc_tm_to_time() are deprecated because they rely on 32bits variables and that will make rtc break in y2038/2016. Stop using those two functions to safer 64bits ones. Signed-off-by: Benjamin Gaignard CC: Alessandro Zummo CC: Alexandre Belloni CC: rtc-li...@googlegroups.com

[PATCH 43/51] rtc: sun6i: stop using rtc deprecated functions

2017-06-20 Thread Benjamin Gaignard
rtc_time_to_tm() and rtc_tm_to_time() are deprecated because they rely on 32bits variables and that will make rtc break in y2038/2016. Stop using those two functions to safer 64bits ones. Signed-off-by: Benjamin Gaignard CC: Maxime Ripard CC: Chen-Yu Tsai CC: Alessandro Zummo CC: Alexandre

[PATCH 40/51] rtc: snvs: stop using rtc deprecated functions

2017-06-20 Thread Benjamin Gaignard
rtc_time_to_tm() and rtc_tm_to_time() are deprecated because they rely on 32bits variables and that will make rtc break in y2038/2016. Stop using those two functions to safer 64bits ones. Signed-off-by: Benjamin Gaignard CC: Alessandro Zummo CC: Alexandre Belloni CC: rtc-li...@googlegroups.com

[PATCH 42/51] rtc: stmp3xxx: stop using rtc deprecated functions

2017-06-20 Thread Benjamin Gaignard
rtc_time_to_tm() and rtc_tm_to_time() are deprecated because they rely on 32bits variables and that will make rtc break in y2038/2016. Stop using those two functions to safer 64bits ones. For the same reasons use set_mmss64 callback instead of set_mmss Signed-off-by: Benjamin Gaignard CC

[PATCH 29/51] rtc: lpc32xx: stop using rtc deprecated functions

2017-06-20 Thread Benjamin Gaignard
rtc_time_to_tm() and rtc_tm_to_time() are deprecated because they rely on 32bits variables and that will make rtc break in y2038/2016. Stop using those two functions to safer 64bits ones. For the same reasons use set_mmss64 callback instead of set_mmss Signed-off-by: Benjamin Gaignard CC

[PATCH 39/51] rtc: sirfsoc: stop using rtc deprecated functions

2017-06-20 Thread Benjamin Gaignard
rtc_time_to_tm() and rtc_tm_to_time() are deprecated because they rely on 32bits variables and that will make rtc break in y2038/2016. Stop using those two functions to safer 64bits ones. Signed-off-by: Benjamin Gaignard CC: Alessandro Zummo CC: Alexandre Belloni CC: Barry Song CC: rtc-li

[PATCH 35/51] rtc: pm8xxx: stop using rtc deprecated functions

2017-06-20 Thread Benjamin Gaignard
rtc_time_to_tm() and rtc_tm_to_time() are deprecated because they rely on 32bits variables and that will make rtc break in y2038/2016. Stop using those two functions to safer 64bits ones. Signed-off-by: Benjamin Gaignard CC: Alessandro Zummo CC: Alexandre Belloni CC: rtc-li...@googlegroups.com

[PATCH 37/51] rtc: sa1100: stop using rtc deprecated functions

2017-06-20 Thread Benjamin Gaignard
rtc_time_to_tm() and rtc_tm_to_time() are deprecated because they rely on 32bits variables and that will make rtc break in y2038/2016. Stop using those two functions to safer 64bits ones. Signed-off-by: Benjamin Gaignard CC: Alessandro Zummo CC: Alexandre Belloni CC: rtc-li...@googlegroups.com

[PATCH 34/51] rtc: pl031: stop using rtc deprecated functions

2017-06-20 Thread Benjamin Gaignard
rtc_time_to_tm() and rtc_tm_to_time() are deprecated because they rely on 32bits variables and that will make rtc break in y2038/2016. Stop using those two functions to safer 64bits ones. Signed-off-by: Benjamin Gaignard CC: Linus Walleij CC: Alessandro Zummo CC: Alexandre Belloni CC: rtc-li

[PATCH 32/51] rtc: pcap: stop using rtc deprecated functions

2017-06-20 Thread Benjamin Gaignard
rtc_time_to_tm() and rtc_tm_to_time() are deprecated because they rely on 32bits variables and that will make rtc break in y2038/2016. Stop using those two functions to safer 64bits ones. Signed-off-by: Benjamin Gaignard CC: Alessandro Zummo CC: Alexandre Belloni CC: rtc-li...@googlegroups.com

[PATCH 36/51] rtc: rs5c348: stop using rtc deprecated functions

2017-06-20 Thread Benjamin Gaignard
rtc_time_to_tm() and rtc_tm_to_time() are deprecated because they rely on 32bits variables and that will make rtc break in y2038/2016. Stop using those two functions to safer 64bits ones. Signed-off-by: Benjamin Gaignard CC: Alessandro Zummo CC: Alexandre Belloni CC: rtc-li...@googlegroups.com

[PATCH 33/51] rtc: pl030: stop using rtc deprecated functions

2017-06-20 Thread Benjamin Gaignard
rtc_time_to_tm() and rtc_tm_to_time() are deprecated because they rely on 32bits variables and that will make rtc break in y2038/2016. Stop using those two functions to safer 64bits ones. Signed-off-by: Benjamin Gaignard CC: Alessandro Zummo CC: Alexandre Belloni CC: rtc-li...@googlegroups.com

[PATCH 31/51] rtc: omap: stop using rtc deprecated functions

2017-06-20 Thread Benjamin Gaignard
rtc_time_to_tm() and rtc_tm_to_time() are deprecated because they rely on 32bits variables and that will make rtc break in y2038/2016. Stop using those two functions to safer 64bits ones. For the same reasons use set_mmss64 callback instead of set_mmss Signed-off-by: Benjamin Gaignard CC

[PATCH 24/51] rtc: ds2404: stop using rtc deprecated functions

2017-06-20 Thread Benjamin Gaignard
rtc_time_to_tm() and rtc_tm_to_time() are deprecated because they rely on 32bits variables and that will make rtc break in y2038/2016. Stop using those two functions to safer 64bits ones. For the same reasons use set_mmss64 callback instead of set_mmss Signed-off-by: Benjamin Gaignard CC

[PATCH 25/51] rtc: ep93xx: stop using rtc deprecated functions

2017-06-20 Thread Benjamin Gaignard
rtc_time_to_tm() and rtc_tm_to_time() are deprecated because they rely on 32bits variables and that will make rtc break in y2038/2016. Stop using those two functions to safer 64bits ones. For the same reasons use set_mmss64 callback instead of set_mmss Signed-off-by: Benjamin Gaignard CC

[PATCH 22/51] rtc: ds1553: stop using rtc deprecated functions

2017-06-20 Thread Benjamin Gaignard
rtc_time_to_tm() and rtc_tm_to_time() are deprecated because they rely on 32bits variables and that will make rtc break in y2038/2016. Stop using those two functions to safer 64bits ones. Signed-off-by: Benjamin Gaignard CC: Alessandro Zummo CC: Alexandre Belloni CC: rtc-li...@googlegroups.com

[PATCH 30/51] rtc: mv: stop using rtc deprecated functions

2017-06-20 Thread Benjamin Gaignard
rtc_time_to_tm() and rtc_tm_to_time() are deprecated because they rely on 32bits variables and that will make rtc break in y2038/2016. Stop using those two functions to safer 64bits ones. Signed-off-by: Benjamin Gaignard CC: Alessandro Zummo CC: Alexandre Belloni CC: rtc-li...@googlegroups.com

[PATCH 26/51] rtc: gemini: stop using rtc deprecated functions

2017-06-20 Thread Benjamin Gaignard
rtc_time_to_tm() and rtc_tm_to_time() are deprecated because they rely on 32bits variables and that will make rtc break in y2038/2016. Stop using those two functions to safer 64bits ones. Signed-off-by: Benjamin Gaignard CC: Hans Ulli Kroll CC: Alessandro Zummo CC: Alexandre Belloni CC: rtc

[PATCH 28/51] rtc: jz4740: stop using rtc deprecated functions

2017-06-20 Thread Benjamin Gaignard
rtc_time_to_tm() and rtc_tm_to_time() are deprecated because they rely on 32bits variables and that will make rtc break in y2038/2016. Stop using those two functions to safer 64bits ones. For the same reasons use set_mmss64 callback instead of set_mmss Signed-off-by: Benjamin Gaignard CC

[PATCH 19/51] rtc: ds1305: stop using rtc deprecated functions

2017-06-20 Thread Benjamin Gaignard
rtc_time_to_tm() and rtc_tm_to_time() are deprecated because they rely on 32bits variables and that will make rtc break in y2038/2016. Stop using those two functions to safer 64bits ones. Signed-off-by: Benjamin Gaignard CC: Alessandro Zummo CC: Alexandre Belloni CC: rtc-li...@googlegroups.com

[PATCH 18/51] rtc: dm355evm: stop using rtc deprecated functions

2017-06-20 Thread Benjamin Gaignard
rtc_time_to_tm() and rtc_tm_to_time() are deprecated because they rely on 32bits variables and that will make rtc break in y2038/2016. Stop using those two functions to safer 64bits ones. Signed-off-by: Benjamin Gaignard CC: Alessandro Zummo CC: Alexandre Belloni CC: rtc-li...@googlegroups.com

[PATCH 20/51] rtc: ds1374: stop using rtc deprecated functions

2017-06-20 Thread Benjamin Gaignard
rtc_time_to_tm() and rtc_tm_to_time() are deprecated because they rely on 32bits variables and that will make rtc break in y2038/2016. Stop using those two functions to safer 64bits ones. Signed-off-by: Benjamin Gaignard CC: Alessandro Zummo CC: Alexandre Belloni CC: rtc-li...@googlegroups.com

[PATCH 21/51] rtc: ds1511: stop using rtc deprecated functions

2017-06-20 Thread Benjamin Gaignard
rtc_time_to_tm() and rtc_tm_to_time() are deprecated because they rely on 32bits variables and that will make rtc break in y2038/2016. Stop using those two functions to safer 64bits ones. Signed-off-by: Benjamin Gaignard CC: Alessandro Zummo CC: Alexandre Belloni CC: rtc-li...@googlegroups.com

[PATCH 17/51] rtc: digicolor: stop using rtc deprecated functions

2017-06-20 Thread Benjamin Gaignard
rtc_time_to_tm() and rtc_tm_to_time() are deprecated because they rely on 32bits variables and that will make rtc break in y2038/2016. Stop using those two functions to safer 64bits ones. Signed-off-by: Benjamin Gaignard CC: Baruch Siach CC: Alessandro Zummo CC: Alexandre Belloni CC: rtc-li

[PATCH 23/51] rtc: ds1672: stop using rtc deprecated functions

2017-06-20 Thread Benjamin Gaignard
rtc_time_to_tm() and rtc_tm_to_time() are deprecated because they rely on 32bits variables and that will make rtc break in y2038/2016. Stop using those two functions to safer 64bits ones. For the same reasons use set_mmss64 callback instead of set_mmss Signed-off-by: Benjamin Gaignard CC

[PATCH 12/51] rtc: coh901331: stop using rtc deprecated functions

2017-06-20 Thread Benjamin Gaignard
rtc_time_to_tm() and rtc_tm_to_time() are deprecated because they rely on 32bits variables and that will make rtc break in y2038/2016. Stop using those two functions to safer 64bits ones. Signed-off-by: Benjamin Gaignard CC: Linus Walleij CC: Alessandro Zummo CC: Alexandre Belloni CC: rtc-li

[PATCH 15/51] rtc: da9063: stop using rtc deprecated functions

2017-06-20 Thread Benjamin Gaignard
rtc_time_to_tm() and rtc_tm_to_time() are deprecated because they rely on 32bits variables and that will make rtc break in y2038/2016. Stop using those two functions to safer 64bits ones. Signed-off-by: Benjamin Gaignard CC: Support Opensource CC: Alessandro Zummo CC: Alexandre Belloni CC

[PATCH 13/51] rtc: cpcap: stop using rtc deprecated functions

2017-06-20 Thread Benjamin Gaignard
rtc_time_to_tm() and rtc_tm_to_time() are deprecated because they rely on 32bits variables and that will make rtc break in y2038/2016. Stop using those two functions to safer 64bits ones. Signed-off-by: Benjamin Gaignard CC: Alessandro Zummo CC: Alexandre Belloni CC: rtc-li...@googlegroups.com

[PATCH 16/51] rtc: davinci: stop using rtc deprecated functions

2017-06-20 Thread Benjamin Gaignard
rtc_time_to_tm() and rtc_tm_to_time() are deprecated because they rely on 32bits variables and that will make rtc break in y2038/2016. Stop using those two functions to safer 64bits ones. Signed-off-by: Benjamin Gaignard CC: Alessandro Zummo CC: Alexandre Belloni CC: rtc-li...@googlegroups.com

[PATCH 09/51] rtc: at32ap700x: stop using rtc deprecated functions

2017-06-20 Thread Benjamin Gaignard
rtc_time_to_tm() and rtc_tm_to_time() are deprecated because they rely on 32bits variables and that will make rtc break in y2038/2016. Stop using those two functions to safer 64bits ones. Signed-off-by: Benjamin Gaignard CC: Alessandro Zummo CC: Alexandre Belloni CC: rtc-li...@googlegroups.com

[PATCH 14/51] rtc: da9063: stop using rtc deprecated functions

2017-06-20 Thread Benjamin Gaignard
rtc_time_to_tm() and rtc_tm_to_time() are deprecated because they rely on 32bits variables and that will make rtc break in y2038/2016. Stop using those two functions to safer 64bits ones. Signed-off-by: Benjamin Gaignard CC: Support Opensource CC: Alessandro Zummo CC: Alexandre Belloni CC

[PATCH 10/51] rtc: at91sam9: stop using rtc deprecated functions

2017-06-20 Thread Benjamin Gaignard
rtc_time_to_tm() and rtc_tm_to_time() are deprecated because they rely on 32bits variables and that will make rtc break in y2038/2016. Stop using those two functions to safer 64bits ones. Signed-off-by: Benjamin Gaignard CC: Alessandro Zummo CC: Alexandre Belloni CC: rtc-li...@googlegroups.com

[PATCH 11/51] rtc: bfin: stop using rtc deprecated functions

2017-06-20 Thread Benjamin Gaignard
rtc_time_to_tm() and rtc_tm_to_time() are deprecated because they rely on 32bits variables and that will make rtc break in y2038/2016. Stop using those two functions to safer 64bits ones. Signed-off-by: Benjamin Gaignard CC: Alessandro Zummo CC: Alexandre Belloni CC: rtc-li...@googlegroups.com

[PATCH 08/51] rtc: armada38x: stop using rtc deprecated functions

2017-06-20 Thread Benjamin Gaignard
rtc_time_to_tm() and rtc_tm_to_time() are deprecated because they rely on 32bits variables and that will make rtc break in y2038/2016. Stop using those two functions to safer 64bits ones. Signed-off-by: Benjamin Gaignard CC: Jason Cooper CC: Gregory Clement CC: Sebastian Hesselbarth CC

[PATCH 07/51] rtc: ab8500: stop using rtc deprecated functions

2017-06-20 Thread Benjamin Gaignard
rtc_time_to_tm() and rtc_tm_to_time() are deprecated because they rely on 32bits variables and that will make rtc break in y2038/2016. Stop using those two functions to safer 64bits ones. Signed-off-by: Benjamin Gaignard CC: Linus Walleij CC: Alessandro Zummo CC: Alexandre Belloni CC: rtc-li

[PATCH 06/51] rtc: ab-b5ze-s3: stop using rtc deprecated functions

2017-06-20 Thread Benjamin Gaignard
rtc_time_to_tm() and rtc_tm_to_time() are deprecated because they rely on 32bits variables and that will make rtc break in y2038/2016. Stop using those two functions to safer 64bits ones. Signed-off-by: Benjamin Gaignard CC: Alessandro Zummo CC: Alexandre Belloni CC: rtc-li...@googlegroups.com

[PATCH 05/51] rtc: 88pm860x: stop using rtc deprecated functions

2017-06-20 Thread Benjamin Gaignard
rtc_time_to_tm() and rtc_tm_to_time() are deprecated because they rely on 32bits variables and that will make rtc break in y2038/2016. Stop using those two functions to safer 64bits ones. Signed-off-by: Benjamin Gaignard CC: Alessandro Zummo CC: Alexandre Belloni CC: rtc-li...@googlegroups.com

[PATCH 01/51] x86: rtc: stop using rtc deprecated functions

2017-06-20 Thread Benjamin Gaignard
rtc_time_to_tm() and rtc_tm_to_time() are deprecated because they rely on 32bits variables and that will make rtc break in y2038/2016. Stop using those two functions to safer 64bits ones. Signed-off-by: Benjamin Gaignard CC: Thomas Gleixner CC: Ingo Molnar CC: x...@kernel.org CC: John Stultz

[PATCH 03/51] net: broadcom: stop using rtc deprecated functions

2017-06-20 Thread Benjamin Gaignard
rtc_time_to_tm() and rtc_tm_to_time() are deprecated because they rely on 32bits variables and that will make rtc break in y2038/2016. Stop using those two functions to safer 64bits ones. Signed-off-by: Benjamin Gaignard CC: Michael Chan CC: net...@vger.kernel.org CC: linux-kernel

[PATCH 00/51] rtc: stop using rtc deprecated functions

2017-06-20 Thread Benjamin Gaignard
only check that the patches compile without warnings but it up to each maintainer to valid them on real hardware. Benjamin Gaignard (51): x86: rtc: stop using rtc deprecated functions x86: intel-mid: vrtc: stop using rtc deprecated functions net: broadcom: stop using rtc deprecated funct

[PATCH 02/51] x86: intel-mid: vrtc: stop using rtc deprecated functions

2017-06-20 Thread Benjamin Gaignard
rtc_time_to_tm() and rtc_tm_to_time() are deprecated because they rely on 32bits variables and that will make rtc break in y2038/2016. Stop using those two functions to safer 64bits ones. Signed-off-by: Benjamin Gaignard CC: Thomas Gleixner CC: Ingo Molnar CC: x...@kernel.org CC: linux-kernel

Re: [PATCH] drm: sti: sti_hqvdp: make of_device_ids const.

2017-06-20 Thread Benjamin Gaignard
2017-06-20 7:05 GMT+02:00 Arvind Yadav : > of_device_ids are not supposed to change at runtime. All functions > working with of_device_ids provided by work with const > of_device_ids. So mark the non-const structs as const. > > File size before: >textdata bss dec hex filename >

Re: [PATCH] drm: sti: sti_hqvdp: Fix compilation warning.

2017-06-20 Thread Benjamin Gaignard
2017-06-20 6:55 GMT+02:00 Arvind Yadav : > Replace '%d' by '%zu' and '%lu' to fix the following compilation warning:- > > drivers/gpu/drm/sti/sti_hqvdp.c: In function ‘sti_hqvdp_start_xp70’: > drivers/gpu/drm/sti/sti_hqvdp.c:925:3: warning: format ‘%d’ expects argument > of type ‘int’, but argumen

Re: [PATCH 14/51] rtc: da9063: stop using rtc deprecated functions

2017-06-20 Thread Benjamin Gaignard
2017-06-20 15:41 GMT+02:00 Steve Twiss : > Hi Benjamin, > > On 20 June 2017 10:35, Benjamin Gaignard wrote: > >> Subject: [PATCH 14/51] rtc: da9063: stop using rtc deprecated functions > > Probably this subject should be "rtc: da9052" not 63. yes you

Re: [PATCH 00/51] rtc: stop using rtc deprecated functions

2017-06-20 Thread Benjamin Gaignard
Subject: Re: [PATCH 00/51] rtc: stop using rtc deprecated functions >> > > >> > > On Tue 2017-06-20 14:24:00, Alexandre Belloni wrote: >> > > > On 20/06/2017 at 14:10:11 +0200, Pavel Machek wrote: >> > > > > On Tue 2017-06-20 12:03:48, Alexandre B

Re: [PATCH 00/51] rtc: stop using rtc deprecated functions

2017-06-21 Thread Benjamin Gaignard
2017-06-21 0:08 GMT+02:00 Pavel Machek : > Hi! > >> >> > This is it. >> >> > https://patchwork.kernel.org/patch/6219401/ >> >> >> >> Thanks. >> >> >> >> Yes, that's argument against changing rtc _drivers_ for hardware that >> >> can not do better than 32bit. For generic code (such as 44/51 sysfs, >

Re: [PATCH] drm: sti: sti_hqvdp: undo preparation of a clock source.

2017-06-21 Thread Benjamin Gaignard
2017-06-21 12:15 GMT+02:00 Arvind Yadav : > Undo preparation of a clock source, if sti_hqvdp_start_xp70 and > sti_hqvdp_atomic_check are not successful. > > Signed-off-by: Arvind Yadav Applied on drm-misc-next, thanks, Benjamin > --- > drivers/gpu/drm/sti/sti_hqvdp.c | 3 +++ > 1 file changed,

Re: [PATCH 1/7] drm/bridge: Support hotplugging panel-bridge.

2017-06-22 Thread Benjamin Gaignard
2017-06-20 19:31 GMT+02:00 Eric Anholt : > Archit Taneja writes: > >> On 06/16/2017 08:13 PM, Eric Anholt wrote: >>> Archit Taneja writes: >>> On 06/16/2017 02:11 AM, Eric Anholt wrote: > If the panel-bridge is being set up after the drm_mode_config_reset(), > then the connector's st

Re: [PATCH v5 2/2] staging: ion: create one device entry per heap

2017-10-17 Thread Benjamin Gaignard
2017-10-17 0:09 GMT+02:00 Laura Abbott : > On 10/10/2017 02:11 AM, Mark Brown wrote: >> On Mon, Oct 09, 2017 at 05:10:37PM -0700, Laura Abbott wrote: >>> On 10/09/2017 03:08 PM, Mark Brown wrote: On Mon, Oct 09, 2017 at 02:25:47PM -0700, Laura Abbott wrote: >> > Anyway, to move this forwar

Re: [PATCH v1] dmaengine: stm32_mdma: activate pack/unpack feature

2017-10-17 Thread Benjamin Gaignard
src_bus_width = stm32_mdma_get_width(chan, max_width); > > max_burst = tlen / max_width; > @@ -1030,9 +1048,7 @@ stm32_mdma_prep_dma_memcpy(struct dma_chan *c, > dma_addr_t dest, dma_addr_t src, > STM32_MDMA_CTCR_SINCOS(src_bus_width); > > /* Set destination best burst size */ > - max_width = stm32_mdma_get_max_width(len, tlen); > - if (dest % max_width) > - max_width = DMA_SLAVE_BUSWIDTH_1_BYTE; > + max_width = stm32_mdma_get_max_width(dest, len, tlen); > dst_bus_width = stm32_mdma_get_width(chan, max_width); > > max_burst = tlen / max_width; > -- > 2.7.4 > > > ___ > linux-arm-kernel mailing list > linux-arm-ker...@lists.infradead.org > http://lists.infradead.org/mailman/listinfo/linux-arm-kernel -- Benjamin Gaignard Graphic Study Group Linaro.org │ Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog

Re: [PATCH v4 1/4] clocksource: stm32: convert driver to timer_of

2017-10-17 Thread Benjamin Gaignard
2017-10-17 19:09 GMT+02:00 Daniel Lezcano : > On 02/10/2017 17:51, Benjamin Gaignard wrote: >> Convert driver to use timer_of helpers. This allow to remove >> custom proprietary structure. >> >> Signed-off-by: Benjamin Gaignard >> --- > > [ ... ] > >

[PATCH 00/15] make more driver use devm_of_platform_populate()

2017-05-29 Thread Benjamin Gaignard
l.org Benjamin Gaignard (15): iio: adc: stm32: use devm_of_platform_populate() iio: dac: stm32: use devm_of_platform_populate() drm: zte: use devm_of_platform_populate() drm: msm: use devm_of_platform_populate() mfd: stm32-timers: use devm_of_platform_populate mfd: atmel

[PATCH 03/15] drm: zte: use devm_of_platform_populate()

2017-05-29 Thread Benjamin Gaignard
Use devm_of_platform_populate() to be sure that of_platform_depopulate is called when removing the driver. Signed-off-by: Benjamin Gaignard CC: Shawn Guo CC: David Airlie CC: dri-de...@lists.freedesktop.org CC: linux-kernel@vger.kernel.org --- drivers/gpu/drm/zte/zx_drm_drv.c | 2 +- 1 file

[PATCH 15/15] media: exynos4-is: use devm_of_platform_populate()

2017-05-29 Thread Benjamin Gaignard
Usage of devm_of_platform_populate() simplify driver code and save somes lines Signed-off-by: Benjamin Gaignard CC: Kyungmin Park CC: Sylwester Nawrocki CC: Mauro Carvalho Chehab CC: Kukjin Kim CC: Krzysztof Kozlowski CC: Javier Martinez Canillas CC: linux-me...@vger.kernel.org CC: linux

[PATCH 11/15] mfd: palmas: use devm_of_platform_populate()

2017-05-29 Thread Benjamin Gaignard
Use devm_of_platform_populate() to be sure that of_platform_depopulate is called when removing the driver. Signed-off-by: Benjamin Gaignard CC: Tony Lindgren CC: Lee Jones CC: linux-kernel@vger.kernel.org --- drivers/mfd/palmas.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff

[PATCH 02/15] iio: dac: stm32: use devm_of_platform_populate()

2017-05-29 Thread Benjamin Gaignard
Use devm_of_platform_populate() instead of of_platform_populate and of_platform_depopulate to simplify driver code Signed-off-by: Benjamin Gaignard CC: Jonathan Cameron CC: Hartmut Knaack CC: Lars-Peter Clausen CC: Alexandre Torgue CC: Fabrice Gasnier CC: linux-...@vger.kernel.org CC

[PATCH 14/15] sound: stm32: use devm_of_platform_populate()

2017-05-29 Thread Benjamin Gaignard
Usage of devm_of_platform_populate() simplify driver code by allowing to delete stm32_sai_remove(). Signed-off-by: Benjamin Gaignard CC: Liam Girdwood CC: Mark Brown CC: Jaroslav Kysela CC: Takashi Iwai CC: Alexandre Torgue CC: Olivier Moysan CC: alsa-de...@alsa-project.org CC: linux-arm

[PATCH 08/15] mfd: exynos: use devm_of_platform_populate()

2017-05-29 Thread Benjamin Gaignard
Use devm_of_platform_populate() to be sure that of_platform_depopulate is called when removing the driver. Signed-off-by: Benjamin Gaignard CC: Lee Jones CC: Kukjin Kim CC: Krzysztof Kozlowski CC: Javier Martinez Canillas CC: linux-arm-ker...@lists.infradead.org CC: linux-samsung

[PATCH 09/15] mfd: fsl-imx25: use devm_of_platform_populate()

2017-05-29 Thread Benjamin Gaignard
Use devm_of_platform_populate() to be sure that of_platform_depopulate is called when removing the driver. Signed-off-by: Benjamin Gaignard CC: Lee Jones CC: linux-kernel@vger.kernel.org --- drivers/mfd/fsl-imx25-tsadc.c | 5 + 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a

[PATCH 12/15] mfd: qcom-spmi-pmic: use devm_of_platform_populate()

2017-05-29 Thread Benjamin Gaignard
Usage of devm_of_platform_populate() simplify driver code by allowing to delete pmic_spmi_remove(). Signed-off-by: Benjamin Gaignard CC: Lee Jones CC: linux-kernel@vger.kernel.org --- drivers/mfd/qcom-spmi-pmic.c | 9 + 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a

[PATCH 10/15] mfd: motorola-cpcap: use devm_of_platform_populate()

2017-05-29 Thread Benjamin Gaignard
Usage of devm_of_platform_populate() simplify driver code by allowing to delete cpcap_remove(). Signed-off-by: Benjamin Gaignard CC: Lee Jones CC: linux-kernel@vger.kernel.org --- drivers/mfd/motorola-cpcap.c | 13 + 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a

[PATCH 13/15] mfd: smsc-ece: use devm_of_platform_populate()

2017-05-29 Thread Benjamin Gaignard
Use devm_of_platform_populate() to be sure that of_platform_depopulate is called when removing the driver. Signed-off-by: Benjamin Gaignard CC: Lee Jones CC: linux-kernel@vger.kernel.org --- drivers/mfd/smsc-ece1099.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a

[PATCH 04/15] drm: msm: use devm_of_platform_populate()

2017-05-29 Thread Benjamin Gaignard
Use devm_of_platform_populate() to simplify driver code. Signed-off-by: Benjamin Gaignard CC: Rob Clark CC: David Airlie CC: linux-arm-...@vger.kernel.org CC: dri-de...@lists.freedesktop.org CC: freedr...@lists.freedesktop.org CC: linux-kernel@vger.kernel.org --- drivers/gpu/drm/msm/msm_drv.c

[PATCH 01/15] iio: adc: stm32: use devm_of_platform_populate()

2017-05-29 Thread Benjamin Gaignard
Use devm_of_platform_populate() instead of of_platform_populate and of_platform_depopulate to simplify driver code Signed-off-by: Benjamin Gaignard CC: Jonathan Cameron CC: Hartmut Knaack CC: Lars-Peter Clausen CC: Alexandre Torgue CC: Fabrice Gasnier CC: linux-...@vger.kernel.org CC

[PATCH 05/15] mfd: stm32-timers: use devm_of_platform_populate

2017-05-29 Thread Benjamin Gaignard
Use devm_of_platform_populate() instead of of_platform_populate() and suppress stm32_timers_remove() which become useless. Signed-off-by: Benjamin Gaignard CC: Lee Jones CC: Alexandre Torgue CC: linux-arm-ker...@lists.infradead.org CC: linux-kernel@vger.kernel.org --- drivers/mfd/stm32

[PATCH 07/15] mfd: cros_ec: use devm_of_platform_populate()

2017-05-29 Thread Benjamin Gaignard
Use devm_of_platform_populate() to be sure that of_platform_depopulate is called when removing the driver. Signed-off-by: Benjamin Gaignard CC: Lee Jones CC: linux-kernel@vger.kernel.org --- drivers/mfd/cros_ec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mfd

[PATCH 06/15] mfd: atmel: use devm_of_platform_populate()

2017-05-29 Thread Benjamin Gaignard
Use devm_of_platform_populate() to be sure that of_platform_depopulate is called when removing the driver. Signed-off-by: Benjamin Gaignard CC: Lee Jones CC: linux-kernel@vger.kernel.org --- drivers/mfd/atmel-flexcom.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a

Re: [PATCH 10/15] mfd: motorola-cpcap: use devm_of_platform_populate()

2017-05-30 Thread Benjamin Gaignard
2017-05-30 0:07 GMT+02:00 Andy Shevchenko : > On Mon, May 29, 2017 at 6:45 PM, Benjamin Gaignard > wrote: >> Usage of devm_of_platform_populate() simplify driver code >> by allowing to delete cpcap_remove(). > >> - .remove = cpcap_remove, > > Can you remo

[PATCH] mfd: ssbi: Use devm_of_platform_populate()

2017-10-25 Thread Benjamin Gaignard
Use devm_of_platform_populate() instead of of_platform_populate() to be sure that of_platform_depopulate() is called when removing the driver. Signed-off-by: Benjamin Gaignard --- drivers/mfd/ssbi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mfd/ssbi.c b/drivers

Re: [PATCH] clocksource/drivers/timer-of: mark timer_of_exit as __init

2017-11-13 Thread Benjamin Gaignard
2017-11-12 23:27 GMT+01:00 Thomas Gleixner : > On Sun, 12 Nov 2017, Arnd Bergmann wrote: >> On Sun, Nov 12, 2017 at 10:16 PM, Thomas Gleixner wrote: >> > On Mon, 6 Nov 2017, Arnd Bergmann wrote: >> >> The newly added function triggers a harmless Kbuild warning because >> >> of a missing annotation

[PATCH v8 0/6] stm32 clocksource driver rework

2017-11-14 Thread Benjamin Gaignard
niel - use timer_of helper functions version 2: - fix uninitialized variable Benjamin Gaignard (6): clocksource: timer_of: rename timer_of_exit to timer_of_cleanup clocksource: stm32: convert driver to timer_of clocksource: stm32: increase min delta value clocksource: stm32: only use 32 b

[PATCH v8 2/6] clocksource: stm32: convert driver to timer_of

2017-11-14 Thread Benjamin Gaignard
Convert driver to use timer_of helpers. This allow to remove custom proprietary structure. Signed-off-by: Benjamin Gaignard --- drivers/clocksource/Kconfig | 1 + drivers/clocksource/timer-stm32.c | 160 ++ 2 files changed, 58 insertions(+), 103

[PATCH v8 1/6] clocksource: timer_of: rename timer_of_exit to timer_of_cleanup

2017-11-14 Thread Benjamin Gaignard
Change function name to something more explicit since it is only used in init error cases. Add __init annotation and description about the function usage. Signed-off-by: Benjamin Gaignard --- drivers/clocksource/timer-of.c | 9 - drivers/clocksource/timer-of.h | 2 +- 2 files changed, 9

[PATCH v8 3/6] clocksource: stm32: increase min delta value

2017-11-14 Thread Benjamin Gaignard
The CPU is a CortexM4 @ 200MHZ and the clocks driving the timers are at 90MHZ with a min delta at 1 you could have an interrupt each 0.01 ms which is really to much. By increase it to 0x60 it give more time (around 1 ms) to CPU to handle the interrupt. Signed-off-by: Benjamin Gaignard

[PATCH v8 6/6] arm: dts: stm32: remove useless clocksource nodes

2017-11-14 Thread Benjamin Gaignard
16 bits timers aren't accurate enough to be used as clocksource, remove them from stm32f4 and stm32f7 devicetree. Signed-off-by: Benjamin Gaignard --- arch/arm/boot/dts/stm32f429.dtsi | 32 arch/arm/boot/dts/stm32f746.dtsi

[PATCH v8 5/6] clocksource: stm32: add clocksource support

2017-11-14 Thread Benjamin Gaignard
. Signed-off-by: Benjamin Gaignard --- drivers/clocksource/timer-stm32.c | 116 +- 1 file changed, 88 insertions(+), 28 deletions(-) diff --git a/drivers/clocksource/timer-stm32.c b/drivers/clocksource/timer-stm32.c index 8173bcf..c0a62cd 100644 --- a/drivers

[PATCH v8 4/6] clocksource: stm32: only use 32 bits timers

2017-11-14 Thread Benjamin Gaignard
;t be probed anymore. Signed-off-by: Benjamin Gaignard --- drivers/clocksource/timer-stm32.c | 26 -- 1 file changed, 12 insertions(+), 14 deletions(-) diff --git a/drivers/clocksource/timer-stm32.c b/drivers/clocksource/timer-stm32.c index ae41a19..8173bcf 100644

Re: [PATCH v6 2/2] staging: ion: create one device entry per heap

2017-11-06 Thread Benjamin Gaignard
2017-11-02 12:10 GMT+01:00 Mark Brown : > On Thu, Nov 02, 2017 at 11:44:07AM +0100, Greg KH wrote: >> On Tue, Oct 31, 2017 at 07:11:53PM +, Mark Brown wrote: > >> > There was a discussion a while ago in the context of I2C/SPI MFDs >> > which concluded that if you need a bus and it's going to be

  1   2   3   4   5   6   7   8   9   10   >