mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH][ATM] s/uni driver overwrites 8-/16-bit mode
@ 2003-03-21 17:05 chas williams
  2003-03-23  9:14 ` David S. Miller
  0 siblings, 1 reply; 2+ messages in thread
From: chas williams @ 2003-03-21 17:05 UTC (permalink / raw)
  To: David S. Miller; +Cc: linux-kernel

on the s/uni 622 chip, the uppermost bit of the Master Test register
controls the width of the data bus.  this is unused in the older s/uni
chips.

Index: linux/drivers/atm/suni.c
===================================================================
RCS file: /home/chas/CVSROOT/linux/drivers/atm/suni.c,v
retrieving revision 1.4
diff -b -B -u -r1.4 suni.c
--- linux/drivers/atm/suni.c	5 Mar 2003 16:39:56 -0000	1.4
+++ linux/drivers/atm/suni.c	21 Mar 2003 16:53:04 -0000
@@ -297,7 +297,7 @@
 	mri = GET(MRI); /* reset SUNI */
 	PUT(mri | SUNI_MRI_RESET,MRI);
 	PUT(mri,MRI);
-	PUT(0,MT); /* disable all tests */
+	PUT((GET(MT) & SUNI_MT_DS27_53),MT); /* disable all tests */
 	REG_CHANGE(SUNI_TPOP_APM_S,SUNI_TPOP_APM_S_SHIFT,SUNI_TPOP_S_SONET,
 	    TPOP_APM); /* use SONET */
 	REG_CHANGE(SUNI_TACP_IUCHP_CLP,0,SUNI_TACP_IUCHP_CLP,
Index: linux/drivers/atm/suni.h
===================================================================
RCS file: /home/chas/CVSROOT/linux/drivers/atm/suni.h,v
retrieving revision 1.1.1.1
diff -b -B -u -r1.1.1.1 suni.h
--- linux/drivers/atm/suni.h	20 Feb 2003 13:45:03 -0000	1.1.1.1
+++ linux/drivers/atm/suni.h	21 Mar 2003 16:55:46 -0000
@@ -198,6 +198,7 @@
 #define SUNI_MT_IOTST		0x04	/* RW, enable test mode */
 #define SUNI_MT_DBCTRL		0x08	/* W, control data bus by CSB pin */
 #define SUNI_MT_PMCTST		0x10	/* W, PMC test mode */
+#define SUNI_MT_DS27_53		0x80	/* RW, select between 8- or 16- bit */
 
 
 #define SUNI_IDLE_PATTERN       0x6a    /* idle pattern */

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

* Re: [PATCH][ATM] s/uni driver overwrites 8-/16-bit mode
  2003-03-21 17:05 [PATCH][ATM] s/uni driver overwrites 8-/16-bit mode chas williams
@ 2003-03-23  9:14 ` David S. Miller
  0 siblings, 0 replies; 2+ messages in thread
From: David S. Miller @ 2003-03-23  9:14 UTC (permalink / raw)
  To: chas; +Cc: linux-kernel

   From: chas williams <chas@locutus.cmf.nrl.navy.mil>
   Date: Fri, 21 Mar 2003 12:05:10 -0500

   on the s/uni 622 chip, the uppermost bit of the Master Test register
   controls the width of the data bus.  this is unused in the older s/uni
   chips.
   
Applied, thanks Chas.

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

end of thread, other threads:[~2003-03-23  9:06 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-03-21 17:05 [PATCH][ATM] s/uni driver overwrites 8-/16-bit mode chas williams
2003-03-23  9:14 ` David S. Miller

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®