03 May, 2008

2 commits

  • This patch add the core driver for the c67x00 USB OTG controller. The core
    driver is responsible for the platform bus binding and creating either
    USB HCD or USB Gadget instances for each of the serial interface engines
    on the chip.

    This driver does not directly implement the HCD or gadget behaviours; it
    just controls access to the chip.

    Signed-off-by: Peter Korsgaard
    Acked-by: David Brownell
    Signed-off-by: Greg Kroah-Hartman

    Peter Korsgaard
     
  • This device descriptor was added by the recent USB Link Power Management (LPM)
    ECN. It indicates whether the USB device supports LPM.

    This descriptor is grouped under a Binary Device Object Store (BOS) descriptor.
    Update the BOS comments to indicate any USB device (not just wireless USB
    devices) can implement BOS descriptors.

    Signed-off-by: Sarah Sharp
    Acked-by: David Brownell
    Signed-off-by: Greg Kroah-Hartman

    Sarah Sharp
     

02 May, 2008

2 commits

  • * git://git.infradead.org/mtd-2.6:
    [MTD][NOR] Add physical address to point() method
    [JFFS2] Track parent inode for directories (for NFS export)
    [JFFS2] Invert last argument of jffs2_gc_fetch_inode(), make it boolean.
    [JFFS2] Quiet lockdep false positive.
    [JFFS2] Clean up jffs2_alloc_inode() and jffs2_i_init_once()
    [MTD] Delete long-unused jedec.h header file.
    [MTD] [NAND] at91_nand: use at91_nand_{en,dis}able consistently.

    Linus Torvalds
     
  • Adding the ability to get a physical address from point() in addition
    to virtual address. This physical address is required for XIP of
    userspace code from flash.

    Signed-off-by: Jared Hulbert
    Reviewed-by: Jörn Engel
    Acked-by: Nicolas Pitre
    Acked-by: Greg Ungerer
    Signed-off-by: David Woodhouse

    Jared Hulbert
     

01 May, 2008

