From: Thierry Reding <thierry.reding@gmail.com>
To: Linus Walleij <linus.walleij@linaro.org>,
Bartosz Golaszewski <brgl@bgdev.pl>
Cc: "Baruch Siach" <baruch@tkos.co.il>,
"Uwe Kleine-König" <u.kleine-koenig@pengutronix.de>,
"Lee Jones" <lee.jones@linaro.org>,
"Russell King" <linux@armlinux.org.uk>,
linux-pwm@vger.kernel.org, linux-gpio@vger.kernel.org
Subject: Re: [PATCH] gpio: mvebu: drop pwm base assignment
Date: Fri, 22 Apr 2022 18:48:54 +0200 [thread overview]
Message-ID: <YmLcdmQrO4+0tEiJ@orome> (raw)
In-Reply-To: <145383feecbe43f3bbd3e128143f7890f0314b3b.1649658220.git.baruch@tkos.co.il>
[-- Attachment #1: Type: text/plain, Size: 1560 bytes --]
On Mon, Apr 11, 2022 at 09:23:40AM +0300, Baruch Siach wrote:
> pwmchip_add() unconditionally assigns the base ID dynamically. Commit
> f9a8ee8c8bcd1 ("pwm: Always allocate PWM chip base ID dynamically")
> dropped all base assignment from drivers under drivers/pwm/. It missed
> this driver. Fix that.
>
> Fixes: f9a8ee8c8bcd1 ("pwm: Always allocate PWM chip base ID dynamically")
> Signed-off-by: Baruch Siach <baruch@tkos.co.il>
> ---
> drivers/gpio/gpio-mvebu.c | 7 -------
> 1 file changed, 7 deletions(-)
Linus, Bartosz,
I see that this was Cc'ed to linux-gpio but not to you guys, so I'm not
sure if you're aware of this. Given that this touches the PWM-specific
bits of this driver I could also pick this up into the PWM tree if you
don't mind.
Quoting in full in case you don't have this in your inboxes.
Thierry
> diff --git a/drivers/gpio/gpio-mvebu.c b/drivers/gpio/gpio-mvebu.c
> index 4c1f9e1091b7..a2c8dd329b31 100644
> --- a/drivers/gpio/gpio-mvebu.c
> +++ b/drivers/gpio/gpio-mvebu.c
> @@ -871,13 +871,6 @@ static int mvebu_pwm_probe(struct platform_device *pdev,
> mvpwm->chip.dev = dev;
> mvpwm->chip.ops = &mvebu_pwm_ops;
> mvpwm->chip.npwm = mvchip->chip.ngpio;
> - /*
> - * There may already be some PWM allocated, so we can't force
> - * mvpwm->chip.base to a fixed point like mvchip->chip.base.
> - * So, we let pwmchip_add() do the numbering and take the next free
> - * region.
> - */
> - mvpwm->chip.base = -1;
>
> spin_lock_init(&mvpwm->lock);
>
> --
> 2.35.1
>
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
next prev parent reply other threads:[~2022-04-22 16:49 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-04-11 6:23 [PATCH] gpio: mvebu: drop pwm base assignment Baruch Siach
2022-04-11 6:48 ` Uwe Kleine-König
2022-04-22 16:48 ` Thierry Reding [this message]
2022-04-22 22:18 ` Linus Walleij
2022-04-23 16:18 ` Uwe Kleine-König
2022-04-24 13:30 ` Linus Walleij
2022-05-02 8:47 ` Bartosz Golaszewski
2022-05-02 9:10 ` Baruch Siach
2022-05-02 9:30 ` Bartosz Golaszewski
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=YmLcdmQrO4+0tEiJ@orome \
--to=thierry.reding@gmail.com \
--cc=baruch@tkos.co.il \
--cc=brgl@bgdev.pl \
--cc=lee.jones@linaro.org \
--cc=linus.walleij@linaro.org \
--cc=linux-gpio@vger.kernel.org \
--cc=linux-pwm@vger.kernel.org \
--cc=linux@armlinux.org.uk \
--cc=u.kleine-koenig@pengutronix.de \
/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