17 Jun, 2009

1 commit


29 May, 2009

1 commit


05 Feb, 2009

1 commit

  • The MPC5200 PSC device is wired up to a dedicated interrupt line
    which is never shared. This patch removes the IRQF_SHARED flag
    from the request_irq() call which eliminates the "IRQF_DISABLED
    is not guaranteed on shared IRQs" warning message from the console
    output.

    Signed-off-by: Grant Likely
    Reviewed-by: Wolfram Sang

    Grant Likely
     

04 Feb, 2009

1 commit

  • There is no reason for the PSC UART driver or the Ethernet driver
    to require a device_type property. The compatible value is sufficient
    to uniquely identify the device. Remove it from the driver.

    The whole 'port-number' scheme for assigning numbers to PSC uarts was
    always rather half baked and just adds complexity. Remove it from the
    driver. After this patch is applied, PSC UART numbers are simply
    assigned from the order they are found in the device tree (just like
    all the other devices). Userspace can query sysfs to determine what
    ttyPSC number is assigned to each PSC instance.

    Signed-off-by: Grant Likely
    Reviewed-by: Wolfram Sang

    Grant Likely
     

21 Dec, 2008

3 commits


06 Dec, 2008

1 commit


25 Sep, 2008

1 commit


21 Jul, 2008

1 commit


02 May, 2008

1 commit

  • mpc52xx_uart_int and __uart_put_char both try to acquire the
    port->lock. Therefore the function sequence of:

    mpc52xx_uart_int--> ...-->flush_to_ldisc-->...-->__uart_put_char

    can potentially trigger a deadlock. To avoid this deadlock a fix
    similar to that found in the 8250.c serial driver is applied. The
    deadlock is avoided by releasing the lock before pushing a buffer
    and reacquiring it when completed.

    Signed-off-by: Andrew Liu
    Signed-off-by: Grant Likely

    Andrew Liu
     

29 Apr, 2008

1 commit


16 Apr, 2008

1 commit

  • Since 43cc71eed1250755986da4c0f9898f9a635cb3bf, the platform modalias is
    prefixed with "platform:". Add MODULE_ALIAS() to the hotpluggable serial
    platform drivers, to re-enable auto loading.

    NOTE that Kconfig for some of these drivers doesn't allow modular builds, and
    thus doesn't match the driver source's unload support. Presumably their
    unload code is buggy and/or weakly tested...

    [dbrownell@users.sourceforge.net: more drivers, registration fixes]
    Signed-off-by: Kay Sievers
    Signed-off-by: David Brownell
    Acked-by: Peter Korsgaard
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Kay Sievers
     

07 Feb, 2008

3 commits


27 Jan, 2008

1 commit

  • Update MPC5200 drivers to also look for compatible properties in the
    form "fsl,mpc5200-*" to better conform to open firmware generic names
    recommended practice as published here:

    http://www.openfirmware.org/1275/practice/gnames/gnamv14a.html

    This patch should *not* break compatibility with older device trees
    which do not use the 'fsl,' prefix. The drivers will still bind against
    the older names also.

    Signed-off-by: Grant Likely

    Grant Likely
     

22 Jan, 2008

2 commits


17 Jan, 2008

1 commit

  • Similar to of_find_compatible_node(), of_find_matching_node() and
    for_each_matching_node() allow you to iterate over the device tree
    looking for specific nodes, except that they take of_device_id
    tables instead of strings.

    This also moves of_match_node() from driver/of/device.c to
    driver/of/base.c to colocate it with the of_find_matching_node which
    depends on it.

    Signed-off-by: Grant Likely
    Signed-off-by: Paul Mackerras

    Grant Likely
     

14 Oct, 2007

1 commit


14 Sep, 2007

1 commit


07 May, 2007

1 commit


02 May, 2007

1 commit


17 Feb, 2007

1 commit


13 Feb, 2007

1 commit


09 Jan, 2007

1 commit


09 Dec, 2006

