21 Sep, 2009

12 commits

  • Signed-off-by: Thadeu Lima de Souza Cascardo
    Signed-off-by: Jiri Kosina

    Thadeu Lima de Souza Cascardo
     
  • Signed-off-by: Anand Gadiyar
    Signed-off-by: Jiri Kosina

    Anand Gadiyar
     
  • Trivial patch which adds the __init and __exit macros to the module_init /
    module_exit functions to several files in drivers/video/omap/

    Signed-off-by: Peter Huewe
    Signed-off-by: Jiri Kosina

    Peter Huewe
     
  • trivial: fix typo "for for" in multiple files

    Signed-off-by: Anand Gadiyar
    Signed-off-by: Jiri Kosina

    Anand Gadiyar
     
  • Trivial patch which adds the __init and __exit macros to the module_init /
    module_exit functions to the following modules from drivers/mtd/
    devices/m25p80.c
    devices/slram.c
    linux version 2.6.30
    ftl.c
    nand/cafe_nand.c
    nand/cmx270_nand.c

    Signed-off-by: Peter Huewe
    Signed-off-by: Jiri Kosina

    Peter Huewe
     
  • Trivial patch which adds the __init and __exit macros to the module_init /
    module_exit functions from drivers/block/DAC960.c

    Signed-off-by: Peter Huewe
    Signed-off-by: Jiri Kosina

    Peter Huewe
     
  • trivial: OHCI: Fix typo in a comment

    Signed-off-by: Anand Gadiyar
    Signed-off-by: Jiri Kosina

    Anand Gadiyar
     
  • * git://git.kernel.org/pub/scm/linux/kernel/git/jaswinder/linux-2.6:
    includecheck fix: x86, cpu/common.c
    includecheck fix: kernel/trace, ring_buffer.c
    includecheck fix: include/linux, ftrace.h
    includecheck fix: include/linux, page_cgroup.h
    includecheck fix: include/linux, aio.h
    includecheck fix: include/drm, drm_memory.h
    includecheck fix: include/acpi, acpi_bus.h
    includecheck fix: drivers/xen, evtchn.c
    includecheck fix: drivers/video, vgacon.c
    includecheck fix: drivers/scsi, ibmvscsi.c
    includecheck fix: drivers/scsi, libfcoe.c
    includecheck fix: x86, shadow.c
    includecheck fix: x86, traps.c
    includecheck fix: um, helper.c
    includecheck fix: s390, sys_s390.c

    Linus Torvalds
     
  • * 'next-i2c' of git://aeryn.fluff.org.uk/bjdooks/linux:
    [PATCH] i2c-imx: make bus available early
    i2c-mv64xxx: correct mv64xxx_i2c_intr() return type

    Linus Torvalds
     
  • * git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core-2.6:
    Driver-Core: extend devnode callbacks to provide permissions

    Linus Torvalds
     
  • * git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/tty-2.6: (79 commits)
    USB serial: update the console driver
    usb-serial: straighten out serial_open
    usb-serial: add missing tests and debug lines
    usb-serial: rename subroutines
    usb-serial: fix termios initialization logic
    usb-serial: acquire references when a new tty is installed
    usb-serial: change logic of serial lookups
    usb-serial: put subroutines in logical order
    usb-serial: change referencing of port and serial structures
    tty: Char: mxser, use THRE for ASPP_OQUEUE ioctl
    tty: Char: mxser, add support for CP112UL
    uartlite: support shared interrupt lines
    tty: USB: serial/mct_u232, fix tty refcnt
    tty: riscom8, fix tty refcnt
    tty: riscom8, fix shutdown declaration
    TTY: fix typos
    tty: Power: fix suspend vt regression
    tty: vt: use printk_once
    tty: handle VT specific compat ioctls in vt driver
    n_tty: move echoctl check and clean up logic
    ...

    Linus Torvalds
     
  • …/kernel/git/tip/linux-2.6-tip

    * 'perfcounters-core-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip: (58 commits)
    perf_counter: Fix perf_copy_attr() pointer arithmetic
    perf utils: Use a define for the maximum length of a trace event
    perf: Add timechart help text and add timechart to "perf help"
    tracing, x86, cpuidle: Move the end point of a C state in the power tracer
    perf utils: Be consistent about minimum text size in the svghelper
    perf timechart: Add "perf timechart record"
    perf: Add the timechart tool
    perf: Add a SVG helper library file
    tracing, perf: Convert the power tracer into an event tracer
    perf: Add a sample_event type to the event_union
    perf: Allow perf utilities to have "callback" options without arguments
    perf: Store trace event name/id pairs in perf.data
    perf: Add a timestamp to fork events
    sched_clock: Make it NMI safe
    perf_counter: Fix up swcounter throttling
    x86, perf_counter, bts: Optimize BTS overflow handling
    perf sched: Add --input=file option to builtin-sched.c
    perf trace: Sample timestamp and cpu when using record flag
    perf tools: Increase MAX_EVENT_LENGTH
    perf tools: Fix memory leak in read_ftrace_printk()
    ...

    Linus Torvalds
     

