From: Pavel Machek <pavel@denx.de>
To: Sasha Levin <sashal@kernel.org>
Cc: linux-kernel@vger.kernel.org, stable@vger.kernel.org,
Andy Shevchenko <andriy.shevchenko@linux.intel.com>,
Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
Linus Walleij <linus.walleij@linaro.org>,
Bartosz Golaszewski <bartosz.golaszewski@linaro.org>,
daniel@zonque.org, haojian.zhuang@gmail.com,
robert.jarzmik@free.fr, linux-arm-kernel@lists.infradead.org,
linux-usb@vger.kernel.org
Subject: Re: [PATCH AUTOSEL 5.10 6/6] USB: gadget: pxa27x_udc: Avoid using GPIOF_ACTIVE_LOW
Date: Mon, 2 Dec 2024 13:09:50 +0100 [thread overview]
Message-ID: <Z02jjnoqlvRw8YV0@duo.ucw.cz> (raw)
In-Reply-To: <20241124125742.3341086-6-sashal@kernel.org>
[-- Attachment #1: Type: text/plain, Size: 1363 bytes --]
Hi!
> From: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
>
> [ Upstream commit 62d2a940f29e6aa5a1d844a90820ca6240a99b34 ]
>
> Avoid using GPIOF_ACTIVE_LOW as it's deprecated and subject to remove.
Well, we won't be removing it in -stable, so we don't need this.
Best regards,
Pavel
> +++ b/drivers/usb/gadget/udc/pxa27x_udc.c
> @@ -2356,18 +2356,19 @@ static int pxa_udc_probe(struct platform_device *pdev)
> struct pxa_udc *udc = &memory;
> int retval = 0, gpio;
> struct pxa2xx_udc_mach_info *mach = dev_get_platdata(&pdev->dev);
> - unsigned long gpio_flags;
>
> if (mach) {
> - gpio_flags = mach->gpio_pullup_inverted ? GPIOF_ACTIVE_LOW : 0;
> gpio = mach->gpio_pullup;
> if (gpio_is_valid(gpio)) {
> retval = devm_gpio_request_one(&pdev->dev, gpio,
> - gpio_flags,
> + GPIOF_OUT_INIT_LOW,
> "USB D+ pullup");
> if (retval)
> return retval;
> udc->gpiod = gpio_to_desc(mach->gpio_pullup);
> +
> + if (mach->gpio_pullup_inverted ^ gpiod_is_active_low(udc->gpiod))
> + gpiod_toggle_active_low(udc->gpiod);
> }
> udc->udc_command = mach->udc_command;
> } else {
--
DENX Software Engineering GmbH, Managing Director: Erika Unter
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 195 bytes --]
next prev parent reply other threads:[~2024-12-02 12:09 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-11-24 12:57 [PATCH AUTOSEL 5.10 1/6] media: v4l: Add luma 16-bit interlaced pixel format Sasha Levin
2024-11-24 12:57 ` [PATCH AUTOSEL 5.10 2/6] media: uvcvideo: Add a quirk for the Kaiweets KTI-W02 infrared camera Sasha Levin
2024-11-24 12:57 ` [PATCH AUTOSEL 5.10 3/6] media: vb2: use lock if wait_prepare/finish are NULL Sasha Levin
2024-11-24 12:57 ` [PATCH AUTOSEL 5.10 4/6] media: cx231xx: Add support for Dexatek USB Video Grabber 1d19:6108 Sasha Levin
2024-11-24 12:57 ` [PATCH AUTOSEL 5.10 5/6] HID: bpf: Fix NKRO on Mistel MD770 Sasha Levin
2024-11-24 12:57 ` [PATCH AUTOSEL 5.10 6/6] USB: gadget: pxa27x_udc: Avoid using GPIOF_ACTIVE_LOW Sasha Levin
2024-12-02 12:09 ` Pavel Machek [this message]
2024-12-02 12:09 ` [PATCH AUTOSEL 5.10 1/6] media: v4l: Add luma 16-bit interlaced pixel format Pavel Machek
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=Z02jjnoqlvRw8YV0@duo.ucw.cz \
--to=pavel@denx.de \
--cc=andriy.shevchenko@linux.intel.com \
--cc=bartosz.golaszewski@linaro.org \
--cc=daniel@zonque.org \
--cc=gregkh@linuxfoundation.org \
--cc=haojian.zhuang@gmail.com \
--cc=linus.walleij@linaro.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-usb@vger.kernel.org \
--cc=robert.jarzmik@free.fr \
--cc=sashal@kernel.org \
--cc=stable@vger.kernel.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