07 Mar, 2010

6 commits

  • Add adds a debugfs interface and additional failure modes to LKDTM to
    provide similar functionality to the provoke-crash driver submitted here:

    http://lwn.net/Articles/371208/

    Crashes can now be induced either through module parameters (as before)
    or through the debugfs interface as in provoke-crash.

    The patch also provides a new "direct" interface, where KPROBES are not
    used, i.e., the crash is invoked directly upon write to the debugfs
    file. When built without KPROBES configured, only this mode is available.

    Signed-off-by: Simon Kagstrom
    Cc: M. Mohan Kumar
    Cc: Americo Wang
    Cc: David Woodhouse
    Cc: Ingo Molnar
    Cc: "Eric W. Biederman" ,
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Simon Kagstrom
     
  • - new Documentation/init.txt file describing various forms of failure
    trying to load the init binary after kernel bootup

    - extend the init/main.c init failure message to direct to
    Documentation/init.txt

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

    Andreas Mohr
     
  • Add a bare description of what /sys/devices/system/node/nodeX is. Others
    will follow in time but right now, none of that tree is documented. The
    existence of this file might at least encourage people to document new
    entries.

    Signed-off-by: Mel Gorman
    Reviewed-by: KOSAKI Motohiro
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Mel Gorman
     
  • Add documentation for /proc/pagetypeinfo.

    Signed-off-by: Mel Gorman
    Reviewed-by: Christoph Lameter
    Reviewed-by: KOSAKI Motohiro
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Mel Gorman
     
  • A frequent questions from users about memory management is what numbers of
    swap ents are user for processes. And this information will give some
    hints to oom-killer.

    Besides we can count the number of swapents per a process by scanning
    /proc//smaps, this is very slow and not good for usual process
    information handler which works like 'ps' or 'top'. (ps or top is now
    enough slow..)

    This patch adds a counter of swapents to mm_counter and update is at each
    swap events. Information is exported via /proc//status file as

    [kamezawa@bluextal memory]$ cat /proc/self/status
    Name: cat
    State: R (running)
    Tgid: 2910
    Pid: 2910
    PPid: 2823
    TracerPid: 0
    Uid: 500 500 500 500
    Gid: 500 500 500 500
    FDSize: 256
    Groups: 500
    VmPeak: 82696 kB
    VmSize: 82696 kB
    VmLck: 0 kB
    VmHWM: 432 kB
    VmRSS: 432 kB
    VmData: 172 kB
    VmStk: 84 kB
    VmExe: 48 kB
    VmLib: 1568 kB
    VmPTE: 40 kB
    VmSwap: 0 kB
    Reviewed-by: Minchan Kim
    Reviewed-by: Christoph Lameter
    Cc: Lee Schermerhorn
    Cc: David Rientjes
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    KAMEZAWA Hiroyuki
     
  • Considering the nature of per mm stats, it's the shared object among
    threads and can be a cache-miss point in the page fault path.

    This patch adds per-thread cache for mm_counter. RSS value will be
    counted into a struct in task_struct and synchronized with mm's one at
    events.

    Now, in this patch, the event is the number of calls to handle_mm_fault.
    Per-thread value is added to mm at each 64 calls.

    rough estimation with small benchmark on parallel thread (2threads) shows
    [before]
    4.5 cache-miss/faults
    [after]
    4.0 cache-miss/faults
    Anyway, the most contended object is mmap_sem if the number of threads grows.

    [akpm@linux-foundation.org: coding-style fixes]
    Signed-off-by: KAMEZAWA Hiroyuki
    Cc: Minchan Kim
    Cc: Christoph Lameter
    Cc: Lee Schermerhorn
    Cc: David Rientjes
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    KAMEZAWA Hiroyuki
     

06 Mar, 2010