20 Sep, 2009

28 commits

  • fix the following 'make includecheck' warning:

    drivers/xen/evtchn.c: linux/errno.h is included more than once.

    Signed-off-by: Jaswinder Singh Rajput
    Cc: chrisw@sous-sol.org
    Cc: Sam Ravnborg
    LKML-Reference:
    Acked-by: Jeremy Fitzhardinge

    Jaswinder Singh Rajput
     
  • fix the following 'make includecheck' warning:

    drivers/video/console/vgacon.c: linux/slab.h is included more than once.

    Signed-off-by: Jaswinder Singh Rajput
    Cc: Martin Mares
    Cc: mchehab@infradead.org
    Cc: Sam Ravnborg
    LKML-Reference:

    Jaswinder Singh Rajput
     
  • fix the following 'make includecheck' warning:

    drivers/scsi/ibmvscsi/ibmvscsi.c: asm/firmware.h is included more than once.

    Signed-off-by: Jaswinder Singh Rajput
    Cc: James Bottomley
    Cc: Sam Ravnborg
    LKML-Reference:
    Acked-by: Brian King

    Jaswinder Singh Rajput
     
  • fix the following 'make includecheck' warning:

    drivers/scsi/fcoe/libfcoe.c: linux/netdevice.h is included more than once.

    Signed-off-by: Jaswinder Singh Rajput
    Cc: James Bottomley
    Cc: Sam Ravnborg
    LKML-Reference:

    Jaswinder Singh Rajput
     
  • As I2C is used by PMICs also, make the busses available early via
    subsys_initcall().

    Signed-off-by: Wolfram Sang
    Signed-off-by: Ben Dooks

    Wolfram Sang
     
  • The mv64xxx_i2c_intr() irq handler in drivers/i2c/busses/i2c-mv64xxx.c
    is declared as returning 'int', resulting in this compile-time warning:

    drivers/i2c/busses/i2c-mv64xxx.c: In function 'mv64xxx_i2c_probe':
    drivers/i2c/busses/i2c-mv64xxx.c:540: warning: passing argument 2 of 'request_irq' from incompatible pointer type

    Fix: correct the return type to 'irqreturn_t'.

    Signed-off-by: Mikael Pettersson
    Signed-off-by: Ben Dooks

    Mikael Pettersson
     
  • This patch (as1292) modifies the USB serial console driver, to make it
    compatible with the recent changes to the USB serial core. The most
    important change is that serial->disc_mutex now has to be unlocked
    following a successful call to usb_serial_get_by_index().

    Other less notable changes include:

    Use the requested port number instead of port 0 always.

    Prevent the serial device from being autosuspended.

    Use the ASYNCB_INITIALIZED flag bit to indicate when the
    port hardware has been initialized.

    In spite of these changes, there's no question that the USB serial
    console code is still a big hack.

    Signed-off-by: Alan Stern
    Cc: stable
    Signed-off-by: Greg Kroah-Hartman

    Alan Stern
     
  • This patch (as1291) removes a bunch of code from serial_open(), things
    that were rendered unnecessary by earlier patches. A missing spinlock
    is added to protect port->port.count, which needs to be incremented
    even if the open fails but not if the tty has gotten a hangup. The
    test for whether the hardware has been initialized, based on the use
    count, is replaced by a more transparent test of the
    ASYNCB_INITIALIZED bit in the port flags.

    Signed-off-by: Alan Stern
    Cc: stable
    Signed-off-by: Greg Kroah-Hartman

    Alan Stern
     
  • This patch (as1290) adds some missing tests. serial_down() isn't
    supposed to do anything if the hardware hasn't been initialized, and
    serial_close() isn't supposed to do anything if the tty has gotten a
    hangup (because serial_hangup() takes care of shutting down the
    hardware).

    The patch also updates and adds a few debugging lines.

    Signed-off-by: Alan Stern
    Cc: stable
    Signed-off-by: Greg Kroah-Hartman

    Alan Stern
     
  • This patch (as1289) renames serial_do_down() to serial_down() and
    serial_do_free() to serial_release(). It also adds a missing call to
    tty_shutdown() in serial_release().

    Signed-off-by: Alan Stern
    Cc: stable
    Signed-off-by: Greg Kroah-Hartman

    Alan Stern
     
  • This patch (as1288) fixes the initialization logic in
    serial_install(). A new tty always needs to have a termios
    initialized no matter what, not just in the case where the lower
    driver will override the termios settings.

    Signed-off-by: Alan Stern
    Cc: stable
    Signed-off-by: Greg Kroah-Hartman

    Alan Stern
     
  • This patch (as1287) makes serial_install() be reponsible for acquiring
    references to the usb_serial structure and the driver module when a
    tty is first used. This is more sensible than having serial_open() do
    it, because a tty can be opened many times whereas it is installed
    only once, when it is created. (Not to mention that these actions are
    reversed when the tty is released, not when it is closed.) Finally,
    it is at install time that the TTY core takes its own reference to the
    usb_serial module, so it is only fitting that we should act the same
    way in regard to the lower-level serial driver.

    Signed-off-by: Alan Stern
    Cc: stable
    Signed-off-by: Greg Kroah-Hartman

    Alan Stern
     
  • This patch (as1286) changes usb_serial_get_by_index(). Now the
    routine will check whether the serial device has been disconnected; if
    it has then the return value will be NULL. If the device hasn't been
    disconnected then the routine will return with serial->disc_mutex
    held, so that the caller can use the structure without fear of racing
    against driver unloads.

    This permits the scope of table_mutex in destroy_serial() to be
    reduced. Instead of protecting the entire function, it suffices to
    protect the part that actually uses serial_table[], i.e., the call to
    return_serial(). There's no longer any danger of the refcount being
    incremented after it reaches 0 (which was the reason for having the
    large scope previously), because it can't reach 0 until the serial
    device has been disconnected.

    Also, the patch makes serial_install() check that serial is non-NULL
    before attempting to use it.

    Signed-off-by: Alan Stern
    Cc: stable
    Signed-off-by: Greg Kroah-Hartman

    Alan Stern
     
  • This patch (as1285) rearranges the subroutines in usb-serial.c
    concerned with tty lifetimes into a more logical order: install, open,
    hangup, close, release. It also updates the formatting of the
    kerneldoc comments.

    Signed-off-by: Alan Stern
    Cc: stable
    Signed-off-by: Greg Kroah-Hartman

    Alan Stern
     
  • This patch (as1284) changes the referencing of the usb_serial and
    usb_serial_port structures in usb-serial.c. It's not feasible to make
    the port structures keep a reference to the serial structure, because
    the ports need to remain in existence when serial is released -- quite
    a few of the drivers expect this. Consequently taking a reference
    to the port when the device file is open is insufficient; such a
    reference would not pin serial.

    To fix this, we now take a reference to serial when the device file is
    opened. The final put_device() for the ports occurs in
    destroy_serial(), so that the ports will last as long as they are
    needed.

    The patch initializes all the port devices, including those in the
    unused "fake" ports. This makes the code more uniform because they
    can all be released in the same way. The error handling code in
    usb_serial_probe() is much simplified by this approach; instead of
    freeing everything by hand we can use a single usb_serial_put() call.

    Also simplified is the port-release mechanism. Instead of being two
    separate routines, port_release() and port_free() can be combined into
    one.

    Signed-off-by: Alan Stern
    Cc: stable
    Signed-off-by: Greg Kroah-Hartman

    Alan Stern
     
  • In moxa specific ASPP_OQUEUE ioctl command, they apparently want
    only know whether there is space in transmitter hold register.

    So switch UART_LSR_TEMT to UART_LSR_THRE in that specific case
    according to the change in 1.14 moxa drivers.

    Signed-off-by: Jiri Slaby
    Signed-off-by: Greg Kroah-Hartman

    Jiri Slaby
     
  • Add support for MOXA:0x1120 pci device. It's a 2-port device and differs
    in no way from the others. So this turns out to be a trivial
    pci_device_id change.

    Increase also the version number.

    Signed-off-by: Jiri Slaby
    Signed-off-by: Greg Kroah-Hartman

    Jiri Slaby
     
  • Adapt isr to work with shared interrupt lines.

    Signed-off-by: Peter Korsgaard
    Signed-off-by: Greg Kroah-Hartman

    Peter Korsgaard
     
  • Stanse found a tty refcnt leak in read_int_callback. In fact
    it's handled wrong altogether. tty_port_tty_get can return NULL
    and it's not checked in that manner.

    Fix that by checking the tty_port_tty_get retval and put tty kref
    properly.

    http://stanse.fi.muni.cz/

    Signed-off-by: Jiri Slaby
    Signed-off-by: Greg Kroah-Hartman

    Jiri Slaby
     
  • Stanse found a tty refcnt leak on one fail path in rc_transmit.
    Fix that by jumping to the 'out' label.

    http://stanse.fi.muni.cz/

    Signed-off-by: Jiri Slaby
    Signed-off-by: Greg Kroah-Hartman

    Jiri Slaby
     
  • tty_port_ops.shutdown takes only one parameter: tty port. Remove
    the second one and use port->tty where needed instead.

    Signed-off-by: Jiri Slaby
    Signed-off-by: Andrew Morton
    Signed-off-by: Greg Kroah-Hartman

    Jiri Slaby
     
  • This patch (as1282) fixes some obvious typos in the TTY core.

    Signed-off-by: Alan Stern
    CC: Alan Cox
    Signed-off-by: Greg Kroah-Hartman

    Alan Stern
     
  • vt_waitactive no longer accepts console parameter as console-1
    since commit "vt: add an event interface". It expects console
    number directly (as viewed by userspace -- counting from 1).

    Fix a deadlock suspend regression by redefining adding one
    to vt in vt_move_to_console.

    Signed-off-by: Jiri Slaby
    Cc: Alan Cox
    Cc: Greg Kroah-Hartman
    Cc: "Rafael J. Wysocki"
    Signed-off-by: Greg Kroah-Hartman

    Jiri Slaby
     
  • Signed-off-by: Marcin Slusarz
    Signed-off-by: Greg Kroah-Hartman

    Marcin Slusarz
     
  • The VT specific compat_ioctl handlers are the only ones
    in common code that require the BKL. Moving them into
    the vt driver lets us remove the BKL from the other handlers
    and cleans up the code.

    Signed-off-by: Arnd Bergmann
    Signed-off-by: Greg Kroah-Hartman

    Arnd Bergmann
     
  • Check L_ECHOCTL before insertting a character in the echo buffer
    (rather than as the buffer is processed), to be more consistent with
    when all other L_ flags are checked. Also cleaned up the related logic.

    Note that this and the previous patch ("n_tty: honor opost flag for echoes")
    were verified together by the reporters of the bug that patch addresses
    (http://bugs.linuxbase.org/show_bug.cgi?id=2692), and the test now passes.

    Signed-off-by: Joe Peterson
    Cc: Linus Torvalds
    Signed-off-by: Greg Kroah-Hartman

    Joe Peterson
     
  • Fixes the following bug:

    http://bugs.linuxbase.org/show_bug.cgi?id=2692

    Causes processing of echoed characters (output from the echo buffer) to
    honor the O_OPOST flag, which is consistent with the old behavior.

    Note that this and the next patch ("n_tty: move echoctl check and
    clean up logic") were verified together by the bug reporters, and
    the test now passes.

    Signed-off-by: Joe Peterson
    Cc: Linux Torvalds
    Signed-off-by: Greg Kroah-Hartman

    Joe Peterson
     
  • Various drivers have hacks to mangle termios structures. This stems from
    the fact there is no nice setup hook for configuring the termios settings
    when the port is created

    Signed-off-by: Alan Cox
    Signed-off-by: Greg Kroah-Hartman

    Alan Cox