1. 24 8月, 2011 7 次提交
    • J
      TTY: remove tty_locked · 906cbe13
      Jiri Slaby 提交于
      We used it really only serial and ami_serial. The rest of the
      callsites were BUG/WARN_ONs to check if BTM is held. Now that we
      pruned tty_locked from both of the real users, we can get rid of
      tty_lock along with __big_tty_mutex_owner.
      Signed-off-by: NJiri Slaby <jslaby@suse.cz>
      Acked-by: NArnd Bergmann <arnd@arndb.de>
      Cc: Alan Cox <alan@linux.intel.com>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      906cbe13
    • J
      TTY: ami_serial, remove BTM from wait_until_sent · eff4b0b9
      Jiri Slaby 提交于
      The same as in "TTY: serial, remove BTM from wait_until_sent" we don't
      need to take BTM in wait_until_sent of ami_serial. Exactly the same
      as serial, ami_serial accesses some "info" members (xmit_fifo_size,
      timeout), but their assignment on other places in the code is not
      protected by BTM anyway.
      
      So the BTM protects nothing here. This removal helps us to get rid of
      tty_locked() and __big_tty_mutex_owner in the following patch. This
      was suggested by Arnd.
      Signed-off-by: NJiri Slaby <jslaby@suse.cz>
      Acked-by: NArnd Bergmann <arnd@arndb.de>
      Cc: Alan Cox <alan@linux.intel.com>
      Cc: Andreas Bombe <aeb@debian.org>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      eff4b0b9
    • J
      TTY: serial, remove tasklet for tty_wakeup · 6a3e492b
      Jiri Slaby 提交于
      tty_wakeup can be called from any context. So there is no need to have
      an extra tasklet for calling that. Hence save some space and remove
      the tasklet completely.
      Signed-off-by: NJiri Slaby <jslaby@suse.cz>
      Cc: Alan Cox <alan@linux.intel.com>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      6a3e492b
    • J
      TTY: msm_serial, remove unneeded console set · e150c4cc
      Jiri Slaby 提交于
      It doesn't make sense to set console to uart_port in console->setup.
      At that time the console is set by uart_add_one_port already.
      
      The call chain looked like:
      uart_add_one_port()
        uport->cons = drv->cons;   <= once
        uart_configure_port()
          register_console()
           console->setup()
             port->cons = co;      <= second time
      Signed-off-by: NJiri Slaby <jslaby@suse.cz>
      Cc: Alan Cox <alan@linux.intel.com>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      e150c4cc
    • J
      TTY: serial, remove BTM from wait_until_sent · 1f33a51d
      Jiri Slaby 提交于
      During the BKL removal process, the BKL was switched to tty_lock
      (BTM). Now we should start pruning the BTM further. Let's start with
      wait_until_sent of the serial layer. This will allow us to switch to
      the tty port helpers and thus clean it up much.
      
      In wait_until_sent there are some uport members accessed, but neither
      of them is protected by BTM at the location they are set ('=>' means
      function call):
      * uport->fifosize (set in tty_ioctl => uart_ioctl => uart_set_info)
      * uport->type (set in add_one_port prior to tty_register_device)
      * uport->timeout (set usually in tty_ioctl => tty_mode_ioctl =>
        tty_set_termios => uart_set_termios => uart_change_speed =>
        uport->ops->set_termios => uart_update_timeout)
      * call to uport->ops->tx_empty()
      
      If the tx_empty hook needs some lock to protect accesses to registers,
      it should take &uport->lock spinlock like 8250 does. Otherwise there
      still might be races e.g. with ISRs.
      
      This should also fix the issue Andreas is seeing (BTM in comparison to
      BKL doesn't have any hidden functionality like unlocking during
      sleeping).
      Signed-off-by: NJiri Slaby <jslaby@suse.cz>
      References: https://lkml.org/lkml/2011/5/25/562
      Cc: Alan Cox <alan@linux.intel.com>
      Acked-by: NArnd Bergmann <arnd@arndb.de>
      Cc: Andreas Bombe <aeb@debian.org>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      1f33a51d
    • E
      drivers/tty/synclink: remove double comment · ae8dbd3e
      Edwin van Vliet 提交于
      Redundant comment line was removed
      Signed-off-by: NEdwin van Vliet <edwin@cheatah.nl>
      Reviewed-by: NJesper Juhl <jj@chaosbits.net>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      ae8dbd3e
    • T
      tty/powerpc: introduce the ePAPR embedded hypervisor byte channel driver · dcd83aaf
      Timur Tabi 提交于
      The ePAPR embedded hypervisor specification provides an API for "byte
      channels", which are serial-like virtual devices for sending and receiving
      streams of bytes.  This driver provides Linux kernel support for byte
      channels via three distinct interfaces:
      
      1) An early-console (udbg) driver.  This provides early console output
      through a byte channel.  The byte channel handle must be specified in a
      Kconfig option.
      
      2) A normal console driver.  Output is sent to the byte channel designated
      for stdout in the device tree.  The console driver is for handling kernel
      printk calls.
      
      3) A tty driver, which is used to handle user-space input and output.  The
      byte channel used for the console is designated as the default tty.
      Signed-off-by: NTimur Tabi <timur@freescale.com>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      dcd83aaf
  2. 08 8月, 2011 1 次提交
  3. 04 8月, 2011 1 次提交
    • G
      dt: remove of_alias_get_id() reference · 9e191b22
      Grant Likely 提交于
      of_alias_get_id() is broken and being reverted.  Remove the reference
      to it and replace with a single incrementing id number.
      
      There is no risk of regression here on the imx driver since the imx
      change to use of_alias_get_id() is commit 22698aa2, "serial/imx: add
      device tree probe support" which is new for v3.1, and it won't get
      used unless CONFIG_OF is enabled and the board is booted using a
      device tree.  A single incrementing integer is sufficient for now.
      Signed-off-by: NGrant Likely <grant.likely@secretlab.ca>
      Acked-by: NShawn Guo <shawn.guo@linaro.org>
      9e191b22
  4. 27 7月, 2011 3 次提交
  5. 20 7月, 2011 2 次提交
  6. 19 7月, 2011 3 次提交
  7. 18 7月, 2011 2 次提交
    • N
      ARM: mach-s3c2400: delete · 632b7cf6
      Nicolas Pitre 提交于
      On Tue, 28 Jun 2011, Ben Dooks wrote:
      
      > On Tue, Jun 28, 2011 at 11:22:57PM +0200, Arnd Bergmann wrote:
      >
      > > On a related note, what about mach-s3c2400? It seems to be even more
      > > incomplete.
      >
      > Probably the same fate awaits that. It is so old that there's little
      > incentive to do anything with it.
      
      So out it goes as well.
      
      The PORT_S3C2400 definition in include/linux/serial_core.h is left there
      to prevent a reuse of the same number for another port type.
      Signed-off-by: NNicolas Pitre <nicolas.pitre@linaro.org>
      Acked-by: NArnd Bergmann <arnd@arndb.de>
      632b7cf6
    • N
      ARM: mach-s3c24a0: delete · af0e060e
      Nicolas Pitre 提交于
      Commit bcae8aeb "[ARM] S3C24A0: Initial architecture support files"
      brought in a bunch of files while explicitly leaving out the corresponding
      Kconfig entry, stating that the series is not complete.
      
      More than 2.5 years later, the support for this has not seen any progress.
      This is therefore dead code.  If someone wants to revive this code, it is
      always possible to retrieve it from the Git repository.
      Signed-off-by: NNicolas Pitre <nicolas.pitre@linaro.org>
      Acked-by: NBen Dooks <ben-linux@fluff.org>
      Acked-by: NArnd Bergmann <arnd@arndb.de>
      af0e060e
  8. 10 7月, 2011 1 次提交
  9. 09 7月, 2011 4 次提交
  10. 07 7月, 2011 1 次提交
  11. 04 7月, 2011 1 次提交
  12. 02 7月, 2011 12 次提交
  13. 01 7月, 2011 2 次提交