Subject: Re: kern/26726: com driver probe degraded
To: Jun-ichiro itojun Hagino <itojun@iijlab.net>
From: enami tsugutomo <enami@sm.sony.co.jp>
List: tech-kern
Date: 09/17/2004 19:25:43
I suspect that the fifth config entry of your card will fall into the
PCMCIA_TPCE_IO_RANGE_ADDRSIZE_NONE case below (and the start of
default entry is used instead).  Can you check this?

enami.

Index: pcmcia_cis.c
===================================================================
RCS file: /cvsroot/src/sys/dev/pcmcia/pcmcia_cis.c,v
retrieving revision 1.35
diff -c -r1.35 pcmcia_cis.c
*** pcmcia_cis.c	10 Aug 2004 19:20:20 -0000	1.35
--- pcmcia_cis.c	17 Sep 2004 09:32:20 -0000
***************
*** 1140,1145 ****
--- 1148,1157 ----
  					}
  					for (i = 0; i < cfe->num_iospace; i++) {
  						switch (reg & PCMCIA_TPCE_IO_RANGE_ADDRSIZE_MASK) {
+ 						case PCMCIA_TPCE_IO_RANGE_ADDRSIZE_NONE:
+ 							cfe->iospace[i].start =
+ 							    0;
+ 							break;
  						case PCMCIA_TPCE_IO_RANGE_ADDRSIZE_ONE:
  							cfe->iospace[i].start =
  								pcmcia_tuple_read_1(tuple, idx);
***************
*** 1158,1163 ****
--- 1170,1179 ----
  						}
  						switch (reg &
  							PCMCIA_TPCE_IO_RANGE_LENGTHSIZE_MASK) {
+ 						case PCMCIA_TPCE_IO_RANGE_LENGTHSIZE_NONE:
+ 							cfe->iospace[i].length =
+ 							    0;
+ 							break;
  						case PCMCIA_TPCE_IO_RANGE_LENGTHSIZE_ONE:
  							cfe->iospace[i].length =
  								pcmcia_tuple_read_1(tuple, idx);