1. 23 Jan, 2011 5 commits
    • Randy Dunlap's avatar
      tty/serial: fix apbuart build · fed7bb32
      Randy Dunlap authored
      Fix build errors by selecting SERIAL_CORE:
      
      ERROR: "uart_register_driver" [drivers/tty/serial/apbuart.ko] undefined!
      ERROR: "uart_write_wakeup" [drivers/tty/serial/apbuart.ko] undefined!
      ERROR: "uart_update_timeout" [drivers/tty/serial/apbuart.ko] undefined!
      ERROR: "uart_get_divisor" [drivers/tty/serial/apbuart.ko] undefined!
      ERROR: "uart_get_baud_rate" [drivers/tty/serial/apbuart.ko] undefined!
      ERROR: "uart_add_one_port" [drivers/tty/serial/apbuart.ko] undefined!
      ERROR: "uart_unregister_driver" [drivers/tty/serial/apbuart.ko] undefined!
      ERROR: "uart_remove_one_port" [drivers/tty/serial/apbuart.ko] undefined!
      Signed-off-by: default avatarRandy Dunlap <randy.dunlap@oracle.com>
      Cc: Daniel Hellstrom <daniel@gaisler.com>
      Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
      fed7bb32
    • Paul Fulghum's avatar
      n_hdlc: fix read and write locking · 1035b63d
      Paul Fulghum authored
      Fix locking in read and write code of n_hdlc line discipline.
      
      2.6.36 replaced lock_kernel() with tty_lock().  The tty mutex is not
      dropped automatically when the thread sleeps like the BKL.  This results
      in a blocked read or write holding the tty mutex and stalling operations
      by other devices that use the tty mutex.
      
      A review of n_hdlc read and write code shows:
      1. neither BKL or tty mutex are required for correct operation
      2. read can block while read data is available if data is posted
         between availability check and call to interruptible_sleep_on()
      3. write does not set process state to TASK_INTERRUPTIBLE
         on each pass through the processing loop which can cause
         unneeded scheduling of the thread
      
      The unnecessary tty mutex references have been removed.
      
      Read changed to use same code as n_tty read
      for completing reads and blocking.
      
      Write corrected to set process state to TASK_INTERRUPTIBLE on each pass
      through processing loop.
      Signed-off-by: default avatarPaul Fulghum <paulkf@microgate.com>
      Acked-by: default avatarArnd Bergmann <arnd@arndb.de>
      Cc: Alan Cox <alan@lxorguk.ukuu.org.uk>
      Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
      1035b63d
    • Pavel Machek's avatar
      serial: unbreak billionton CF card · d0694e2a
      Pavel Machek authored
      Unbreak Billionton CF bluetooth card. This actually fixes a regression
      on zaurus.
      Signed-off-by: default avatarPavel Machek <pavel@ucw.cz>
      Cc: stable <stable@kernel.org>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
      d0694e2a
    • Kay Sievers's avatar
      tty: use for_each_console() and WARN() on sysfs failures · a2a6a822
      Kay Sievers authored
      This fixes the build warnings in the tty code, and uses the proper
      function for iterating over the console devices.
      Signed-off-by: default avatarKay Sievers <kay.sievers@vrfy.org>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
      a2a6a822
    • Dave Airlie's avatar
      vt: fix issue when fbcon wants to takeover a second time. · c55c63c6
      Dave Airlie authored
      With framebuffer handover and multiple GPUs, we get into a
      position where the fbcon unbinds the vesafb framebuffer for GPU 1,
      but we still have a radeon framebuffer bound from GPU 0, so
      we don't unregister the console driver. Then when we tried to bind
      the new radeon framebuffer for GPU1 we never get to the bind
      call as we fail due to the console being registered already.
      
      This changes the return value to -EBUSY when the driver is
      already registered and continues to bind for -EBUSY.
      Signed-off-by: default avatarDave Airlie <airlied@redhat.com>
      Cc: Alan Cox <alan@lxorguk.ukuu.org.uk>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
      c55c63c6
  2. 22 Jan, 2011 2 commits
    • Linus Torvalds's avatar
      Linux 2.6.38-rc2 · 1bae4ce2
      Linus Torvalds authored
      1bae4ce2
    • Linus Torvalds's avatar
      Merge branch 'media_fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/mchehab/linux-2.6 · 13a3cec8
      Linus Torvalds authored
      * 'media_fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/mchehab/linux-2.6: (101 commits)
        [media] staging/lirc: fix mem leaks and ptr err usage
        [media] hdpvr: reduce latency of i2c read/write w/recycled buffer
        [media] hdpvr: enable IR part
        [media] rc/mceusb: timeout should be in ns, not us
        [media] v4l2-device: fix 'use-after-freed' oops
        [media] v4l2-dev: don't memset video_device.dev
        [media] zoran: use video_device_alloc instead of kmalloc
        [media] w9966: zero device state after a detach
        [media] v4l: Fix a use-before-set in the control framework
        [media] v4l: Include linux/videodev2.h in media/v4l2-ctrls.h
        [media] DocBook/v4l: update V4L2 revision and update copyright years
        [media] DocBook/v4l: fix validation error in dev-rds.xml
        [media] v4l2-ctrls: queryctrl shouldn't attempt to replace V4L2_CID_PRIVATE_BASE IDs
        [media] v4l2-ctrls: fix missing 'read-only' check
        [media] pvrusb2: Provide more information about IR units to lirc_zilog and ir-kbd-i2c
        [media] ir-kbd-i2c: Add back defaults setting for Zilog Z8's at addr 0x71
        [media] lirc_zilog: Update TODO.lirc_zilog
        [media] lirc_zilog: Add Andy Walls to copyright notice and authors list
        [media] lirc_zilog: Remove useless struct i2c_driver.command function
        [media] lirc_zilog: Remove unneeded tests for existence of the IR Tx function
        ...
      13a3cec8
  3. 21 Jan, 2011 33 commits