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
>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.
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
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
>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.
>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
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
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
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
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
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
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
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
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:
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
>
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
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
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
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,
>
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,
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
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
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
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
>> ---
>
> [ ... ]
>
>
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
.
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
;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
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 - 100 of 1168 matches
Mail list logo