29 Aug, 2011

2 commits


28 Aug, 2011

1 commit


27 Aug, 2011

10 commits

  • This patch updates the recently submitted
    "Associate the HDMI clock together with LCDC1 on sh7372"
    to V2 with the following change:
    - Use lcdc1_device on AP4EVB to build properly.

    Signed-off-by: Magnus Damm
    Signed-off-by: Rafael J. Wysocki

    Magnus Damm
     
  • The nfsservctl system call is now gone, so we should remove all
    linkage for it.

    Signed-off-by: NeilBrown
    Signed-off-by: J. Bruce Fields
    Signed-off-by: Linus Torvalds

    NeilBrown
     
  • * 'drm-intel-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/keithp/linux-2.6:
    drm/i915: Fix wrong initializer for "locked" variable in assert_panel_unlocked
    i915: do not setup intel_backlight twice

    Linus Torvalds
     
  • * 'usb-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb-2.6: (30 commits)
    USB: ftdi_sio: add Calao reference board support
    USB option driver K3765/K4505 avoid CDC_DATA interface
    USB: option: add YUGA device id to driver
    usb: s5p-ehci: fix a NULL pointer deference
    USB: EHCI: Do not rely on PORT_SUSPEND to stop USB resuming in ehci_bus_resume().
    USB option driver add PID of Huawei Vodafone K4605
    USB option driver add PID of Huawei Vodafone K3806
    xhci: Handle zero-length isochronous packets.
    USB: Avoid NULL pointer deref in usb_hcd_alloc_bandwidth.
    usb: musb: gadget: fix error path
    usb: gadget: f_phonet: unlock in error case
    usb: musb: blackfin: include prefetch head file
    usb: musb: tusb6010: fix compilation
    usb: gadget: renesas_usbhs: fix DMA build by including dma-mapping.h
    usb: musb: cppi: fix build errors due to DBG and missing musb variable
    usb: musb: ux500: replace missing DBG with dev_dbg
    usb: musb: ux500: set dma config for both src and dst
    usb: musb: fix oops on musb_gadget_pullup
    usb: host: ehci-omap: fix .remove and failure handling path of .probe(v1)
    usb: gadget: hid: don't STALL when processing a HID Descriptor request
    ...

    Linus Torvalds
     
  • * 'tty-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/tty-2.6:
    omap-serial: Allow IXON and IXOFF to be disabled.
    TTY: serial, document ignoring of uart->ops->startup error
    TTY: pty, fix pty counting
    8250: Fix race condition in serial8250_backup_timeout().
    serial/8250_pci: delete duplicate data definition
    8250_pci: add support for Rosewill RC-305 4x serial port card
    tty: Add "spi:" prefix for spi modalias
    atmel_serial: fix atmel_default_console_device
    serial: 8250_pnp: add Intermec CV60 touchscreen device
    drivers/serial/ucc_uart.c: Fix compiler warning
    pch_uart: Set PCIe bus number using probe parameter
    serial: samsung: Fix build error

    Linus Torvalds
     
  • …t/gregkh/driver-core-2.6

    * 'driver-core-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core-2.6:
    drivers:misc: ti-st: fix unexpected UART close
    drivers:misc: ti-st: free skb on firmware download
    drivers:misc: ti-st: wait for completion at fail
    drivers:misc: ti-st: reinit completion before send
    drivers:misc: ti-st: fail-safe on wrong pkt type
    drivers:misc: ti-st: reinit completion on ver read
    drivers:misc:ti-st: platform hooks for chip states
    drivers:misc: ti-st: avoid a misleading dbg msg
    base/devres.c: quiet sparse noise about context imbalance
    pti: add missing CONFIG_PCI dependency
    drivers/base/devtmpfs.c: correct annotation of `setup_done'
    driver core: fix kernel-doc warning in platform.c
    firmware: fix google/gsmi.c build warning

    Linus Torvalds
     
  • * 'staging-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging-2.6:
    staging: tidspbridge: fix compilation on dsp clock functions
    staging: octeon-ethernet: Add missing #includes.
    Staging: zcache: signedness bug in tmem_get()
    staging: zcache: fix crash on high memory swap
    staging: brcm80211: SPARC build error fix
    staging: brcm80211: fix compile error on non-x86 archs since 3.0 kernel

    Linus Torvalds
     
  • * 'for-linus' of git://git390.marist.edu/pub/scm/linux-2.6:
    [S390] memory hotplug: only unassign assigned increments
    [S390] Change default action from reipl to stop for on_restart
    [S390] arch/s390/kernel/ipl.c: correct error detection check
    [S390] drivers/s390/block/dasd_ioctl.c: add missing kfree
    [S390] nss,initrd: kernel image and initrd must be in different segments

    Linus Torvalds
     
  • According to the SFI specification irq number 0xFF means device has no
    interrupt or interrupt attached via GPIO.

    Currently, we don't handle this special case and set irq field in
    *_board_info structs to 255. It leads to confusion in some drivers.
    Accelerometer driver tries to register interrupt 255, fails and prints
    "Cannot get IRQ" to dmesg.

    Signed-off-by: Kirill A. Shutemov
    Signed-off-by: Alan Cox
    Signed-off-by: Linus Torvalds

    Kirill A. Shutemov
     
  • * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound-2.6: (32 commits)
    ALSA: hda: Conexant: Allow different output types to share DAC
    ASoC: Correct element count for WM8996 sidetone HPF
    ASoC: Tegra: wm8903 machine driver: Drop Ventana support
    ASoC: Add samsung maintainer
    ASoC: Add Springbank I/O card to Speyside Kconfig
    ALSA: hda/conexant - Enable ADC-switching for auto-mic mode, too
    ALSA: hda - Fix double-headphone/speaker paths for Cxt auto-parser
    ALSA: hda - Update jack-sense info even when no automute is set
    ALSA: hda - Fix output-path initialization for Realtek auto-parser
    sound/soc/fsl/mpc8610_hpcd.c: add missing of_node_put
    sound/soc/fsl/p1022_ds.c: add missing of_node_put
    sound/soc/ep93xx/ep93xx-i2s.c: add missing kfree
    sound/soc/kirkwood/kirkwood-i2s.c: add missing kfree
    ASoC: soc-core: use GFP_KERNEL flag for kmalloc in snd_soc_cnew
    sound/soc/fsl/fsl_dma.c: add missing of_node_put
    ASoC: Clear completions from late WM8996 FLL lock IRQs
    ASoC: Clear any outstanding WM8962 FLL lock completions before waiting
    ASoC: Ensure we only run Speyside WM8962 bias level callbacks once
    ASoC: Fix configuration of WM8996 input enables
    ASoC: WM8996 record paths need AIFCLK
    ...

    Linus Torvalds
     

26 Aug, 2011

27 commits

  • Takashi Iwai
     
  • This bug causes the IECSR register clear failure. In this case, the RETE
    (retry error threshold exceeded) interrupt will be generated and cannot be
    cleared. So the related ISR may be called persistently.

    The RETE bit in IECSR is cleared by writing a 1 to it.

    Signed-off-by: Liu Gang
    Cc: Benjamin Herrenschmidt
    Cc: Kumar Gala
    Cc:
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Liu Gang-B34182
     
  • The previous rtc-s3c had two issues related with its IRQ.

    1. Users cannot open rtc multiple times because an open operation
    calls request_irq on the same IRQ. (e.g., two user processes wants to
    open and read RTC time from rtc-s3c at the same time)

    2. If alarm is set and no one has the rtc opened with filesystem
    (either the alarm is set by kernel/boot-loader or user set an alarm and
    closed rtc dev file), the pending bit is not cleared and no further
    interrupt is invoked. When the alarm is used by the system itself such
    as a resume from suspend-to-RAM or other Low-power modes/idle, this is
    a critical issue.

    This patch mitigates these issues by calling request_irq at probe and
    free_irq at remove.

    Signed-off-by: MyungJoo Ham
    Signed-off-by: Kyungmin Park
    Acked-by: Kukjin Kim
    Cc: Alessandro Zummo
    Cc: Changhwan Youn
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    MyungJoo Ham
     
  • RTC-S3C used to print out debug messages incorrectly. This patch
    corrects incorrect outputs. (undecoded bcd numbers, incorrectly decoded
    register values)

    This patch affects the pr-debug messages only.

    Signed-off-by: MyungJoo Ham
    Signed-off-by: Kyungmin Park
    Acked-by: Kukjin Kim
    Cc: Alessandro Zummo
    Cc: Changhwan Youn
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    MyungJoo Ham
     
  • bd2802_unregister_led_classdev() should unregister all registered
    instances of led_classdev class that had registered by
    bd2802_register_led_classdev().

    Signed-off-by: Axel Lin
    Acked-by: Kim Kyuwon
    Cc: Richard Purdie
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Axel Lin
     
  • Fix the following build errors:

    drivers/tty/serial/8250_early.c:160: error: 'BASE_BAUD' undeclared (first use in this function): 1 errors in 1 logs
    drivers/tty/serial/8250_early.c:37:24: error: asm/serial.h: No such file or directory: 1 errors in 1 logs

    I am not sure if (1843200 / 16) is suitable for cris, but most other
    arch's define it as this value.

    Signed-off-by: WANG Cong
    Cc: Mikael Starvik
    Cc: Jesper Nilsson
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    WANG Cong
     
  • Since 43cc71eed12 ("platform: prefix MODALIAS with "platform:""), the
    platform modalias is prefixed with "platform:".

    This patch changes the MODULE_ALIAS to "platform:ab8500-pwm".

    Signed-off-by: Axel Lin
    Acked-by: Arun Murthy
    Cc: Linus Walleij
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Axel Lin
     
  • Make sure we are passing the same cookie in all calls to
    request_threaded_irq() and free_irq().

    Signed-off-by: Axel Lin
    Cc: Donggeun Kim
    Cc: Minkyu Kang
    Cc: Kyungmin Park
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Axel Lin
     
  • This is an i2c driver, not a platform driver, thus use "i2c" prefix for
    the module alias.

    Signed-off-by: Axel Lin
    Acked-by: Michael Hennerich
    Cc: Richard Purdie
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Axel Lin
     
  • We need a callback to do some things after pwm_enable, pwm_disable
    and pwm_config.

    Signed-off-by: Dilan Lee
    Reviewed-by: Robert Morell
    Reviewed-by: Arun Murthy
    Cc: Richard Purdie
    Cc: Paul Mundt
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Dilan Lee
     
  • Commit 79dfdaccd1d5 ("memcg: make oom_lock 0 and 1 based rather than
    counter") tried to oom lock the hierarchy and roll back upon
    encountering an already locked memcg.

    The code is confused when it comes to detecting a locked memcg, though,
    so it would fail and rollback after locking one memcg and encountering
    an unlocked second one.

    The result is that oom-locking hierarchies fails unconditionally and
    that every oom killer invocation simply goes to sleep on the oom
    waitqueue forever. The tasks practically hang forever without anyone
    intervening, possibly holding locks that trip up unrelated tasks, too.

    Signed-off-by: Johannes Weiner
    Acked-by: Michal Hocko
    Acked-by: KAMEZAWA Hiroyuki
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Johannes Weiner
     
  • Add missing include of linux/module.h for drivers that use interfaces from
    linux/module.h. This patch fixes build errors.

    Signed-off-by: Axel Lin
    Cc: Jonathan McDowell
    Acked-by: Kristoffer Ericson
    Cc: Magnus Damm
    Cc: Richard Purdie
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Axel Lin
     
  • ep93xx_bl.c uses interfaces from linux/module.h, so it should include
    that file. This patch fixes build errors:

    CC [M] drivers/video/backlight/ep93xx_bl.o
    drivers/video/backlight/ep93xx_bl.c:138: error: 'THIS_MODULE' undeclared here (not in a function)
    drivers/video/backlight/ep93xx_bl.c:158: error: expected declaration specifiers or '...' before string constant
    drivers/video/backlight/ep93xx_bl.c:158: warning: data definition has no type or storage class
    ...

    Signed-off-by: Axel Lin
    Acked-by: H Hartley Sweeten
    Cc: Ryan Mallon
    Cc: Richard Purdie
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Axel Lin
     
  • Replace/remove use of RIO v.1.2 registers/bits that are not
    forward-compatible with newer versions of RapidIO specification.

    RapidIO specification v.1.3 removed Write Port CSR, Doorbell CSR,
    Mailbox CSR and Mailbox and Doorbell bits of the PEF CAR.

    Use of removed (since RIO v.1.3) register bits affects users of
    currently available 1.3 and 2.x compliant devices who may use not so
    recent kernel versions.

    Removing checks for unsupported bits makes corresponding routines
    compatible with all versions of RapidIO specification. Therefore,
    backporting makes stable kernel versions compliant with RIO v.1.3 and
    later as well.

    Signed-off-by: Alexandre Bounine
    Cc: Kumar Gala
    Cc: Matt Porter
    Cc: Li Yang
    Cc: Thomas Moll
    Cc: Chul Kim
    Cc:
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Alexandre Bounine
     
  • ZONE_CONGESTED is only cleared in kswapd, but pages can be freed in any
    task. It's possible ZONE_CONGESTED isn't cleared in some cases:

    1. the zone is already balanced just entering balance_pgdat() for
    order-0 because concurrent tasks free memory. In this case, later
    check will skip the zone as it's balanced so the flag isn't cleared.

    2. high order balance fallbacks to order-0. quote from Mel: At the
    end of balance_pgdat(), kswapd uses the following logic;

    If reclaiming at high order {
    for each zone {
    if all_unreclaimable
    skip
    if watermark is not met
    order = 0
    loop again

    /* watermark is met */
    clear congested
    }
    }

    i.e. it clears ZONE_CONGESTED if it the zone is balanced. if not,
    it restarts balancing at order-0. However, if the higher zones are
    balanced for order-0, kswapd will miss clearing ZONE_CONGESTED as
    that only happens after a zone is shrunk. This can mean that
    wait_iff_congested() stalls unnecessarily.

    This patch makes kswapd clear ZONE_CONGESTED during its initial
    highmem->dma scan for zones that are already balanced.

    Signed-off-by: Shaohua Li
    Acked-by: Mel Gorman
    Reviewed-by: Minchan Kim
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Shaohua Li
     
  • It seems that 7bf693951a8e ("console: allow to retain boot console via
    boot option keep_bootcon") doesn't always achieve what it aims, as when
    printk_late_init() runs it unconditionally turns off all boot consoles.
    With this patch, I am able to see more messages on the boot console in
    KVM guests than I can without, when keep_bootcon is specified.

    I think it is appropriate for the relevant -stable trees. However, it's
    more of an annoyance than a serious bug (ideally you don't need to keep
    the boot console around as console handover should be working -- I was
    encountering a situation where the console handover wasn't working and
    not having the boot console available meant I couldn't see why).

    Signed-off-by: Nishanth Aravamudan
    Cc: David S. Miller
    Cc: Alan Cox
    Cc: Greg KH
    Acked-by: Fabio M. Di Nitto
    Cc: [2.6.39.x, 3.0.x]
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Nishanth Aravamudan
     
  • Paul said: I left Google at the end of last week - if it's not bouncing
    already, menage@google.com isn't going to work for much longer.

    Signed-off-by: Wanlong Gao
    Acked-by: Paul Menage
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Wanlong Gao
     
  • I get the below warning:

    BUG: using smp_processor_id() in preemptible [00000000] code: bash/746
    caller is native_sched_clock+0x37/0x6e
    Pid: 746, comm: bash Tainted: G W 3.0.0+ #254
    Call Trace:
    [] debug_smp_processor_id+0xc2/0xdc
    [] native_sched_clock+0x37/0x6e
    [] try_to_free_mem_cgroup_pages+0x7d/0x270
    [] mem_cgroup_force_empty+0x24b/0x27a
    [] ? sys_close+0x38/0x138
    [] ? sys_close+0x38/0x138
    [] mem_cgroup_force_empty_write+0x17/0x19
    [] cgroup_file_write+0xa8/0xba
    [] vfs_write+0xb3/0x138
    [] sys_write+0x4a/0x71
    [] ? sys_close+0xf0/0x138
    [] system_call_fastpath+0x16/0x1b

    sched_clock() can't be used with preempt enabled. And we don't need
    fast approach to get clock here, so let's use ktime API.

    Signed-off-by: Shaohua Li
    Acked-by: KAMEZAWA Hiroyuki
    Tested-by: KAMEZAWA Hiroyuki
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Shaohua Li
     
  • The various basic memory allocation function return NULL, not an
    ERR_PTR.

    The semantic patch that makes this change is available in
    scripts/coccinelle/null/eno.cocci.

    More information about semantic patching is available at
    http://coccinelle.lip6.fr/

    Signed-off-by: Thomas Meyer
    Cc: Niranjana Vishwanathapura
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Thomas Meyer
     
  • The test for bad usage of min_t() and max_t() is missing the --ignore
    type. Add it.

    Signed-off-by: Hui Zhu
    Signed-off-by: Joe Perches
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Hui Zhu
     
  • Change to new git tree -
    (git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git).

    Signed-off-by: Ralf Thielow
    Cc: Joe Perches
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Ralf Thielow
     
  • Commit d1a05b6973c7 ("memcg do not try to drain per-cpu caches without
    pages") added a drain_local_stock() call to a preemptible section.

    The draining task looks up the cpu-local stock twice to set the
    draining-flag, then to drain the stock and clear the flag again. If the
    task is migrated to a different CPU in between, noone will clear the
    flag on the first stock and it will be forever undrainable. Its charge
    can not be recovered and the cgroup can not be deleted anymore.

    Properly pin the task to the executing CPU while draining stocks.

    Signed-off-by: Johannes Weiner
    Cc: KAMEZAWA Hiroyuki
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Johannes Weiner
     
  • Signed-off-by: Evgeniy Polyakov
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Evgeniy Polyakov
     
  • The for loop was looking for i = 0 so this function
    never did anything. Also we started with i = NB_SYSFS_BIN_FILES instead
    of "NB_SYSFS_BIN_FILES - 1" which is an off by one bug.

    Reported-by: Bojan Prtvar
    Signed-off-by: Dan Carpenter
    Acked-by: Jean-Franois Dagenais
    Cc: Evgeniy Polyakov
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Dan Carpenter
     
  • The bug was accidentally found by the following program:

    #include
    #include
    #include
    static int setsysinfo(unsigned long op, void *buffer, unsigned long size,
    int *start, void *arg, unsigned long flag) {
    return syscall(__NR_osf_setsysinfo, op, buffer, size, start, arg, flag);
    }

    int main(int argc, char **argv) {
    short x[10];
    unsigned int buf[2] = { SSIN_UACPROC, UAC_SIGBUS, };
    setsysinfo(SSI_NVPAIRS, buf, 1, 0, 0, 0);

    int *y = (int*) (x+1);
    *y = 0;
    return 0;
    }

    The program shoud fail on SIGBUS, but didn't.

    The patch is a second part of userspace flag fix (commit 745dd2405e28
    "Alpha: Rearrange thread info flags fixing two regressions").

    Deleted outdated out-of-sync 'UAC_SHIFT' (the cause of bug) in favour of
    'ALPHA_UAC_SHIFT'.

    [akpm@linux-foundation.org: coding-style fixes]
    Signed-off-by: Sergei Trofimovich
    Acked-by: Michael Cree
    Cc: Richard Henderson
    Cc: Ivan Kokshaysky
    Cc: Matt Turner
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Sergei Trofimovich
     
  • Found on allmodconfig build (ARCH=alpha)

    drivers/misc/pti.c: In function 'get_id':
    drivers/misc/pti.c:249: error: implicit declaration of function 'kmalloc'
    drivers/misc/pti.c: In function 'pti_char_write':
    drivers/misc/pti.c:658: error: implicit declaration of function 'copy_from_user'

    Signed-off-by: Sergei Trofimovich
    Cc: Greg Kroah-Hartman
    Cc: J Freyensee
    Cc: Jeremy Rocher
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Sergei Trofimovich
     
  • entry_32.S contained a hardcoded alternative instruction entry, and the
    format changed in commit 59e97e4d6fbc ("x86: Make alternative
    instruction pointers relative").

    Replace the hardcoded entry with the altinstruction_entry macro. This
    fixes the 32-bit boot with CONFIG_X86_INVD_BUG=y.

    Reported-and-tested-by: Arnaud Lacombe
    Signed-off-by: Andy Lutomirski
    Cc: Peter Anvin
    Cc: Ingo Molnar
    Signed-off-by: Linus Torvalds

    Andy Lutomirski