4 commits

  • * 'slab-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/penberg/slab-2.6:
    SLUB: Fix per-cpu merge conflict
    failslab: add ability to filter slab caches
    slab: fix regression in touched logic
    dma kmalloc handling fixes
    slub: remove impossible condition
    slab: initialize unused alien cache entry as NULL at alloc_alien_cache().
    SLUB: Make slub statistics use this_cpu_inc
    SLUB: this_cpu: Remove slub kmem_cache fields
    SLUB: Get rid of dynamic DMA kmalloc cache allocation
    SLUB: Use this_cpu operations in slub

    Linus Torvalds
     
  • * 'for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jack/linux-fs-2.6: (33 commits)
    quota: stop using QUOTA_OK / NO_QUOTA
    dquot: cleanup dquot initialize routine
    dquot: move dquot initialization responsibility into the filesystem
    dquot: cleanup dquot drop routine
    dquot: move dquot drop responsibility into the filesystem
    dquot: cleanup dquot transfer routine
    dquot: move dquot transfer responsibility into the filesystem
    dquot: cleanup inode allocation / freeing routines
    dquot: cleanup space allocation / freeing routines
    ext3: add writepage sanity checks
    ext3: Truncate allocated blocks if direct IO write fails to update i_size
    quota: Properly invalidate caches even for filesystems with blocksize < pagesize
    quota: generalize quota transfer interface
    quota: sb_quota state flags cleanup
    jbd: Delay discarding buffers in journal_unmap_buffer
    ext3: quota_write cross block boundary behaviour
    quota: drop permission checks from xfs_fs_set_xstate/xfs_fs_set_xquota
    quota: split out compat_sys_quotactl support from quota.c
    quota: split out netlink notification support from quota.c
    quota: remove invalid optimization from quota_sync_all
    ...

    Fixed trivial conflicts in fs/namei.c and fs/ufs/inode.c

    Linus Torvalds
     
  • * 'kvm-updates/2.6.34' of git://git.kernel.org/pub/scm/virt/kvm/kvm: (145 commits)
    KVM: x86: Add KVM_CAP_X86_ROBUST_SINGLESTEP
    KVM: VMX: Update instruction length on intercepted BP
    KVM: Fix emulate_sys[call, enter, exit]()'s fault handling
    KVM: Fix segment descriptor loading
    KVM: Fix load_guest_segment_descriptor() to inject page fault
    KVM: x86 emulator: Forbid modifying CS segment register by mov instruction
    KVM: Convert kvm->requests_lock to raw_spinlock_t
    KVM: Convert i8254/i8259 locks to raw_spinlocks
    KVM: x86 emulator: disallow opcode 82 in 64-bit mode
    KVM: x86 emulator: code style cleanup
    KVM: Plan obsolescence of kernel allocated slots, paravirt mmu
    KVM: x86 emulator: Add LOCK prefix validity checking
    KVM: x86 emulator: Check CPL level during privilege instruction emulation
    KVM: x86 emulator: Fix popf emulation
    KVM: x86 emulator: Check IOPL level during io instruction emulation
    KVM: x86 emulator: fix memory access during x86 emulation
    KVM: x86 emulator: Add Virtual-8086 mode of emulation
    KVM: x86 emulator: Add group9 instruction decoding
    KVM: x86 emulator: Add group8 instruction decoding
    KVM: do not store wqh in irqfd
    ...

    Trivial conflicts in Documentation/feature-removal-schedule.txt

    Linus Torvalds
     
  • …nel/git/tip/linux-2.6-tip

    * 'perf-probes-for-linus-2' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip:
    x86: Issue at least one memory barrier in stop_machine_text_poke()
    perf probe: Correct probe syntax on command line help
    perf probe: Add lazy line matching support
    perf probe: Show more lines after last line
    perf probe: Check function address range strictly in line finder
    perf probe: Use libdw callback routines
    perf probe: Use elfutils-libdw for analyzing debuginfo
    perf probe: Rename probe finder functions
    perf probe: Fix bugs in line range finder
    perf probe: Update perf probe document
    perf probe: Do not show --line option without dwarf support
    kprobes: Add documents of jump optimization
    kprobes/x86: Support kprobes jump optimization on x86
    x86: Add text_poke_smp for SMP cross modifying code
    kprobes/x86: Cleanup save/restore registers
    kprobes/x86: Boost probes when reentering
    kprobes: Jump optimization sysctl interface
    kprobes: Introduce kprobes jump optimization
    kprobes: Introduce generic insn_slot framework
    kprobes/x86: Cleanup RELATIVEJUMP_INSTRUCTION to RELATIVEJUMP_OPCODE

    Linus Torvalds
     

