All of lore.kernel.org
 help / color / mirror / Atom feed
From: Lee Jones <lee.jones@linaro.org>
To: Fabrice Gasnier <fabrice.gasnier@st.com>
Cc: alexandre.torgue@st.com, thierry.reding@gmail.com,
	benjamin.gaignard@linaro.org, robh+dt@kernel.org,
	mark.rutland@arm.com, linux@armlinux.org.uk,
	mcoquelin.stm32@gmail.com, benjamin.gaignard@st.com,
	devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org,
	linux-kernel@vger.kernel.org, linux-pwm@vger.kernel.org
Subject: Re: [RESEND PATCH v5 2/6] mfd: stm32-timers: add support for dmas
Date: Mon, 4 Jun 2018 07:10:04 +0100	[thread overview]
Message-ID: <20180604061004.GA25455@dell> (raw)
In-Reply-To: <1526456161-27865-3-git-send-email-fabrice.gasnier@st.com>

On Wed, 16 May 2018, Fabrice Gasnier wrote:

> STM32 Timers can support up to 7 DMA requests:
> - 4 channels, update, compare and trigger.
> Optionally request part, or all DMAs from stm32-timers MFD core.
> 
> Also add routine to implement burst reads using DMA from timer registers.
> This is exported. So, it can be used by child drivers, PWM capture
> for instance (but not limited to).
> 
> Signed-off-by: Fabrice Gasnier <fabrice.gasnier@st.com>
> Reviewed-by: Benjamin Gaignard <benjamin.gaignard@linaro.org>
> ---
> Changes in v5:
> - fix warning on dma_mapping_error() that doesn't return an error code.
> - move stm32_timers_dma struct to header file as discussed with Lee.
>   This allows to remove alloc for this struct in stm32_timers_dma_probe.
> 
> Changes in v4:
> - Lee's comments: Add kerneldoc header, better format comments.
> 
> Changes in v3:
> - Basically Lee's comments:
> - rather create a struct stm32_timers_dma, and place a reference to it
>   in existing ddata (instead of adding priv struct).
> - rather use a struct device in exported routine prototype, and use
>   standard helpers instead of ddata. Get rid of to_stm32_timers_priv().
> - simplify error handling in probe (remove a goto)
> - comment on devm_of_platform_*populate() usage.
> 
> Changes in v2:
> - Abstract DMA handling from child driver: move it to MFD core
> - Add comments on optional dma support
> ---
>  drivers/mfd/stm32-timers.c       | 201 ++++++++++++++++++++++++++++++++++++++-
>  include/linux/mfd/stm32-timers.h |  46 +++++++++
>  2 files changed, 245 insertions(+), 2 deletions(-)

For my own reference:
  Acked-for-MFD-by: Lee Jones <lee.jones@linaro.org>

-- 
Lee Jones [李琼斯]
Linaro Services Technical Lead
Linaro.org │ Open source software for ARM SoCs
Follow Linaro: Facebook | Twitter | Blog

WARNING: multiple messages have this Message-ID (diff)
From: lee.jones@linaro.org (Lee Jones)
To: linux-arm-kernel@lists.infradead.org
Subject: [RESEND PATCH v5 2/6] mfd: stm32-timers: add support for dmas
Date: Mon, 4 Jun 2018 07:10:04 +0100	[thread overview]
Message-ID: <20180604061004.GA25455@dell> (raw)
In-Reply-To: <1526456161-27865-3-git-send-email-fabrice.gasnier@st.com>

On Wed, 16 May 2018, Fabrice Gasnier wrote:

> STM32 Timers can support up to 7 DMA requests:
> - 4 channels, update, compare and trigger.
> Optionally request part, or all DMAs from stm32-timers MFD core.
> 
> Also add routine to implement burst reads using DMA from timer registers.
> This is exported. So, it can be used by child drivers, PWM capture
> for instance (but not limited to).
> 
> Signed-off-by: Fabrice Gasnier <fabrice.gasnier@st.com>
> Reviewed-by: Benjamin Gaignard <benjamin.gaignard@linaro.org>
> ---
> Changes in v5:
> - fix warning on dma_mapping_error() that doesn't return an error code.
> - move stm32_timers_dma struct to header file as discussed with Lee.
>   This allows to remove alloc for this struct in stm32_timers_dma_probe.
> 
> Changes in v4:
> - Lee's comments: Add kerneldoc header, better format comments.
> 
> Changes in v3:
> - Basically Lee's comments:
> - rather create a struct stm32_timers_dma, and place a reference to it
>   in existing ddata (instead of adding priv struct).
> - rather use a struct device in exported routine prototype, and use
>   standard helpers instead of ddata. Get rid of to_stm32_timers_priv().
> - simplify error handling in probe (remove a goto)
> - comment on devm_of_platform_*populate() usage.
> 
> Changes in v2:
> - Abstract DMA handling from child driver: move it to MFD core
> - Add comments on optional dma support
> ---
>  drivers/mfd/stm32-timers.c       | 201 ++++++++++++++++++++++++++++++++++++++-
>  include/linux/mfd/stm32-timers.h |  46 +++++++++
>  2 files changed, 245 insertions(+), 2 deletions(-)

