From: Sergei Shtylyov <sergei.shtylyov@gmail.com>
To: Darren Stevens <darren@stevens-zone.net>,
linuxppc-dev@lists.ozlabs.org, oss@buserror.net,
chzigotzky@xenosoft.de, robh@kernel.org,
stern@rowland.harvard.edu, linux-usb@vger.kernel.org
Cc: shawnguo@kernel.org, leoyang.li@nxp.com
Subject: Re: [PATCH v2 RFC] drivers/usb/host/ehci-fsl: Fix interrupt setup in host mode.
Date: Sun, 26 Jun 2022 11:49:46 +0300 [thread overview]
Message-ID: <947e4583-fe0b-b8af-61b3-2d120357727c@gmail.com> (raw)
In-Reply-To: <20220625214151.547b3570@Cyrus.lan>
Hello!
On 6/25/22 11:41 PM, Darren Stevens wrote:
> In patch a1a2b7125e10 (Drop static setup of IRQ resource from DT
> core) we stopped platform_get_resource() from returning the IRQ, as all
In commit a1a2b7125e10 ("Drop static setup of IRQ resource from DT core")
> drivers were supposed to have switched to platform_get_irq()
> Unfortunately the Freescale EHCI driver in host mode got missed. Fix
> it. Also fix allocation of resources to work with current kernel.
The basic rule (especially for the fixes) is "do one thing per patch".
> Fixes: a1a2b7125e10 (Drop static setup of IRQ resource from DT core)
> Reported-by Christian Zigotzky <chzigotzky@xenosoft.de>
> Signed-off-by Darren Stevens <darren@stevens-zone.net>
> ---
> v2 - Fixed coding style, removed a couple of unneeded initializations,
> cc'd Layerscape maintainers.
>
> Tested on AmigaOne X5000/20 and X5000/40 not sure if this is entirely
> correct fix though. Contains code by Rob Herring (in fsl-mph-dr-of.c)
>
> diff --git a/drivers/usb/host/ehci-fsl.c b/drivers/usb/host/ehci-fsl.c
> index 385be30..8bd258a 100644
> --- a/drivers/usb/host/ehci-fsl.c
> +++ b/drivers/usb/host/ehci-fsl.c
[...]
> @@ -92,15 +89,18 @@ static int fsl_ehci_drv_probe(struct platform_device *pdev)
> goto err1;
> }
>
> - res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
> - hcd->regs = devm_ioremap_resource(&pdev->dev, res);
> + tmp = of_address_to_resource(dn, 0, &res);
Hm, why? What does this fix?
[...]
MBR, Sergey
next prev parent reply other threads:[~2022-06-26 8:49 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-06-25 20:41 [PATCH v2 RFC] drivers/usb/host/ehci-fsl: Fix interrupt setup in host mode Darren Stevens
2022-06-26 8:49 ` Sergei Shtylyov [this message]
2022-06-26 19:49 ` Darren Stevens
2022-06-27 15:52 ` Rob Herring
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=947e4583-fe0b-b8af-61b3-2d120357727c@gmail.com \
--to=sergei.shtylyov@gmail.com \
--cc=chzigotzky@xenosoft.de \
--cc=darren@stevens-zone.net \
--cc=leoyang.li@nxp.com \
--cc=linux-usb@vger.kernel.org \
--cc=linuxppc-dev@lists.ozlabs.org \
--cc=oss@buserror.net \
--cc=robh@kernel.org \
--cc=shawnguo@kernel.org \
--cc=stern@rowland.harvard.edu \
/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