05 Mar, 2010

8 commits

  • Get rid of the initialize dquot operation - it is now always called from
    the filesystem and if a filesystem really needs it's own (which none
    currently does) it can just call into it's own routine directly.

    Rename the now static low-level dquot_initialize helper to __dquot_initialize
    and vfs_dq_init to dquot_initialize to have a consistent namespace.

    Signed-off-by: Christoph Hellwig
    Signed-off-by: Jan Kara

    Christoph Hellwig
     
  • Get rid of the drop dquot operation - it is now always called from
    the filesystem and if a filesystem really needs it's own (which none
    currently does) it can just call into it's own routine directly.

    Rename the now static low-level dquot_drop helper to __dquot_drop
    and vfs_dq_drop to dquot_drop to have a consistent namespace.

    Signed-off-by: Christoph Hellwig
    Signed-off-by: Jan Kara

    Christoph Hellwig
     
  • Get rid of the transfer dquot operation - it is now always called from
    the filesystem and if a filesystem really needs it's own (which none
    currently does) it can just call into it's own routine directly.

    Rename the now static low-level dquot_transfer helper to __dquot_transfer
    and vfs_dq_transfer to dquot_transfer to have a consistent namespace,
    and make the new dquot_transfer return a normal negative errno value
    which all callers expect.

    Signed-off-by: Christoph Hellwig
    Signed-off-by: Jan Kara

    Christoph Hellwig
     
  • Get rid of the alloc_inode and free_inode dquot operations - they are
    always called from the filesystem and if a filesystem really needs
    their own (which none currently does) it can just call into it's
    own routine directly.

    Also get rid of the vfs_dq_alloc/vfs_dq_free wrappers and always
    call the lowlevel dquot_alloc_inode / dqout_free_inode routines
    directly, which now lose the number argument which is always 1.

    Signed-off-by: Christoph Hellwig
    Signed-off-by: Jan Kara

    Christoph Hellwig
     
  • Get rid of the alloc_space, free_space, reserve_space, claim_space and
    release_rsv dquot operations - they are always called from the filesystem
    and if a filesystem really needs their own (which none currently does)
    it can just call into it's own routine directly.

    Move shared logic into the common __dquot_alloc_space,
    dquot_claim_space_nodirty and __dquot_free_space low-level methods,
    and rationalize the wrappers around it to move as much as possible
    code into the common block for CONFIG_QUOTA vs not. Also rename
    all these helpers to be named dquot_* instead of vfs_dq_*.

    Signed-off-by: Christoph Hellwig
    Signed-off-by: Jan Kara

    Christoph Hellwig
     
  • * git://git.kernel.org/pub/scm/linux/kernel/git/davem/ide-next-2.6: (49 commits)
    drivers/ide: Fix continuation line formats
    ide: fixed section mismatch warning in cmd640.c
    ide: ide_timing_compute() fixup
    ide: make ide_get_best_pio_mode() static
    via82cxxx: use ->pio_mode value to determine pair device speed
    tx493xide: use ->pio_mode value to determine pair device speed
    siimage: use ->pio_mode value to determine pair device speed
    palm_bk3710: use ->pio_mode value to determine pair device speed
    it821x: use ->pio_mode value to determine pair device speed
    cs5536: use ->pio_mode value to determine pair device speed
    cs5535: use ->pio_mode value to determine pair device speed
    cmd64x: fix handling of address setup timings
    amd74xx: use ->pio_mode value to determine pair device speed
    alim15x3: fix handling of UDMA enable bit
    alim15x3: fix handling of DMA timings
    alim15x3: fix handling of command timings
    alim15x3: fix handling of address setup timings
    ide-timings: use ->pio_mode value to determine fastest PIO speed
    ide: change ->set_dma_mode method parameters
    ide: change ->set_pio_mode method parameters
    ...

    Linus Torvalds
     
  • * 'next' of git://git.kernel.org/pub/scm/linux/kernel/git/djbw/async_tx: (28 commits)
    ioat: cleanup ->timer_fn() and ->cleanup_fn() prototypes
    ioat3: interrupt coalescing
    ioat: close potential BUG_ON race in the descriptor cleanup path
    ioat2: kill pending flag
    ioat3: use ioat2_quiesce()
    ioat3: cleanup, don't enable DCA completion writes
    DMAENGINE: COH 901 318 lli sg offset fix
    DMAENGINE: COH 901 318 configure channel direction
    DMAENGINE: COH 901 318 remove irq counting
    DMAENGINE: COH 901 318 descriptor pool refactoring
    DMAENGINE: COH 901 318 cleanups
    dma: Add MPC512x DMA driver
    Debugging options for the DMA engine subsystem
    iop-adma: redundant/wrong tests in iop_*_count()?
    dmatest: fix handling of an even number of xor_sources
    dmatest: correct raid6 PQ test
    fsldma: Fix cookie issues
    fsldma: Fix cookie issues
    dma: cases IPU_PIX_FMT_BGRA32, BGR32 and ABGR32 are the same in ipu_ch_param_set_size()
    dma: make Open Firmware device id constant
    ...

    Linus Torvalds
     
  • * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs-2.6: (52 commits)
    init: Open /dev/console from rootfs
    mqueue: fix typo "failues" -> "failures"
    mqueue: only set error codes if they are really necessary
    mqueue: simplify do_open() error handling
    mqueue: apply mathematics distributivity on mq_bytes calculation
    mqueue: remove unneeded info->messages initialization
    mqueue: fix mq_open() file descriptor leak on user-space processes
    fix race in d_splice_alias()
    set S_DEAD on unlink() and non-directory rename() victims
    vfs: add NOFOLLOW flag to umount(2)
    get rid of ->mnt_parent in tomoyo/realpath
    hppfs can use existing proc_mnt, no need for do_kern_mount() in there
    Mirror MS_KERNMOUNT in ->mnt_flags
    get rid of useless vfsmount_lock use in put_mnt_ns()
    Take vfsmount_lock to fs/internal.h
    get rid of insanity with namespace roots in tomoyo
    take check for new events in namespace (guts of mounts_poll()) to namespace.c
    Don't mess with generic_permission() under ->d_lock in hpfs
    sanitize const/signedness for udf
    nilfs: sanitize const/signedness in dealing with ->d_name.name
    ...

    Fix up fairly trivial (famous last words...) conflicts in
    drivers/infiniband/core/uverbs_main.c and security/tomoyo/realpath.c

    Linus Torvalds
     

