18 Oct, 2007

15 commits

  • If we have a SuckyIO, and pci_enable_device fails, we'll be in a world of
    hurt anyways, so we might as well BUG_ON.

    Signed-off-by: Kyle McMartin

    Kyle McMartin
     
  • Signed-off-by: Kyle McMartin

    Kyle McMartin
     
  • * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/drzeus/mmc:
    net: libertas sdio driver
    mmc: at91_mci: cleanup: use MCI_ERRORS
    mmc: possible leak in mmc_read_ext_csd

    Linus Torvalds
     
  • Add driver for Marvell's Libertas 8385 and 8686 wifi chips.

    Signed-off-by: Pierre Ossman
    Acked-by: Dan Williams

    Pierre Ossman
     
  • * ssh://master.kernel.org/pub/scm/linux/kernel/git/tglx/linux-2.6-x86: (114 commits)
    x86: delete vsyscall files during make clean
    kbuild: fix typo SRCARCH in find_sources
    x86: fix kernel rebuild due to vsyscall fallout
    .gitignore update for x86 arch
    x86: unify include/asm/debugreg_32/64.h
    x86: unify include/asm/unwind_32/64.h
    x86: unify include/asm/types_32/64.h
    x86: unify include/asm/tlb_32/64.h
    x86: unify include/asm/siginfo_32/64.h
    x86: unify include/asm/bug_32/64.h
    x86: unify include/asm/mman_32/64.h
    x86: unify include/asm/agp_32/64.h
    x86: unify include/asm/kdebug_32/64.h
    x86: unify include/asm/ioctls_32/64.h
    x86: unify include/asm/floppy_32/64.h
    x86: apply missing DMA/OOM prevention to floppy_32.h
    x86: unify include/asm/cache_32/64.h
    x86: unify include/asm/cache_32/64.h
    x86: unify include/asm/dmi_32/64.h
    x86: unify include/asm/delay_32/64.h
    ...

    Linus Torvalds
     
  • A small MMC driver cleanup.

    Use the defined AT91_MCI_ERRORS in at91_mci_completed_command() instead
    of specifying all the error bits individually.

    Signed-off-by: Andrew Victor
    Signed-off-by: Nicolas Ferre
    Signed-off-by: Pierre Ossman

    Andrew Victor
     
  • The exception path associated with an invalid ext_csd_struct returns
    without freeing ext_csd.

    Coverity CID 1909.

    Signed-off-by: Florin Malita
    Signed-off-by: Pierre Ossman

    Florin Malita
     
  • * 'for-linus' of git://git.kernel.dk/data/git/linux-2.6-block:
    [BLOCK] blk_rq_map_sg() next_sg fixup
    Revert "[SCSI] Remove full sg table memset()"

    Linus Torvalds
     
  • Create an inline function for clflush(), with the proper arguments,
    and use it instead of hard-coding the instruction.

    This also removes one instance of hard-coded wbinvd, based on a patch
    by Bauder de Oliveira Costa.

    [ tglx: arch/x86 adaptation ]

    Cc: Andi Kleen
    Cc: Glauber de Oliveira Costa
    Signed-off-by: H. Peter Anvin
    Signed-off-by: Andi Kleen
    Signed-off-by: Ingo Molnar
    Signed-off-by: Thomas Gleixner

    H. Peter Anvin
     
  • Remove rogue default m in drivers/video/Kconfig

    default m is near always wrong, like here. For some reason ACPI
    likes to reintroduce these and I like to immediately squash them again
    before they pollute too many .configs.

    Cc: len.brown@intel.com
    Cc: luming.yu@gmail.com
    Acked-by: Len Brown
    Signed-off-by: Andi Kleen
    Signed-off-by: Ingo Molnar
    Signed-off-by: Thomas Gleixner

    Andi Kleen
     
  • * 'xen-upstream' of git://git.kernel.org/pub/scm/linux/kernel/git/jeremy/xen:
    xfs: eagerly remove vmap mappings to avoid upsetting Xen
    xen: add some debug output for failed multicalls
    xen: fix incorrect vcpu_register_vcpu_info hypercall argument
    xen: ask the hypervisor how much space it needs reserved
    xen: lock pte pages while pinning/unpinning
    xen: deal with stale cr3 values when unpinning pagetables
    xen: add batch completion callbacks
    xen: yield to IPI target if necessary
    Clean up duplicate includes in arch/i386/xen/
    remove dead code in pgtable_cache_init
    paravirt: clean up lazy mode handling
    paravirt: refactor struct paravirt_ops into smaller pv_*_ops

    Linus Torvalds
     
  • A bit too eager - we definitely need to clear the sg table
    initially, so that we don't accidentally have ->page & 0x01
    true and think that is a chain pointer.

    This reverts commit f5c0dde4c66421a3a2d7d6fa604a712c9b0744e5.

    Jens Axboe
     
  • * 'for-linus' of git://git.kernel.dk/data/git/linux-2.6-block:
    [SCSI] Remove full sg table memset()
    [SCSI] ide-scsi: remove usage of sg_last()
    Fix loop terminating conditions in fill_sg().
    [BLOCK] Clear sg entry before filling in blk_rq_map_sg()
    IA64: iommu uses sg_next with an invalid sg element
    cciss: disable DMA refetch on Smart Array P600
    swiotlb: fix map_sg failure handling
    SPARC64: fix iommu sg chaining
    [SCSI] ide-scsi: use scsi_sg_count() instead of ->use_sg

    Linus Torvalds
     
  • * 'merge' of git://git.kernel.org/pub/scm/linux/kernel/git/paulus/powerpc: (24 commits)
    [POWERPC] Fix vmemmap warning in init_64.c
    [POWERPC] Fix 64 bits vDSO DWARF info for CR register
    [POWERPC] Add 1TB workaround for PA6T
    [POWERPC] Enable NO_HZ and high res timers for pseries and ppc64 configs
    [POWERPC] Quieten cache information at boot
    [POWERPC] Quieten clockevent printk
    [POWERPC] Enable SLUB in *_defconfig
    [POWERPC] Fix 1TB segment detection
    [POWERPC] Fix iSeries_hpte_insert prototype
    [POWERPC] Fix copyright symbol
    [POWERPC] ibmebus: Move to of_device and of_platform_driver, match eHCA and eHEA drivers
    [POWERPC] ibmebus: Add device creation and bus probing based on of_device
    [POWERPC] ibmebus: Remove bus match/probe/remove functions
    [POWERPC] Move of_device allocation into of_device.[ch]
    [POWERPC] mpc52xx: device tree changes for FEC and MDIO
    [POWERPC] bestcomm: GenBD task support
    [POWERPC] bestcomm: FEC task support
    [POWERPC] bestcomm: ATA task support
    [POWERPC] bestcomm: core bestcomm support for Freescale MPC5200
    [POWERPC] mpc52xx: Update mpc52xx_psc structure with B revision changes
    ...

    Linus Torvalds
     
  • * 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/hpa/linux-2.6-x86setup:
    Remove magic macros for screen_info structure members
    [x86] remove uses of magic macros for boot_params access

    Linus Torvalds
     

