From: Michael Buesch <mb@bu3sch.de>
To: matthieu castet <castet.matthieu@free.fr>
Cc: linux-mips@linux-mips.org, netdev@vger.kernel.org,
Daniel Mueller <daniel@danm.de>
Subject: Re: [PATCH] bc47xx : fix ssb irq setup
Date: Tue, 19 May 2009 15:19:58 +0200 [thread overview]
Message-ID: <200905191519.59193.mb@bu3sch.de> (raw)
In-Reply-To: <4A11DBD4.7070706@free.fr>
On Tuesday 19 May 2009 00:06:12 matthieu castet wrote:
> Hi,
>
> the current ssb irq setup (in ssb_mipscore_init) have some problem :
> it configure some device on some irq without checking that the irq is
> not taken by an other device.
>
> For example in my case PCI host is on irq 0 and IPSEC on irq 3.
> The current code :
> - store in dev->irq that IPSEC irq is 3+2
> - do a set_irq 0->3 on PCI host
>
> But now IPSEC irq is not routed anymore to the mips code and dev->irq is
> wrong. This cause problem described in [1].
>
> This patch try to solve the problem by making set_irq configure the
> device we want to take the irq on the shared irq0.
> The previous example become :
> - store in dev->irq that IPSEC irq is 3+2
> - do a set_irq 0->3 on PCI host :
> - irq 3 is already taken by IPSEC. do a set_irq 3->0 on IPSEC
>
>
> I also added some code to print the irq configuration before and after
> irq setup to allow easier debugging. And I add extra checking in
> ssb_mips_irq to report device without irq or device with not routed irq.
>
>
> [1] http://www.danm.de/files/src/bcm5365p/REPORTED_DEVICES
>
> Signed-off-by: Matthieu CASTET <castet.matthieu@free.fr>
>
If this works on all devices, I'm OK with this. Please submit to linville@tuxdriver.com
You can add my ack.
--
Greetings, Michael.
next prev parent reply other threads:[~2009-05-19 13:21 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-05-18 22:06 [PATCH] bc47xx : fix ssb irq setup matthieu castet
2009-05-19 13:19 ` Michael Buesch [this message]
2009-05-25 17:55 ` matthieu castet
2009-06-11 7:59 ` Florian Fainelli
2009-06-11 8:09 ` Florian Fainelli
2009-06-11 9:23 ` castet.matthieu
-- strict thread matches above, loose matches on Subject: below --
2009-06-30 21:04 matthieu castet
2009-06-30 21:10 ` matthieu castet
2009-06-30 21:27 ` Ralf Baechle
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=200905191519.59193.mb@bu3sch.de \
--to=mb@bu3sch.de \
--cc=castet.matthieu@free.fr \
--cc=daniel@danm.de \
--cc=linux-mips@linux-mips.org \
--cc=netdev@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.