10 Jul, 2007

2 commits

  • Currently, of_serial driver supports only 8250 compatible ports, but
    prepares that others can easily be added. Yet unregister routine
    assumes port is 8250. This corrects unregister routine to check
    port type.

    Signed-off-by: Kou Ishizaki
    Acked-by: Arnd Bergmann
    Signed-off-by: Paul Mackerras

    Ishizaki Kou
     
  • Current of_serial driver assumes unknown serial port to be 8250. But
    this behavior may cause fatal problems when the serial port is not
    8250. This corrects probe routine to ignore unknown serial port.

    Signed-off-by: Kou Ishizaki
    Acked-by: Arnd Bergmann
    Signed-off-by: Paul Mackerras

    Ishizaki Kou
     

08 May, 2007

2 commits

  • Paul Mackerras
     
  • At present, the serial core always allows setserial in userspace to change the
    port address, irq and base clock of any serial port. That makes sense for
    legacy ISA ports, but not for (say) embedded ns16550 compatible serial ports
    at peculiar addresses. In these cases, the kernel code configuring the ports
    must know exactly where they are, and their clocking arrangements (which can
    be unusual on embedded boards). It doesn't make sense for userspace to change
    these settings.

    Therefore, this patch defines a UPF_FIXED_PORT flag for the uart_port
    structure. If this flag is set when the serial port is configured, any
    attempts to alter the port's type, io address, irq or base clock with
    setserial are ignored.

    In addition this patch uses the new flag for on-chip serial ports probed in
    arch/powerpc/kernel/legacy_serial.c, and for other hard-wired serial ports
    probed by drivers/serial/of_serial.c.

    Signed-off-by: David Gibson
    Cc: Russell King
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    David Gibson
     

02 May, 2007

1 commit


14 Feb, 2007

1 commit

  • This can be used for serial ports that are connected to an
    OF platform bus but are not autodetected by the lecacy
    serial support.
    It will automatically take over devices that come from the
    legacy serial detection, which usually is only one device.

    In some cases, rtas may be set up to use the serial port
    in the firmware, which allows easier debugging before probing
    the serial ports. In this case, the "used-by-rtas" property
    must be set by the firmware. This patch also adds code to the
    legacy serial driver to check for this.

    Signed-off-by: Arnd Bergmann
    Signed-off-by: Paul Mackerras

    Arnd Bergmann