[PATCH] pcmcia/cs: fix possible missed wakeup

Andreas Steinmetz ast at domdv.de
Sun Aug 21 05:56:29 EDT 2005


Daniel Ritz wrote:
> hi andrew, dominik, andreas
> 
> the patch fixes one of the problems andreas steinmetz reported a while ago.
> akmp, please queue up in -mm, andreas please test. should fix the last
> testcase in your test script:

The patch seems to be an improvement though it doesn't completely fix
the last testcase. I did comment the last usleep in the script. This
results with the patch applied in:

gringo:~ # /tmp/pcmcia.sh
tic
tac
tic
ERROR: Module pcmcia is in use by serial_cs
ERROR: Module yenta_socket is in use
ERROR: Module rsrc_nonstatic is in use by yenta_socket
ERROR: Module pcmcia_core is in use by pcmcia,yenta_socket,rsrc_nonstatic
tac
tic
ERROR: Module pcmcia is in use by serial_cs
ERROR: Module yenta_socket is in use
ERROR: Module rsrc_nonstatic is in use by yenta_socket
ERROR: Module pcmcia_core is in use by pcmcia,yenta_socket,rsrc_nonstatic

gringo:~ # ps ax | grep card
 3066 ?        S      0:00 [pccardd]
 3068 ?        S      0:00 [pccardd]
 3108 pts/1    R+     0:00 grep card
gringo:~ # lsmod | grep serial
serial_cs              21516  1
pcmcia                 34452  1 serial_cs
usbserial              30704  1 pl2303
gringo:~ # cardctl eject
gringo:~ # lsmod | grep serial
serial_cs              21516  1
pcmcia                 34452  1 serial_cs
usbserial              30704  1 pl2303
gringo:~ # cardctl insert
gringo:~ # lsmod | grep serial
serial_cs              21516  1
pcmcia                 34452  1 serial_cs
usbserial              30704  1 pl2303
gringo:~ # cardctl eject
gringo:~ # lsmod | grep serial
serial_cs              21516  0
pcmcia                 34452  1 serial_cs
usbserial              30704  1 pl2303

Thus I can now get serial_cs reliably hang with a nonexistant user but
that can be 'fixed' by an 'eject'-'insert'-'eject' sequence which is far
better than having to reboot.
-- 
Andreas Steinmetz                       SPAMmers use robotrap at domdv.de



More information about the linux-pcmcia mailing list