10 Jun, 2011

1 commit


29 Sep, 2010

1 commit

  • pcmcia_enable_device() now replaces pcmcia_request_configuration().
    Instead of config_req_t, all necessary flags are either passed as
    a parameter to pcmcia_enable_device(), or (in rare circumstances)
    set in struct pcmcia_device -> flags.

    With the last remaining user of include/pcmcia/cs.h gone, remove
    all references.

    CC: netdev@vger.kernel.org
    CC: linux-wireless@vger.kernel.org
    CC: linux-ide@vger.kernel.org
    CC: linux-usb@vger.kernel.org
    CC: laforge@gnumonks.org
    CC: linux-mtd@lists.infradead.org
    CC: alsa-devel@alsa-project.org
    CC: linux-serial@vger.kernel.org
    CC: Jiri Kosina
    CC: linux-scsi@vger.kernel.org
    Acked-by: Gustavo F. Padovan (for drivers/bluetooth)
    Tested-by: Wolfram Sang
    Signed-off-by: Dominik Brodowski

    Dominik Brodowski
     

03 Aug, 2010

2 commits


31 Jul, 2010

3 commits

  • Remove cs_types.h which is no longer needed: Most definitions aren't
    used at all, a few can be made away with, and two remaining definitions
    (typedefs, unfortunatley) may be moved to more specific places.

    CC: linux-ide@vger.kernel.org
    CC: linux-usb@vger.kernel.org
    CC: laforge@gnumonks.org
    CC: linux-mtd@lists.infradead.org
    CC: alsa-devel@alsa-project.org
    CC: linux-serial@vger.kernel.org
    Acked-by: Marcel Holtmann (for drivers/bluetooth/)
    Acked-by: David S. Miller
    Signed-off-by: Dominik Brodowski

    Dominik Brodowski
     
  • As we only provide one way to set up resources now, we can remove
    the resource-setup-related bitfield (except resource_setup_done).
    In addition, pcmcia_state only consisted of one entry, so remove
    this bitfield as well.

    Suggested-by: Komuro
    Signed-off-by: Dominik Brodowski

    Dominik Brodowski
     
  • Signed-off-by: Dominik Brodowski

    Dominik Brodowski
     

10 May, 2010

3 commits

  • On the PCI root bus on the x86 architecture, the risk of hitting
    some strange system devices is too high: If a driver isn't loaded,
    the resources are not claimed; even if a driver is loaded, it
    may not request all resources or even the wrong one. We can neither
    trust the rest of the kernel nor ACPI/PNP and CRS parsing to get it
    right.

    Therefore, explicitly spell out what safeguards we provide, and add
    a safeguard to only use resources which are set up exclusively for
    the secondary PCI bus (non-subtractive mode): the risk of hitting
    system devices is quite low, as they usually aren't connected to
    the secondary PCI bus.

    CC: Jesse Barnes
    CC: Bjorn Helgaas
    Signed-off-by: Dominik Brodowski

    Dominik Brodowski
     
  • Clean up the alloc_io_space() function by moving most of it to
    the actual resource_ops. This allows for a bit less re-directions.
    Future cleanups will follow, and will make up for the code
    duplication currently present between rsrc_iodyn and rsrc_nonstatic
    (which are hardly ever built at the same time anyway, therefore no
    increase in built size).

    Signed-off-by: Dominik Brodowski

    Dominik Brodowski
     
  • Signed-off-by: Dominik Brodowski

    Dominik Brodowski
     

16 Apr, 2010

1 commit


11 Apr, 2010

1 commit


05 Apr, 2010

1 commit

  • - pcmcia_align() used a "start" variable twice. That's obviously a bad
    idea.

    - pcmcia_common_resource() needs the current "start" parameter being
    passed, instead of res->start.

    - pcmcia_common_resource() doesn't use the size and align parameters,
    so get rid of those.

    Signed-off-by: Dominik Brodowski

    Dominik Brodowski
     

27 Mar, 2010

1 commit

  • * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jbarnes/pci-2.6:
    x86/PCI: truncate _CRS windows with _LEN > _MAX - _MIN + 1
    x86/PCI: for host bridge address space collisions, show conflicting resource
    frv/PCI: remove redundant warnings
    x86/PCI: remove redundant warnings
    PCI: don't say we claimed a resource if we failed
    PCI quirk: Disable MSI on VIA K8T890 systems
    PCI quirk: RS780/RS880: work around missing MSI initialization
    PCI quirk: only apply CX700 PCI bus parking quirk if external VT6212L is present
    PCI: complain about devices that seem to be broken
    PCI: print resources consistently with %pR
    PCI: make disabled window printk style match the enabled ones
    PCI: break out primary/secondary/subordinate for readability
    PCI: for address space collisions, show conflicting resource
    resources: add interfaces that return conflict information
    PCI: cleanup error return for pcix get and set mmrbc functions
    PCI: fix access of PCI_X_CMD by pcix get and set mmrbc functions
    PCI: kill off pci_register_set_vga_state() symbol export.
    PCI: fix return value from pcix_get_max_mmrbc()

    Linus Torvalds
     

25 Mar, 2010

1 commit


24 Mar, 2010

