1. 07 6月, 2008 1 次提交
    • A
      serial: fix driver_name conflicts · 4feead71
      Anton Vorontsov 提交于
      Some drivers are using too generic "serial" name for driver_name, this
      might cause issues, like this:
      
      Freescale QUICC Engine UART device driver
      proc_dir_entry 'serial' already registered
      Call Trace:
      [cf82de50] [c0007f7c] show_stack+0x4c/0x1ac (unreliable)
      [cf82de90] [c00b03fc] proc_register+0xfc/0x1ac
      [cf82dec0] [c00b05c8] create_proc_entry+0x60/0xac
      [cf82dee0] [c00b23dc] proc_tty_register_driver+0x60/0x98
      [cf82def0] [c016dbd8] tty_register_driver+0x1b4/0x228
      [cf82df20] [c0184d70] uart_register_driver+0x144/0x194
      [cf82df40] [c030a378] ucc_uart_init+0x2c/0x94
      [cf82df50] [c02f21a0] kernel_init+0x98/0x27c
      [cf82dff0] [c000fa74] kernel_thread+0x44/0x60
      
      ^^ The board is using ucc_uart.c and 8250.c, both registered as
         "serial".
      
      This patch fixes two drivers that are using "serial" for driver_name and
      not "ttyS" for dev_name.  Drivers that are using "ttyS" for dev_name, will
      conflict anyway, so we don't bother with these.
      Signed-off-by: NAnton Vorontsov <avorontsov@ru.mvista.com>
      Acked-by: NAlan Cox <alan@redhat.com>
      Acked-By: NTimur Tabi <timur@freescale.com>
      Acked-by: NMaciej W. Rozycki <macro@linux-mips.org>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      4feead71
  2. 12 9月, 2007 1 次提交
  3. 01 8月, 2007 1 次提交
  4. 18 7月, 2007 1 次提交
    • M
      sb1250-duart.c: SB1250 DUART serial support · b45d5279
      Maciej W. Rozycki 提交于
      This is a driver for the SB1250 DUART, a dual serial port implementation
      included in the Broadcom family of SOCs descending from the SiByte SB1250
      MIPS64 chip multiprocessor.  It is a new implementation replacing the
      old-fashioned driver currently present in the linux-mips.org tree.  It
      supports all the usual features one would expect from a(n asynchronous)
      serial driver, including modem line control (as far as hardware supports it
      -- there is edge detection logic missing from the DCD and RI lines and the
      driver does not implement polling of these lines at the moment), the serial
      console, BREAK transmission and reception, including the magic SysRq.  The
      receive FIFO threshold is not maintained though.
      
      The driver was tested with a SWARM board which uses a BCM1250 SOC (which is
      dual MIPS64 CMP) and has both ports of the single DUART implemented wired
      externally.  Both were tested.  Testing included using the ports as
      terminal lines at 1200bps (which is the ports minimum), 115200bps and a
      couple of random speeds inbetween.  The modem lines were verified to
      operate correctly.  No testing was performed with a use as a network
      interface, like with SLIP or PPP.
      Signed-off-by: NMaciej W. Rozycki <macro@linux-mips.org>
      Acked-by: NRalf Baechle <ralf@linux-mips.org>
      Cc: Alan Cox <alan@lxorguk.ukuu.org.uk>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      b45d5279