19 Apr, 2009

1 commit


15 Apr, 2009

3 commits

  • MioA701 board's GPIO95 is the AC97 line. The other GPIO113
    is not connected to the sound chip, but to the GSM chip as a
    wakeup line.

    It happens that when the pxa2xx_ac97 driver reconfigures the
    gpio as an "out gpio" for AC97 reset (bug workaround), it
    hangs the GSM chip.

    As AC97 platform data now enables to specify the AC97 reset
    line, use it.

    Signed-off-by: Robert Jarzmik
    Signed-off-by: Eric Miao

    Robert Jarzmik
     
  • Currently there are two possible platform datas for the PXA AC97 driver:
    one supported by the generic AC97 driver only which provides callbacks
    to allow board-specific configuration at stream startup and teardown,
    and another for pxa2xx-ac97-lib which allows configuration of the reset
    GPIO for PXA2xx CPUs.

    Obviously this won't actually work when using the generic AC97 driver
    since the drivers will attempt to parse the platform data in both
    formats. Fix this by merging the two structures.

    Signed-off-by: Mark Brown
    Acked-by: Robert Jarzmik
    Cc: Marek Vasut
    Signed-off-by: Eric Miao

    Mark Brown
     
  • Signed-off-by: Eric Miao
    Cc: Philipp Zabel
    Cc: Mark Brown

    Eric Miao
     

14 Apr, 2009

2 commits


13 Apr, 2009

3 commits


09 Apr, 2009