36 commits

  • * git://git.kernel.org/pub/scm/linux/kernel/git/rusty/linux-2.6-for-linus:
    module: add MODULE_STATE_GOING notifier call
    module: Enhance verify_export_symbols
    module: set unused_gpl_crcs instead of overwriting unused_crcs
    module: neaten __find_symbol, rename to find_symbol
    module: reduce module image and resident size
    module: make module_sect_attrs private to kernel/module.c

    Linus Torvalds
     
  • * git://git.kernel.org/pub/scm/linux/kernel/git/herbert/crypto-2.6:
    [CRYPTO] cryptd: Correct kzalloc error test
    [CRYPTO] eseqiv: Fix off-by-one encryption
    [CRYPTO] api: Fix scatterwalk_sg_chain
    [CRYPTO] authenc: Fix async crypto crash in crypto_authenc_genicv()

    Linus Torvalds
     
  • Rework the HZ definition to be more consistent with other architectures.
    Non-kernel includers will see a constant HZ setting of 100.

    Signed-off-by: Greg Ungerer
    Signed-off-by: Linus Torvalds

    Greg Ungerer
     
  • include/asm-m68knommu/mcfdma.h defines base0-3 for M523x,
    M527x and M528x so it looks this has been forgotten.

    Signed-off-by: Sebastian Siewior
    Signed-off-by: Greg Ungerer
    Signed-off-by: Linus Torvalds

    Sebastian Siewior
     
  • Note that it cannot be an inline function because we don't have struct
    super_block prototype...

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

    Jan Kara
     
  • The declaration of dmi helper functions is a bit messy and inconsistent at the
    moment:

    * On ia64 they are declared in .
    * On x86-64 they are declared in .
    * On i386 they are declared both in and .

    Fix the header files so that the dmi helper functions are consistently
    defined in .

    Signed-off-by: Jean Delvare
    Cc: Matt Domsch
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Jean Delvare
     
  • Add new PCI Express Neo/JSM board to the supported list of drivers in
    the JSM driver.

    Signed-off-by: Scott Kilau
    Acked-by: Ananda V
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Scott Kilau
     
  • scsi_transport_spi uses sysfs_update_group() when CONFIG_SYSFS=n, so provide a
    stub for it.

    next-20080423/drivers/scsi/scsi_transport_spi.c:1467: error: implicit declaration of function 'sysfs_update_group'
    make[3]: *** [drivers/scsi/scsi_transport_spi.o] Error 1

    Signed-off-by: Randy Dunlap
    Cc: Greg KH
    Cc: James Bottomley
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Randy Dunlap
     
  • Add a new sysfs_streq() string comparison function, which ignores
    the trailing newlines found in sysfs inputs. By example:

    sysfs_streq("a", "b") ==> false
    sysfs_streq("a", "a") ==> true
    sysfs_streq("a", "a\n") ==> true
    sysfs_streq("a\n", "a") ==> true

    This is intended to simplify parsing of sysfs inputs, letting them
    avoid the need to manually strip off newlines from inputs.

    Signed-off-by: David Brownell
    Acked-by: Greg KH
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    David Brownell
     
  • Remove the leap second handling from second_overflow(), which doesn't have to
    check for it every second anymore. With CONFIG_NO_HZ this also makes sure the
    leap second is handled close to the full second. Additionally this makes it
    possible to abort a leap second properly by resetting the STA_INS/STA_DEL
    status bits.

    Signed-off-by: Roman Zippel
    Cc: john stultz
    Cc: Thomas Gleixner
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Roman Zippel
     
  • current_tick_length used to do a little more, but now it just returns
    tick_length, which we can also access directly at the few places, where it's
    needed.

    Signed-off-by: Roman Zippel
    Cc: john stultz
    Cc: Thomas Gleixner
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Roman Zippel
     
  • As TICK_LENGTH_SHIFT is used for more than just the tick length, the name
    isn't quite approriate anymore, so this renames it to NTP_SCALE_SHIFT.

    Signed-off-by: Roman Zippel
    Cc: john stultz
    Cc: Thomas Gleixner
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Roman Zippel
     
  • This adds support for setting the TAI value (International Atomic Time). The
    value is reported back to userspace via timex (as we don't have a
    ntp_gettime() syscall).

    Signed-off-by: Roman Zippel
    Cc: john stultz
    Cc: Thomas Gleixner
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Roman Zippel
     
  • time_offset is already a 64bit value but its resolution barely used, so this
    makes better use of it by replacing SHIFT_UPDATE with TICK_LENGTH_SHIFT.

    Side note: the SHIFT_HZ in SHIFT_UPDATE was incorrect for CONFIG_NO_HZ and the
    primary reason for changing time_offset to 64bit to avoid the overflow.

    Signed-off-by: Roman Zippel
    Cc: john stultz
    Cc: Thomas Gleixner
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Roman Zippel
     
  • This changes time_freq to a 64bit value and makes it static (the only outside
    user had no real need to modify it). Intermediate values were already 64bit,
    so the change isn't that big, but it saves a little in shifts by replacing
    SHIFT_NSEC with TICK_LENGTH_SHIFT. PPM_SCALE is then used to convert between
    user space and kernel space representation.

    Signed-off-by: Roman Zippel
    Cc: john stultz
    Cc: Thomas Gleixner
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Roman Zippel
     
  • This adds a few more things from the ntp nanokernel related to user space.
    It's now possible to select the resolution used of some values via STA_NANO
    and the kernel reports in which mode it works (pll/fll).

    If some values for adjtimex() are outside the acceptable range, they are now
    simply normalized instead of letting the syscall fail. I removed
    MOD_CLKA/MOD_CLKB as the mapping didn't really makes any sense, the kernel
    doesn't support setting the clock.

    Signed-off-by: Roman Zippel
    Cc: john stultz
    Cc: Thomas Gleixner
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Roman Zippel
     
  • x86 is the only arch right now, which provides an optimized for
    div_long_long_rem and it has the downside that one has to be very careful that
    the divide doesn't overflow.

    The API is a little akward, as the arguments for the unsigned divide are
    signed. The signed version also doesn't handle a negative divisor and
    produces worse code on 64bit archs.

    There is little incentive to keep this API alive, so this converts the few
    users to the new API.

    Signed-off-by: Roman Zippel
    Cc: Ralf Baechle
    Cc: Ingo Molnar
    Cc: Thomas Gleixner
    Cc: john stultz
    Cc: Christoph Lameter
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Roman Zippel
     
  • Rename div64_64 to div64_u64 to make it consistent with the other divide
    functions, so it clearly includes the type of the divide. Move its definition
    to math64.h as currently no architecture overrides the generic implementation.
    They can still override it of course, but the duplicated declarations are
    avoided.

    Signed-off-by: Roman Zippel
    Cc: Avi Kivity
    Cc: Russell King
    Cc: Geert Uytterhoeven
    Cc: Ralf Baechle
    Cc: David Howells
    Cc: Jeff Dike
    Cc: Ingo Molnar
    Cc: "David S. Miller"
    Cc: Patrick McHardy
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Roman Zippel
     
  • The current do_div doesn't explicitly say that it's unsigned and the signed
    counterpart is missing, which is e.g. needed when dealing with time values.

    This introduces 64bit signed/unsigned divide functions which also attempts to
    cleanup the somewhat awkward calling API, which often requires the use of
    temporary variables for the dividend. To avoid the need for temporary
    variables everywhere for the remainder, each divide variant also provides a
    version which doesn't return the remainder.

    Each architecture can now provide optimized versions of these function,
    otherwise generic fallback implementations will be used.

    As an example I provided an alternative for the current x86 divide, which
    avoids the asm casts and using an union allows gcc to generate better code.
    It also avoids the upper divde in a few more cases, where the result is known
    (i.e. upper quotient is zero).

    Signed-off-by: Roman Zippel
    Cc: john stultz
    Cc: Thomas Gleixner
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Roman Zippel
     
  • Fix a reference in a arch/frv/mm/Makefile to unaligned.c which has now been
    deleted.

    Also revert the change to the guard macro name in include/asm-frv/unaligned.h.

    Signed-off-by: David Howells
    Cc: Harvey Harrison
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    David Howells
     
  • Resulting reduction (x86-64, gcc 4.1.2) with my (special purpose, i.e.
    much reduced) configurations:
    - 16k kernel resident size
    - 180k module resident size
    - 10k module image size

    Signed-off-by: Jan Beulich
    Signed-off-by: Rusty Russell

    Rusty Russell
     
  • No-one else is using these afaics.

    Signed-off-by: Jan Beulich
    Signed-off-by: Rusty Russell

    Rusty Russell
     
  • When I backed out of using the generic sg chaining (as it isn't currently
    portable) and introduced scatterwalk_sg_chain/scatterwalk_sg_next I left
    out the sg_is_last check in the latter. This causes it to potentially
    dereference beyond the end of the sg array.

    As most uses of scatterwalk_sg_next are bound by an overall length, this
    only affected the chaining code in authenc and eseqiv. Thanks to Patrick
    McHardy for identifying this problem.

    This patch also clears the "last" bit on the head of the chained list as
    it's no longer last. This also went missing in scatterwalk_sg_chain and
    is present in sg_chain.

    Signed-off-by: Herbert Xu

    Herbert Xu
     
  • * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/x86/linux-2.6-x86-fixes3: (21 commits)
    x86: numaq fix
    x86: 8K stacks by default
    x86: ioremap ram check fix
    x86: fix HT cpu booting on 32-bit
    x86: optimize inlining off
    x86: CONFIG_X86_ELAN fix
    x86: Kconfig fix
    x86 PAT: fix performance drop for glx, use UC minus for ioremap(), ioremap_nocache() and pci_mmap_page_range()
    x86: use defconfigs from x86/configs/*
    toshiba: use ioremap_cached
    revert: "x86: ioremap(), extend check to all RAM pages"
    x86: don't bother printing compat vdso address
    fix: x86: support for new UV apic
    x86: fix early-BUG message
    x86: iommu_sac_force can become static
    x86: add proper header for reboot_force
    x86 VISWS: build fix
    x86, voyager: fix ioremap_nocache()
    hpet: fix
    x86: unexport kmap_atomic_to_page
    ...

    Linus Torvalds
     
  • Finally clean up the odd spacing in these files.

    Signed-off-by: Greg Kroah-Hartman

    Greg Kroah-Hartman
     
  • Signed-off-by: Kay Sievers
    Signed-off-by: Greg Kroah-Hartman

    Kay Sievers
     
  • Use a resource_size_t instead of unsigned long since some arch's are
    capable of having ioremap deal with addresses greater than the size of a
    unsigned long.

    Signed-off-by: Kumar Gala
    Cc: Tejun Heo
    Cc: Jeff Garzik
    Signed-off-by: Greg Kroah-Hartman

    Kumar Gala
     
  • scsi_transport_spi uses sysfs_update_group() when CONFIG_SYSFS=n,
    so provide a stub for it.

    next-20080423/drivers/scsi/scsi_transport_spi.c:1467: error: implicit declaration of function 'sysfs_update_group'
    make[3]: *** [drivers/scsi/scsi_transport_spi.o] Error 1

    Signed-off-by: Randy Dunlap
    Cc: James Bottomley
    Signed-off-by: Greg Kroah-Hartman

    Randy Dunlap
     
  • Add klist_add_after() and klist_add_before() which puts a new node
    after and before an existing node, respectively. This is useful for
    callers which need to keep klist ordered. Note that synchronizing
    between simultaneous additions for ordering is the caller's
    responsibility.

    Signed-off-by: Tejun Heo
    Signed-off-by: Greg Kroah-Hartman

    Tejun Heo
     
  • klist is missing static initializers and definition helper. Add them.

    Signed-off-by: Tejun Heo
    Cc: Peter Zijlstra
    Signed-off-by: Greg Kroah-Hartman

    Tejun Heo
     
  • Since recent smpboot 32/64-bit merge, my dual Xeon with HT has been
    booting only 2 of its 4 cpus (when running an i386 kernel; but x86_64
    is okay). J.A. Magallón reports the same.

    native_cpu_up: bad cpu 2
    native_cpu_up: bad cpu 3

    The mach-default cpu_present_to_apicid() was just returning cpu number
    (2, 3) instead of apicid (6, 7): looks like we now need the x86_64 code
    even for the i386 case.

    Comparing with other versions of cpu_present_to_apicid(), it seems a
    good idea to include an NR_CPUS test too, since cpu_present() doesn't
    include that; but that wasn't a problem here, and may no problem at all.

    Prior to that smpboot merge, my Xeon booted the two HT siblings on one
    physical first, then the two siblings on the other physical after - when
    i386, but alternated them when x86_64. Since the merge, the x86_64
    sequence is unchanged, but the i386 sequence is now like x86_64.

    I prefer this consistency, and I prefer the new sequence: booting with
    maxcpus=2 then uses the independent physicals without HT sharing.

    Signed-off-by: Hugh Dickins
    Signed-off-by: Ingo Molnar
    Signed-off-by: Thomas Gleixner

    Hugh Dickins
     
  • the 'reboot_force' flag is a notion that non-PC subarchitectures do
    not have.

    also, unify the X86_BIOS_REBOOT option between 32-bit and 64-bit
    and get rid of a few unnecessary Kconfig and Makefile complications
    that way.

    Signed-off-by: Ingo Molnar
    Signed-off-by: Thomas Gleixner

    Ingo Molnar
     
  • The comment says it should have been removed in 2.6.25.

    Signed-off-by: Adrian Bunk
    Signed-off-by: Ingo Molnar
    Signed-off-by: Thomas Gleixner

    Adrian Bunk
     
  • * 'release' of git://git.kernel.org/pub/scm/linux/kernel/git/lenb/linux-acpi-2.6: (179 commits)
    ACPI: Fix acpi_processor_idle and idle= boot parameters interaction
    acpi: fix section mismatch warning in pnpacpi
    intel_menlo: fix build warning
    ACPI: Cleanup: Remove unneeded, multiple local dummy variables
    ACPI: video - fix permissions on some proc entries
    ACPI: video - properly handle errors when registering proc elements
    ACPI: video - do not store invalid entries in attached_array list
    ACPI: re-name acpi_pm_ops to acpi_suspend_ops
    ACER_WMI/ASUS_LAPTOP: fix build bug
    thinkpad_acpi: fix possible NULL pointer dereference if kstrdup failed
    ACPI: check a return value correctly in acpi_power_get_context()
    #if 0 acpi/bay.c:eject_removable_drive()
    eeepc-laptop: add hwmon fan control
    eeepc-laptop: add backlight
    eeepc-laptop: add base driver
    ACPI: thinkpad-acpi: bump up version to 0.20
    ACPI: thinkpad-acpi: fix selects in Kconfig
    ACPI: thinkpad-acpi: use a private workqueue
    ACPI: thinkpad-acpi: fluff really minor fix
    ACPI: thinkpad-acpi: use uppercase for "LED" on user documentation
    ...

    Fixed conflicts in drivers/acpi/video.c and drivers/misc/intel_menlow.c
    manually.

    Linus Torvalds
     
  • Len Brown
     
  • …-9916', 'ec', 'eeepc', 'idle', 'misc', 'pm-legacy', 'sysfs-links-2.6.26', 'thermal', 'thinkpad' and 'video' into release

    Len Brown