16 Sep, 2009

1 commit


16 Jun, 2009

2 commits

  • In the near future, the driver core is going to not allow direct access
    to the driver_data pointer in struct device. Instead, the functions
    dev_get_drvdata() and dev_set_drvdata() should be used. These functions
    have been around since the beginning, so are backwards compatible with
    all older kernel versions.

    Cc: linux-pcmcia@lists.infradead.org
    Cc: Dominik Brodowski
    Signed-off-by: Greg Kroah-Hartman

    Greg Kroah-Hartman
     
  • We're going to remove the FIRMWARE_NAME_MAX definition in order to avoid any
    firmware name length restriction.
    With the FIRMWARE_NAME_MAX removal, the ds.c reference becomes useless as we
    dont need to check for the firmware name length anymore.

    Signed-off-by: Samuel Ortiz
    Cc: Dominik Brodowski
    Signed-off-by: Greg Kroah-Hartman

    Samuel Ortiz
     

02 Nov, 2008

2 commits


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
     

22 Sep, 2008

1 commit

  • PCMCIA abuses dev->private_data in the probe methods. Unfortunately it
    continues to abuse it after calling drv->probe() which leads to crashes and
    other nasties (such as bogus probes of multifunction devices) giving errors like

    pcmcia: registering new device pcmcia0.1
    kernel: 0.1: GetNextTuple: No more items

    Extract the passed data before calling the driver probe function that way
    we don't blow up when the driver reuses dev->private_data as its right.

    As its close to the final release just move the hack so it works out,
    hopefully someone will be sufficiently embarrassed to produce a nice rework
    for 2.6.28.

    Signed-off-by: Alan Cox
    Signed-off-by: Linus Torvalds

    Alan Cox
     

26 Aug, 2008

1 commit


23 Aug, 2008

17 commits


03 Aug, 2008

1 commit


24 Jun, 2008

3 commits


01 May, 2008

1 commit

  • Silence the following warnings:
    WARNING: drivers/pcmcia/built-in.o(.data+0x6e8): Section mismatch in reference from the variable pcmcia_bus_interface to the function .devinit.text:pcmcia_bus_add_socket()
    WARNING: drivers/pcmcia/built-in.o(.data+0xa88): Section mismatch in reference from the variable pccard_rsrc_interface to the function .devinit.text:pccard_sysfs_add_rsrc()
    WARNING: drivers/pcmcia/built-in.o(.data+0xa90): Section mismatch in reference from the variable pccard_rsrc_interface to the function .devexit.text:pccard_sysfs_remove_rsrc()

    The variables of type class_interface contains references
    to __devinit and __devexit functions which is OK.
    Silence warnings by annotating the variables with __refdata.

    Signed-off-by: Sam Ravnborg
    Cc: Dominik Brodowski
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Sam Ravnborg
     

06 Feb, 2008

2 commits


25 Jan, 2008

1 commit


11 Dec, 2007

1 commit

  • Fix kernel-doc comments in drivers/pcmcia/:

    - ti113x.h does not contain kernel-doc, so don't use /** to begin a doc
    comment
    - yenta_socket.c: remove /** on non-kernel-doc comments;
    escape the ':' in an "http:" comment so that it won't be treated as a
    section heading;
    - cs.c: remove /** on non-kernel-doc comments & add function parameter info
    - ds.c: fix function parameter info

    Signed-off-by: Randy Dunlap
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Randy Dunlap
     

17 Oct, 2007

1 commit


13 Oct, 2007

1 commit

  • This changes the uevent buffer functions to use a struct instead of a
    long list of parameters. It does no longer require the caller to do the
    proper buffer termination and size accounting, which is currently wrong
    in some places. It fixes a known bug where parts of the uevent
    environment are overwritten because of wrong index calculations.

    Many thanks to Mathieu Desnoyers for finding bugs and improving the
    error handling.

    Signed-off-by: Kay Sievers
    Cc: Mathieu Desnoyers
    Cc: Cornelia Huck
    Signed-off-by: Greg Kroah-Hartman

    Kay Sievers
     

19 Jul, 2007

1 commit

  • This patch (as933) removes the deprecated dpm_runtime_suspend() and
    dpm_runtime_resume() routines from the PM core. The only user of
    those routines is the PCMCIA ds driver; local replacements are added.

    Signed-off-by: Alan Stern
    CC: Dominik Brodowski
    Signed-off-by: Greg Kroah-Hartman

    Alan Stern
     

08 May, 2007

1 commit

  • PCI drivers have the new_id file in sysfs which allows new IDs to be added
    at runtime. The advantage is to avoid re-compilation of a driver that
    works for a new device, but it's ID table doesn't contain the new device.
    This mechanism is only meant for testing, after the driver has been tested
    successfully, the ID should be added in source code so that new revisions
    of the kernel automatically detect the device.

    The implementation follows the PCI implementation. The interface is documented
    in Documentation/pcmcia/driver.txt. Computations should be done in userspace,
    so the sysfs string contains the raw structure members for matching.

    Signed-off-by: Bernhard Walle
    Cc: Dominik Brodowski
    Cc: Greg KH
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Bernhard Walle
     

08 Feb, 2007

1 commit


06 Dec, 2006

1 commit