* [PATCH] b44-ssb: Fix IRQ routing bits on the backplane
@ 2007-06-17 12:52 Michael Buesch
2007-06-17 15:21 ` Maximilian Engelhardt
0 siblings, 1 reply; 2+ messages in thread
From: Michael Buesch @ 2007-06-17 12:52 UTC (permalink / raw)
To: John Linville, Andrew Morton; +Cc: netdev, Maximilian Engelhardt, Gary Zambrano
The backplane on the b44 chip seems to have a silicon bug
in the IRQ routing. The ethernet core IRQ routing does not work
with the routing bit returned from the backplaneflag register.
This patch adds a workaround for the b44 chip to use a hardcoded
constant. This constant was also used in the old b44 driver.
Signed-off-by: Michael Buesch <mb@bu3sch.de>
Cc: Maximilian Engelhardt <maxi@daemonizer.de>
Cc: Gary Zambrano <zambrano@broadcom.com>
Index: bu3sch-wireless-dev/drivers/ssb/driver_pcicore.c
===================================================================
--- bu3sch-wireless-dev.orig/drivers/ssb/driver_pcicore.c 2007-06-17 13:35:45.000000000 +0200
+++ bu3sch-wireless-dev/drivers/ssb/driver_pcicore.c 2007-06-17 14:19:05.000000000 +0200
@@ -496,9 +496,15 @@ int ssb_pcicore_dev_irqvecs_enable(struc
u32 intvec;
intvec = ssb_read32(pdev, SSB_INTVEC);
- tmp = ssb_read32(dev, SSB_TPSFLAG);
- tmp &= SSB_TPSFLAG_BPFLAG;
- intvec |= tmp;
+ if ((bus->chip_id & 0xFF00) == 0x4400) {
+ /* Workaround: On the BCM44XX the BPFLAG routing
+ * bit is wrong. Use a hardcoded constant. */
+ intvec |= 0x00000002;
+ } else {
+ tmp = ssb_read32(dev, SSB_TPSFLAG);
+ tmp &= SSB_TPSFLAG_BPFLAG;
+ intvec |= tmp;
+ }
ssb_write32(pdev, SSB_INTVEC, intvec);
}
Please apply this to wireless-dev.
This is also most likely the bug Uwe Bugla was
bullshitting about^W^Wreporting.
--
Greetings Michael.
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] b44-ssb: Fix IRQ routing bits on the backplane
2007-06-17 12:52 [PATCH] b44-ssb: Fix IRQ routing bits on the backplane Michael Buesch
@ 2007-06-17 15:21 ` Maximilian Engelhardt
0 siblings, 0 replies; 2+ messages in thread
From: Maximilian Engelhardt @ 2007-06-17 15:21 UTC (permalink / raw)
To: Michael Buesch; +Cc: John Linville, Andrew Morton, netdev, Gary Zambrano
[-- Attachment #1: Type: text/plain, Size: 1585 bytes --]
On Sunday 17 June 2007, Michael Buesch wrote:
> The backplane on the b44 chip seems to have a silicon bug
> in the IRQ routing. The ethernet core IRQ routing does not work
> with the routing bit returned from the backplaneflag register.
> This patch adds a workaround for the b44 chip to use a hardcoded
> constant. This constant was also used in the old b44 driver.
>
> Signed-off-by: Michael Buesch <mb@bu3sch.de>
> Cc: Maximilian Engelhardt <maxi@daemonizer.de>
> Cc: Gary Zambrano <zambrano@broadcom.com>
Tested-by: Maximilian Engelhardt <maxi@daemonizer.de>
>
> Index: bu3sch-wireless-dev/drivers/ssb/driver_pcicore.c
> ===================================================================
> --- bu3sch-wireless-dev.orig/drivers/ssb/driver_pcicore.c 2007-06-17
> 13:35:45.000000000 +0200 +++
> bu3sch-wireless-dev/drivers/ssb/driver_pcicore.c 2007-06-17
> 14:19:05.000000000 +0200 @@ -496,9 +496,15 @@ int
> ssb_pcicore_dev_irqvecs_enable(struc
> u32 intvec;
>
> intvec = ssb_read32(pdev, SSB_INTVEC);
> - tmp = ssb_read32(dev, SSB_TPSFLAG);
> - tmp &= SSB_TPSFLAG_BPFLAG;
> - intvec |= tmp;
> + if ((bus->chip_id & 0xFF00) == 0x4400) {
> + /* Workaround: On the BCM44XX the BPFLAG routing
> + * bit is wrong. Use a hardcoded constant. */
> + intvec |= 0x00000002;
> + } else {
> + tmp = ssb_read32(dev, SSB_TPSFLAG);
> + tmp &= SSB_TPSFLAG_BPFLAG;
> + intvec |= tmp;
> + }
> ssb_write32(pdev, SSB_INTVEC, intvec);
> }
>
>
> Please apply this to wireless-dev.
> This is also most likely the bug Uwe Bugla was
> bullshitting about^W^Wreporting.
Maxi
[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2007-06-17 15:22 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-06-17 12:52 [PATCH] b44-ssb: Fix IRQ routing bits on the backplane Michael Buesch
2007-06-17 15:21 ` Maximilian Engelhardt
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).