17 Oct, 2007

25 commits

  • This patch contains the following cleanups that are now possible:
    - remove the unused security_operations->inode_xattr_getsuffix
    - remove the no longer used security_operations->unregister_security
    - remove some no longer required exit code
    - remove a bunch of no longer used exports

    Signed-off-by: Adrian Bunk
    Acked-by: James Morris
    Cc: Chris Wright
    Cc: Stephen Smalley
    Cc: Serge Hallyn
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Adrian Bunk
     
  • Add PNP debug message when adding a device, remove similar PNPACPI message
    with less information.

    Signed-off-by: Bjorn Helgaas
    Cc: Adam Belay
    Cc: Len Brown
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Bjorn Helgaas
     
  • Hoist the struct pnp_dev alloc up into the function where it's used.

    Signed-off-by: Bjorn Helgaas
    Cc: Adam Belay
    Cc: Len Brown
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Bjorn Helgaas
     
  • Use dev_info() for a little consistency. Changes this:

    pnp: 00:01: ioport range 0xf50-0xf58 has been reserved
    pnp: 00:01: ioport range 0x408-0x40f has been reserved
    pnp: 00:01: ioport range 0x900-0x903 has been reserved

    to this:

    system 00:01: ioport range 0xf50-0xf58 has been reserved
    system 00:01: ioport range 0x408-0x40f has been reserved
    system 00:01: ioport range 0x900-0x903 has been reserved

    Signed-off-by: Bjorn Helgaas
    Cc: Adam Belay
    Cc: Len Brown
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Bjorn Helgaas
     
  • If we have the struct pnp_dev available, we can use dev_info(), dev_err(),
    etc., to give a little more information and consistency.

    [akpm@linux-foundation.org: fix warning]
    Signed-off-by: Bjorn Helgaas
    Cc: Adam Belay
    Cc: Len Brown
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Bjorn Helgaas
     
  • No functional change; just return errors early instead of putting the main
    part of the function inside an "if" statement.

    Signed-off-by: Bjorn Helgaas
    Cc: Adam Belay
    Cc: Len Brown
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Bjorn Helgaas
     
  • Remove some null pointer checks. Null pointers in these areas indicate
    programming errors, and I think it's better to oops immediately rather than
    return an error that is easily ignored.

    Signed-off-by: Bjorn Helgaas
    Cc: Adam Belay
    Cc: Len Brown
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Bjorn Helgaas
     
  • Workaround for broken systems with BIOS that makes RTC interrupt level
    triggered and/or active low.

    See http://bugzilla.kernel.org/show_bug.cgi?id=5243

    Based on the patch from Shaohua Li

    Signed-off-by: Krzysztof Piotr Oledzki
    Cc: "Li, Shaohua"
    Cc: Bjorn Helgaas
    Cc: Andi Kleen
    Cc: Adam Belay
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Krzysztof Oledzki
     
  • Most drivers for devices supporting ISA DMA can operate without DMA as well
    (falling back zo PIO). Thus it seems inappropriate for PNP to fail device
    initialization in case none of the possible DMA channels are available.
    Instead, it should be left to the driver to decide what to do if
    request_dma() fails.

    The patch at once adjusts the code to account for the fact that
    pnp_assign_dma() now doesn't need to report failure anymore.

    Signed-off-by: Jan Beulich
    Cc: Adam Belay
    Cc: Bjorn Helgaas
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Jan Beulich
     
  • pnpacpi_suspend() doesn't check the result returned by
    acpi_pm_device_sleep_state() before passing it to acpi_bus_set_power(),
    which may not be desirable.  Make it select the target power state of the
    device using its second argument if acpi_pm_device_sleep_state() fails.

    Signed-off-by: Rafael J. Wysocki
    Looks-ok-to: Pavel Machek
    Cc: Adam Belay
    Cc: Bjorn Helgaas
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Rafael J. Wysocki
     
  • The floppy drive is slow. These days I see absolutely no good reason why the
    floppy driver should try to gain a tiny bit of speed by telling gcc to
    optimize access to some variables via the register keyword. Better to just
    leave gcc free to do whatever optimizations it deduces to be sane and not
    hamper it by telling it that some variables in the floppy driver are special
    and need to be fast (they don't).

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

    Jesper Juhl
     
  • A good initial step for a cleanup seems to me to be getting rid of old dead
    code. This stuff is either commented out or inside '#if 0' so it is not
    currently in use at all, let's just get rid of it once and for all. That's a
    few lines less to deal with.

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

    Jesper Juhl
     
  • Yes, some of this will likely be replaced in later patches, but I do not see
    anyone else coming out of the woodwork with any patches for this driver, so
    I'll ignore comments about churn. I want to get this driver cleaned up, and
    if I'm going to do so I want to start with this basic style cleanup to reduce
    the reading pain a bit.

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

    Jesper Juhl
     
  • Whenever a read error is found, we should attempt to overwrite with correct
    data to 'fix' it.

    However when do a 'check' pass (which compares data blocks that are
    successfully read, but doesn't normally overwrite) we don't do that. We
    should.

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

    NeilBrown
     
  • The 'degraded' attribute is useful to quickly determine if the array is
    degraded, instead of parsing 'mdadm -D' output or relying on the other
    techniques (number of working devices against number of defined devices,
    etc.). The md code already keeps track of this attribute, so it's useful to
    export it.

    Signed-off-by: Iustin Pop
    Signed-off-by: Neil Brown
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Iustin Pop
     
  • When an array is started read-only, MD_RECOVERY_NEEDED can be set but no
    recovery will be running. This causes 'sync_action' to report the wrong
    value.

    We could remove the test for MD_RECOVERY_NEEDED, but doing so would leave a
    small gap after requesting a sync action, where 'sync_action' would still
    report the old value.

    So make sure that for a read-only array, 'sync_action' always returns 'idle'.

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

    NeilBrown
     
  • http://bugzilla.kernel.org/show_bug.cgi?id=3277

    There is a seq_printf here that isn't being passed a 'seq'. Howeve as the
    code is inside #ifdef MD_DEBUG, nobody noticed.

    Also remove some extra spaces.

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

    NeilBrown
     
  • In current release kernels the md module (Software RAID) uses a static
    array (dev_t[128]) to store partition/device info temporarily for
    autostart.

    I discovered this (and that the devices are added as disks/partitions are
    discovered at boot) while I was debugging why only one of my MD arrays would
    come up whole, while all the others were short a disk.

    I eventually discovered that it was enumerating through all of 9 of my 11 hds
    (2 had only 4 partitions apiece) while the other 9 have 15 partitions (I
    wanted 64 per drive...). The last partition of the 8th drive in my 9 drive
    raid 5 sets wasn't added, thus making the final md array short both a parity
    and data disk, and it was started later, elsewhere.

    This patch replaces that static array with a list.

    [akpm@linux-foundation.org: removed unused var]
    Signed-off-by: Michael J. Evans
    Cc: Neil Brown
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Michael J. Evans
     
  • Fix bug flagged by a variable-used-uninitialized warning.

    [akpm@linux-foundation.org: coding-style]
    Signed-off-by: Jeff Garzik
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Jeff Garzik
     
  • Remove NULL initializers and clean whitespace a bit.

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

    Pavel Machek
     
  • Signed-off-by: Rusty Russell
    Acked-by: Stephen Rothwell
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Rusty Russell
     
  • This changes hvc_init() to be called only when someone actually uses the
    hvc_console driver. Dave Jones complained when profiling bootup.

    hvc_console used to only be for Power aka pSeries: now lguest and Xen both
    want it built-in in case the kernel is a guest under one of those, even
    though usually it will be a native boot.

    Signed-off-by: Rusty Russell
    Cc: Paul Mackerras
    Cc: Benjamin Herrenschmidt
    Cc: Jeremy Fitzhardinge
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Rusty Russell
     
  • This adds three new functions (or in one case to be more exact makes it
    always available)

    tty_termios_copy_hw

    Copies all the hardware settings from one termios structure to the other.
    This is intended for drivers that support little or no hardware setting

    tty_termios_encode_baud_rate

    Allows you to set the input and output baud rate in a termios structure. A
    driver is supposed to set the resulting baud rate from a request so most
    will want to use this function to set the resulting input and output rates
    to match the hardware values. Internally it knows about keeping Bxxx
    encoding when possible to maximise compatibility.

    tty_encode_baud_rate

    As above but for the tty's own current termios structure

    I suspect this will initially need some tweaking as it gets enabled by
    driver patches over the next few mm cycles so consider this lot -mm only
    for the moment so it can stabilize and end up neat before it goes to base.

    I've tried not to break any obscure architectures - if you get a speed you
    can't represent the code will print warnings on non updated termios systems
    but not break.

    Once this is merged and seems sane I've got a growing pile of driver
    updates to use it - notably for USB serial drivers.

    [akpm@linux-foundation.org: cleanups]
    Signed-off-by: Alan Cox
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Alan Cox
     
  • Remove the old-fashioned lk201 driver under drivers/tc/ that used to be
    used by the old dz.c and zs.c drivers, which is now orphan code referred to
    from nowhere and does not build anymore. A modern replacement is available
    as drivers/input/keyboard/lkkbd.c.

    There are no plans to do anything about this piece of code and it does not
    fit anywhere anymore, so it is not just a matter of maintenance or the lack
    of. There are still some bits that might be added to the new lkkbd.c
    driver based on the old code, and the embedded hardware documentation which
    is otherwise quite hard to get hold of might be useful to keep too. Both
    of these can be done separately though. RIP.

    Signed-off-by: Maciej W. Rozycki
    Acked-by: Ralf Baechle
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Maciej W. Rozycki
     
  • Other/Some pr_*() macros are already defined in kernel.h, but pr_err() was
    defined multiple times in several other places

    Signed-off-by: Emil Medve
    Cc: Jean Delvare
    Cc: Jeff Garzik
    Cc: "Antonino A. Daplas"
    Cc: Tony Lindgren
    Reviewed-by: Satyam Sharma
    Acked-by: Randy Dunlap
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Emil Medve