04 Mar, 2010

6 commits

  • * git://git.kernel.org/pub/scm/linux/kernel/git/brodo/pcmcia-2.6:
    pcmcia: disable pcmcia ioctl for !ARM, prepare for removal
    pcmcia: CodingStyle fixes
    pcmcia: alchemy: fixup wrong comments
    pcmcia: remove irq_list parameter from pd6729
    yenta_socket: ENE CB712 CardBus bridge needs special treatment with Echo Audio Indigo soundcards

    Linus Torvalds
     
  • Pekka Enberg
     
  • * document locking
    * add the missing part of data structure invariants (relationship
    between mnt_share and mnt_slave lists in case of a peer group
    among slaves).

    Signed-off-by: Al Viro

    Al Viro
     
  • * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/ryusuke/nilfs2:
    nilfs2: add reader's lock for cno in nilfs_ioctl_sync
    nilfs2: delete unnecessary condition in load_segment_summary
    nilfs2: move iterator to write log into segment buffer
    nilfs2: get rid of s_dirt flag use
    nilfs2: get rid of nilfs_segctor_req struct
    nilfs2: delete unnecessary condition in nilfs_dat_translate
    nilfs2: fix potential hang in nilfs_error on errors=remount-ro
    nilfs2: use mnt_want_write in ioctls where write access is needed
    nilfs2: issue discard request after cleaning segments

    Linus Torvalds
     
  • * git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb-2.6: (220 commits)
    USB: backlight, appledisplay: fix incomplete registration failure handling
    USB: pl2303: remove unnecessary reset of usb_device in urbs
    USB: ftdi_sio: remove obsolete check in unthrottle
    USB: ftdi_sio: remove unused tx_bytes counter
    USB: qcaux: driver for auxiliary serial ports on Qualcomm devices
    USB: pl2303: initial TIOCGSERIAL support
    USB: option: add Longcheer/Longsung vendor ID
    USB: fix I2C API usage in ohci-pnx4008.
    USB: usbmon: mask seconds properly in text API
    USB: sisusbvga: no unnecessary GFP_ATOMIC
    USB: storage: onetouch: unnecessary GFP_ATOMIC
    USB: serial: ftdi: add CONTEC vendor and product id
    USB: remove references to port->port.count from the serial drivers
    USB: tty: Prune uses of tty_request_room in the USB layer
    USB: tty: Add a function to insert a string of characters with the same flag
    USB: don't read past config->interface[] if usb_control_msg() fails in usb_reset_configuration()
    USB: tty: kill request_room for USB ACM class
    USB: tty: sort out the request_room handling for whiteheat
    USB: storage: fix misplaced parenthesis
    USB: vstusb.c: removal of driver for Vernier Software & Technology, Inc., devices and spectrometers
    ...

    Linus Torvalds
     
  • * 'x86-apic-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip: (25 commits)
    x86: Fix out of order of gsi
    x86: apic: Fix mismerge, add arch_probe_nr_irqs() again
    x86, irq: Keep chip_data in create_irq_nr and destroy_irq
    xen: Remove unnecessary arch specific xen irq functions.
    smp: Use nr_cpus= to set nr_cpu_ids early
    x86, irq: Remove arch_probe_nr_irqs
    sparseirq: Use radix_tree instead of ptrs array
    sparseirq: Change irq_desc_ptrs to static
    init: Move radix_tree_init() early
    irq: Remove unnecessary bootmem code
    x86: Add iMac9,1 to pci_reboot_dmi_table
    x86: Convert i8259_lock to raw_spinlock
    x86: Convert nmi_lock to raw_spinlock
    x86: Convert ioapic_lock and vector_lock to raw_spinlock
    x86: Avoid race condition in pci_enable_msix()
    x86: Fix SCI on IOAPIC != 0
    x86, ia32_aout: do not kill argument mapping
    x86, irq: Move __setup_vector_irq() before the first irq enable in cpu online path
    x86, irq: Update the vector domain for legacy irqs handled by io-apic
    x86, irq: Don't block IRQ0_VECTOR..IRQ15_VECTOR's on all cpu's
    ...

    Linus Torvalds
     

