1. 02 7月, 2011 4 次提交
    • R
      tty: n_gsm: Added refcount usage to gsm_mux and gsm_dlci structs · 6ab8fba7
      Russ Gorby 提交于
      The gsm_mux is created/destroyed when ldisc is
      opened/closed but clients of the MUX channel devices (gsmttyN)
      may access this structure as long as the TTYs are open.
      For the open, the ldisc open is guaranteed to preceed the TTY open,
      but the close has no such guaranteed ordering. As a result,
      the gsm_mux can be freed in the ldisc close before being accessed
      by one of the TTY clients. This can happen if the ldisc is removed
      while there are open, active MUX channels.
      A similar situation exists for DLCI-0, it is basically a resource
      shared by MUX and DLCI  , and should not be freed while they can
      be accessed
      
      To avoid this, gsm_mux and dlcis now have a reference counter
      ldisc open takes a reference on the mux and all the dlcis
      gsmtty_open takes a reference on the mux, dlci0 and its specific
      dlci. Dropping the last reference initiates the actual free.
      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>
      6ab8fba7
    • 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
    • T
      pch_phub: Fix register miss-setting issue · 20ae6d0b
      Tomoya MORINAGA 提交于
      Register "interrupt delay value" is for GbE which is connected to Bus-m of PCIe.
      However currently, the value is set for Bus-n.
      As a result, the value is not set correctly.
      This patch moves setting the value processing of Bus-n to Bus-m.
      Signed-off-by: NTomoya MORINAGA <tomoya-linux@dsn.okisemi.com>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      20ae6d0b
  2. 08 6月, 2011 7 次提交
  3. 06 6月, 2011 5 次提交
  4. 05 6月, 2011 4 次提交
  5. 04 6月, 2011 20 次提交