Commits on Nov 29, 2006
  1. @AdrianBunk

    Linux 2.6.16.34

    AdrianBunk committed Nov 29, 2006
Commits on Nov 25, 2006
  1. @AdrianBunk

    Linux 2.6.16.34-rc1

    AdrianBunk committed Nov 25, 2006
  2. @tiwai @AdrianBunk

    [ALSA] echoaudio - Remove kfree_nocheck()

    Remove obsoleted kfree_nochec() (for debug).
    
    Signed-off-by: Takashi Iwai <tiwai@suse.de>
    Signed-off-by: Jaroslav Kysela <perex@suse.cz>
    Signed-off-by: Adrian Bunk <bunk@stusta.de>
    tiwai committed with AdrianBunk Nov 25, 2006
  3. @tiwai @AdrianBunk

    [ALSA] echoaudio - Fix Makefile

    Fix missing makefile entries for echoaudio drivers
    
    Signed-off-by: Takashi Iwai <tiwai@suse.de>
    Signed-off-by: Jaroslav Kysela <perex@suse.cz>
    Signed-off-by: Adrian Bunk <bunk@stusta.de>
    tiwai committed with AdrianBunk Nov 25, 2006
  4. @tiwai @AdrianBunk

    [ALSA] Fix a typo in echoaudio/midi.c

    Fixed a typo in echoaudio/midi.c.
    
    Signed-off-by: Takashi Iwai <tiwai@suse.de>
    Signed-off-by: Jaroslav Kysela <perex@suse.cz>
    Signed-off-by: Adrian Bunk <bunk@stusta.de>
    tiwai committed with AdrianBunk Nov 25, 2006
  5. @AdrianBunk

    [ALSA] Add echoaudio sound drivers

    Add echoaudio sound drivers (darla20, darla24, echo3g, gina20, gina24,
    indigo, indigodj, indigoio, layla20, lala24, mia, mona)
    
    Signed-off-by: Takashi Iwai <tiwai@suse.de>
    Signed-off-by: Jaroslav Kysela <perex@suse.cz>
    Signed-off-by: Adrian Bunk <bunk@stusta.de>
    Giuliano Pochini pochini@shiny.it committed with AdrianBunk Nov 25, 2006
  6. @AdrianBunk

    CIFS: report rename failure when target file is locked by Windows

    Fixes Samba bugzilla bug # 4182
    
    Rename by handle failures (retry after rename by path) were not
    being returned back.
    
    Signed-off-by: Steve French <sfrench@us.ibm.com>
    Signed-off-by: Adrian Bunk <bunk@stusta.de>
    Steve French committed with AdrianBunk Nov 25, 2006
  7. @AdrianBunk

    i2c: Handle i2c_add_adapter failure in i2c algorithm drivers

    It is possible for i2c_add_adapter() to fail.  Several I2C algorithm
    drivers ignore that fact.  This (compile-tested only) patch fixes them.
    
    Signed-off-by: Mark M. Hoffman <mhoffman@lightlink.com>
    Signed-off-by: Jean Delvare <khali@linux-fr.org>
    Signed-off-by: Adrian Bunk <bunk@stusta.de>
    Mark M. Hoffman committed with AdrianBunk Nov 25, 2006
  8. @AdrianBunk

    [IGMP]: Fix IGMPV3_EXP() normalization bit shift value.

    The IGMPV3_EXP() macro doesn't correctly shift the normalization bit, so
    time-out values are longer than they should be.
    
    Thanks to Dirk Ooms for finding the problem in IGMPv3 - MLDv2 had a
    similar problem that was already fixed a year ago. :-(
    
    Signed-off-by: David L Stevens <dlstevens@us.ibm.com>
    Signed-off-by: David S. Miller <davem@davemloft.net>
    Signed-off-by: Adrian Bunk <bunk@stusta.de>
    David L Stevens committed with AdrianBunk Nov 25, 2006
  9. @AdrianBunk

    USB: UHCI: Increase port-reset completion delay for HP controllers

    This patch (as657) increases the port-reset completion delay in uhci-hcd
    for HP's embedded controllers.  Unlike other UHCI controllers, the HP
    chips can take as long as 250 us to carry out the processing associated
    with finishing a port reset.
    
    This fixes Novell bug #148761.
    
    Signed-off-by: Alan Stern <stern@rowland.harvard.edu>
    Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
    Signed-off-by: Adrian Bunk <bunk@stusta.de>
    Alan Stern committed with AdrianBunk Nov 25, 2006
Commits on Nov 24, 2006
  1. @AdrianBunk

    [SCSI] hptiop: backout ioctl mess

    The hptiop just got merged with a horrible amount of really bad ioctl
    code that is against the standards for new scsi drivers.  This patch
    backs it out (and fixes a small bug where scsi_add_host is called to
    early).  We can re-add proper APIs once we agree on them.
    
    Signed-off-by: Christoph Hellwig <hch@lst.de>
    Signed-off-by: Adrian Bunk <bunk@stusta.de>
    Christoph Hellwig committed with AdrianBunk Nov 24, 2006
  2. @AdrianBunk

    [SCSI] hptiop: wrong register used in hptiop_reset_hba()

    IOP reset message should be posted to inbound message register
    instead of outbound message register.
    
    Signed-off-by: HighPoint Linux Team <linux@highpoint-tech.com>
    Signed-off-by: Adrian Bunk <bunk@stusta.de>
    HighPoint Linux Team committed with AdrianBunk Nov 24, 2006
  3. @AdrianBunk

    [SCSI] hptiop: don't use cmnd->bufflen

    use cmnd->request_bufflen instead.
    
    Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
    Signed-off-by: Adrian Bunk <bunk@stusta.de>
    James Bottomley committed with AdrianBunk Nov 24, 2006
  4. @AdrianBunk

    [SCSI] hptiop: HighPoint RocketRAID 3xxx controller driver

    Updates:
    - don't bypass SYNCHRONIZE_CACHE command
    - return SCSI_MLQUEUE_HOST_BUSY when no free request slots
    - move scsi_remove_host() to the begin of hpt_remove(), or it will
      not work after resources being released.
    
    Signed-off-by: HighPoint Linux Team <linux@highpoint-tech.com>
    Signed-off-by: Adrian Bunk <bunk@stusta.de>
    HighPoint Linux Team committed with AdrianBunk Nov 24, 2006
  5. @AdrianBunk

    [SCSI] hptiop: HighPoint RocketRAID 3xxx controller driver

    HighPoint RocketRAID 3220/3320 series 8 channel PCI-X SATA RAID Host
    Adapters.
    
    Fixes from original submission:
    
    Merge Andrew Morton's patches:
    - Provide locking for global list
    - Fix debug printks
    - uninline function with multiple callsites
    - coding style fixups
    - remove unneeded casts of void*
    - kfree(NULL) is legal
    - Don't "succeed" if register_chrdev() failed - otherwise we'll later
      unregister a not-registered chrdev.
    - Don't return from hptiop_do_ioctl() with the spinlock held.
    - uninline __hpt_do_ioctl()
    
    Update for Arjan van de Ven's comments:
    - put all asm/ includes after the linux/ ones
    - replace mdelay with msleep
    - add pci posting flush
    - do not set pci command reqister in map_pci_bar
    - do not try merging sg elements in hptiop_buildsgl()
    - remove unused outstandingcommands member from hba structure
    - remove unimplemented hptiop_abort() handler
    - remove typedef u32 hpt_id_t
    
    Other updates:
    - fix endianess
    
    Signed-off-by: HighPoint Linux Team <linux@highpoint-tech.com>
    Signed-off-by: Adrian Bunk <bunk@stusta.de>
    HighPoint Linux Team committed with AdrianBunk Nov 24, 2006
  6. @AdrianBunk

    update the OBSOLETE_OSS_DRIVER help text

    Signed-off-by: Adrian Bunk <bunk@stusta.de>
    AdrianBunk committed Nov 24, 2006
  7. @AdrianBunk

    sysfs: remove duplicated dput in sysfs_update_file

    Following function can drops d_count twice against one reference
    by lookup_one_len.
    
    <SOURCE>
    /**
     * sysfs_update_file - update the modified timestamp on an object attribute.
     * @kobj: object we're acting for.
     * @attr: attribute descriptor.
     */
    int sysfs_update_file(struct kobject * kobj, const struct attribute * attr)
    {
            struct dentry * dir = kobj->dentry;
            struct dentry * victim;
            int res = -ENOENT;
    
            mutex_lock(&dir->d_inode->i_mutex);
            victim = lookup_one_len(attr->name, dir, strlen(attr->name));
            if (!IS_ERR(victim)) {
                    /* make sure dentry is really there */
                    if (victim->d_inode &&
                        (victim->d_parent->d_inode == dir->d_inode)) {
                            victim->d_inode->i_mtime = CURRENT_TIME;
                            fsnotify_modify(victim);
    
                            /**
                             * Drop reference from initial sysfs_get_dentry().
                             */
                            dput(victim);
                            res = 0;
                    } else
                            d_drop(victim);
    
                    /**
                     * Drop the reference acquired from sysfs_get_dentry() above.
                     */
                    dput(victim);
            }
            mutex_unlock(&dir->d_inode->i_mutex);
    
            return res;
    }
    </SOURCE>
    
    PCI-hotplug (drivers/pci/hotplug/pci_hotplug_core.c) is only user of
    this function. I confirmed that dentry of /sys/bus/pci/slots/XXX/*
    have negative d_count value.
    
    This patch removes unnecessary dput().
    
    Signed-off-by: Hidetoshi Seto <seto.hidetoshi@jp.fujitsu.com>
    Signed-off-by: Andrew Morton <akpm@osdl.org>
    Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
    Signed-off-by: Adrian Bunk <bunk@stusta.de>
    Hidetoshi Seto committed with AdrianBunk Nov 24, 2006
  8. @AdrianBunk

    fix sys_getppid oopses on debug kernel

    sys_getppid() optimization can access a freed memory.  On kernels with
    DEBUG_SLAB turned ON, this results in Oops.  As Dave Hansen noted, this
    optimization is also unsafe for memory hotplug.
    
    So this patch always takes the lock to be safe.
    
    Signed-off-by: Kirill Korotaev <dev@openvz.org>
    Signed-off-by: Adrian Bunk <bunk@stusta.de>
    Kirill Korotaev committed with AdrianBunk Nov 24, 2006
  9. @AdrianBunk

    [IPX]: Annotate and fix IPX checksum

    Calculation of IPX checksum got buggered about 2.4.0.  The old variant
    mangled the packet; that got fixed, but calculation itself got buggered.
    Restored the correct logics, fixed a subtle breakage we used to have even
    back then: if the sum is 0 mod 0xffff, we want to return 0, not 0xffff.
    The latter has special meaning for IPX (cheksum disabled).  Observation
    (and obvious fix) nicked from history of FreeBSD ipx_cksum.c...
    
    Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
    Signed-off-by: David S. Miller <davem@davemloft.net>
    Signed-off-by: Adrian Bunk <bunk@stusta.de>
    Al Viro committed with AdrianBunk Nov 24, 2006
  10. @davem330 @AdrianBunk

    [IPX]: Fix typo, ipxhdr() --> ipx_hdr()

    Noticed by Dave Jones.
    
    Signed-off-by: David S. Miller <davem@davemloft.net>
    Signed-off-by: Adrian Bunk <bunk@stusta.de>
    davem330 committed with AdrianBunk Nov 24, 2006
  11. @AdrianBunk

    [IPX]: Another nonlinear receive fix

    Need to check some more cases in IPX receive.  If the skb is purely
    fragments, the IPX header needs to be extracted. The function
    pskb_may_pull() may in theory invalidate all the pointers in the skb,
    so references to ipx header must be refreshed.
    
    Signed-off-by: Stephen Hemminger <shemminger@osdl.org>
    Signed-off-by: David S. Miller <davem@davemloft.net>
    Signed-off-by: Adrian Bunk <bunk@stusta.de>
    Stephen Hemminger committed with AdrianBunk Nov 24, 2006
  12. @AdrianBunk

    [IPX]: Header length validation needed

    This patch will linearize and check there is enough data.
    It handles the pprop case as well as avoiding a whole audit of
    the routing code.
    
    Signed-off-by: Stephen Hemminger <shemminger@osdl.org>
    Signed-off-by: David S. Miller <davem@davemloft.net>
    Signed-off-by: Adrian Bunk <bunk@stusta.de>
    Stephen Hemminger committed with AdrianBunk Nov 24, 2006
  13. @AdrianBunk

    [IPX]: Correct return type of ipx_map_frame_type().

    Casting BE16 to int and back may or may not work. Correct, to be sure.
    
    Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
    Signed-off-by: David S. Miller <davem@davemloft.net>
    Signed-off-by: Adrian Bunk <bunk@stusta.de>
    Alexey Dobriyan committed with AdrianBunk Nov 24, 2006
  14. @AdrianBunk

    Fix i2c-ixp4xx compilation breakage

    Fix recent i2c-ixp4xx compilation breakage. Sorry for overlooking it.
    
    Signed-off-by: Jean Delvare <khali@linux-fr.org>
    Signed-off-by: Adrian Bunk <bunk@stusta.de>
    Jean Delvare committed with AdrianBunk Nov 24, 2006
Commits on Nov 23, 2006
  1. @AdrianBunk

    [SCSI] advansys pci tweaks.

    Remove a lot of duplicate #defines from the advansys driver,
    and make them look like PCI IDs as defined elsewhere in the kernel.
    Also add a module table so that it automatically gets picked up
    by tools relying on modinfo output (like say, distro installers).
    
    Signed-off-by: Dave Jones <davej@redhat.com>
    Signed-off-by: Adrian Bunk <bunk@stusta.de>
    AdrianBunk committed Nov 23, 2006
  2. @AdrianBunk

    advansys section fixes

    Priority: not critical.
    Mark 3 functions __init.  Saves a little memory.
    This makes these functions' calls to AdvWaitEEPCmd() (which is __init)
    be clean (i.e., eliminates text -> init -> text call chain).
    
    Fix multiple section mismatch warnings:
    WARNING: drivers/scsi/advansys.o - Section mismatch: reference to .init.text: from .text between 'AdvSet3550EEPConfig' (at offset 0x7a22) and 'AdvSet38C0800EEPConfig'
    WARNING: drivers/scsi/advansys.o - Section mismatch: reference to .init.text: from .text between 'AdvSet3550EEPConfig' (at offset 0x7a4e) and 'AdvSet38C0800EEPConfig'
    WARNING: drivers/scsi/advansys.o - Section mismatch: reference to .init.text: from .text between 'AdvSet3550EEPConfig' (at offset 0x7a79) and 'AdvSet38C0800EEPConfig'
    WARNING: drivers/scsi/advansys.o - Section mismatch: reference to .init.text: from .text between 'AdvSet3550EEPConfig' (at offset 0x7aa2) and 'AdvSet38C0800EEPConfig'
    WARNING: drivers/scsi/advansys.o - Section mismatch: reference to .init.text: from .text between 'AdvSet3550EEPConfig' (at offset 0x7abb) and 'AdvSet38C0800EEPConfig'
    WARNING: drivers/scsi/advansys.o - Section mismatch: reference to .init.text: from .text between 'AdvSet38C0800EEPConfig' (at offset 0x7ae0) and 'AdvSet38C1600EEPConfig'
    WARNING: drivers/scsi/advansys.o - Section mismatch: reference to .init.text: from .text between 'AdvSet38C0800EEPConfig' (at offset 0x7b0c) and 'AdvSet38C1600EEPConfig'
    WARNING: drivers/scsi/advansys.o - Section mismatch: reference to .init.text: from .text between 'AdvSet38C0800EEPConfig' (at offset 0x7b37) and 'AdvSet38C1600EEPConfig'
    WARNING: drivers/scsi/advansys.o - Section mismatch: reference to .init.text: from .text between 'AdvSet38C0800EEPConfig' (at offset 0x7b60) and 'AdvSet38C1600EEPConfig'
    WARNING: drivers/scsi/advansys.o - Section mismatch: reference to .init.text: from .text between 'AdvSet38C0800EEPConfig' (at offset 0x7b79) and 'AdvSet38C1600EEPConfig'
    WARNING: drivers/scsi/advansys.o - Section mismatch: reference to .init.text: from .text between 'AdvSet38C1600EEPConfig' (at offset 0x7b9e) and 'AdvExeScsiQueue'
    WARNING: drivers/scsi/advansys.o - Section mismatch: reference to .init.text: from .text between 'AdvSet38C1600EEPConfig' (at offset 0x7bca) and 'AdvExeScsiQueue'
    WARNING: drivers/scsi/advansys.o - Section mismatch: reference to .init.text: from .text between 'AdvSet38C1600EEPConfig' (at offset 0x7bf5) and 'AdvExeScsiQueue'
    WARNING: drivers/scsi/advansys.o - Section mismatch: reference to .init.text: from .text between 'AdvSet38C1600EEPConfig' (at offset 0x7c1e) and 'AdvExeScsiQueue'
    WARNING: drivers/scsi/advansys.o - Section mismatch: reference to .init.text: from .text between 'AdvSet38C1600EEPConfig' (at offset 0x7c37) and 'AdvExeScsiQueue'
    
    Signed-off-by: Randy Dunlap <rdunlap@xenotime.net>
    Signed-off-by: Adrian Bunk <bunk@stusta.de>
    Randy Dunlap committed with AdrianBunk Nov 23, 2006
  3. @AdrianBunk

    [SCSI] advansys driver: limp along on x86

    Let people enable the advansys driver on x86-32, even though it's broken
    on other architectures due to missing DMA mapping infrastructure.
    
    It's used by Jeffrey Phillips Freeman <jeffreyfreeman@syncleus.com> and
    possibly others.
    
    Signed-off-by: Linus Torvalds <torvalds@osdl.org>
    Signed-off-by: Adrian Bunk <bunk@stusta.de>
    Linus Torvalds committed with AdrianBunk Nov 23, 2006
  4. @AdrianBunk

    i2c-ixp4xx: fix ") != 0))" typo

    i2c_bit_add_bus() returns -E;
    -E != 0             =>      err = 1
    probe fails with positive error code
    
    Signed-off-by: Alexey Dobriyan <adobriyan@openvz.org>
    Signed-off-by: Adrian Bunk <bunk@stusta.de>
    Alexey Dobriyan committed with AdrianBunk Nov 23, 2006
Commits on Nov 22, 2006
  1. @AdrianBunk

    Linux 2.6.16.33

    AdrianBunk committed Nov 22, 2006
Commits on Nov 20, 2006
  1. @AdrianBunk

    Linux 2.6.16.33-rc1

    AdrianBunk committed Nov 20, 2006
  2. @ozbenh @AdrianBunk

    POWERPC: Make alignment exception always check exception table

    The alignment exception used to only check the exception table for
    -EFAULT, not for other errors. That opens an oops window if we can
    coerce the kernel into getting an alignment exception for other reasons
    in what would normally be a user-protected accessor, which can be done
    via some of the futex ops. This fixes it by always checking the
    exception tables.
    
    Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
    Signed-off-by: Adrian Bunk <bunk@stusta.de>
    ozbenh committed with AdrianBunk Nov 20, 2006
  3. @dvenza @AdrianBunk

    Add new PHY to sis900 supported list

    This patch adds support for a new PHY to the sis900 driver.
    See also Bugzilla 6919.
    
    Signed-off-by: Daniele Venzano <venza@brownhat.org>
    Signed-off-by: Adrian Bunk <bunk@stusta.de>
    dvenza committed with AdrianBunk Nov 20, 2006
  4. @AdrianBunk

    sis900 adm7001 PHY support

    this patch is required to get a SIS964 based motherboard ethernet working
    (FSC D1875) (picking the #1 transceiver, instead of the last one, in case
    no known ones were found might be a better default, and would have worked
    in this case too)
    
    Signed-off-by: Artur Skawina <art_k@o2.pl>
    Signed-off-by: Adrian Bunk <bunk@stusta.de>
    Artur Skawina committed with AdrianBunk Nov 20, 2006
  5. @AdrianBunk

    Old IDE, fix SATA detection for cabling

    This patch is identical to that introduced in
    1a1276e to the Linus' 2.6 development tree
    by Alan Cox.
    
    'This is based on the proposed patches flying around but also checks that
    the device in question is new enough to have word 93 rather thanb blindly
    assuming word 93 == 0 means SATA (see ATA-5, ATA-7)' -- Alan Cox
    
    Required for my SATA drive on an Asus Pundit-R to operate above 33MBps.
    
    Signed-off-by: Michael-Luke Jones <mlj28@cam.ac.uk>
    Signed-off-by: Adrian Bunk <bunk@stusta.de>
    Michael-Luke Jones committed with AdrianBunk Nov 20, 2006
  6. @AdrianBunk

    Fix BeFS slab corruption

    In bugzilla #6941, Jens Kilian reported:
    
    "The function befs_utf2nls (in fs/befs/linuxvfs.c) writes a 0 byte past the
    end of a block of memory allocated via kmalloc(), leading to memory
    corruption.  This happens only for filenames which are pure ASCII and a
    multiple of 4 bytes in length.  [...]
    
    Without DEBUG_SLAB, this leads to further corruption and hard lockups; I
    believe this is the bug which has made kernels later than 2.6.8 unusable
    for me.  (This must be due to changes in memory management, the bug has
    been in the BeFS driver since the time it was introduced (AFAICT).)
    
    Steps to reproduce:
    Create a directory (in BeOS, naturally :-) with files named, e.g.,
    "1", "22", "333", "4444", ...  Mount it in Linux and do an "ls" or "find""
    
    This patch implements the suggested fix. Credits to Jens Kilian for
    debugging the problem and finding the right fix.
    
    Signed-off-by: Diego Calleja <diegocg@gmail.com>
    Signed-off-by: Adrian Bunk <bunk@stusta.de>
    Diego Calleja committed with AdrianBunk Nov 20, 2006