1. 06 Sep, 2003 4 commits
    • Christoph Hellwig's avatar
      [PCMCIA] kill flush_stale_links · 9d66b5e4
      Christoph Hellwig authored
      following Dave's guide it's replaced by calling foo_detach in
      foo_release if the links is stale.  Note that I killed DEV_STALE_LINK
      aswell as DEV_STALE_CONFIG isn't ever cleared so we don't need two
      flags.
      
      Also some dead codepathes related to DEV_STALE_* are killed.
      9d66b5e4
    • Russell King's avatar
      [PCMCIA] Fix race condition causing cards to be incorrectly recognised · 6dbb44ac
      Russell King authored
      This patch fixes a race condition between the pcmcia socket initial
      insert processing, ds.c and cardmgr.  This allowed cardmgr to believe
      that a card was inserted while the card is still in the process of
      resetting itself, and it therefore tried to read the CIS while it
      was unavailable.
      
      We change the meaning of SOCKET_PRESENT slightly - it now means that
      a card is present _and we have completed its initialisation_.  We
      introduce SOCKET_INUSE to indicate that we have a reference count
      against the module.
      
      We also take the skt_sem to prevent clients from registering while
      we're handling an insert/remove/suspend/resume.
      6dbb44ac
    • Russell King's avatar
    • Russell King's avatar
      [PCMCIA] Fix cs.c debugging. · a423863f
      Russell King authored
      socket references are pointers, not integers.
      a423863f
  2. 05 Sep, 2003 36 commits