linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
From: s.hauer@pengutronix.de (Sascha Hauer)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 0/3] SPEAr320: Add pwm support
Date: Mon, 30 May 2011 13:44:06 +0200	[thread overview]
Message-ID: <20110530114405.GD23771@pengutronix.de> (raw)
In-Reply-To: <4DE353F8.9040207@st.com>

On Mon, May 30, 2011 at 01:53:20PM +0530, viresh kumar wrote:
> On 05/30/2011 01:15 PM, Arnd Bergmann wrote:
> > No objection to your patch, but I think we need to have
> > a long-term plan for pwm:
> > 
> > arnd at wuerfel:~/linux-2.6$ git ls-files | grep pwm.c
> > arch/arm/mach-exynos4/include/mach/pwm-clock.h
> > arch/arm/mach-mxs/devices/platform-mxs-pwm.c
> > arch/arm/mach-s3c64xx/include/mach/pwm-clock.h
> > arch/arm/mach-s5p64x0/include/mach/pwm-clock.h
> > arch/arm/mach-s5pc100/include/mach/pwm-clock.h
> > arch/arm/mach-s5pv210/include/mach/pwm-clock.h
> > arch/arm/mach-vt8500/pwm.c
> > arch/arm/plat-mxc/devices/platform-mxc_pwm.c
> > arch/arm/plat-mxc/pwm.c
> > arch/arm/plat-pxa/pwm.c
> > arch/arm/plat-s3c24xx/include/mach/pwm-clock.h
> > arch/arm/plat-samsung/dev-pwm.c
> > arch/arm/plat-samsung/pwm-clock.c
> > arch/arm/plat-samsung/pwm.c
> > arch/mips/jz4740/pwm.c
> > arch/unicore32/kernel/pwm.c
> > drivers/leds/leds-atmel-pwm.c
> > drivers/leds/leds-pwm.c
> > drivers/mfd/twl6030-pwm.c
> > drivers/misc/ab8500-pwm.c
> > drivers/misc/atmel_pwm.c
> > drivers/misc/ep93xx_pwm.c
> > 
> > My rough feeling is that what this should look like is a new
> > subsystem that exports a set of operations and has specific
> > drivers, like:
> > 
> > drivers/pwm/Kconfig
> > drivers/pwm/pwm_core.c
> > drivers/pwm/pwm_pxa.c
> > drivers/pwm/pwm_unicore.c
> > drivers/pwm/pwm_st.c
> > drivers/pwm/pwm_...
> > 
> 
> Sascha sent a patchset for something similar earlier.
> But don't know what happened to it.

Nothing yet, unfortunately. It was a straight forward implementation
which basically implements the existing pwm functions and adds
register/unregister functions.
Bill Gatliff posts a pwm framework since 2008. I wasn't aware of his
patches by the time I wrote my pwm layer. Bills patches target more the
motor controller use case and are (in my opinion) too complicated. I
can't agree on his approach, but didn't want to go with competing
patches either.

As Bills patches still didn't make it into the kernel Maybe it's time
to respin my version.

For reference, find my patches here:

https://lkml.org/lkml/2011/1/28/92

Sascha

-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

  reply	other threads:[~2011-05-30 11:44 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-05-30  7:21 [PATCH 0/3] SPEAr320: Add pwm support Viresh Kumar
2011-05-30  7:20 ` [PATCH 1/3] misc/st_pwm: Add support for ST's Pulse Width Modulator Viresh Kumar
2011-05-30  7:21 ` [PATCH 2/3] SPEAr3xx: Add machine support for ST's PWM IP Viresh Kumar
2011-05-30  7:21 ` [PATCH 3/3] SPEAr3xx: Update defconfig for ST's PWM Viresh Kumar
2011-05-30  7:45 ` [PATCH 0/3] SPEAr320: Add pwm support Arnd Bergmann
2011-05-30  8:23   ` viresh kumar
2011-05-30 11:44     ` Sascha Hauer [this message]
2011-05-30 11:52       ` Arnd Bergmann
2011-05-30 11:57         ` viresh kumar
2011-05-30 12:53           ` Arnd Bergmann
2011-05-31  3:52             ` viresh kumar
2011-05-31  8:29               ` Arnd Bergmann
     [not found]       ` <20110530121030.GA314@e-circ.dyndns.org>
2011-05-30 12:51         ` Arnd Bergmann

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=20110530114405.GD23771@pengutronix.de \
    --to=s.hauer@pengutronix.de \
    --cc=linux-arm-kernel@lists.infradead.org \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).