07 Nov, 2005

27 commits

  • Fix more include file problems that surfaced since I submitted the previous
    fix-missing-includes.patch. This should now allow not to include sched.h
    from module.h, which is done by a followup patch.

    Signed-off-by: Tim Schmielau
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Tim Schmielau
     
  • Mikael Pettersson noted that the current 2.6-git (and 2.4)
    patch to disallow KDSKBSENT for unpriviledged users should be less restrictive
    allowing reading of current function key string entry, but not writing.

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

    Marcelo Tosatti
     
  • This patch has the changes to support the memory floor fix done in Dell
    BIOS. The BIOS incase of packet update mechanism would not accept packet
    placed in memory below a cretain address. This address is by default 128K
    but can change. The driver now can accept the memory floor if the user
    chooses to make it will try to allocate contiguous physical memory above
    the memory floor by allocating a set of packets till a valid memory
    allocation is made. All the allocates then are freed. This repeats for
    everty packet.

    This patch was created by Michael E Brown and has been tested on 2.6.14-rc5

    Signed-of-by: Michael E Brown
    Signed-off-by: Abhay Salunke
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Abhay Salunke
     
  • driver_unregister is not being properly called when the init function
    returns an error case. Restructured the return logic such that this and
    the other cleanups all happen in one place. Preformed many of the cleanups
    that Andrew Morton's patch on Thursday made in tpm_atmel.c. Fixed
    Matthieu's concern about writing before discovery.

    (akpm: rmk said:

    This driver is buggy. You must not provide your own release function - it
    doesn't solve the problem which the warning (which you get when you don't
    provide one) is telling you about.

    You should convert your device driver over to the replacement dynamic platform
    support, once it is merged. IOW, something like:

    pdev = platform_device_alloc("mydev", id);
    if (pdev) {
    err = platform_device_add_resources(pdev, &resources,
    ARRAY_SIZE(resources));
    if (err == 0)
    err = platform_device_add_data(pdev, &platform_data,
    sizeof(platform_data));
    if (err == 0)
    err = platform_device_add(pdev);
    } else {
    err = -ENOMEM;
    }
    if (err)
    platform_device_put(pdev);
    )

    Signed-off-by: Kylene Jo Hall
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Kylene Jo Hall
     
  • There is a wrong BUG in mxser_close.

    The BUG is triggered when tty->driver_data == NULL, But in fact this is not
    a bug, because tty->driver->close is called even when tty->driver->open
    fails.

    LDD3 tells us to do nothing in such cases.

    Signed-off-by: Kirill Smelkov
    Cc: Alan Cox
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Kirill Smelkov
     
  • Fix leak of struct tty_driver in mxser_init & mxser_module_exit

    Signed-off-by: Kirill Smelkov
    Cc: Alan Cox
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Kirill Smelkov
     
  • Remove explicit tty_driver ops initialisation, because this is already done
    by tty_set_operations.

    Signed-off-by: Kirill Smelkov
    Cc: Alan Cox
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Kirill Smelkov
     
  • This patch adds a connector that reports fork, exec, id change, and exit
    events for all processes to userspace. It replaces the fork_advisor patch
    that ELSA is currently using. Applications that may find these events
    useful include accounting/auditing (e.g. ELSA), system activity monitoring
    (e.g. top), security, and resource management (e.g. CKRM).

    Signed-off-by: Matt Helsley
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Matt Helsley
     
  • Large console spews from IRQ or local_irq_disable() sections can cause the NMI
    watchdog to go off.

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

    Andrew Morton
     
  • If vmcp is interrupted by a signal the vmcp command buffer is not freed.
    Found by Pete Zaitcev.

    Signed-off-by: Christian Borntraeger
    Signed-off-by: Martin Schwidefsky
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Christian Borntraeger
     
  • Remove duplicate timeout in qdio_establish().

    Signed-off-by: Ursula Braun-Krahl
    Signed-off-by: Martin Schwidefsky
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Ursula Braun-Krahl
     
  • Access to FBA disks via DIAG fails for block sizes > 512 byte. The device
    analysis code of the DIAG discipline does not properly initialize the DIAG250
    device environment after completion of the analysis. This results in VM only
    serving 512 bytes per block I/O request whereas Linux expects larger block
    sizes. Add proper device environment setup to end of analysis code.

    Signed-off-by: Peter Oberparleiter
    Signed-off-by: Martin Schwidefsky
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Peter Oberparleiter
     
  • Future versions of gcc may remove initialization code for control blocks used
    by the diag250 inline assembly due to incompletely specified constraints.
    This may lead to erratic behavior. Fix the diag250 inline assembly
    constraints.

    Signed-off-by: Peter Oberparleiter
    Signed-off-by: Martin Schwidefsky
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Peter Oberparleiter
     
  • Make the interface for setting ccw group devices on-/offline consistent with
    that for ccw devices: Check if the device driver provided a set_{on,off}line
    function and just set the device on-/offline if not.

    Signed-off-by: Cornelia Huck
    Signed-off-by: Martin Schwidefsky
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Cornelia Huck
     
  • This extends the API somewhat to allow for platform-specific VCR reading and
    writing. Some platforms (like SH4-202) implement the VCR in a split VCRL and
    VCRH, but end up being in reverse order or have other quirks that need to be
    dealt with, so we add a set of superhyway_ops per-bus to accomodate this.

    We also have to extend the per-device resources somewhat, as some devices now
    conveniently split control and data blocks. So we allow a platform to
    register its set of SuperHyway devices via superhyway_add_devices() with the
    control block always ordered as the first resource (as this is the one that
    userspace cares about).

    Signed-off-by: Paul Mundt
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Paul Mundt
     
  • drivers/sh/ got dropped from drivers/Makefile, so add it back in..

    Signed-off-by: Paul Mundt
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Paul Mundt
     
  • It is not valid to enable scatter/gather without hardware checksum support
    of some kind. (akpm: applies only to the old boomerang cards).

    Signed-off-by: Stephen Hemminger
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Stephen Hemminger
     
  • Add capability for 3c59x driver to use memory-mapped PCI I/O resources.
    This may improve performance for those devices so equipped. This will be
    the default behaviour for IS_CYCLONE and IS_TORNADO devices. Additionally,
    it can be enabled/disabled individually for up to MAX_UNITS number of
    devices via the use_mmio module option or for all units via the
    global_use_mmio option. The use_mmio option overrides the global_use_mmio
    option for those devices specified.

    Signed-off-by: John W. Linville
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    John W. Linville
     
  • Only increment rx_dropped in case of lack of resources (i.e. not for
    frames with errors).

    Signed-off-by: John W. Linville
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    John W. Linville
     
  • Add support for ETHTOOL_GPERMADDR to 3c59x.

    Signed-off-by: John W. Linville
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    John W. Linville
     
  • Correct several (apparently cut & paste) grammatical typos in module
    parameter descriptions. They seem to have originated as copies of the
    description for "global_options".

    Signed-off-by: John W. Linville
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    John W. Linville
     
  • Beautify the array initilizations for the module parameters.

    Signed-off-by: John W. Linville
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    John W. Linville
     
  • Add bounds checking to usage of hw_checksums module parameter array.

    Signed-off-by: John W. Linville
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    John W. Linville
     
  • In order to spare some I/O operations, be more intelligent about when to
    read from the PHY.

    Pointed out by Bogdan Costescu.

    Signed-off-by: Tommy S. Christensen
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Tommy Christensen
     
  • Clean up mdio_read routines in 3c59x.c to use the MII_* macros defined in
    include/linux/mii.h

    Signed-off-by: Neil Horman
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Neil Horman
     
  • Convert 3c59x driver to use pci_iomap API. This makes it easier to enable
    the use of memory-mapped PCI I/O resources.

    Signed-off-by: John W. Linville
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    John W. Linville
     
  • Linus Torvalds
     