1 commit

  • This is the grungy swap all the occurrences in the right places patch that
    goes with the updates. At this point we have the same functionality as
    before (except that sgttyb() returns speeds not zero) and are ready to
    begin turning new stuff on providing nobody reports lots of bugs

    If you are a tty driver author converting an out of tree driver the only
    impact should be termios->ktermios name changes for the speed/property
    setting functions from your upper layers.

    If you are implementing your own TCGETS function before then your driver
    was broken already and its about to get a whole lot more painful for you so
    please fix it 8)

    Also fill in c_ispeed/ospeed on init for most devices, although the current
    code will do this for you anyway but I'd like eventually to lose that extra
    paranoia

    [akpm@osdl.org: bluetooth fix]
    [mp3@de.ibm.com: sclp fix]
    [mp3@de.ibm.com: warning fix for tty3270]
    [hugh@veritas.com: fix tty_ioctl powerpc build]
    [jdike@addtoit.com: uml: fix ->set_termios declaration]
    Signed-off-by: Alan Cox
    Signed-off-by: Martin Peschke
    Acked-by: Peter Oberparleiter
    Cc: Cornelia Huck
    Signed-off-by: Hugh Dickins
    Signed-off-by: Jeff Dike
    Cc: Paolo 'Blaisorblade' Giarrusso
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Alan Cox
     

05 Dec, 2006

2 commits


07 Oct, 2006

1 commit

  • - Eliminate casts to/from void*

    - Eliminate checks for conditions that never occur. These typically
    fall into two classes:

    1) Checking for 'dev_id == NULL', then it is never called with
    NULL as an argument.

    2) Checking for invalid irq number, when the only caller (the
    system) guarantees the irq handler is called with the proper
    'irq' number argument.

    Signed-off-by: Jeff Garzik

    Jeff Garzik
     

05 Oct, 2006

1 commit

  • Maintain a per-CPU global "struct pt_regs *" variable which can be used instead
    of passing regs around manually through all ~1800 interrupt handlers in the
    Linux kernel.

    The regs pointer is used in few places, but it potentially costs both stack
    space and code to pass it around. On the FRV arch, removing the regs parameter
    from all the genirq function results in a 20% speed up of the IRQ exit path
    (ie: from leaving timer_interrupt() to leaving do_IRQ()).

    Where appropriate, an arch may override the generic storage facility and do
    something different with the variable. On FRV, for instance, the address is
    maintained in GR28 at all times inside the kernel as part of general exception
    handling.

    Having looked over the code, it appears that the parameter may be handed down
    through up to twenty or so layers of functions. Consider a USB character
    device attached to a USB hub, attached to a USB controller that posts its
    interrupts through a cascaded auxiliary interrupt controller. A character
    device driver may want to pass regs to the sysrq handler through the input
    layer which adds another few layers of parameter passing.

    I've build this code with allyesconfig for x86_64 and i386. I've runtested the
    main part of the code on FRV and i386, though I can't test most of the drivers.
    I've also done partial conversion for powerpc and MIPS - these at least compile
    with minimal configurations.

    This will affect all archs. Mostly the changes should be relatively easy.
    Take do_IRQ(), store the regs pointer at the beginning, saving the old one:

    struct pt_regs *old_regs = set_irq_regs(regs);

    And put the old one back at the end:

    set_irq_regs(old_regs);

    Don't pass regs through to generic_handle_irq() or __do_IRQ().

    In timer_interrupt(), this sort of change will be necessary:

    - update_process_times(user_mode(regs));
    - profile_tick(CPU_PROFILING, regs);
    + update_process_times(user_mode(get_irq_regs()));
    + profile_tick(CPU_PROFILING);

    I'd like to move update_process_times()'s use of get_irq_regs() into itself,
    except that i386, alone of the archs, uses something other than user_mode().

    Some notes on the interrupt handling in the drivers:

    (*) input_dev() is now gone entirely. The regs pointer is no longer stored in
    the input_dev struct.

    (*) finish_unlinks() in drivers/usb/host/ohci-q.c needs checking. It does
    something different depending on whether it's been supplied with a regs
    pointer or not.

    (*) Various IRQ handler function pointers have been moved to type
    irq_handler_t.

    Signed-Off-By: David Howells
    (cherry picked from 1b16e7ac850969f38b375e511e3fa2f474a33867 commit)

    David Howells
     

01 Oct, 2006

1 commit


04 Jul, 2006

1 commit


03 Jul, 2006

2 commits


01 Jul, 2006

1 commit


27 Jun, 2006

1 commit


25 Mar, 2006

1 commit


21 Mar, 2006

1 commit

  • Glen Turner reported that writing LFCR rather than the more
    traditional CRLF causes issues with some terminals.

    Since this aflicts many serial drivers, extract the common code
    to a library function (uart_console_write) and arrange for each
    driver to supply a "putchar" function.

    Signed-off-by: Russell King

    Russell King