03 Mar, 2010

13 commits

  • * 'for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mjg59/platform-drivers-x86: (45 commits)
    compal-laptop: Make it depend on CONFIG_RFKILL
    classmate-laptop: Added some keys present in other devices
    MAINTAINERS: Add git tree to x86 Platform Drivers
    asus-acpi: remove duplicate comparison of asus_model strings
    toshiba-acpi: fix multimedia keys on some machines
    dell-laptop: Fix errors on failure and exit paths
    dell-laptop: Fix build error by making buffer_mutex static
    asus-laptop: fix style problems reported by checkpath.pl
    asus-laptop: use device_create_file() instead of platform_group
    asus-laptop: clean led code
    asus-laptop: add gps rfkill
    asus-laptop: set initial lcd state
    asus-laptop: leds, remove dead code and fix asus_led_exit()/asus_led_init()
    asus-laptop: add backlight changes notifications
    asus-laptop: add bluetooth keys found on M9V
    asus-laptop: switch to sparse keymap library
    asus-laptop: rename wireless_status to wlan_status to avoid confusion
    asus-laptop: add error check for write_acpi_int calls
    asus-laptop: stop using ASUS_HANDLE and use relative methods instead
    asus-laptop: rename function talking directly to acpi with asus_xxx scheme
    ...

    Linus Torvalds
     
  • * 'i2c-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jdelvare/staging:
    i2c: Document the message size limit
    i2c-algo-pca: Drop duplicate variable
    i2c: Hook up runtime PM support
    i2c-parport-light: Add SMBus alert support
    i2c-parport: Add SMBus alert support
    i2c: Separate Kconfig option for i2c-smbus
    i2c: Add SMBus alert support
    i2c-parport: Give powered devices some time to settle
    i2c-tiny-usb: Fix a comment on bus frequency
    i2c-i801: Add Intel Cougar Point device IDs
    i2c: Make PCI device ids constant

    Linus Torvalds
     
  • Fix docbook errors for x86 headers that were recently merged:

    docproc: arch/x86/include/asm/atomic_32.h: No such file or directory
    docproc: arch/x86/include/asm/io_32.h: No such file or directory

    Signed-off-by: Randy Dunlap
    Cc: Brian Gerst
    Signed-off-by: Linus Torvalds

    Randy Dunlap
     
  • David S. Miller
     
  • The PCMCIA ioctl -- deprecated for years -- suffers from insufficient
    locking. As it already has been deprecated for years, with its removal
    long overdue, limit it to !SMP and !PREEMPT.

    Furthermore, the last legitimate use of the ioctl to be reported
    relates to the ARM architecture in 2008.[1] Attempts to resolve
    this issue turned out unsuccessful so far.[2] Other usages have only
    been reported as hear-say. If there are any legitiate and necessary
    use-cases remaining, please speak out before the end of the grace
    period until 2.6.3{5,6}(-rc1).

    [1] http://lists.infradead.org/pipermail/linux-pcmcia/2008-April/005440.html
    see also: http://lkml.org/lkml/2008/2/27/291
    [2] http://lists.infradead.org/pipermail/linux-pcmcia/2008-April/005450.html
    http://lists.infradead.org/pipermail/linux-pcmcia/2010-January/006740.html
    see also: http://lists.infradead.org/pipermail/linux-pcmcia/2008-April/005453.html

    CC: Russell King
    CC: Alan Cox
    CC: Robert P. J. Day
    CC: Jaswinder Singh Rajput
    CC: linux-kernel@vger.kernel.org
    Signed-off-by: Dominik Brodowski

    Dominik Brodowski
     
  • This patch removes the vstusb driver and support from the Linux tree.
    This driver provided support for Vernier Software & Technology devices
    and spectrometers (Ocean Optics). This driver is being replaced by a
    user space - libusb - implementation.

    Signed-off-by: Jim Collar
    Signed-off-by: Greg Kroah-Hartman

    Dennis O'Brien
     
  • This patch (as1329) converts the USB stack over to the PM core's
    runtime PM framework. This involves numerous changes throughout
    usbcore, especially to hub.c and driver.c. Perhaps the most notable
    change is that CONFIG_USB_SUSPEND now depends on CONFIG_PM_RUNTIME
    instead of CONFIG_PM.

    Several fields in the usb_device and usb_interface structures are no
    longer needed. Some code which used to depend on CONFIG_USB_PM now
    depends on CONFIG_USB_SUSPEND (requiring some rearrangement of header
    files).

    The only visible change in behavior should be that following a system
    sleep (resume from RAM or resume from hibernation), autosuspended USB
    devices will be resumed just like everything else. They won't remain
    suspended. But if they aren't in use then they will naturally
    autosuspend again in a few seconds.

    Signed-off-by: Alan Stern
    Signed-off-by: Greg Kroah-Hartman

    Alan Stern
     
  • This patch (as1326) adds usb_enable_autosuspend() and
    usb_disable_autosuspend() routines for use by drivers. If a driver
    knows that its device can handle suspends and resumes correctly, it
    can enable autosuspend all by itself. This is equivalent to the user
    writing "auto" to the device's power/level attribute.

    The implementation differs slightly from what it used to be. Now
    autosuspend is disabled simply by doing usb_autoresume_device() (to
    increment the usage counter) and enabled by doing
    usb_autosuspend_device() (to decrement the usage counter).

    The set_level() attribute method is updated to use the new routines,
    and the USB Power-Management documentation is updated.

    The patch adds a usb_enable_autosuspend() call to the hub driver's
    probe routine, allowing the special-case code for hubs in quirks.c to
    be removed.

    Signed-off-by: Alan Stern
    Signed-off-by: Greg Kroah-Hartman

    Alan Stern
     
  • Some devices which use mode switching revert to their
    primary mode as they are reset. They must not be reset for
    error handling. As user spaces makes the switch it also
    has to tell the kernel that a device is quirky.

    Signed-off-by: Oliver Neukum
    Signed-off-by: Greg Kroah-Hartman

    Oliver Neukum
     
  • This patch (as1316) adds some error checking to usb_submit_urb().
    It's conditional on CONFIG_USB_DEBUG, so it won't affect normal users.
    The new check makes sure that the actual type of the endpoint
    described by urb->pipe agrees with the type encoded in the pipe value.

    The USB error code documentation is updated to include the code
    returned by the new check, and the usbfs SUBMITURB handler is updated
    to use the correct pipe type when legacy user code tries to submit a
    bulk transfer to an interrupt endpoint.

    Signed-off-by: Alan Stern
    Signed-off-by: Greg Kroah-Hartman

    Alan Stern
     
  • This has never worked properly because wsize passed to
    cxacru_cm() is incorrectly set to the number of values
    instead of the data bytes. The maximum number of values
    that can be set at once is 7 which means the device will
    not get enough data to work with and none of the
    configuration values will be used.

    At least one existing cxacru-cf.bin file contains invalid
    data which will prevent the modem from syncing properly.

    Fixing it is likely to break existing systems, and the
    new sysfs interface for setting configuration parameters
    can provide the same functionality. A script is provided
    to convert from the original format.

    Signed-off-by: Simon Arlott
    Signed-off-by: Greg Kroah-Hartman

    Simon Arlott
     
  • The modem can be configured using CM_REQUEST_CARD_DATA_SET,
    although CM_REQUEST_CARD_DATA_GET does not return any data.

    Tested by setting the modulation (0x0a) option.

    There is a list of parameters in the following archive,
    but the meaning of many of them is not well documented:
    http://sourceforge.net/project/shownotes.php?release_id=301825

    This source also indicates that the highest parameter set
    is 0x4a but this varies by model so an arbitrary limit of
    0x7f has been used (the index is a 32-bit integer).

    Signed-off-by: Simon Arlott
    Signed-off-by: Greg Kroah-Hartman

    Simon Arlott
     
  • When there is no connection, return an empty string
    instead of "0" for the connection modulation.

    Signed-off-by: Simon Arlott
    Signed-off-by: Greg Kroah-Hartman

    Simon Arlott
     

