* PATCH: make isapnp request its port properly
@ 2003-07-18 14:16 Alan Cox
0 siblings, 0 replies; only message in thread
From: Alan Cox @ 2003-07-18 14:16 UTC (permalink / raw)
To: linux-kernel, torvalds
diff -u --new-file --recursive --exclude-from /usr/src/exclude linux-2.6.0-test1/drivers/pnp/isapnp/core.c linux-2.6.0-test1-ac2/drivers/pnp/isapnp/core.c
--- linux-2.6.0-test1/drivers/pnp/isapnp/core.c 2003-07-10 21:10:50.000000000 +0100
+++ linux-2.6.0-test1-ac2/drivers/pnp/isapnp/core.c 2003-07-14 19:56:48.000000000 +0100
@@ -255,14 +255,22 @@
static int isapnp_next_rdp(void)
{
int rdp = isapnp_rdp;
+ static int old_rdp = 0;
+
+ if(old_rdp)
+ {
+ release_region(old_rdp, 1);
+ old_rdp = 0;
+ }
while (rdp <= 0x3ff) {
/*
* We cannot use NE2000 probe spaces for ISAPnP or we
* will lock up machines.
*/
- if ((rdp < 0x280 || rdp > 0x380) && !check_region(rdp, 1))
+ if ((rdp < 0x280 || rdp > 0x380) && request_region(rdp, 1, "ISAPnP"))
{
isapnp_rdp = rdp;
+ old_rdp = rdp;
return 0;
}
rdp += RDP_STEP;
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2003-07-18 14:05 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-07-18 14:16 PATCH: make isapnp request its port properly Alan Cox
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).