1 commit

  • On x86 systems using ACPI _CRS information -- now the default for
    post-2008 systems -- the PCI root bus no longer pretends to be
    offering the root ioport_resource. To avoid accidentally hitting
    some platform / system device, use only I/O ports >= 0x100 for
    PCMCIA devices on x86.

    Reported-by: Komuro
    CC: Bjorn Helgaas
    Signed-off-by: Dominik Brodowski

    Dominik Brodowski
     

28 Feb, 2010

1 commit

  • * git://git.kernel.org/pub/scm/linux/kernel/git/brodo/pcmcia-2.6: (49 commits)
    pcmcia: validate late-added resources
    pcmcia: allow for extension of resource interval
    pcmcia: remove useless msleep in ds.c
    pcmcia: use read_cis_mem return value
    pcmcia: handle error in serial_cs config calls
    pcmcia: add locking to pcmcia_{read,write}_cis_mem
    pcmcia: avoid prod_id memleak
    pcmcia: avoid sysfs-related lockup for cardbus
    pcmcia: use state machine for extended requery
    pcmcia: delay re-scanning and re-querying of PCMCIA bus
    pcmcia: use pccardd to handle eject, insert, suspend and resume requests
    pcmcia: use ops_mutex for rsrc_{mgr,nonstatic} locking
    pcmcia: use mutex for dynid lock
    pcmcia: assert locking to struct pcmcia_device
    pcmcia: add locking documentation
    pcmcia: simplify locking
    pcmcia: add locking to struct pcmcia_socket->pcmcia_state()
    pcmcia: protect s->device_count
    pcmcia: properly lock skt->irq, skt->irq_mask
    pcmcia: lock ops->set_socket
    ...

    Linus Torvalds
     

26 Feb, 2010

1 commit

  • Currently, only those mem resources are validated which are already
    registered at the time the first PCMCIA card is inserted. As we can
    only validate resources immediately after card insert, store
    "registered" mem resources in mem_db, and only upon validation move
    them to mem_db_valid. When allocationg mem resources, mem_db_valid is
    then preferred to mem_db.

    Signed-off-by: Dominik Brodowski

    Dominik Brodowski
     

24 Feb, 2010

1 commit


23 Feb, 2010

2 commits


18 Feb, 2010

5 commits


18 Jan, 2010

3 commits


08 Dec, 2009

1 commit

  • Fix several CodingStyle issues in drivers/pcmcia/ . checkpatch.pl no longer
    reports errors in the PCMCIA core. The remaining warnings mostly relate to
    wrong indent -- PCMCIA historically used 4 spaces --, to lines over 80
    characters and to hundreds of typedefs. The cleanup of those will follow
    in the future.

    Signed-off-by: Dominik Brodowski

    Dominik Brodowski
     

19 Oct, 2009

1 commit

  • pccard_read_tuple(), which is only used by the PCMCIA core, should
    handle TUPLE_RETURN_COMMON more sensibly: If a specific function (which
    may be 0) is requested, set tuple.Attributes = 0 as was done in all
    PCMCIA drivers. If, however, BIND_FN_ALL is requested, return the
    "common" tuple. As to the callers of pccard_read_tuple():

    - All calls to pcmcia_validate_cis() had set the "function" parameter to
    BIND_FN_ALL. Therefore, remove the "function" parameter and make the
    parameter to pccard_read_tuple explicit.

    - Calls to CISTPL_VERS_1 and CISTPL_MANFID now set BIND_FN_ALL. This was
    already the case for calls to CISTPL_LONGLINK_MFC.

    Signed-off-by: Dominik Brodowski

    Dominik Brodowski
     

17 Oct, 2009

1 commit


02 Nov, 2008

1 commit


14 Oct, 2008

1 commit

  • * git://git.kernel.org/pub/scm/linux/kernel/git/brodo/pcmcia-2.6: (49 commits)
    pcmcia: ioctl-internal definitions
    pcmcia: cistpl header cleanup
    pcmcia: remove unused argument to pcmcia_parse_tuple()
    pcmcia: card services header cleanup
    pcmcia: device_id header cleanup
    pcmcia: encapsulate ioaddr_t
    pcmcia: cleanup device driver header file
    pcmcia: cleanup socket services header file
    pcmcia: merge ds_internal.h into cs_internal.h
    pcmcia: cleanup cs_internal.h
    pcmcia: cs_internal.h is internal
    pcmcia: use dev_printk for cs_error()
    pcmcia: remove CS_ error codes alltogether
    pcmcia: deprecate CS_BAD_TUPLE
    pcmcia: deprecate CS_BAD_ARGS
    pcmcia: deprecate CS_BAD_BASE, CS_BAD_IRQ, CS_BAD_OFFSET and CS_BAD_SIZE
    pcmcia: deprecate CS_BAD_ATTRIBUTE, CS_BAD_TYPE and CS_BAD_PAGE
    pcmcia: deprecate CS_NO_MORE_ITEMS
    pcmcia: deprecate CS_IN_USE
    pcmcia: deprecate CS_CONFIGURATION_LOCKED
    ...

    Fix trivial conflict in drivers/pcmcia/ds.c manually

    Linus Torvalds
     

23 Aug, 2008

3 commits


28 Jul, 2008

1 commit


24 Jun, 2008

2 commits