1. 13 Oct, 2012 1 commit
  2. 05 Sep, 2012 2 commits
  3. 17 May, 2012 1 commit
  4. 08 Mar, 2012 1 commit
  5. 15 Nov, 2011 1 commit
  6. 24 Aug, 2011 1 commit
  7. 04 Sep, 2010 1 commit
  8. 10 Aug, 2010 3 commits
    • Philippe Langlais's avatar
      U6715 16550A serial driver support · 235dae5d
      Philippe Langlais authored
      UART Features extract from STEricsson U6715 data-sheet (arm926 SoC for mobile phone):
      * Fully compatible with industry standard 16C550 and 16C450 from various
      manufacturers
      * RX and TX 64 byte FIFO reduces CPU interrupts
      * Full double buffering
      * Modem control signals include CTS, RTS, (and DSR, DTR on UART1 only)
      * Automatic baud rate selection
      * Manual or automatic RTS/CTS smart hardware flow control
      * Programmable serial characteristics:
      – Baud rate generation (50 to 3.25M baud)
      – 5, 6, 7 or 8-bit characters
      – Even, odd or no-parity bit generation and detection
      – 1, 1.5 or 2 stop bit generation
      * Independent control of transmit, receive, line status, data set interrupts and FIFOs
      * Full status-reporting capabilities
      * Separate DMA signaling for RX and TX
      * Timed interrupt to spread receive interrupt on known duration
      * DMA time-out interrupt to allow detection of end of reception
      * Carkit pulse coding and decoding compliant with USB carkit control interface [40]
      
      In 16550A auto-configuration, if the fifo size is 64 then it's an U6 16550A port
      Add set_termios hook & export serial8250_do_set_termios to change uart
      clock following baudrate
      Signed-off-by: default avatarPhilippe Langlais <philippe.langlais@stericsson.com>
      Acked-by: default avatarAlan Cox <alan@linux.intel.com>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
      235dae5d
    • Claudio Scordino's avatar
      serial: general fixes in the serial_rs485 structure · 1b633184
      Claudio Scordino authored
      Fix several issues related to the RS485 interface:
      
       - It adds the flag SER_RS485_RTS_BEFORE_SEND that was missing from the
         serial_rs485 structure (even if "delay_rts_before_send" was existing)
      
       - It adds a further "delay_rts_after_send" field for those drivers that
         can have a delay after send (e.g., atmel_serial)
      
       - It fixes the usage of the structure in the atmel_serial driver (where
         "delay_rts_before_send" should be used instead of "delay_rts_after_send").
      Signed-off-by: default avatarClaudio Scordino <claudio@evidence.eu.com>
      Signed-off-by: default avatarBernhard Roth <br@pwrnet.de>
      Cc: Philippe De Muyter <phdm@macqel.be>
      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>
      1b633184
    • John Villalovos's avatar
      serial: fix missing bit coverage of ASYNC_FLAGS · 93e3d582
      John Villalovos authored
      It seems that currently ASYNC_FLAGS is one bit short of covering all the
      bits of the ASYNC user flags.  In particular it does not cover the
      ASYNC_AUTOPROBE bit.
      
      ASYNCB_LAST_USER and ASYNCB_AUTOPROBE are both equal to 15.
      
      Therefore:
      ASYNC_AUTOPROBE = 1000 0000 0000 0000
      ASYNC_FLAGS     = 0111 1111 1111 1111
      
      So ASYNC_FLAGS is not covering the ASYNC_AUTOPROBE bit.
      
      This patch fixes the issue and with the patch the values will be:
      ASYNC_AUTOPROBE = 1000 0000 0000 0000
      ASYNC_FLAGS     = 1111 1111 1111 1111
      
      As a side note, doing a "git grep" I didn't find any use of
      ASYNC_AUTOPROBE or ASYNCB_AUTOPROBE in the kernel, besides this include
      file.
      Signed-off-by: default avatarJohn Villalovos <john.l.villalovos@intel.com>
      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>
      93e3d582
  9. 19 Sep, 2009 1 commit
  10. 11 Jun, 2009 1 commit
    • Jiri Slaby's avatar
      serial: refactor ASYNC_ flags · 70beaed2
      Jiri Slaby authored
      Define ASYNCB_* flags which are bit numbers of the ASYNC_* flags.
      This is useful for {test,set,clear}_bit.
      
      Also convert each ASYNC_% to be (1 << ASYNCB_%) and define masks
      with the macros, not constants.
      
      Tested with:
      #include "PATH_TO_KERNEL/include/linux/serial.h"
      static struct {
              unsigned int new, old;
      } as[] = {
              { ASYNC_HUP_NOTIFY, 0x0001 },
              { ASYNC_FOURPORT, 0x0002 },
      ...
      	{ ASYNC_BOOT_ONLYMCA, 0x00400000 },
              { ASYNC_INTERNAL_FLAGS, 0xFFC00000 }
      };
      ...
              for (a = 0; a < ARRAY_SIZE(as); a++)
                      if (as[a].old != as[a].new)
                              printf("%.8x != %.8x\n", as[a].old, as[a].new);
      Signed-off-by: default avatarJiri Slaby <jirislaby@gmail.com>
      Signed-off-by: default avatarAlan Cox <alan@linux.intel.com>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      70beaed2
  11. 02 Jan, 2009 1 commit
  12. 13 Oct, 2008 1 commit
    • Alan Cox's avatar
      tty: Cris has a nice RS485 ioctl so we should steal it · c26c56c0
      Alan Cox authored
      JP Tosoni observed:
      
      "About a RS485 ioctl: could you consider the attached files which are
       already in the Linux kernel (in include/asm-cris).  They define a
       TIOCSERSETRS485 (ioctl.h), and the data structure (rs485.h)
       with allows to specify timings. Sounds just like what we want ?"
      
      and he's right: sort of. Rework the structure to use flag bits and make the
      time delay a fixed sized field so we don't get 32/64bit problems. Add the ioctls
      to x86 so that people know what to add to their platform of choice.
      Signed-off-by: default avatarAlan Cox <alan@redhat.com>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      c26c56c0
  13. 16 Jul, 2007 1 commit
    • Yinghai Lu's avatar
      serial: convert early_uart to earlycon for 8250 · 18a8bd94
      Yinghai Lu authored
      Beacuse SERIAL_PORT_DFNS is removed from include/asm-i386/serial.h and
      include/asm-x86_64/serial.h.  the serial8250_ports need to be probed late in
      serial initializing stage.  the console_init=>serial8250_console_init=>
      register_console=>serial8250_console_setup will return -ENDEV, and console
      ttyS0 can not be enabled at that time.  need to wait till uart_add_one_port in
      drivers/serial/serial_core.c to call register_console to get console ttyS0.
      that is too late.
      
      Make early_uart to use early_param, so uart console can be used earlier.  Make
      it to be bootconsole with CON_BOOT flag, so can use console handover feature.
      and it will switch to corresponding normal serial console automatically.
      
      new command line will be:
      	console=uart8250,io,0x3f8,9600n8
      	console=uart8250,mmio,0xff5e0000,115200n8
      or
      	earlycon=uart8250,io,0x3f8,9600n8
      	earlycon=uart8250,mmio,0xff5e0000,115200n8
      
      it will print in very early stage:
      	Early serial console at I/O port 0x3f8 (options '9600n8')
      	console [uart0] enabled
      later for console it will print:
      	console handover: boot [uart0] -> real [ttyS0]
      
      Signed-off-by: <yinghai.lu@sun.com>
      Cc: Andi Kleen <ak@suse.de>
      Cc: Bjorn Helgaas <bjorn.helgaas@hp.com>
      Cc: Russell King <rmk@arm.linux.org.uk>
      Cc: Gerd Hoffmann <kraxel@suse.de>
      Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      18a8bd94
  14. 31 Oct, 2005 1 commit
    • Tim Schmielau's avatar
      [PATCH] fix missing includes · 4e57b681
      Tim Schmielau authored
      I recently picked up my older work to remove unnecessary #includes of
      sched.h, starting from a patch by Dave Jones to not include sched.h
      from module.h. This reduces the number of indirect includes of sched.h
      by ~300. Another ~400 pointless direct includes can be removed after
      this disentangling (patch to follow later).
      However, quite a few indirect includes need to be fixed up for this.
      
      In order to feed the patches through -mm with as little disturbance as
      possible, I've split out the fixes I accumulated up to now (complete for
      i386 and x86_64, more archs to follow later) and post them before the real
      patch.  This way this large part of the patch is kept simple with only
      adding #includes, and all hunks are independent of each other.  So if any
      hunk rejects or gets in the way of other patches, just drop it.  My scripts
      will pick it up again in the next round.
      Signed-off-by: default avatarTim Schmielau <tim@physik3.uni-rostock.de>
      Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
      4e57b681
  15. 31 Aug, 2005 1 commit
  16. 16 Jul, 2005 1 commit
  17. 16 Apr, 2005 1 commit
    • Linus Torvalds's avatar
      Linux-2.6.12-rc2 · 1da177e4
      Linus Torvalds authored
      Initial git repository build. I'm not bothering with the full history,
      even though we have it. We can create a separate "historical" git
      archive of that later if we want to, and in the meantime it's about
      3.2GB when imported into git - space that would just make the early
      git days unnecessarily complicated, when we don't have a lot of good
      infrastructure for it.
      
      Let it rip!
      1da177e4