Subject: Re: 3.0 pcmcia regressions?
To: Hubert Feyrer <hubert@feyrer.de>
From: John Nemeth <jnemeth@victoria.tc.ca>
List: tech-kern
Date: 01/03/2006 00:51:23
On Apr 14, 10:05pm, Hubert Feyrer wrote:
} On Wed, 28 Dec 2005, Christos Zoulas wrote:
} >> } Yes, there is a problem and there is a patch to fix it. The patch works
} >> } around the problem, but it is not entirely correct. Setting cfe->iomask = 0;
} >> } does the trick, but the problem is really in the way we allocate regions.
} >>
} >>     And, where does this setting go?
} >
} > Add it to aic_pcmcia_validate_config() before you return 0;
} 
} Maybe posting a patch would be easier and less confusing? :)

     I suspect that my sponsor is leaving that part as an "exercise for
the student".  Anyways, here is the tested patch:

--- aic_pcmcia.c.orig	2006-01-02 13:22:46.000000000 -0800
+++ aic_pcmcia.c	2006-01-02 13:23:38.000000000 -0800
@@ -106,6 +106,7 @@ aic_pcmcia_validate_config(cfe)
 	    cfe->num_memspace != 0 ||
 	    cfe->num_iospace != 1)
 		return (EINVAL);
+	cfe->iomask = 0;
 	return (0);
 }
 
The question is, although this is a gross hack, should it be applied to
-current and/or pulled up so that people can have a working card while
they wait for a real fix?  If so, I can take care of it.

     This gets the SCSI card working, now does anybody have any quick
fixes to get modems working?

}-- End of excerpt from Hubert Feyrer