pwm: Move AB8500 PWM driver to PWM framework
Subsystems (2)
PATCH 1/1 pwm: Move AB8500 PWM driver to PWM framework
This commit moves the driver to drivers/pwm and converts it to the new PWM framework.
---
Note: I'll take this through the PWM tree, but I'd like to have it acknowledged by a few people who know the hardware and can actually test whether this still works.
drivers/misc/Kconfig | 10 --- drivers/misc/Makefile | 1 - drivers/misc/ab8500-pwm.c | 169 ---------------------------------------------- drivers/pwm/Kconfig | 9 +++ drivers/pwm/Makefile | 1 + drivers/pwm/pwm-ab8500.c | 153 +++++++++++++++++++++++++++++++++++++++++ 6 files changed, 163 insertions(+), 180 deletions(-) delete mode 100644 drivers/misc/ab8500-pwm.c create mode 100644 drivers/pwm/pwm-ab8500.c
drivers/misc/Kconfig +0 -10
@@ -60,16 +60,6 @@ config ATMEL_PWM purposes including software controlled power-efficient backlights on LCD displays, motor control, and waveform generation. -config AB8500_PWM - bool "AB8500 PWM support" - depends on AB8500_CORE && ARCH_U8500 - select HAVE_PWM - depends on !PWM - help - This driver exports functions to enable/disble/config/free Pulse - Width Modulation in the Analog Baseband Chip AB8500. - It is used by led and backlight driver to control the intensity. - config ATMEL_TCLIB bool "Atmel AT32/AT91 Timer/Counter Library" depends on (AVR32 || ARCH_AT91)
drivers/misc/Makefile +0 -1
@@ -44,7 +44,6 @@ obj-$(CONFIG_VMWARE_BALLOON) += vmw_balloon.o obj-$(CONFIG_ARM_CHARLCD) += arm-charlcd.o obj-$(CONFIG_PCH_PHUB) += pch_phub.o obj-y += ti-st/ -obj-$(CONFIG_AB8500_PWM) += ab8500-pwm.o obj-y += lis3lv02d/ obj-y += carma/ obj-$(CONFIG_USB_SWITCH_FSA9480) += fsa9480.o
drivers/misc/ab8500-pwm.c deleted +0 -169
169 lines not on this page · raw message
drivers/pwm/Kconfig +9 -0
@@ -28,6 +28,15 @@ menuconfig PWM if PWM +config PWM_AB8500 + tristate "AB8500 PWM support" + depends on AB8500_CORE && ARCH_U8500 + help + Generic PWM framework driver for Analog Baseband AB8500. + + To compile this driver as a module, choose M here: the module + will be called pwm-ab8500. + config PWM_BFIN tristate "Blackfin PWM support" depends on BFIN_GPTIMERS
drivers/pwm/Makefile +1 -0
@@ -1,4 +1,5 @@ obj-$(CONFIG_PWM) += core.o +obj-$(CONFIG_PWM_AB8500) += pwm-ab8500.o obj-$(CONFIG_PWM_BFIN) += pwm-bfin.o obj-$(CONFIG_PWM_IMX) += pwm-imx.o obj-$(CONFIG_PWM_JZ4740) += pwm-jz4740.o
drivers/pwm/pwm-ab8500.c new file +153 -0
153 lines not on this page · raw message
Signature · 1 line
1.7.12
Quoted 8 lines · Thierry Reding
This commit moves the driver to
drivers/pwmand converts it to the new PWM framework.Signed-off-by Thierry Reding <[email protected]>---
Note: I'll take this through the PWM tree, but I'd like to have it acknowledged by a few people who know the hardware and can actually test whether this still works.
Did you create the patch using 'git format-patch -M'? It should show the changes as a move plus changes rather than a file remove and another file add.
The change to the common framework is of course very welcome,
Quoted 10 lines · Arnd Bergmann
Quoted 8 lines · Thierry Reding
This commit moves the driver to
drivers/pwmand converts it to the new PWM framework.Signed-off-by Thierry Reding <[email protected]>---
Note: I'll take this through the PWM tree, but I'd like to have it acknowledged by a few people who know the hardware and can actually test whether this still works.
Quoted 3 lines
Did you create the patch using 'git format-patch -M'? It should show the changes as a move plus changes rather than a file remove and another file add.
Yeah, I forgot that... again. Sorry for that.
Quoted 3 lines
The change to the common framework is of course very welcome,
Acked-by Arnd Bergmann <[email protected]>
Thierry
Quoted 8 lines · Thierry Reding
This commit moves the driver to
drivers/pwmand converts it to the new PWM framework.Signed-off-by Thierry Reding <[email protected]>---
Note: I'll take this through the PWM tree, but I'd like to have it acknowledged by a few people who know the hardware and can actually test whether this still works.
Pls include Arun on these patches, he'll know best if it'll work or not.
I have one generic question: will this alter the layout of sysfs so we need to change userspace? I had such issues before when moving drivers to new busses...
Yours,
Linus Walleij
Quoted 12 lines
Quoted 8 lines · Thierry Reding
This commit moves the driver to
drivers/pwmand converts it to the new PWM framework.Signed-off-by Thierry Reding <[email protected]>---
Note: I'll take this through the PWM tree, but I'd like to have it acknowledged by a few people who know the hardware and can actually test whether this still works.
Quoted 6 lines
Pls include Arun on these patches, he'll know best if it'll work or not.
I have one generic question: will this alter the layout of sysfs so we need to change userspace? I had such issues before when moving drivers to new busses...
Since this pwm framework is still a set of exported functions in a header file, the file architecture doesn't really matter.
Using this driver, either leds-pwm and backlight-pwm is used to register and this is where actual registration happens(sysfs entry is created).
Thanks and Regards,
Arun R Murthy
------------------
Linus Walleij
Acked-byQuoted 19 lines · Arun MURTHY
Quoted 12 lines
Quoted 8 lines · Thierry Reding
This commit moves the driver to
drivers/pwmand converts it to the new PWM framework.Signed-off-by Thierry Reding <[email protected]>---
Note: I'll take this through the PWM tree, but I'd like to have it acknowledged by a few people who know the hardware and can actually test whether this still works.Quoted 6 lines
Pls include Arun on these patches, he'll know best if it'll work or not.
I have one generic question: will this alter the layout of sysfs so we need to change userspace? I had such issues before when moving drivers to new busses...
Quoted 4 lines
Since this pwm framework is still a set of exported functions in a header file, the file architecture doesn't really matter.
Using this driver, either leds-pwm and backlight-pwm is used to register and this is where actual registration happens(sysfs entry is created).
OK sounds good to me,
Yours,
Linus Walleij
Quoted 19 lines · Arun MURTHY
Quoted 12 lines
Quoted 8 lines · Thierry Reding
This commit moves the driver to
drivers/pwmand converts it to the new PWM framework.Signed-off-by Thierry Reding <[email protected]>---
Note: I'll take this through the PWM tree, but I'd like to have it acknowledged by a few people who know the hardware and can actually test whether this still works.Quoted 6 lines
Pls include Arun on these patches, he'll know best if it'll work or not.
I have one generic question: will this alter the layout of sysfs so we need to change userspace? I had such issues before when moving drivers to new busses...
Quoted 4 lines
Since this pwm framework is still a set of exported functions in a header file, the file architecture doesn't really matter.
Using this driver, either leds-pwm and backlight-pwm is used to register and this is where actual registration happens(sysfs entry is created).
Hi Arun,
Have you been able to verify, then, that the driver still works after this patch? Can I add your Acked-by as well?
Thierry
Quoted 25 lines · Thierry Reding
Quoted 19 lines · Arun MURTHY
Quoted 12 lines
Quoted 8 lines · Thierry Reding
This commit moves the driver to
drivers/pwmand converts it to the new PWM framework.Signed-off-by Thierry Reding <[email protected]>---
Note: I'll take this through the PWM tree, but I'd like to have it acknowledged by a few people who know the hardware and can actually test whether this still works.Quoted 6 lines
Pls include Arun on these patches, he'll know best if it'll work or not.
I have one generic question: will this alter the layout of sysfs so we need to change userspace? I had such issues before when moving drivers to new busses...
Quoted 4 lines
Since this pwm framework is still a set of exported functions in a header file, the file architecture doesn't really matter.
Using this driver, either leds-pwm and backlight-pwm is used to register and this is where actual registration happens(sysfs entry is created).
Quoted 4 lines
Hi Arun,
Have you been able to verify, then, that the driver still works after this patch? Can I add your Acked-by as well?
Hi Arun,
any news on this?
Thierry
Arun MURTHY
Acked-byQuoted 29 lines · Thierry Reding
Quoted 20 lines · Arun MURTHY
Quoted 19 lines
Quoted 18 lines
Quoted 8 lines · Thierry Reding
This commit moves the driver to
drivers/pwmand converts it to the new PWM framework.Signed-off-by Thierry Reding <[email protected]>---
Note: I'll take this through the PWM tree, but I'd like to have it acknowledged by a few people who know the hardware and can actually test whether this still works.Pls include Arun on these patches, he'll know best if it'll work or not.
I have one generic question: will this alter the layout of sysfs so we need to change userspace? I had such issues before when moving drivers to new busses...
Quoted 4 lines
Quoted 4 lines
Since this pwm framework is still a set of exported functions in a header file, the file architecture doesn't really matter. Using this driver, either leds-pwm and backlight-pwm is used to register and this is where actual registration happens(sysfs entry is
created).
Quoted 3 lines
Hi Arun,
Quoted 8 lines
Quoted 2 lines
Have you been able to verify, then, that the driver still works after this patch? Can I add your Acked-by as well?
Hi Arun,
any news on this?
Thierry
Hi Thierry,
Works with certain changes in platform data which I can manage
to push it later.
Thanks and Regards,
Arun R Murthy
------------------
Quoted 36 lines · Arun MURTHY
Quoted 36 lines · Thierry Reding
Quoted 20 lines · Arun MURTHY
Quoted 19 lines
Quoted 18 lines
Quoted 8 lines · Thierry Reding
This commit moves the driver to
drivers/pwmand converts it to the new PWM framework.Signed-off-by Thierry Reding <[email protected]>---
Note: I'll take this through the PWM tree, but I'd like to have it acknowledged by a few people who know the hardware and can actually test whether this still works.Pls include Arun on these patches, he'll know best if it'll work or not.
I have one generic question: will this alter the layout of sysfs so we need to change userspace? I had such issues before when moving drivers to new busses...
Quoted 4 lines
Quoted 4 lines
Since this pwm framework is still a set of exported functions in a header file, the file architecture doesn't really matter. Using this driver, either leds-pwm and backlight-pwm is used to register and this is where actual registration happens(sysfs entry is
created).
Quoted 5 lines
Hi Arun,
Have you been able to verify, then, that the driver still works after this patch? Can I add your Acked-by as well?
Hi Arun,
any news on this?
Quoted 7 lines
Quoted 1 line
Thierry
Hi Thierry,
Works with certain changes in platform data which I can manage
to push it later.Acked-by Arun Murthy<[email protected]>
Thanks. I've pushed this patch to my for-next branch.
Thierry