Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1229637

Re: [PATCH v3 01/12] pwm: introduce default period and polarity concepts

From Robert Jarzmik <robert.jarzmik@free.fr>
Newsgroups linux.kernel
Subject Re: [PATCH v3 01/12] pwm: introduce default period and polarity concepts
Date 2015-09-21 20:30 +0200
Message-ID <qbe0H-6c1-29@gated-at.bofh.it> (permalink)
References <qb5JL-2GR-3@gated-at.bofh.it> <qb5JO-2GR-41@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


Boris Brezillon <boris.brezillon@free-electrons.com> writes:

> When requested by a user, the PWM is assigned a default period and polarity
> extracted from the DT, the platform data or statically set by the driver.
> Those default values are currently stored in the period and polarity
> fields of the pwm_device struct, but they will be stored somewhere else
> once we have introduced the architecture allowing for hardware state
> retrieval.
>
> The pwm_set_default_polarity and pwm_set_default_period should only be
> used by PWM drivers or the PWM core infrastructure to specify the
> default period and polarity values.
>
> PWM users might call the pwm_get_default_period to query the default
> period value. There is currently no helper to query the default
> polarity, but it might be added later on if there is a need for it.
>
> This patch also modifies all the places where the default helpers should
> be used in place of the standard ones.
>
> Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
For pwm-pxa.c :
Acked-by: Robert Jarzmik <robert.jarzmik@free.fr>

Cheers.

--
Robert
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH v3 00/12] pwm: add support for atomic update Boris Brezillon <boris.brezillon@free-electrons.com> - 2015-09-21 11:40 +0200
  [PATCH v3 01/12] pwm: introduce default period and polarity concepts Boris Brezillon <boris.brezillon@free-electrons.com> - 2015-09-21 11:40 +0200
    Re: [PATCH v3 01/12] pwm: introduce default period and polarity concepts Robert Jarzmik <robert.jarzmik@free.fr> - 2015-09-21 20:30 +0200
    Re: [PATCH v3 01/12] pwm: introduce default period and polarity  concepts Jacek Anaszewski <j.anaszewski@samsung.com> - 2015-09-22 08:40 +0200
    Re: [PATCH v3 01/12] pwm: introduce default period and polarity  concepts Lee Jones <lee.jones@linaro.org> - 2015-09-22 23:50 +0200
  Re: [PATCH v3 00/12] pwm: add support for atomic update Heiko Stübner <heiko@sntech.de> - 2015-09-22 00:40 +0200

csiph-web