mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [patch] 2.4.1-ac1: W89c840 -- printout inconsistency?
@ 2001-02-05 14:01 Maciej W. Rozycki
  2001-02-05 14:51 ` Francois Romieu
  0 siblings, 1 reply; 3+ messages in thread
From: Maciej W. Rozycki @ 2001-02-05 14:01 UTC (permalink / raw)
  To: Alan Cox, Donald Becker; +Cc: linux-kernel

Hi,

 While working on the CPU capabilities changes I noticed the W89c840
driver prints a different cache alignment from what it really sets.  It's
possible that it's the intended behaviour, but I really doubt it.  I don't
have such a board and I haven't ever used the driver. 

 The following patch fixes it. 

  Maciej

-- 
+  Maciej W. Rozycki, Technical University of Gdansk, Poland   +
+--------------------------------------------------------------+
+        e-mail: macro@ds2.pg.gda.pl, PGP key available        +

patch-2.4.1-ac1-winbond-0
diff -up --recursive --new-file linux-2.4.1-ac1.macro/drivers/net/winbond-840.c linux-2.4.1-ac1/drivers/net/winbond-840.c
--- linux-2.4.1-ac1.macro/drivers/net/winbond-840.c	Sat Feb  3 12:16:41 2001
+++ linux-2.4.1-ac1/drivers/net/winbond-840.c	Sun Feb  4 17:12:28 2001
@@ -832,7 +832,7 @@ static void init_registers(struct net_de
 	if (x86 <= 4)
 		printk(KERN_INFO "%s: This is a 386/486 PCI system, setting cache "
 			   "alignment to %x.\n", dev->name,
-			   (x86 <= 4 ? 0x4810 : 0x8010));
+			   (x86 <= 4 ? 0x4810 : 0xE010));
 #endif
 #else
 	writel(0xE010, ioaddr + PCIBusCfg);

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [patch] 2.4.1-ac1: W89c840 -- printout inconsistency?
  2001-02-05 14:01 [patch] 2.4.1-ac1: W89c840 -- printout inconsistency? Maciej W. Rozycki
@ 2001-02-05 14:51 ` Francois Romieu
  2001-02-05 16:13   ` Maciej W. Rozycki
  0 siblings, 1 reply; 3+ messages in thread
From: Francois Romieu @ 2001-02-05 14:51 UTC (permalink / raw)
  To: linux-kernel

Maciej W. Rozycki <macro@ds2.pg.gda.pl> écrit :
[...]
>  While working on the CPU capabilities changes I noticed the W89c840
> driver prints a different cache alignment from what it really sets.  It's
> possible that it's the intended behaviour, but I really doubt it.  I don't
> have such a board and I haven't ever used the driver. 

Wouldn't this ("work around broken '486 PCI boards") fit better in
drivers/pci/quirks.c, somewhere around pci_fixup_device ?

-- 
Ueimor
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [patch] 2.4.1-ac1: W89c840 -- printout inconsistency?
  2001-02-05 14:51 ` Francois Romieu
@ 2001-02-05 16:13   ` Maciej W. Rozycki
  0 siblings, 0 replies; 3+ messages in thread
From: Maciej W. Rozycki @ 2001-02-05 16:13 UTC (permalink / raw)
  To: Francois Romieu; +Cc: linux-kernel

On Mon, 5 Feb 2001, Francois Romieu wrote:

> Wouldn't this ("work around broken '486 PCI boards") fit better in
> drivers/pci/quirks.c, somewhere around pci_fixup_device ?

 I thinks it's already in the right place.  The workaround is
driver-specific.  Only generic or bridge-specific code goes into
drivers/pci/quirks.c. 

-- 
+  Maciej W. Rozycki, Technical University of Gdansk, Poland   +
+--------------------------------------------------------------+
+        e-mail: macro@ds2.pg.gda.pl, PGP key available        +

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2001-02-05 16:18 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-02-05 14:01 [patch] 2.4.1-ac1: W89c840 -- printout inconsistency? Maciej W. Rozycki
2001-02-05 14:51 ` Francois Romieu
2001-02-05 16:13   ` Maciej W. Rozycki

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®