For my own reference:
  Acked-for-MFD-by: Lee Jones <lee.jones@linaro.org>

-- 
Lee Jones [???]
Linaro Services Technical Lead
Linaro.org ? Open source software for ARM SoCs
Follow Linaro: Facebook | Twitter | Blog

  reply	other threads:[~2018-06-04  6:10 UTC|newest]

Thread overview: 35+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-05-16  7:35 [RESEND PATCH v5 0/6] Add support for PWM input capture on STM32 Fabrice Gasnier
2018-05-16  7:35 ` Fabrice Gasnier
2018-05-16  7:35 ` Fabrice Gasnier
2018-05-16  7:35 ` [RESEND PATCH v5 1/6] dt-bindings: mfd: stm32-timers: add support for dmas Fabrice Gasnier
2018-05-16  7:35   ` Fabrice Gasnier
2018-05-16  7:35   ` Fabrice Gasnier
2018-05-16  7:35 ` [RESEND PATCH v5 2/6] " Fabrice Gasnier
2018-05-16  7:35   ` Fabrice Gasnier
2018-05-16  7:35   ` Fabrice Gasnier
2018-06-04  6:10   ` Lee Jones [this message]
2018-06-04  6:10     ` Lee Jones
2018-05-16  7:35 ` [RESEND PATCH v5 3/6] pwm: stm32: add capture support Fabrice Gasnier
2018-05-16  7:35   ` Fabrice Gasnier
2018-05-16  7:35   ` Fabrice Gasnier
2018-05-16  7:35 ` [RESEND PATCH v5 4/6] pwm: stm32: improve capture by tuning counter prescaler Fabrice Gasnier
2018-05-16  7:35   ` Fabrice Gasnier
2018-05-16  7:35   ` Fabrice Gasnier
2018-05-16  7:36 ` [RESEND PATCH v5 5/6] pwm: stm32: use input prescaler to improve period capture Fabrice Gasnier
2018-05-16  7:36   ` Fabrice Gasnier
2018-05-16  7:36   ` Fabrice Gasnier
2018-05-16  7:36 ` [RESEND PATCH v5 6/6] ARM: dts: stm32: Enable pwm3 input capture on stm32f429i-eval Fabrice Gasnier
2018-05-16  7:36   ` Fabrice Gasnier
2018-05-16  7:36   ` Fabrice Gasnier
2018-05-16  8:06 ` [RESEND PATCH v5 0/6] Add support for PWM input capture on STM32 Lee Jones
2018-05-16  8:06   ` Lee Jones
2018-05-16  8:43   ` Fabrice Gasnier
2018-05-16  8:43     ` Fabrice Gasnier
2018-05-16  8:43     ` Fabrice Gasnier
2018-05-16 10:13     ` Lee Jones
2018-05-16 10:13       ` Lee Jones
2018-05-16  8:19 ` [GIT PULL] Immutable branch between MFD and PWM due for the v4.18 merge window Lee Jones
2018-05-16  8:19   ` Lee Jones
2018-05-16  8:19   ` Lee Jones
2018-05-16 10:16   ` [GIT PULL ++] Immutable branch between MFD and PWM due for the v4.18 merge window (v2) Lee Jones
2018-05-16 10:16     ` Lee Jones

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20180604061004.GA25455@dell \
    --to=lee.jones@linaro.org \
    --cc=alexandre.torgue@st.com \
    --cc=benjamin.gaignard@linaro.org \
    --cc=benjamin.gaignard@st.com \
    --cc=devicetree@vger.kernel.org \
    --cc=fabrice.gasnier@st.com \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-pwm@vger.kernel.org \
    --cc=linux@armlinux.org.uk \
    --cc=mark.rutland@arm.com \
    --cc=mcoquelin.stm32@gmail.com \
    --cc=robh+dt@kernel.org \
    --cc=thierry.reding@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.