Re: pcmcia/2.1.89/90pre1/2

John Kennedy (jk@csuchico.edu)
Thu, 12 Mar 1998 11:56:43 -0800


03/12/98 @ 11:56:02 AM (Thursday)

[Garst R. Reese]
> Does anybody have pcmcia working after 2.1.88? I patched ds.c for the
> poll_wait, bit cardctl does not work and modprobe cannot find serial_cs.
> Serial support is built in, not a module. pcmcia_cs-3.0.1Mar05

That actually broke after pre-2.1.89-2. If you use the patch below and
HUP the cardmgr daemon things seem to work normally. I haven't printf()ed
the code to try and figure out where it's getting hung up.

I mailed David Hinds about it before pcmcia-cs.03-Mar-98 and .05-Mar-98
came out but it didn't work through linux-2.1.89. I tried it with the
latest (currently pre-2.1.90-2) and ran into a bunch of problems with
CONFIG_MAX_MEMSIZE being undeclared, so I'm going to have to figure
that one out.

I see that pcmcia-cs.12-Mar-98 is out, so I'll have to try that too.

--- john
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
--- modules/ds.c.orig Mon Dec 29 09:36:48 1997
+++ modules/ds.c Mon Mar 9 13:43:33 1998
@@ -673,7 +673,11 @@
user = file->private_data;
if (CHECK_USER(user))
return POLLERR;
+#if (LINUX_VERSION_CODE < VERSION(2,1,89))
poll_wait(&s->queue, wait);
+#else
+ poll_wait(file, &PIPE_WAIT(*(file->f_dentry->d_inode)), wait);
+#endif
if (!queue_empty(user))
return POLLIN | POLLRDNORM;
return 0;

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu