From: <Cristian.Birsan@microchip.com>
To: <claudiu.beznea@tuxon.dev>, <frank.li@vivo.com>,
<gregkh@linuxfoundation.org>, <Nicolas.Ferre@microchip.com>,
<alexandre.belloni@bootlin.com>, <Claudiu.Beznea@microchip.com>
Cc: <linux-arm-kernel@lists.infradead.org>,
<linux-usb@vger.kernel.org>, <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH 08/30] usb: gadget/atmel_usba_udc: Use devm_platform_get_and_ioremap_resource()
Date: Thu, 27 Jul 2023 12:20:03 +0000 [thread overview]
Message-ID: <4e4e2a26-56b7-90c8-b0e9-8d4de639b237@microchip.com> (raw)
In-Reply-To: <9887e7a5-2422-4ab1-baf8-6eb0e27c1314@tuxon.dev>
On 7/27/23 08:34, claudiu beznea wrote:
>
> On 26.07.2023 14:37, Yangtao Li wrote:
>> Convert platform_get_resource(), devm_ioremap_resource() to a single
>> call to devm_platform_get_and_ioremap_resource(), as this is exactly
>> what this function does.
>>
>> Signed-off-by: Yangtao Li <frank.li@vivo.com>
>
> Reviewed-by: Claudiu Beznea <claudiu.beznea@tuxon.dev>
Acked-by: Cristian Birsan <cristian.birsan@microchip.com>
>
>> ---
>> drivers/usb/gadget/udc/atmel_usba_udc.c | 6 ++----
>> 1 file changed, 2 insertions(+), 4 deletions(-)
>>
>> diff --git a/drivers/usb/gadget/udc/atmel_usba_udc.c b/drivers/usb/gadget/udc/atmel_usba_udc.c
>> index 6c0ed3fa5eb1..02b1bef5e22e 100644
>> --- a/drivers/usb/gadget/udc/atmel_usba_udc.c
>> +++ b/drivers/usb/gadget/udc/atmel_usba_udc.c
>> @@ -2285,15 +2285,13 @@ static int usba_udc_probe(struct platform_device *pdev)
>> udc->gadget = usba_gadget_template;
>> INIT_LIST_HEAD(&udc->gadget.ep_list);
>>
>> - res = platform_get_resource(pdev, IORESOURCE_MEM, CTRL_IOMEM_ID);
>> - udc->regs = devm_ioremap_resource(&pdev->dev, res);
>> + udc->regs = devm_platform_get_and_ioremap_resource(pdev, CTRL_IOMEM_ID, &res);
>> if (IS_ERR(udc->regs))
>> return PTR_ERR(udc->regs);
>> dev_info(&pdev->dev, "MMIO registers at %pR mapped at %p\n",
>> res, udc->regs);
>>
>> - res = platform_get_resource(pdev, IORESOURCE_MEM, FIFO_IOMEM_ID);
>> - udc->fifo = devm_ioremap_resource(&pdev->dev, res);
>> + udc->fifo = devm_platform_get_and_ioremap_resource(pdev, FIFO_IOMEM_ID, &res);
>> if (IS_ERR(udc->fifo))
>> return PTR_ERR(udc->fifo);
>> dev_info(&pdev->dev, "FIFO at %pR mapped at %p\n", res, udc->fifo);
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
next prev parent reply other threads:[~2023-07-27 12:20 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20230726113816.888-1-frank.li@vivo.com>
[not found] ` <20230726113816.888-29-frank.li@vivo.com>
2023-07-27 0:46 ` [PATCH 29/30] usb: ehci-exynos: Use devm_platform_get_and_ioremap_resource() Andi Shyti
[not found] ` <20230726113816.888-8-frank.li@vivo.com>
2023-07-27 5:34 ` [PATCH 08/30] usb: gadget/atmel_usba_udc: " claudiu beznea
2023-07-27 12:20 ` Cristian.Birsan [this message]
[not found] ` <20230726113816.888-10-frank.li@vivo.com>
2023-07-27 5:35 ` [PATCH 10/30] usb: ehci-atmel: " claudiu beznea
[not found] ` <20230726113816.888-4-frank.li@vivo.com>
2023-07-27 5:35 ` [PATCH 04/30] usb: ohci-at91: Remove redundant msg at probe time claudiu beznea
[not found] ` <20230726113816.888-28-frank.li@vivo.com>
2023-08-28 9:08 ` [PATCH 28/30] usb: ehci-st: Use devm_platform_get_and_ioremap_resource() Patrice CHOTARD
[not found] ` <20230726113816.888-30-frank.li@vivo.com>
2023-08-28 9:08 ` [PATCH 30/30] usb: ohci-st: " Patrice CHOTARD
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=4e4e2a26-56b7-90c8-b0e9-8d4de639b237@microchip.com \
--to=cristian.birsan@microchip.com \
--cc=Claudiu.Beznea@microchip.com \
--cc=Nicolas.Ferre@microchip.com \
--cc=alexandre.belloni@bootlin.com \
--cc=claudiu.beznea@tuxon.dev \
--cc=frank.li@vivo.com \
--cc=gregkh@linuxfoundation.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-usb@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