From mboxrd@z Thu Jan 1 00:00:00 1970 From: Boris Brezillon Subject: [PATCH v4 00/24] pwm: add support for atomic update Date: Mon, 16 Nov 2015 09:56:23 +0100 Message-ID: <1447664207-24370-1-git-send-email-boris.brezillon@free-electrons.com> Reply-To: boris.brezillon-wi1+55ScJUtKEb57/3fJTNBPR1lH4CV8@public.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Return-path: List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , To: Thierry Reding , linux-pwm-u79uwXL29TY76Z2rM5mHXA@public.gmane.org Cc: Mike Turquette , Stephen Boyd , linux-clk-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, Mark Brown , Liam Girdwood , Kamil Debski , lm-sensors-GZX6beZjE8VD60Wz+7aTrA@public.gmane.org, Jean Delvare , Guenter Roeck , Dmitry Torokhov , linux-input-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, Bryan Wu , Richard Purdie , Jacek Anaszewski , linux-leds-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, Maxime Ripard , Chen-Yu Tsai , linux-sunxi-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org, Joachim Eastwood , Thomas Petazzoni , Heiko Stuebner , linux-rockchip-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org, Jingoo Han , Lee Jones linu List-Id: linux-leds@vger.kernel.org Hello, This series adds support for atomic PWM update, or IOW, the capability to update all the parameters of a PWM device (enabled/disabled, period, duty and polarity) in one go. Best Regards, Boris Changes since v3: - rebased on pwm/for-next after pulling 4.4-rc1 - replace direct access to pwm fields by pwm_get/set_xxx() helpers, thus fixing some build errors - split changes to allow each maintainer to review/ack or take the modification through its subsystem Changes since v2: - rebased on top of 4.3-rc2 - reintroduced pwm-regulator patches Changes since v1: - dropped applied patches - squashed Heiko's fixes into the rockchip driver changes - made a few cosmetic changes - added kerneldoc comments - added Heiko's patch to display more information in debugfs - dropped pwm-regulator patches (should be submitted separately) Boris Brezillon (23): pwm: rcar: make use of pwm_is_enabled() pwm: use pwm_get_xxx() helpers where appropriate clk: pwm: use pwm_get_xxx() helpers where appropriate hwmon: pwm-fan: use pwm_get_xxx() helpers where appropriate misc: max77693-haptic: use pwm_get_xxx() helpers where appropriate pwm: introduce default period and polarity concepts pwm: use pwm_get/set_default_xxx() helpers where appropriate leds: pwm: use pwm_get/set_default_xxx() helpers where appropriate regulator: pwm: use pwm_get/set_default_xxx() helpers where appropriate backlight: pwm: use pwm_get/set_default_xxx() helpers where appropriate fbdev: use pwm_get/set_default_xxx() helpers where appropriate misc: max77693: use pwm_get/set_default_xxx() helpers where appropriate hwmon: pwm-fan: use pwm_get/set_default_xxx() helpers where appropriate clk: pwm: use pwm_get/set_default_xxx() helpers where appropriate pwm: define a new pwm_state struct pwm: move the enabled/disabled info to pwm_state struct backlight: pwm_bl: remove useless call to pwm_set_period pwm: declare a default PWM state pwm: add the PWM initial state retrieval infra pwm: add the core infrastructure to allow atomic update pwm: rockchip: add initial state retrieval pwm: rockchip: add support for atomic update regulator: pwm: properly initialize the ->state field Heiko St=C3=BCbner (1): pwm: add information about polarity, duty cycle and period to debugfs drivers/clk/clk-pwm.c | 11 +-- drivers/hwmon/pwm-fan.c | 16 ++-- drivers/input/misc/max77693-haptic.c | 9 +- drivers/leds/leds-pwm.c | 2 +- drivers/pwm/core.c | 169 +++++++++++++++++++++++++++++++= ---- drivers/pwm/pwm-crc.c | 2 +- drivers/pwm/pwm-lpc18xx-sct.c | 2 +- drivers/pwm/pwm-pxa.c | 2 +- drivers/pwm/pwm-rcar.c | 2 +- drivers/pwm/pwm-rockchip.c | 119 +++++++++++++++++++----- drivers/pwm/pwm-sun4i.c | 3 +- drivers/regulator/pwm-regulator.c | 30 ++++++- drivers/video/backlight/lm3630a_bl.c | 4 +- drivers/video/backlight/pwm_bl.c | 10 ++- drivers/video/fbdev/ssd1307fb.c | 2 +- include/linux/pwm.h | 89 +++++++++++++++--- 16 files changed, 386 insertions(+), 86 deletions(-) --=20 2.1.4 --=20 You received this message because you are subscribed to the Google Groups "= linux-sunxi" group. To unsubscribe from this group and stop receiving emails from it, send an e= mail to linux-sunxi+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit https://groups.google.com/d/optout. From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752295AbbKPI5E (ORCPT ); Mon, 16 Nov 2015 03:57:04 -0500 Received: from down.free-electrons.com ([37.187.137.238]:34519 "EHLO mail.free-electrons.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1750911AbbKPI4y (ORCPT ); Mon, 16 Nov 2015 03:56:54 -0500 From: Boris Brezillon To: Thierry Reding , linux-pwm@vger.kernel.org Cc: Mike Turquette , Stephen Boyd , linux-clk@vger.kernel.org, Mark Brown , Liam Girdwood , Kamil Debski , lm-sensors@lm-sensors.org, Jean Delvare , Guenter Roeck , Dmitry Torokhov , linux-input@vger.kernel.org, Bryan Wu , Richard Purdie , Jacek Anaszewski , linux-leds@vger.kernel.org, Maxime Ripard , Chen-Yu Tsai , linux-sunxi@googlegroups.com, Joachim Eastwood , Thomas Petazzoni , Heiko Stuebner , linux-rockchip@lists.infradead.org, Jingoo Han , Lee Jones , linux-fbdev@vger.kernel.org, Jean-Christophe Plagniol-Villard , Tomi Valkeinen , Robert Jarzmik , Alexandre Belloni , Julia Lawall , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Boris Brezillon Subject: [PATCH v4 00/24] pwm: add support for atomic update Date: Mon, 16 Nov 2015 09:56:23 +0100 Message-Id: <1447664207-24370-1-git-send-email-boris.brezillon@free-electrons.com> X-Mailer: git-send-email 2.1.4 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello, This series adds support for atomic PWM update, or IOW, the capability to update all the parameters of a PWM device (enabled/disabled, period, duty and polarity) in one go. Best Regards, Boris Changes since v3: - rebased on pwm/for-next after pulling 4.4-rc1 - replace direct access to pwm fields by pwm_get/set_xxx() helpers, thus fixing some build errors - split changes to allow each maintainer to review/ack or take the modification through its subsystem Changes since v2: - rebased on top of 4.3-rc2 - reintroduced pwm-regulator patches Changes since v1: - dropped applied patches - squashed Heiko's fixes into the rockchip driver changes - made a few cosmetic changes - added kerneldoc comments - added Heiko's patch to display more information in debugfs - dropped pwm-regulator patches (should be submitted separately) Boris Brezillon (23): pwm: rcar: make use of pwm_is_enabled() pwm: use pwm_get_xxx() helpers where appropriate clk: pwm: use pwm_get_xxx() helpers where appropriate hwmon: pwm-fan: use pwm_get_xxx() helpers where appropriate misc: max77693-haptic: use pwm_get_xxx() helpers where appropriate pwm: introduce default period and polarity concepts pwm: use pwm_get/set_default_xxx() helpers where appropriate leds: pwm: use pwm_get/set_default_xxx() helpers where appropriate regulator: pwm: use pwm_get/set_default_xxx() helpers where appropriate backlight: pwm: use pwm_get/set_default_xxx() helpers where appropriate fbdev: use pwm_get/set_default_xxx() helpers where appropriate misc: max77693: use pwm_get/set_default_xxx() helpers where appropriate hwmon: pwm-fan: use pwm_get/set_default_xxx() helpers where appropriate clk: pwm: use pwm_get/set_default_xxx() helpers where appropriate pwm: define a new pwm_state struct pwm: move the enabled/disabled info to pwm_state struct backlight: pwm_bl: remove useless call to pwm_set_period pwm: declare a default PWM state pwm: add the PWM initial state retrieval infra pwm: add the core infrastructure to allow atomic update pwm: rockchip: add initial state retrieval pwm: rockchip: add support for atomic update regulator: pwm: properly initialize the ->state field Heiko Stübner (1): pwm: add information about polarity, duty cycle and period to debugfs drivers/clk/clk-pwm.c | 11 +-- drivers/hwmon/pwm-fan.c | 16 ++-- drivers/input/misc/max77693-haptic.c | 9 +- drivers/leds/leds-pwm.c | 2 +- drivers/pwm/core.c | 169 +++++++++++++++++++++++++++++++---- drivers/pwm/pwm-crc.c | 2 +- drivers/pwm/pwm-lpc18xx-sct.c | 2 +- drivers/pwm/pwm-pxa.c | 2 +- drivers/pwm/pwm-rcar.c | 2 +- drivers/pwm/pwm-rockchip.c | 119 +++++++++++++++++++----- drivers/pwm/pwm-sun4i.c | 3 +- drivers/regulator/pwm-regulator.c | 30 ++++++- drivers/video/backlight/lm3630a_bl.c | 4 +- drivers/video/backlight/pwm_bl.c | 10 ++- drivers/video/fbdev/ssd1307fb.c | 2 +- include/linux/pwm.h | 89 +++++++++++++++--- 16 files changed, 386 insertions(+), 86 deletions(-) -- 2.1.4 From mboxrd@z Thu Jan 1 00:00:00 1970 From: Boris Brezillon Date: Mon, 16 Nov 2015 08:56:23 +0000 Subject: [PATCH v4 00/24] pwm: add support for atomic update Message-Id: <1447664207-24370-1-git-send-email-boris.brezillon@free-electrons.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable To: linux-arm-kernel@lists.infradead.org Hello, This series adds support for atomic PWM update, or IOW, the capability to update all the parameters of a PWM device (enabled/disabled, period, duty and polarity) in one go. Best Regards, Boris Changes since v3: - rebased on pwm/for-next after pulling 4.4-rc1 - replace direct access to pwm fields by pwm_get/set_xxx() helpers, thus fixing some build errors - split changes to allow each maintainer to review/ack or take the modification through its subsystem Changes since v2: - rebased on top of 4.3-rc2 - reintroduced pwm-regulator patches Changes since v1: - dropped applied patches - squashed Heiko's fixes into the rockchip driver changes - made a few cosmetic changes - added kerneldoc comments - added Heiko's patch to display more information in debugfs - dropped pwm-regulator patches (should be submitted separately) Boris Brezillon (23): pwm: rcar: make use of pwm_is_enabled() pwm: use pwm_get_xxx() helpers where appropriate clk: pwm: use pwm_get_xxx() helpers where appropriate hwmon: pwm-fan: use pwm_get_xxx() helpers where appropriate misc: max77693-haptic: use pwm_get_xxx() helpers where appropriate pwm: introduce default period and polarity concepts pwm: use pwm_get/set_default_xxx() helpers where appropriate leds: pwm: use pwm_get/set_default_xxx() helpers where appropriate regulator: pwm: use pwm_get/set_default_xxx() helpers where appropriate backlight: pwm: use pwm_get/set_default_xxx() helpers where appropriate fbdev: use pwm_get/set_default_xxx() helpers where appropriate misc: max77693: use pwm_get/set_default_xxx() helpers where appropriate hwmon: pwm-fan: use pwm_get/set_default_xxx() helpers where appropriate clk: pwm: use pwm_get/set_default_xxx() helpers where appropriate pwm: define a new pwm_state struct pwm: move the enabled/disabled info to pwm_state struct backlight: pwm_bl: remove useless call to pwm_set_period pwm: declare a default PWM state pwm: add the PWM initial state retrieval infra pwm: add the core infrastructure to allow atomic update pwm: rockchip: add initial state retrieval pwm: rockchip: add support for atomic update regulator: pwm: properly initialize the ->state field Heiko St=C3=BCbner (1): pwm: add information about polarity, duty cycle and period to debugfs drivers/clk/clk-pwm.c | 11 +-- drivers/hwmon/pwm-fan.c | 16 ++-- drivers/input/misc/max77693-haptic.c | 9 +- drivers/leds/leds-pwm.c | 2 +- drivers/pwm/core.c | 169 +++++++++++++++++++++++++++++++= ---- drivers/pwm/pwm-crc.c | 2 +- drivers/pwm/pwm-lpc18xx-sct.c | 2 +- drivers/pwm/pwm-pxa.c | 2 +- drivers/pwm/pwm-rcar.c | 2 +- drivers/pwm/pwm-rockchip.c | 119 +++++++++++++++++++----- drivers/pwm/pwm-sun4i.c | 3 +- drivers/regulator/pwm-regulator.c | 30 ++++++- drivers/video/backlight/lm3630a_bl.c | 4 +- drivers/video/backlight/pwm_bl.c | 10 ++- drivers/video/fbdev/ssd1307fb.c | 2 +- include/linux/pwm.h | 89 +++++++++++++++--- 16 files changed, 386 insertions(+), 86 deletions(-) --=20 2.1.4 From mboxrd@z Thu Jan 1 00:00:00 1970 From: boris.brezillon@free-electrons.com (Boris Brezillon) Date: Mon, 16 Nov 2015 09:56:23 +0100 Subject: [PATCH v4 00/24] pwm: add support for atomic update Message-ID: <1447664207-24370-1-git-send-email-boris.brezillon@free-electrons.com> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org Hello, This series adds support for atomic PWM update, or IOW, the capability to update all the parameters of a PWM device (enabled/disabled, period, duty and polarity) in one go. Best Regards, Boris Changes since v3: - rebased on pwm/for-next after pulling 4.4-rc1 - replace direct access to pwm fields by pwm_get/set_xxx() helpers, thus fixing some build errors - split changes to allow each maintainer to review/ack or take the modification through its subsystem Changes since v2: - rebased on top of 4.3-rc2 - reintroduced pwm-regulator patches Changes since v1: - dropped applied patches - squashed Heiko's fixes into the rockchip driver changes - made a few cosmetic changes - added kerneldoc comments - added Heiko's patch to display more information in debugfs - dropped pwm-regulator patches (should be submitted separately) Boris Brezillon (23): pwm: rcar: make use of pwm_is_enabled() pwm: use pwm_get_xxx() helpers where appropriate clk: pwm: use pwm_get_xxx() helpers where appropriate hwmon: pwm-fan: use pwm_get_xxx() helpers where appropriate misc: max77693-haptic: use pwm_get_xxx() helpers where appropriate pwm: introduce default period and polarity concepts pwm: use pwm_get/set_default_xxx() helpers where appropriate leds: pwm: use pwm_get/set_default_xxx() helpers where appropriate regulator: pwm: use pwm_get/set_default_xxx() helpers where appropriate backlight: pwm: use pwm_get/set_default_xxx() helpers where appropriate fbdev: use pwm_get/set_default_xxx() helpers where appropriate misc: max77693: use pwm_get/set_default_xxx() helpers where appropriate hwmon: pwm-fan: use pwm_get/set_default_xxx() helpers where appropriate clk: pwm: use pwm_get/set_default_xxx() helpers where appropriate pwm: define a new pwm_state struct pwm: move the enabled/disabled info to pwm_state struct backlight: pwm_bl: remove useless call to pwm_set_period pwm: declare a default PWM state pwm: add the PWM initial state retrieval infra pwm: add the core infrastructure to allow atomic update pwm: rockchip: add initial state retrieval pwm: rockchip: add support for atomic update regulator: pwm: properly initialize the ->state field Heiko St?bner (1): pwm: add information about polarity, duty cycle and period to debugfs drivers/clk/clk-pwm.c | 11 +-- drivers/hwmon/pwm-fan.c | 16 ++-- drivers/input/misc/max77693-haptic.c | 9 +- drivers/leds/leds-pwm.c | 2 +- drivers/pwm/core.c | 169 +++++++++++++++++++++++++++++++---- drivers/pwm/pwm-crc.c | 2 +- drivers/pwm/pwm-lpc18xx-sct.c | 2 +- drivers/pwm/pwm-pxa.c | 2 +- drivers/pwm/pwm-rcar.c | 2 +- drivers/pwm/pwm-rockchip.c | 119 +++++++++++++++++++----- drivers/pwm/pwm-sun4i.c | 3 +- drivers/regulator/pwm-regulator.c | 30 ++++++- drivers/video/backlight/lm3630a_bl.c | 4 +- drivers/video/backlight/pwm_bl.c | 10 ++- drivers/video/fbdev/ssd1307fb.c | 2 +- include/linux/pwm.h | 89 +++++++++++++++--- 16 files changed, 386 insertions(+), 86 deletions(-) -- 2.1.4