Linux USB
 help / color / mirror / Atom feed
From: Darren Stevens <darren@stevens-zone.net>
To: Sergei Shtylyov <sergei.shtylyov@gmail.com>
Cc: linuxppc-dev@lists.ozlabs.org, oss@buserror.net,
	chzigotzky@xenosoft.de, robh@kernel.org,
	stern@rowland.harvard.edu, linux-usb@vger.kernel.org,
	shawnguo@kernel.org, leoyang.li@nxp.com
Subject: Re: drivers/usb/host/ehci-fsl: Fix interrupt setup in host mode.
Date: Sun, 26 Jun 2022 20:49:11 +0100 (BST)	[thread overview]
Message-ID: <53ac873c23e.3ae9df00@auth.smtp.1and1.co.uk> (raw)
In-Reply-To: <947e4583-fe0b-b8af-61b3-2d120357727c@gmail.com>

Hello Sergei

On 26/06/2022, Sergei Shtylyov wrote:
> 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".

I thought I'd done that, this is the minimum amount of changes that fix what changed in the specified commit. 

> [...]
>> @@ -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?

With baseline the mouse and keyboard on our machines don't work - dmesg reports no interrupt. Fixing the interrupt detection throws a 'invalid resoure' error instead (No idea why), which these lines fix. Both problems disappear if we revert the 'fixes' patch.

Hmmm, perhaps title shoud be 'fix resource detection in host mode'?

Regards
Darren


  reply	other threads:[~2022-06-26 20:03 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
2022-06-26 19:49   ` Darren Stevens [this message]
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=53ac873c23e.3ae9df00@auth.smtp.1and1.co.uk \
    --to=darren@stevens-zone.net \
    --cc=chzigotzky@xenosoft.de \
    --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=sergei.shtylyov@gmail.com \
    --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