From: Hans-Christian Egtvedt <egtvedt@samfundet.no>
To: linux-arm-kernel@lists.infradead.org
Subject: Re: [PATCH 09/16] avr32/at32ap: switch to the generic PWM framework
Date: Wed, 19 Mar 2014 14:18:20 +0000 [thread overview]
Message-ID: <20140319141820.GA20872@samfundet.no> (raw)
In-Reply-To: <1395234209-15546-10-git-send-email-alexandre.belloni@free-electrons.com>
Around Wed 19 Mar 2014 14:03:22 +0100 or thereabout, Alexandre Belloni wrote:
> Switch to the pwm/pwm-atmel driver instead of misc/atmel_pwm
>
> Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
Acked-by: Hans-Christian Egtvedt <egtvedt@samfundet.no>
> ---
> arch/avr32/mach-at32ap/at32ap700x.c | 7 ++-----
> 1 file changed, 2 insertions(+), 5 deletions(-)
>
> diff --git a/arch/avr32/mach-at32ap/at32ap700x.c b/arch/avr32/mach-at32ap/at32ap700x.c
> index a1f4d1e91b52..db85b5ec3351 100644
> --- a/arch/avr32/mach-at32ap/at32ap700x.c
> +++ b/arch/avr32/mach-at32ap/at32ap700x.c
> @@ -1553,7 +1553,7 @@ static struct resource atmel_pwm0_resource[] __initdata = {
> IRQ(24),
> };
> static struct clk atmel_pwm0_mck = {
> - .name = "pwm_clk",
> + .name = "at91sam9rl-pwm",
I found this a tiny bit weird, but found the matching instance in
drivers/pwm/pwm-atmel.c
IMHO it would initially have been better to call it atpwm_v1 or something
similar, more generic. But I guess that is too late to change at this point.
> .parent = &pbb_clk,
> .mode = pbb_clk_mode,
> .get_rate = pbb_clk_get_rate,
> @@ -1568,7 +1568,7 @@ struct platform_device *__init at32_add_device_pwm(u32 mask)
> if (!mask)
> return NULL;
>
> - pdev = platform_device_alloc("atmel_pwm", 0);
> + pdev = platform_device_alloc("at91sam9rl-pwm", 0);
> if (!pdev)
> return NULL;
>
> @@ -1576,9 +1576,6 @@ struct platform_device *__init at32_add_device_pwm(u32 mask)
> ARRAY_SIZE(atmel_pwm0_resource)))
> goto out_free_pdev;
>
> - if (platform_device_add_data(pdev, &mask, sizeof(mask)))
> - goto out_free_pdev;
> -
> pin_mask = 0;
> if (mask & (1 << 0))
> pin_mask |= (1 << 28);
--
mvh
Hans-Christian Egtvedt
WARNING: multiple messages have this Message-ID (diff)
From: Hans-Christian Egtvedt <egtvedt@samfundet.no>
To: Alexandre Belloni <alexandre.belloni@free-electrons.com>
Cc: linux-pwm@vger.kernel.org, linux-fbdev@vger.kernel.org,
Jingoo Han <jg1.han@samsung.com>,
Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
Bryan Wu <cooloney@gmail.com>,
Nicolas Ferre <nicolas.ferre@atmel.com>,
linux-kernel@vger.kernel.org,
Thierry Reding <thierry.reding@gmail.com>,
Richard Purdie <rpurdie@rpsys.net>,
linux-leds@vger.kernel.org,
Jean-Christophe Plagniol-Villard <plagnioj@jcrosoft.com>,
linux-arm-kernel@lists.infradead.org,
Haavard Skinnemoen <hskinnemoen@gmail.com>
Subject: Re: [PATCH 09/16] avr32/at32ap: switch to the generic PWM framework
Date: Wed, 19 Mar 2014 15:18:20 +0100 [thread overview]
Message-ID: <20140319141820.GA20872@samfundet.no> (raw)
In-Reply-To: <1395234209-15546-10-git-send-email-alexandre.belloni@free-electrons.com>
Around Wed 19 Mar 2014 14:03:22 +0100 or thereabout, Alexandre Belloni wrote:
> Switch to the pwm/pwm-atmel driver instead of misc/atmel_pwm
>
> Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
Acked-by: Hans-Christian Egtvedt <egtvedt@samfundet.no>
> ---
> arch/avr32/mach-at32ap/at32ap700x.c | 7 ++-----
> 1 file changed, 2 insertions(+), 5 deletions(-)
>
> diff --git a/arch/avr32/mach-at32ap/at32ap700x.c b/arch/avr32/mach-at32ap/at32ap700x.c
> index a1f4d1e91b52..db85b5ec3351 100644
> --- a/arch/avr32/mach-at32ap/at32ap700x.c
> +++ b/arch/avr32/mach-at32ap/at32ap700x.c
> @@ -1553,7 +1553,7 @@ static struct resource atmel_pwm0_resource[] __initdata = {
> IRQ(24),
> };
> static struct clk atmel_pwm0_mck = {
> - .name = "pwm_clk",
> + .name = "at91sam9rl-pwm",
I found this a tiny bit weird, but found the matching instance in
drivers/pwm/pwm-atmel.c
IMHO it would initially have been better to call it atpwm_v1 or something
similar, more generic. But I guess that is too late to change at this point.
> .parent = &pbb_clk,
> .mode = pbb_clk_mode,
> .get_rate = pbb_clk_get_rate,
> @@ -1568,7 +1568,7 @@ struct platform_device *__init at32_add_device_pwm(u32 mask)
> if (!mask)
> return NULL;
>
> - pdev = platform_device_alloc("atmel_pwm", 0);
> + pdev = platform_device_alloc("at91sam9rl-pwm", 0);
> if (!pdev)
> return NULL;
>
> @@ -1576,9 +1576,6 @@ struct platform_device *__init at32_add_device_pwm(u32 mask)
> ARRAY_SIZE(atmel_pwm0_resource)))
> goto out_free_pdev;
>
> - if (platform_device_add_data(pdev, &mask, sizeof(mask)))
> - goto out_free_pdev;
> -
> pin_mask = 0;
> if (mask & (1 << 0))
> pin_mask |= (1 << 28);
--
mvh
Hans-Christian Egtvedt
WARNING: multiple messages have this Message-ID (diff)
From: egtvedt@samfundet.no (Hans-Christian Egtvedt)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 09/16] avr32/at32ap: switch to the generic PWM framework
Date: Wed, 19 Mar 2014 15:18:20 +0100 [thread overview]
Message-ID: <20140319141820.GA20872@samfundet.no> (raw)
In-Reply-To: <1395234209-15546-10-git-send-email-alexandre.belloni@free-electrons.com>
Around Wed 19 Mar 2014 14:03:22 +0100 or thereabout, Alexandre Belloni wrote:
> Switch to the pwm/pwm-atmel driver instead of misc/atmel_pwm
>
> Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
Acked-by: Hans-Christian Egtvedt <egtvedt@samfundet.no>
> ---
> arch/avr32/mach-at32ap/at32ap700x.c | 7 ++-----
> 1 file changed, 2 insertions(+), 5 deletions(-)
>
> diff --git a/arch/avr32/mach-at32ap/at32ap700x.c b/arch/avr32/mach-at32ap/at32ap700x.c
> index a1f4d1e91b52..db85b5ec3351 100644
> --- a/arch/avr32/mach-at32ap/at32ap700x.c
> +++ b/arch/avr32/mach-at32ap/at32ap700x.c
> @@ -1553,7 +1553,7 @@ static struct resource atmel_pwm0_resource[] __initdata = {
> IRQ(24),
> };
> static struct clk atmel_pwm0_mck = {
> - .name = "pwm_clk",
> + .name = "at91sam9rl-pwm",
I found this a tiny bit weird, but found the matching instance in
drivers/pwm/pwm-atmel.c
IMHO it would initially have been better to call it atpwm_v1 or something
similar, more generic. But I guess that is too late to change at this point.
> .parent = &pbb_clk,
> .mode = pbb_clk_mode,
> .get_rate = pbb_clk_get_rate,
> @@ -1568,7 +1568,7 @@ struct platform_device *__init at32_add_device_pwm(u32 mask)
> if (!mask)
> return NULL;
>
> - pdev = platform_device_alloc("atmel_pwm", 0);
> + pdev = platform_device_alloc("at91sam9rl-pwm", 0);
> if (!pdev)
> return NULL;
>
> @@ -1576,9 +1576,6 @@ struct platform_device *__init at32_add_device_pwm(u32 mask)
> ARRAY_SIZE(atmel_pwm0_resource)))
> goto out_free_pdev;
>
> - if (platform_device_add_data(pdev, &mask, sizeof(mask)))
> - goto out_free_pdev;
> -
> pin_mask = 0;
> if (mask & (1 << 0))
> pin_mask |= (1 << 28);
--
mvh
Hans-Christian Egtvedt
WARNING: multiple messages have this Message-ID (diff)
From: Hans-Christian Egtvedt <egtvedt@samfundet.no>
To: Alexandre Belloni <alexandre.belloni@free-electrons.com>
Cc: linux-kernel@vger.kernel.org,
linux-arm-kernel@lists.infradead.org,
Nicolas Ferre <nicolas.ferre@atmel.com>,
Jean-Christophe Plagniol-Villard <plagnioj@jcrosoft.com>,
Haavard Skinnemoen <hskinnemoen@gmail.com>,
Bryan Wu <cooloney@gmail.com>, Richard Purdie <rpurdie@rpsys.net>,
Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
Thierry Reding <thierry.reding@gmail.com>,
Jingoo Han <jg1.han@samsung.com>,
linux-leds@vger.kernel.org, linux-pwm@vger.kernel.org,
linux-fbdev@vger.kernel.org
Subject: Re: [PATCH 09/16] avr32/at32ap: switch to the generic PWM framework
Date: Wed, 19 Mar 2014 15:18:20 +0100 [thread overview]
Message-ID: <20140319141820.GA20872@samfundet.no> (raw)
In-Reply-To: <1395234209-15546-10-git-send-email-alexandre.belloni@free-electrons.com>
Around Wed 19 Mar 2014 14:03:22 +0100 or thereabout, Alexandre Belloni wrote:
> Switch to the pwm/pwm-atmel driver instead of misc/atmel_pwm
>
> Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
Acked-by: Hans-Christian Egtvedt <egtvedt@samfundet.no>
> ---
> arch/avr32/mach-at32ap/at32ap700x.c | 7 ++-----
> 1 file changed, 2 insertions(+), 5 deletions(-)
>
> diff --git a/arch/avr32/mach-at32ap/at32ap700x.c b/arch/avr32/mach-at32ap/at32ap700x.c
> index a1f4d1e91b52..db85b5ec3351 100644
> --- a/arch/avr32/mach-at32ap/at32ap700x.c
> +++ b/arch/avr32/mach-at32ap/at32ap700x.c
> @@ -1553,7 +1553,7 @@ static struct resource atmel_pwm0_resource[] __initdata = {
> IRQ(24),
> };
> static struct clk atmel_pwm0_mck = {
> - .name = "pwm_clk",
> + .name = "at91sam9rl-pwm",
I found this a tiny bit weird, but found the matching instance in
drivers/pwm/pwm-atmel.c
IMHO it would initially have been better to call it atpwm_v1 or something
similar, more generic. But I guess that is too late to change at this point.
> .parent = &pbb_clk,
> .mode = pbb_clk_mode,
> .get_rate = pbb_clk_get_rate,
> @@ -1568,7 +1568,7 @@ struct platform_device *__init at32_add_device_pwm(u32 mask)
> if (!mask)
> return NULL;
>
> - pdev = platform_device_alloc("atmel_pwm", 0);
> + pdev = platform_device_alloc("at91sam9rl-pwm", 0);
> if (!pdev)
> return NULL;
>
> @@ -1576,9 +1576,6 @@ struct platform_device *__init at32_add_device_pwm(u32 mask)
> ARRAY_SIZE(atmel_pwm0_resource)))
> goto out_free_pdev;
>
> - if (platform_device_add_data(pdev, &mask, sizeof(mask)))
> - goto out_free_pdev;
> -
> pin_mask = 0;
> if (mask & (1 << 0))
> pin_mask |= (1 << 28);
--
mvh
Hans-Christian Egtvedt
next prev parent reply other threads:[~2014-03-19 14:18 UTC|newest]
Thread overview: 102+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-03-19 13:03 [PATCH 00/16] move at91 and avr32 to the PWM framework, remove obsolete drivers Alexandre Belloni
2014-03-19 13:03 ` Alexandre Belloni
2014-03-19 13:03 ` Alexandre Belloni
2014-03-19 13:03 ` [PATCH 01/16] ARM: at91: at91sam9g45: switch to generic PWM framework Alexandre Belloni
2014-03-19 13:03 ` Alexandre Belloni
2014-03-19 13:03 ` Alexandre Belloni
2014-03-19 13:03 ` Alexandre Belloni
2014-03-19 13:03 ` [PATCH 02/16] ARM: at91: sam9m10g45ek: use generic leds_pwm driver Alexandre Belloni
2014-03-19 13:03 ` Alexandre Belloni
2014-03-19 13:03 ` Alexandre Belloni
2014-03-19 13:03 ` Alexandre Belloni
2014-03-19 13:03 ` [PATCH 03/16] ARM: at91: at91sam9263: switch to generic PWM framework Alexandre Belloni
2014-03-19 13:03 ` Alexandre Belloni
2014-03-19 13:03 ` Alexandre Belloni
2014-03-19 13:03 ` Alexandre Belloni
2014-03-19 13:03 ` [PATCH 04/16] ARM: at91: sam9263ek: use generic leds_pwm driver Alexandre Belloni
2014-03-19 13:03 ` Alexandre Belloni
2014-03-19 13:03 ` Alexandre Belloni
2014-03-19 13:03 ` Alexandre Belloni
2014-03-19 13:03 ` [PATCH 05/16] ARM: at91: at91sam9rl: switch to generic PWM framework Alexandre Belloni
2014-03-19 13:03 ` Alexandre Belloni
2014-03-19 13:03 ` Alexandre Belloni
2014-03-19 13:03 ` [PATCH 06/16] ARM: at91: remove useless at91_pwm_leds() Alexandre Belloni
2014-03-19 13:03 ` Alexandre Belloni
2014-03-19 13:03 ` Alexandre Belloni
2014-03-19 13:03 ` [PATCH 07/16] PWM: atmel: allow building for AVR32 Alexandre Belloni
2014-03-19 13:03 ` Alexandre Belloni
2014-03-19 13:03 ` Alexandre Belloni
2014-03-19 13:03 ` [PATCH 08/16] backlight: pwm_bl: set pwm polarity when using platform data Alexandre Belloni
2014-03-19 13:03 ` Alexandre Belloni
2014-03-19 13:03 ` Alexandre Belloni
2014-03-19 13:03 ` Alexandre Belloni
2014-04-07 11:16 ` Thierry Reding
2014-04-07 11:16 ` Thierry Reding
2014-04-07 11:16 ` Thierry Reding
2014-03-19 13:03 ` [PATCH 09/16] avr32/at32ap: switch to the generic PWM framework Alexandre Belloni
2014-03-19 13:03 ` Alexandre Belloni
2014-03-19 13:03 ` Alexandre Belloni
2014-03-19 14:18 ` Hans-Christian Egtvedt [this message]
2014-03-19 14:18 ` Hans-Christian Egtvedt
2014-03-19 14:18 ` Hans-Christian Egtvedt
2014-03-19 14:18 ` Hans-Christian Egtvedt
2014-04-07 11:28 ` Thierry Reding
2014-04-07 11:28 ` Thierry Reding
2014-04-07 11:28 ` Thierry Reding
2014-03-19 13:03 ` [PATCH 10/16] avr32: MRMT: use generic leds_pwm driver Alexandre Belloni
2014-03-19 13:03 ` Alexandre Belloni
2014-03-19 13:03 ` Alexandre Belloni
2014-03-19 14:19 ` Hans-Christian Egtvedt
2014-03-19 14:19 ` Hans-Christian Egtvedt
2014-03-19 14:19 ` Hans-Christian Egtvedt
2014-03-19 14:19 ` Hans-Christian Egtvedt
2014-03-19 13:03 ` [PATCH 11/16] avr32: merisc: " Alexandre Belloni
2014-03-19 13:03 ` Alexandre Belloni
2014-03-19 13:03 ` Alexandre Belloni
2014-03-19 14:20 ` Hans-Christian Egtvedt
2014-03-19 14:20 ` Hans-Christian Egtvedt
2014-03-19 14:20 ` Hans-Christian Egtvedt
2014-03-19 14:20 ` Hans-Christian Egtvedt
2014-03-19 13:03 ` [PATCH 12/16] avr32: favr-32: use generic pwm_bl driver Alexandre Belloni
2014-03-19 13:03 ` Alexandre Belloni
2014-03-19 13:03 ` Alexandre Belloni
2014-03-19 14:20 ` Hans-Christian Egtvedt
2014-03-19 14:20 ` Hans-Christian Egtvedt
2014-03-19 14:20 ` Hans-Christian Egtvedt
2014-03-19 13:03 ` [PATCH 13/16] avr32: update defconfig to use the generic PWM framework Alexandre Belloni
2014-03-19 13:03 ` Alexandre Belloni
2014-03-19 13:03 ` Alexandre Belloni
2014-03-19 14:21 ` Hans-Christian Egtvedt
2014-03-19 14:21 ` Hans-Christian Egtvedt
2014-03-19 14:21 ` Hans-Christian Egtvedt
2014-03-19 13:03 ` [PATCH 14/16] backlight: atmel-pwm-bl: remove obsolete driver Alexandre Belloni
2014-03-19 13:03 ` Alexandre Belloni
2014-03-19 13:03 ` Alexandre Belloni
2014-03-19 14:22 ` Hans-Christian Egtvedt
2014-03-19 14:22 ` Hans-Christian Egtvedt
2014-03-19 14:22 ` Hans-Christian Egtvedt
2014-03-21 0:51 ` Jingoo Han
2014-03-21 0:51 ` Jingoo Han
2014-03-21 0:51 ` Jingoo Han
2014-03-24 15:54 ` Alexandre Belloni
2014-03-24 15:54 ` Alexandre Belloni
2014-03-24 15:54 ` Alexandre Belloni
2014-03-25 0:15 ` Jingoo Han
2014-03-25 0:15 ` Jingoo Han
2014-03-25 0:15 ` Jingoo Han
2014-03-19 13:03 ` [PATCH 15/16] leds: atmel-pwm: " Alexandre Belloni
2014-03-19 13:03 ` Alexandre Belloni
2014-03-19 13:03 ` Alexandre Belloni
2014-03-27 17:27 ` Bryan Wu
2014-03-27 17:27 ` Bryan Wu
2014-03-27 17:27 ` Bryan Wu
2014-03-19 13:03 ` [PATCH 16/16] misc: atmel_pwm: " Alexandre Belloni
2014-03-19 13:03 ` Alexandre Belloni
2014-03-19 13:03 ` Alexandre Belloni
2014-03-27 17:43 ` [PATCH 00/16] move at91 and avr32 to the PWM framework, remove obsolete drivers Nicolas Ferre
2014-03-27 17:43 ` Nicolas Ferre
2014-03-27 17:43 ` Nicolas Ferre
2014-03-27 17:43 ` Nicolas Ferre
2014-03-27 18:21 ` Alexandre Belloni
2014-03-27 18:21 ` Alexandre Belloni
2014-03-27 18:21 ` Alexandre Belloni
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=20140319141820.GA20872@samfundet.no \
--to=egtvedt@samfundet.no \
--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 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.