06 Nov, 2005

13 commits

  • The offsets of the registers are in a different place, and
    some parts cannot handle a full set of modem control signals.

    Signed-off-by: Pantelis Antoniou
    Signed-off-by: Russell King

    Pantelis Antoniou
     
  • Some visually impaired people use hardware devices which directly read
    the vga screen. When newt for instance asks to hide the cursor for
    better visual aspect, the kernel puts the vga cursor out of the screen,
    so that the cursor position can't be read by the hardware device. This
    is a great loss for such people.

    Here is a patch which uses the same technique as CUR_NONE for hiding the
    cursor while still moving it.

    Mario, you should apply it to the speakup kernel for access floppies
    asap. I'll submit a 2.4 patch too.

    Signed-off-by: samuel.thibault@ens-lyon.org
    Signed-off-by: Linus Torvalds

    Samuel Thibault
     
  • Statically allocated devices in module data is a potential cause
    of oopsen. The device may be in use by a userspace process, which
    will keep a reference to the device. If the module is unloaded,
    the module data will be freed. Subsequent use of the platform
    device will cause a kernel oops.

    Use generic platform device allocation/release code in modules.

    Signed-off-by: Russell King
    Acked-by: Greg Kroah-Hartman

    Russell King
     
  • Statically allocated devices in module data is a potential cause
    of oopsen. The device may be in use by a userspace process, which
    will keep a reference to the device. If the module is unloaded,
    the module data will be freed. Subsequent use of the platform
    device will cause a kernel oops.

    Use generic platform device allocation/release code in modules.

    Signed-off-by: Russell King
    Acked-by: Greg Kroah-Hartman

    Russell King
     
  • Release code in driver modules is a potential cause of oopsen.
    The device may be in use by a userspace process, which will keep
    a reference to the device. If the module is unloaded, the module
    text will be freed. Subsequently, when the last reference is
    dropped, the release code will be called, which no longer exists.

    Use generic platform device allocation/release code in modules.

    Signed-off-by: Russell King
    Acked-by: Greg Kroah-Hartman

    Russell King
     
  • Release code in driver modules is a potential cause of oopsen.
    The device may be in use by a userspace process, which will keep
    a reference to the device. If the module is unloaded, the module
    text will be freed. Subsequently, when the last reference is
    dropped, the release code will be called, which no longer exists.

    Use generic platform device allocation/release code in modules.

    Signed-off-by: Russell King
    Acked-by: Greg Kroah-Hartman

    Russell King
     
  • Release code in driver modules is a potential cause of oopsen.
    The device may be in use by a userspace process, which will keep
    a reference to the device. If the module is unloaded, the module
    text will be freed. Subsequently, when the last reference is
    dropped, the release code will be called, which no longer exists.

    Use generic platform device allocation/release code in modules.

    Signed-off-by: Russell King
    Acked-by: Greg Kroah-Hartman

    Russell King
     
  • Release code in driver modules is a potential cause of oopsen.
    The device may be in use by a userspace process, which will keep
    a reference to the device. If the module is unloaded, the module
    text will be freed. Subsequently, when the last reference is
    dropped, the release code will be called, which no longer exists.

    Use generic platform device allocation/release code in modules.

    Signed-off-by: Russell King
    Acked-by: Greg Kroah-Hartman

    Russell King
     
  • Re-jig the simple platform device support to allow private data
    to be attached to a platform device, as well as allowing the
    parent device to be set.

    Example usage:

    pdev = platform_device_alloc("mydev", id);
    if (pdev) {
    err = platform_device_add_resources(pdev, &resources,
    ARRAY_SIZE(resources));
    if (err == 0)
    err = platform_device_add_data(pdev, &platform_data,
    sizeof(platform_data));
    if (err == 0)
    err = platform_device_add(pdev);
    } else {
    err = -ENOMEM;
    }
    if (err)
    platform_device_put(pdev);

    Signed-off-by: Russell King
    Acked-by: Greg Kroah-Hartman

    Russell King
     
  • Linus Torvalds
     
  • Adds a phy_mask field to struct mii_bus and uses it. This field
    indicates each phy address to be ignored when probing the mdio bus.

    This support is needed for the fs_enet and ibm_emac drivers to be
    converted to the generic phy layer among other drivers. Many systems
    lock up on probing certain phy addresses or probing doesn't return
    0xffff when nothing is found at the address. A new driver I'm
    working on also makes use of this mask.

    Signed-off-by: Matt Porter
    Signed-off-by: Jeff Garzik

    Matt Porter
     
  • Some boards using the 79c976 pcnet32 chip will hang the system if the
    ethtool --register-dump is performed with the device operational. The
    request to read bcr30 is retried by the PCI device infinitely without
    returning data, hanging the system.

    Tested ia32 and ppc64.

    Signed-off-by: Don Fry
    Signed-off-by: Jeff Garzik

    Don Fry
     
  • This patch is a better fix for Allied Telesyn 2700/2701 FX boards than
    the change made in early January this year. It allows the user to
    select the speed/duplex via module_param, but if no selection is made,
    forces the speed to 100 FD. It fixes both Bugzilla bugs 2669 and 4551.
    Tested ia32 and ppc64 by myself, and by the originator of bug 2669.

    Signed-off-by: Don Fry
    Signed-off-by: Jeff Garzik

    Don Fry