1. 01 Jul, 2011 4 commits
    • Russ Gorby's avatar
      tty: n_gsm: Added refcount usage to gsm_mux and gsm_dlci structs · 6ab8fba7
      Russ Gorby authored
      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: default avatarRuss Gorby <russ.gorby@intel.com>
      Acked-by: default avatarAlan Cox <alan@linux.intel.com>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
      6ab8fba7
    • Russ Gorby's avatar
      tty: n_gsm: Add raw-ip support · bcd5abe2
      Russ Gorby authored
      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: default avatarRuss Gorby <russ.gorby@intel.com>
      Acked-by: default avatarAlan Cox <alan@linux.intel.com>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
      bcd5abe2
    • Russ Gorby's avatar
      tty: n_gsm: expose gsmtty device nodes at ldisc open time · d50f6dca
      Russ Gorby authored
      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: default avatarRuss Gorby <russ.gorby@intel.com>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
      d50f6dca
    • Tomoya MORINAGA's avatar
      pch_phub: Fix register miss-setting issue · 20ae6d0b
      Tomoya MORINAGA authored
      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: default avatarTomoya MORINAGA <tomoya-linux@dsn.okisemi.com>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
      20ae6d0b
  2. 07 Jun, 2011 7 commits
  3. 06 Jun, 2011 5 commits
  4. 04 Jun, 2011 17 commits
  5. 03 Jun, 2011 7 commits