1. 08 Nov, 2009 4 commits
    • Dominik Brodowski's avatar
      pcmcia: add new CIS access helpers · 91284224
      Dominik Brodowski authored
      As a replacement to pcmcia_get_{first,next}_tuple() and
      pcmcia_get_tuple_data(), three new -- and easier to use --
      functions are added:
      
      - pcmcia_get_tuple() to get the very first CIS entry of one
        type.
      
      - pcmcia_loop_tuple() to loop over all CIS entries of one type.
      
      - pcmcia_get_mac_from_cis() to read out the hardware MAC address
        from CISTPL_FUNCE.
      
      Only a handful of drivers need these functions anyway, as most
      CIS access is already handled by pcmcia_loop_config(), which
      now shares the same backed (pccard_loop_tuple()) with
      pcmcia_loop_tuple().
      
      A pcmcia_get_mac_from_cis() bug noted by Komuro
      <komurojun-mbn@nifty.com> has been fixed in this revision.
      Signed-off-by: default avatarDominik Brodowski <linux@dominikbrodowski.net>
      91284224
    • Dominik Brodowski's avatar
      ipwireless: make more use of pcmcia_loop_config() · af757923
      Dominik Brodowski authored
      Within the pcmcia_loop_config() callback, we already have all
      tuple data available we need. Also add a fix to release the IO
      resource (at least within pcmcia_loop_config() error path).
      
      CC: Jiri Kosina <jkosina@suse.cz>
      CC: David Sterba <dsterba@suse.cz>
      Signed-off-by: default avatarDominik Brodowski <linux@dominikbrodowski.net>
      af757923
    • Dominik Brodowski's avatar
      pcmcia: use pcmcia_loop_config in misc pcmcia drivers · aaa8cfda
      Dominik Brodowski authored
      Use pcmcia_loop_config() in a few drivers missed during the first
      round. On fmvj18x_cs.c it -- strangely -- only requries us to set
      conf.ConfigIndex, which is done by the core, so include an empty
      loop function which returns 0 unconditionally.
      
      CC: David S. Miller <davem@davemloft.net>
      CC: David Sterba <dsterba@suse.cz>
      CC: netdev@vger.kernel.org
      CC: linux-wireless@vger.kernel.org
      For the ipwireless part: Acked-by: Jiri Kosina <jkosina@suse.cz>
      Acked-by: default avatarJohn W. Linville <linville@tuxdriver.com>
      Signed-off-by: default avatarDominik Brodowski <linux@dominikbrodowski.net>
      aaa8cfda
    • Dominik Brodowski's avatar
      pcmcia: use pre-determined values · 7d2e8d00
      Dominik Brodowski authored
      A few PCMCIA network drivers can make use of values provided by the pcmcia
      core, instead of tedious, independent CIS parsing.
      
      xirc32ps_cs.c: manf_id
      
      hostap_cs.c: multifunction count
      
      b43/pcmcia.c: ConfigBase address and "Present"
      
      smc91c92_cs.c:  By default, mhz_setup() can use VERS_1 as it is stored
      in struct pcmcia_device. Only some cards require workarounds, such as
      reading out VERS_1 twice.
      
      CC: David S. Miller <davem@davemloft.net>
      CC: netdev@vger.kernel.org
      CC: linux-wireless@vger.kernel.org
      Acked-by: default avatarJohn W. Linville <linville@tuxdriver.com>
      Signed-off-by: default avatarDominik Brodowski <linux@dominikbrodowski.net>
      7d2e8d00
  2. 24 Oct, 2009 3 commits
  3. 20 Oct, 2009 1 commit
  4. 18 Oct, 2009 2 commits
  5. 17 Oct, 2009 2 commits
  6. 16 Oct, 2009 1 commit
  7. 15 Oct, 2009 23 commits
  8. 14 Oct, 2009 4 commits