1. 11 Jun, 2003 2 commits
    • Dominik Brodowski's avatar
      [PCMCIA] register · 9014144e
      Dominik Brodowski authored
      Add a more sane socket registration interface.
      
      Previously, it was messed up because Greg's struct class hadn't been
      invented when I wrote the code: there may be multiple sockets per
      "struct device", and there is the need for one "struct class_device"
      for each socket.
      
       drivers/pcmcia/cs.c         |  217 +++++++++++++++++++++----------------------- drivers/pcmcia/ds.c         |   56 ++---------
       drivers/pcmcia/i82092.c     |   48 ++++-----
       drivers/pcmcia/i82365.c     |   41 ++++----
       drivers/pcmcia/pci_socket.c |   23 +---
       drivers/pcmcia/pci_socket.h |    2
       drivers/pcmcia/tcic.c       |   38 ++++---
       include/pcmcia/ss.h         |   25 +++--
       8 files changed, 210 insertions(+), 240 deletions(-)
      9014144e
    • Dominik Brodowski's avatar
      [PCMCIA] split_init · 432849b8
      Dominik Brodowski authored
      Split up the socket initialization in cs.c into two pieces:
      
              pcmcia_register_socket / pcmcia_unregister_socket 
      will focus on registering sockets with the device core in future, set
      all necessary fields etc.
      
              pcmcia_add_socket / pcmcia_remove_socket 
      will use an interface to the device class "pcmcia_socket_class" in
      future, and mainly take care of what initialization cs.c needs to work
      properly.
      
      This patch is almost completely limited to shuffling code around
      
       cs.c |  157 +++++++++++++++++++++++++++++++++++-------------------------------- 1 files changed, 83 insertions(+), 74 deletions(-)
      432849b8
  2. 10 Jun, 2003 5 commits
    • Dominik Brodowski's avatar
      [PCMCIA] True driver module locking · f2931afb
      Dominik Brodowski authored
      If we use try_module_get(driver->owner) at the right place (and
      module_put as well, of course), the check for (driver->use_count > 0)
      can't ever return true. So get rid of it, and add the proper module
      locking calls.
      
       ds.c |   22 +++++++---------------
       1 files changed, 7 insertions(+), 15 deletions(-)
      f2931afb
    • Dominik Brodowski's avatar
      [PCMCIA] Remove socket_table · 07ba4cd8
      Dominik Brodowski authored
      This patch removes the socket_table from cs.c and friends.
      
       bulkmem.c     |    2 -
       cs.c          |   83 ++++++++++++++++++++++++---------------------------------- cs_internal.h |    7 ++--
       ds.c          |    2 -
       rsrc_mgr.c    |   10 ++++--
       5 files changed, 46 insertions(+), 58 deletions(-)
      07ba4cd8
    • Dominik Brodowski's avatar
      [PCMCIA] Move get_socket_info_by_nr · e9692fa4
      Dominik Brodowski authored
      This adds a list of all pcmcia sockets which will replace the current
      table-based approach. Also, ds.c now relies on cs.c to get the proper
      "struct pcmcia_bus_socket *" for the corresponding socket number.
      e9692fa4
    • Dominik Brodowski's avatar
      [PCMCIA] Move socket_info_t · b04860b1
      Dominik Brodowski authored
      This patch introduces "struct pcmcia_socket" which is 100% equal to
      the "socket_info_t" defined previously in drivers/pcmcia/cs_internal.h
      
      Unfortunately, a few other definitons need to be moved as well.
      
       drivers/pcmcia/cs.c          |    4 -
       drivers/pcmcia/cs_internal.h |   73 ---------------------------------
       include/pcmcia/ss.h          |   94 ++++++++++++++++++++++++++++++++++++++++++- 3 files changed, 97 insertions(+), 74 deletions(-)
      b04860b1
    • Russell King's avatar
      Merge flint.arm.linux.org.uk:/usr/src/linux-bk-2.5/linux-2.5 · 96092a79
      Russell King authored
      into flint.arm.linux.org.uk:/usr/src/linux-bk-2.5/linux-2.5-pcmcia
      96092a79
  3. 09 Jun, 2003 18 commits
  4. 08 Jun, 2003 15 commits