02 Mar, 2010

3 commits

  • * git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next-2.6: (1341 commits)
    virtio_net: remove forgotten assignment
    be2net: fix tx completion polling
    sis190: fix cable detect via link status poll
    net: fix protocol sk_buff field
    bridge: Fix build error when IGMP_SNOOPING is not enabled
    bnx2x: Tx barriers and locks
    scm: Only support SCM_RIGHTS on unix domain sockets.
    vhost-net: restart tx poll on sk_sndbuf full
    vhost: fix get_user_pages_fast error handling
    vhost: initialize log eventfd context pointer
    vhost: logging thinko fix
    wireless: convert to use netdev_for_each_mc_addr
    ethtool: do not set some flags, if others failed
    ipoib: returned back addrlen check for mc addresses
    netlink: Adding inode field to /proc/net/netlink
    axnet_cs: add new id
    bridge: Make IGMP snooping depend upon BRIDGE.
    bridge: Add multicast count/interval sysfs entries
    bridge: Add hash elasticity/max sysfs entries
    bridge: Add multicast_snooping sysfs toggle
    ...

    Trivial conflicts in Documentation/feature-removal-schedule.txt

    Linus Torvalds
     
  • …nux-acpi-2.6/ibm-acpi-2.6 into x86-platform

    Matthew Garrett
     
  • i2c_master_send & i2c_master_recv do not support more than 64 kb
    transfer, since msg.len is u16.

    Signed-off-by: Zhangfei Gao
    Signed-off-by: Jean Delvare

    Zhangfei Gao