31 commits

  • Even they are empty inline functions, the compiler still complains
    about the missing variable names.

    Signed-off-by: Eric Miao
    Cc: Daniel Mack

    Eric Miao
     
  • * git://git.kernel.org/pub/scm/linux/kernel/git/rusty/linux-2.6-for-linus:
    work_on_cpu(): rewrite it to create a kernel thread on demand
    kthread: move sched-realeted initialization from kthreadd context
    kthread: Don't looking for a task in create_kthread() #2

    Linus Torvalds
     
  • * git://git.infradead.org/battery-2.6:
    pda_power: Add optional OTG transceiver and voltage regulator support
    pcf50633_charger: Remove unused mbc_set_status function
    pcf50633_charger: Enable periodic charging restart

    Linus Torvalds
     
  • …s/security-testing-2.6

    * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jmorris/security-testing-2.6:
    cap_prctl: don't set error to 0 at 'no_change'

    Linus Torvalds
     
  • * git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-2.6:
    igb: remove sysfs entry that was used to set the number of vfs
    igbvf: add new driver to support 82576 virtual functions
    drivers/net/eql.c: Fix a dev leakage.
    niu: Fix unused variable warning.
    r6040: set MODULE_VERSION
    bnx2: Don't use reserved names
    FEC driver: add missing #endif
    niu: Fix error handling
    mv643xx_eth: don't reset the rx coal timer on interface up
    smsc911x: correct debugging message on mii read timeout
    ethoc: fix library build errors
    netfilter: ctnetlink: fix regression in expectation handling
    netfilter: fix selection of "LED" target in netfilter
    netfilter: ip6tables regression fix

    Linus Torvalds
     
  • * git://git.kernel.org/pub/scm/linux/kernel/git/davem/sparc-2.6:
    sparc: Hook up sys_preadv and sys_pwritev
    sparc64: add_node_ranges() must be __init
    serial: sunsu: sunsu_kbd_ms_init needs to be __devinit
    sparc: Fix section mismatch warnings in cs4231 sound driver.
    sparc64: Fix section mismatch warnings in PCI controller drivers.
    sparc64: Fix section mismatch warnings in power driver.
    sparc64: get_cells() can't be marked __init

    Linus Torvalds
     
  • * 'ext3-latency-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/tytso/ext4:
    ext3: Try to avoid starting a transaction in writepage for data=writepage
    block_write_full_page: switch synchronous writes to use WRITE_SYNC_PLUG

    Linus Torvalds
     
  • Impact: circular locking bugfix

    The various implemetnations and proposed implemetnations of work_on_cpu()
    are vulnerable to various deadlocks because they all used queues of some
    form.

    Unrelated pieces of kernel code thus gained dependencies wherein if one
    work_on_cpu() caller holds a lock which some other work_on_cpu() callback
    also takes, the kernel could rarely deadlock.

    Fix this by creating a short-lived kernel thread for each work_on_cpu()
    invokation.

    This is not terribly fast, but the only current caller of work_on_cpu() is
    pci_call_probe().

    It would be nice to find some other way of doing the node-local
    allocations in the PCI probe code so that we can zap work_on_cpu()
    altogether. The code there is rather nasty. I can't think of anything
    simple at this time...

    Cc: Ingo Molnar
    Signed-off-by: Andrew Morton
    Signed-off-by: Rusty Russell

    Andrew Morton
     
  • kthreadd is the single thread which implements ths "create" request, move
    sched_setscheduler/etc from create_kthread() to kthread_create() to
    improve the scalability.

    We should be careful with sched_setscheduler(), use _nochek helper.

    Signed-off-by: Oleg Nesterov
    Cc: Christoph Hellwig
    Cc: "Eric W. Biederman"
    Cc: Ingo Molnar
    Cc: Pavel Emelyanov
    Cc: Vitaliy Gusev
    Signed-off-by: Rusty Russell

    Oleg Nesterov
     
  • Remove the unnecessary find_task_by_pid_ns(). kthread() can just
    use "current" to get the same result.

    Signed-off-by: Vitaliy Gusev
    Acked-by: Oleg Nesterov
    Signed-off-by: Rusty Russell

    Vitaliy Gusev
     
  • One-liner: capsh --print is broken without this patch.

    In certain cases, cap_prctl returns error > 0 for success. However,
    the 'no_change' label was always setting error to 0. As a result,
    for example, 'prctl(CAP_BSET_READ, N)' would always return 0.
    It should return 1 if a process has N in its bounding set (as
    by default it does).

    I'm keeping the no_change label even though it's now functionally
    the same as 'error'.

    Signed-off-by: Serge Hallyn
    Acked-by: David Howells
    Signed-off-by: James Morris

    Serge E. Hallyn
     
  • This patch removes the sysfs entry num_vfs which was added to support
    enabling pci virtual functions for 82576.

    To prevent VFs from loading automatically a module parameter "max_vfs" was
    added so that the number of VFs per PF can be limited. This is especially
    useful when 4 or more 82576 ports are on the system because otherwise to
    load all VFs would result in 8 interface per physical port.

    Signed-off-by: Alexander Duyck
    Signed-off-by: Jeff Kirsher
    Signed-off-by: David S. Miller

    Alexander Duyck
     
  • This adds an igbvf driver to handle virtual functions provided by the
    igb driver when SR-IOV has been enabled. A virtual function is a
    lightweight pci-e function that supports a single queue and shares
    resources with the 82576 physical function contained within the igb
    driver.

    To spawn virtual functions from the igb driver all that is needed is to
    enable CONFIG_PCI_IOV and have an 82576 Ethernet adapter on a system that
    supports SR-IOV in the BIOS. The virtual functions will appear after the
    interface is loaded.

    Signed-off-by: Alexander Duyck
    Signed-off-by: Jeff Kirsher
    Signed-off-by: David S. Miller

    Alexander Duyck
     
  • After dev_get_by_name(), we should follow a dev_put().

    Signed-off-by: Yang Hongyang
    Signed-off-by: David S. Miller

    Yang Hongyang
     
  • Don't strain gcc's tiny mind.

    Signed-off-by: David S. Miller

    David S. Miller
     
  • This patch sets MODULE_VERSION in order to help users track
    changes to this module.

    Signed-off-by: Florian Fainelli
    Signed-off-by: David S. Miller

    Florian Fainelli
     
  • The mips identifier is reserved by gcc on mips plattforms. Don't use it
    in the code.

    Signed-off-by: Bastian Blank
    Tested-by: Martin Michlmayr
    Signed-off-by: David S. Miller

    Bastian Blank
     
  • Signed-off-by: Sascha Hauer
    Signed-off-by: David S. Miller

    Sascha Hauer
     
  • platform_device_register_simple() returns ERR_PTR(), not NULL, if an error
    occurs.

    Found by smatch (http://repo.or.cz/w/smatch.git). Compile tested.

    Signed-off-by: Dan Carpenter
    Signed-off-by: David S. Miller

    Dan Carpenter
     
  • Move SDMA configuration from interface up to port probe, to prevent
    overwriting the receive coalescing timer value on interface up.

    Signed-off-by: Lennert Buytenhek
    Signed-off-by: David S. Miller

    Lennert Buytenhek
     
  • the warning printed when a mii READ times out currently says "Timed out
    waiting for MII write to finish". This patch corrects this.

    Signed-off-by: Steve Glendinning
    Signed-off-by: David S. Miller

    Steve Glendinning
     
  • ethoc indirectly uses crc32_le() and bitrev32(), so select
    those library functions to be built.

    drivers/built-in.o: In function `ethoc_set_multicast_list':
    ethoc.c:(.text+0x6226f): undefined reference to `crc32_le'
    ethoc.c:(.text+0x62276): undefined reference to `bitrev32'

    Signed-off-by: Randy Dunlap
    Signed-off-by: David S. Miller

    Randy Dunlap
     
  • * 'release' of git://git.kernel.org/pub/scm/linux/kernel/git/aegl/linux-2.6:
    [IA64] wire up preadv/pwritev system calls

    Linus Torvalds
     
  • * 'release' of git://git.kernel.org/pub/scm/linux/kernel/git/lenb/linux-acpi-2.6:
    x86 ACPI: Add support for Always Running APIC timer
    ACPI x86: Make aperf/mperf MSR access in acpi_cpufreq read_only
    ACPI x86: Cleanup acpi_cpufreq structures related to aperf/mperf
    ACPICA: delete check for AML access to port 0x81-83
    ACPI: WMI: use .notify method instead of installing handler directly
    sony-laptop: use .notify method instead of installing handler directly
    panasonic-laptop: use .notify method instead of installing handler directly
    fujitsu-laptop: use .notify method instead of installing hotkey handler directly
    fujitsu-laptop: use .notify method instead of installing handler directly
    ACPI: video: use .notify method instead of installing handler directly
    ACPI: thermal: use .notify method instead of installing handler directly
    ACPI battery: fix async boot oops
    ACPI: delete acpi_device.g_list
    NULL noise: drivers/platform/x86/panasonic-laptop.c
    ACPI: cpufreq: remove dupilcated #include
    ACPI: Adjust Kelvin offset to match local implementation
    ACPI: convert acpi_device_lock spinlock to mutex

    Linus Torvalds
     
  • * master.kernel.org:/home/rmk/linux-2.6-arm:
    [ARM] 5446/1: ohci-at91: Limit vbus_pin assignment to the size of the array
    [ARM] 5445/1: AT91: Remove flexible array from USBH platform data
    [ARM] 5447/1: Add SZ_32K
    [ARM] omap: fix omap1 clock usecount decrement bug
    [ARM] pxa: register AC97 controller devices
    [ARM] pxa/csb701: do not register devices on non-csb726 boads
    [ARM] pxa/colibri: get rid of set_irq_type()
    [ARM] pxa/colibri: provide MAC address from ATAG_SERIAL
    [ARM] pxa/cm-x2xx: fix ucb1400 not being registered
    [ARM] pxa: Add support for suspend on PalmTX, T5 and LD
    [ARM] pxa: PalmTE2 support for battery, UDC, IrDA and backlight
    [ARM] pxa: Palm Tungsten E2 basic support
    [ARM] pxa/em-x270: add libertas device registration
    [ARM] pxa/magician: Enable bq24022 regulator for gpio_vbus and pda_power

    Linus Torvalds
     
  • * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/drzeus/mmc:
    mmc_spi: support for non-byte-aligned cards
    omap_hsmmc: Do not expect cmd/data to be non-null when CC/TC occurs
    mmc: Fix compile for omap_hsmmc.c
    mmc_spi: convert timeout handling to jiffies and avoid busy waiting
    mmc_spi: do not check CID and CSD blocks with CRC16
    omap_hsmmc: Flush posted write to IRQ
    New mail address for Pierre Ossman
    imxmmc: move RSSR BLR
    imxmmc: init-exit rework
    mmc: Accept EXT_CSD rev 1.3 since it is backwards compatible with 1.2

    Linus Torvalds
     
  • Thou shalt remember to use 'git add' or errors shall be visited on your
    downloads and there shall be wrath from on list and much gnashing of teeth.

    Thou shalt remember to use git status or there shall be catcalls and much
    embarrasment shall come to pass.

    Signed-off-by: Alan "I'm hiding" Cox
    Signed-off-by: Linus Torvalds

    Alan Cox
     
  • Gerd Hoffmann added these to Linux. Let ia64 use them.

    Signed-off-by: Tony Luck

    Tony Luck
     
  • David S. Miller
     
  • Currently, the vbus_pin assignment loop is limited by the value of the "ports"
    variable in the platform data. Now that the vbus_pin array is no longer
    flexible, we can use its actual size.

    Signed-off-by: Justin Waters
    Acked-by: Andrew Victor
    Signed-off-by: Russell King

    Justin Waters
     
  • The flexible array in the USBH platform data is not safe to copy. The
    compiler will not allocate any extra memory for the non-init platform
    data structure (in the *_devices.c files) since it isn't given any
    defaults at compile time. When the probe function attempts to address
    that array, it will actually attempt to access data in an adjacent
    structure.

    Since there are currently no (known) implementations of the at91 USBH
    IP with more than 2 vbus pins, I am capping the value at 2. If somebody
    tries to assign more, then the compiler will produce a warning.

    Signed-off-by: Justin Waters
    Acked-by: David Brownell
    Acked-by: Andrew Victor
    Signed-off-by: Russell King

    Justin Waters