1. 02 7月, 2011 2 次提交
    • R
      tty: n_gsm: Add raw-ip support · bcd5abe2
      Russ Gorby 提交于
      This patch adds the ability to open a network data connection over a mux
      virtual tty channel. This is for modems that support data connections
      with raw IP frames instead of PPP. On high speed data connections this
      eliminates a significant amount of PPP overhead. To use this interface,
      the application must first tell the modem to open a network connection on
      a virtual tty. Once that has been accomplished, the app will issue an
      IOCTL on that virtual tty to create the network interface. The IOCTL will
      return the index of the interface created.
      
      The two IOCTL commands are:
      
          ioctl( fd, GSMIOC_ENABLE_NET );
      
          ioctl( fd, GSMIOC_DISABLE_NET );
      Signed-off-by: NRuss Gorby <russ.gorby@intel.com>
      Acked-by: NAlan Cox <alan@linux.intel.com>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      bcd5abe2
    • R
      tty: n_gsm: expose gsmtty device nodes at ldisc open time · d50f6dca
      Russ Gorby 提交于
      The n_gsm driver being an ldisc, does not provide a convenient method
      e.g. udev to create the tty device nodes automatically when the ldisc
      is opened.
      
      The TTY device nodes are now created via calls to tty_register_device
      from the ldisc open.
      Signed-off-by: NRuss Gorby <russ.gorby@intel.com>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      d50f6dca
  2. 08 6月, 2011 6 次提交
  3. 04 6月, 2011 1 次提交
    • L
      Revert "tty: make receive_buf() return the amout of bytes received" · 55db4c64
      Linus Torvalds 提交于
      This reverts commit b1c43f82.
      
      It was broken in so many ways, and results in random odd pty issues.
      
      It re-introduced the buggy schedule_work() in flush_to_ldisc() that can
      cause endless work-loops (see commit a5660b41: "tty: fix endless
      work loop when the buffer fills up").
      
      It also used an "unsigned int" return value fo the ->receive_buf()
      function, but then made multiple functions return a negative error code,
      and didn't actually check for the error in the caller.
      
      And it didn't actually work at all.  BenH bisected down odd tty behavior
      to it:
        "It looks like the patch is causing some major malfunctions of the X
         server for me, possibly related to PTYs.  For example, cat'ing a
         large file in a gnome terminal hangs the kernel for -minutes- in a
         loop of what looks like flush_to_ldisc/workqueue code, (some ftrace
         data in the quoted bits further down).
      
         ...
      
         Some more data: It -looks- like what happens is that the
         flush_to_ldisc work queue entry constantly re-queues itself (because
         the PTY is full ?) and the workqueue thread will basically loop
         forver calling it without ever scheduling, thus starving the consumer
         process that could have emptied the PTY."
      
      which is pretty much exactly the problem we fixed in a5660b41.
      
      Milton Miller pointed out the 'unsigned int' issue.
      Reported-by: NBenjamin Herrenschmidt <benh@kernel.crashing.org>
      Reported-by: NMilton Miller <miltonm@bga.com>
      Cc: Stefan Bigler <stefan.bigler@keymile.com>
      Cc: Toby Gray <toby.gray@realvnc.com>
      Cc: Felipe Balbi <balbi@ti.com>
      Cc: Greg Kroah-Hartman <gregkh@suse.de>
      Cc: Alan Cox <alan@lxorguk.ukuu.org.uk>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      55db4c64
  4. 27 5月, 2011 1 次提交
  5. 25 5月, 2011 3 次提交
    • A
      drivers/tty/serial/pch_uart.c needs slab.h · 023bc8e7
      Andrew Morton 提交于
      alpha allmodconfig:
      
        drivers/tty/serial/pch_uart.c: In function 'dma_handle_tx':
        drivers/tty/serial/pch_uart.c:873: error: implicit declaration of function 'kzalloc'
        drivers/tty/serial/pch_uart.c:873: warning: assignment makes pointer from integer without a cast
        drivers/tty/serial/pch_uart.c: In function 'pch_uart_init_port':
        drivers/tty/serial/pch_uart.c:1403: warning: assignment makes pointer from integer without a cast
      
      Cc: Alan Cox <alan@lxorguk.ukuu.org.uk>
      Cc: Greg KH <greg@kroah.com>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      023bc8e7
    • D
      arch, mm: filter disallowed nodes from arch specific show_mem functions · 7bf02ea2
      David Rientjes 提交于
      Architectures that implement their own show_mem() function did not pass
      the filter argument to show_free_areas() to appropriately avoid emitting
      the state of nodes that are disallowed in the current context.  This patch
      now passes the filter argument to show_free_areas() so those nodes are now
      avoided.
      
      This patch also removes the show_free_areas() wrapper around
      __show_free_areas() and converts existing callers to pass an empty filter.
      
      ia64 emits additional information for each node, so skip_free_areas_zone()
      must be made global to filter disallowed nodes and it is converted to use
      a nid argument rather than a zone for this use case.
      Signed-off-by: NDavid Rientjes <rientjes@google.com>
      Cc: Russell King <linux@arm.linux.org.uk>
      Cc: Tony Luck <tony.luck@intel.com>
      Cc: Fenghua Yu <fenghua.yu@intel.com>
      Cc: Kyle McMartin <kyle@mcmartin.ca>
      Cc: Helge Deller <deller@gmx.de>
      Cc: James Bottomley <jejb@parisc-linux.org>
      Cc: "David S. Miller" <davem@davemloft.net>
      Cc: Guan Xuetao <gxt@mprc.pku.edu.cn>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      7bf02ea2
    • J
      atmel_serial: keep the platform_device unchanged · 2b348e2f
      Jean-Christophe PLAGNIOL-VILLARD 提交于
      specify the port num via platform_data this will allow to match the clock
      with the plaform_dev staticaly
      Signed-off-by: NJean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
      Acked-by: NAlan Cox <alan@linux.intel.com>
      Cc: Nicolas Ferre <nicolas.ferre@atmel.com>
      Cc: Patrice Vilchez <patrice.vilchez@atmel.com>
      Cc: Hans-Christian Egtvedt <hans-christian.egtvedt@atmel.com>
      Cc: Greg Kroah-Hartman <gregkh@suse.de>
      2b348e2f
  6. 23 5月, 2011 3 次提交
  7. 20 5月, 2011 3 次提交
  8. 19 5月, 2011 2 次提交
  9. 14 5月, 2011 1 次提交
    • J
      n_tracerouter and n_tracesink ldisc additions. · ee4f6b4b
      J Freyensee 提交于
      The n_tracerouter and n_tracesink line discpline drivers use the
      Linux tty line discpline framework to route trace data coming
      from a tty port (say UART for example) to the trace sink line
      discipline driver and to another tty port(say USB).  Those
      these two line discipline drivers can be used together,
      independently from pti.c, they are part of the original
      implementation solution of the MIPI P1149.7, compact JTAG, PTI
      solution for Intel mobile platforms starting with the
      Medfield platform.
      Signed-off-by: NJ Freyensee <james_p_freyensee@linux.intel.com>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      ee4f6b4b
  10. 13 5月, 2011 1 次提交
  11. 12 5月, 2011 1 次提交
    • S
      8250_pci: Add support for the Digi/IBM PCIe 2-port Adapter · aa273ae5
      Scott Kilau 提交于
      Add support to the 8250 PCI serial driver for the Digi/IBM PCIe 2-port Async EIA-232 Adapter.
      
      Oxford Semiconductor produces a 2/4/8 port UART (OXPCIe952/OXPCIe954/OXPCIe958) chip
      called the Tornado, that can be used to create a very simple serial board product.
      The kernel sources currently have just 2 vendors using this chip, which is Oxford and Mainpipe.
      This new Digi/IBM serial product now uses it as well.
      
      Rather than create a long running comment of vendors using the chip, the one changed comment
      in the patch below now just lists "For Oxford Semiconductor Tornado based devices" to be a
      more generic comment for all vendors that end up using the Oxford Tornado chip.
      
      Cc: Michael Reed <mreed10@us.ibm.com>
      Signed-off-by: NScott Kilau <scottk@digi.com>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      aa273ae5
  12. 11 5月, 2011 1 次提交
  13. 10 5月, 2011 1 次提交
  14. 06 5月, 2011 1 次提交
  15. 04 5月, 2011 1 次提交
  16. 30 4月, 2011 2 次提交
  17. 26 4月, 2011 8 次提交
  18. 23 4月, 2011 1 次提交
  19. 20 4月, 2011 1 次提交