Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1239656 > unrolled thread
| Started by | Thierry Reding <thierry.reding@gmail.com> |
|---|---|
| First post | 2015-10-05 17:20 +0200 |
| Last post | 2015-10-07 15:40 +0200 |
| Articles | 6 — 4 participants |
Back to article view | Back to linux.kernel
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
Re: [PATCH v4 0/2] pwm: Broadcom BCM7038 PWM controller (v4) Thierry Reding <thierry.reding@gmail.com> - 2015-10-05 17:20 +0200
Re: [PATCH v4 0/2] pwm: Broadcom BCM7038 PWM controller (v4) Florian Fainelli <f.fainelli@gmail.com> - 2015-10-06 20:20 +0200
Re: [PATCH v4 0/2] pwm: Broadcom BCM7038 PWM controller (v4) Florian Fainelli <fainelli@broadcom.com> - 2015-10-06 20:20 +0200
[PATCH] pwm: fix Broadcom BCM7038 PWM driver Arnd Bergmann <arnd@arndb.de> - 2015-10-06 22:00 +0200
Re: [PATCH] pwm: fix Broadcom BCM7038 PWM driver Florian Fainelli <f.fainelli@gmail.com> - 2015-10-07 03:00 +0200
Re: [PATCH] pwm: fix Broadcom BCM7038 PWM driver Arnd Bergmann <arnd@arndb.de> - 2015-10-07 15:40 +0200
| From | Thierry Reding <thierry.reding@gmail.com> |
|---|---|
| Date | 2015-10-05 17:20 +0200 |
| Subject | Re: [PATCH v4 0/2] pwm: Broadcom BCM7038 PWM controller (v4) |
| Message-ID | <qgfIv-2DV-37@gated-at.bofh.it> |
[Multipart message — attachments visible in raw view] — view raw
On Mon, Sep 14, 2015 at 04:47:04PM -0700, Florian Fainelli wrote: > Hi, > > This patch series add PWM support for the Broadcom BCM7xxx > chips which feature one or more PWM controllers capable of > output periods from 148ns to ~622ms using a combination of > variable and fixed frequency settings. > > The controller does not support setting a polarity. > > This is based on Thierry's pwm/next branch. > > Florian Fainelli (2): > Documentation: dt: add Broadcom BCM7038 PWM controller binding > pwm: Add Broadcom BCM7038 PWM controller support I've applied both of these patches with a couple of stylistic changes. Thanks, Thierry
[toc] | [next] | [standalone]
| From | Florian Fainelli <f.fainelli@gmail.com> |
|---|---|
| Date | 2015-10-06 20:20 +0200 |
| Message-ID | <qgF0e-5vZ-9@gated-at.bofh.it> |
| In reply to | #1239656 |
On 05/10/15 08:14, Thierry Reding wrote: > On Mon, Sep 14, 2015 at 04:47:04PM -0700, Florian Fainelli wrote: >> Hi, >> >> This patch series add PWM support for the Broadcom BCM7xxx >> chips which feature one or more PWM controllers capable of >> output periods from 148ns to ~622ms using a combination of >> variable and fixed frequency settings. >> >> The controller does not support setting a polarity. >> >> This is based on Thierry's pwm/next branch. >> >> Florian Fainelli (2): >> Documentation: dt: add Broadcom BCM7038 PWM controller binding >> pwm: Add Broadcom BCM7038 PWM controller support > > I've applied both of these patches with a couple of stylistic changes. Thanks but: 1) you dropped the MODULE_DEVICE_TABLE while doing so which is useful for auto-loading OF modules 2) you introduced a build failure in the CONFIG_PM_SLEEP There was a patch just submitted for 2), but I can submit an incremental for 1) maybe? -- Florian -- 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/
[toc] | [prev] | [next] | [standalone]
| From | Florian Fainelli <fainelli@broadcom.com> |
|---|---|
| Date | 2015-10-06 20:20 +0200 |
| Message-ID | <qgF0e-5vZ-13@gated-at.bofh.it> |
| In reply to | #1240838 |
On 06/10/15 11:14, Florian Fainelli wrote: > On 05/10/15 08:14, Thierry Reding wrote: >> On Mon, Sep 14, 2015 at 04:47:04PM -0700, Florian Fainelli wrote: >>> Hi, >>> >>> This patch series add PWM support for the Broadcom BCM7xxx >>> chips which feature one or more PWM controllers capable of >>> output periods from 148ns to ~622ms using a combination of >>> variable and fixed frequency settings. >>> >>> The controller does not support setting a polarity. >>> >>> This is based on Thierry's pwm/next branch. >>> >>> Florian Fainelli (2): >>> Documentation: dt: add Broadcom BCM7038 PWM controller binding >>> pwm: Add Broadcom BCM7038 PWM controller support >> >> I've applied both of these patches with a couple of stylistic changes. > > Thanks but: > > 1) you dropped the MODULE_DEVICE_TABLE while doing so which is useful > for auto-loading OF modules > 2) you introduced a build failure in the CONFIG_PM_SLEEP > > There was a patch just submitted for 2), but I can submit an incremental > for 1) maybe? Disregard that, brainfart on my side, was diffing branches backwards... oh well. -- Florian -- 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/
[toc] | [prev] | [next] | [standalone]
| From | Arnd Bergmann <arnd@arndb.de> |
|---|---|
| Date | 2015-10-06 22:00 +0200 |
| Subject | [PATCH] pwm: fix Broadcom BCM7038 PWM driver |
| Message-ID | <qgGz2-7BP-59@gated-at.bofh.it> |
| In reply to | #1239656 |
The newly added pwm-brcmstb driver fails to build if CONFIG_PM_SLEEP
is enabled:
drivers/pwm/pwm-brcmstb.c: In function 'brcmstb_pwm_suspend':
drivers/pwm/pwm-brcmstb.c:309:42: error: 'dev' undeclared (first use in this function)
struct brcmstb_pwm *p = dev_get_drvdata(dev);
This changes the name of the function argument to match its user.
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
---
On Monday 05 October 2015 17:14:15 Thierry Reding wrote:
> On Mon, Sep 14, 2015 at 04:47:04PM -0700, Florian Fainelli wrote:
> > Florian Fainelli (2):
> > Documentation: dt: add Broadcom BCM7038 PWM controller binding
> > pwm: Add Broadcom BCM7038 PWM controller support
>
> I've applied both of these patches with a couple of stylistic changes.
As in the pwm-berlin driver, one of the fixups was broken.
diff --git a/drivers/pwm/pwm-brcmstb.c b/drivers/pwm/pwm-brcmstb.c
index 083e3ef5b8e5..423ce087cd9c 100644
--- a/drivers/pwm/pwm-brcmstb.c
+++ b/drivers/pwm/pwm-brcmstb.c
@@ -304,7 +304,7 @@ static int brcmstb_pwm_remove(struct platform_device *pdev)
}
#ifdef CONFIG_PM_SLEEP
-static int brcmstb_pwm_suspend(struct device *d)
+static int brcmstb_pwm_suspend(struct device *dev)
{
struct brcmstb_pwm *p = dev_get_drvdata(dev);
@@ -313,7 +313,7 @@ static int brcmstb_pwm_suspend(struct device *d)
return 0;
}
-static int brcmstb_pwm_resume(struct device *d)
+static int brcmstb_pwm_resume(struct device *dev)
{
struct brcmstb_pwm *p = dev_get_drvdata(dev);
--
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/
[toc] | [prev] | [next] | [standalone]
| From | Florian Fainelli <f.fainelli@gmail.com> |
|---|---|
| Date | 2015-10-07 03:00 +0200 |
| Subject | Re: [PATCH] pwm: fix Broadcom BCM7038 PWM driver |
| Message-ID | <qgLfk-5Wu-7@gated-at.bofh.it> |
| In reply to | #1240913 |
On 06/10/15 12:59, Arnd Bergmann wrote:
> The newly added pwm-brcmstb driver fails to build if CONFIG_PM_SLEEP
> is enabled:
>
> drivers/pwm/pwm-brcmstb.c: In function 'brcmstb_pwm_suspend':
> drivers/pwm/pwm-brcmstb.c:309:42: error: 'dev' undeclared (first use in this function)
> struct brcmstb_pwm *p = dev_get_drvdata(dev);
>
> This changes the name of the function argument to match its user.
Thanks, maybe, to avoid similar issues in the future, we should start
removing the ifdef CONFIG_PM_SLEEP and instead annotate such functions
with __maybe_unused. I wonder if we could magically make that happen
with a coccinelle script that looks for SIMPLE_DEV_PM_OPS to know which
functions to annotate... humm.
>
> Signed-off-by: Arnd Bergmann <arnd@arndb.de>
> ---
> On Monday 05 October 2015 17:14:15 Thierry Reding wrote:
>> On Mon, Sep 14, 2015 at 04:47:04PM -0700, Florian Fainelli wrote:
>>> Florian Fainelli (2):
>>> Documentation: dt: add Broadcom BCM7038 PWM controller binding
>>> pwm: Add Broadcom BCM7038 PWM controller support
>>
>> I've applied both of these patches with a couple of stylistic changes.
>
> As in the pwm-berlin driver, one of the fixups was broken.
>
> diff --git a/drivers/pwm/pwm-brcmstb.c b/drivers/pwm/pwm-brcmstb.c
> index 083e3ef5b8e5..423ce087cd9c 100644
> --- a/drivers/pwm/pwm-brcmstb.c
> +++ b/drivers/pwm/pwm-brcmstb.c
> @@ -304,7 +304,7 @@ static int brcmstb_pwm_remove(struct platform_device *pdev)
> }
>
> #ifdef CONFIG_PM_SLEEP
> -static int brcmstb_pwm_suspend(struct device *d)
> +static int brcmstb_pwm_suspend(struct device *dev)
> {
> struct brcmstb_pwm *p = dev_get_drvdata(dev);
>
> @@ -313,7 +313,7 @@ static int brcmstb_pwm_suspend(struct device *d)
> return 0;
> }
>
> -static int brcmstb_pwm_resume(struct device *d)
> +static int brcmstb_pwm_resume(struct device *dev)
> {
> struct brcmstb_pwm *p = dev_get_drvdata(dev);
>
>
--
Florian
--
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/
[toc] | [prev] | [next] | [standalone]
| From | Arnd Bergmann <arnd@arndb.de> |
|---|---|
| Date | 2015-10-07 15:40 +0200 |
| Subject | Re: [PATCH] pwm: fix Broadcom BCM7038 PWM driver |
| Message-ID | <qgX6N-6gd-15@gated-at.bofh.it> |
| In reply to | #1241114 |
On Tuesday 06 October 2015 17:51:30 Florian Fainelli wrote: > On 06/10/15 12:59, Arnd Bergmann wrote: > > The newly added pwm-brcmstb driver fails to build if CONFIG_PM_SLEEP > > is enabled: > > > > drivers/pwm/pwm-brcmstb.c: In function 'brcmstb_pwm_suspend': > > drivers/pwm/pwm-brcmstb.c:309:42: error: 'dev' undeclared (first use in this function) > > struct brcmstb_pwm *p = dev_get_drvdata(dev); > > > > This changes the name of the function argument to match its user. > > Thanks, maybe, to avoid similar issues in the future, we should start > removing the ifdef CONFIG_PM_SLEEP and instead annotate such functions > with __maybe_unused. I wonder if we could magically make that happen > with a coccinelle script that looks for SIMPLE_DEV_PM_OPS to know which > functions to annotate... humm. I think the best solution would be to replace SIMPLE_DEV_PM_OPS with a macro that creates an unused reference to the functions. That way, we could remove all the #ifdef CONFIG_PM_SLEEP from the kernel, but we'd still have to use coccinelle to replace all the current instances with the new macro. Arnd -- 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/
[toc] | [prev] | [standalone]
Back to top | Article view | linux.kernel
csiph-web