netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Dan Williams <dcbw@redhat.com>
To: "Rémi Denis-Courmont" <remi.denis-courmont@nokia.com>
Cc: ext Marcel Holtmann <marcel@holtmann.org>,
	Alan Cox <alan@lxorguk.ukuu.org.uk>,
	Oliver Neukum <oliver@neukum.org>,
	"netdev@vger.kernel.org" <netdev@vger.kernel.org>,
	"linux-usb@vger.kernel.org" <linux-usb@vger.kernel.org>
Subject: Re: [PATCH] USB host CDC Phonet network interface driver
Date: Thu, 23 Jul 2009 10:34:52 -0400	[thread overview]
Message-ID: <1248359692.774.22.camel@localhost.localdomain> (raw)
In-Reply-To: <200907221407.29275.remi.denis-courmont@nokia.com>

On Wed, 2009-07-22 at 14:07 +0300, Rémi Denis-Courmont wrote:
> On Wednesday 22 July 2009 12:15:34 ext Marcel Holtmann wrote:
> > Hi Alan,
> >
> > > > The AT stuff is really problematic. Look at the hoops ISDN and software
> > > > modem drivers go through to emulate AT commands. I know even of a
> > > > CDC-ACM modem which can't deal with AT commands inline (that's within
> > > > spec). It seems to me we should have a modem API in kernel.
> > >
> > > For devices which don't deal in AT commands probably but for devices
> > > whose firmware provides an AT command interface over serial I would
> > > disagree.
> >
> > I fully agree here. Even if you think you get AT commands under control,
> > you really won't in the end. That standard is so wildly mis-interpreted
> > that it is not even funny anymore.
> 
> Possibly. Does anyone known of any "species" bypassing AT commands entirely, 
> other than Phonet? as far as GPRS is concerned?

There are any number of devices that expose only one AT port (which of
course gets used by PPP for data) and then a proprietary port.  The
proprietary port usually uses a custom USB protocol that can also handle
SMS, status, RSSI, etc while the AT/PPP port is being used by ppp.

So if that's the case for phonet, maybe you just want to provide either
(a) documentation of the setup/status/sms/etc protocols, or (b) a shim
library implementation for them that handles communication with the
device itself.

But IMHO, the call setup stuff is probably better done from userspace.
It's a really hard API to abstract.  I guess you could write a netlink
API for it like we have for 802.11, but with GSM/CDMA the standards are
so widely ignored that it's just going to be impossible to get a stable
kernel API for anything like this.  The actual logic and higher-level
stuff has gotta be in userspace, while the low-level communication
channel bits (serial, USB, phonet, etc) should live in the kernel.

Dan


  reply	other threads:[~2009-07-23 14:34 UTC|newest]

Thread overview: 37+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-07-21 11:58 [PATCH] USB host CDC Phonet network interface driver Rémi Denis-Courmont
2009-07-21 13:52 ` Dan Williams
     [not found]   ` <1248184373.6558.15.camel-bi+AKbBUZKY6gyzm1THtWbp2dZbC/Bob@public.gmane.org>
2009-07-21 15:34     ` Marcel Holtmann
2009-07-22  8:37     ` Rémi Denis-Courmont
     [not found]       ` <200907221137.07005.remi.denis-courmont-xNZwKgViW5gAvxtiuMwx3w@public.gmane.org>
2009-07-22  8:40         ` Alan Cox
2009-07-22  8:41         ` Oliver Neukum
2009-07-22  9:11           ` Alan Cox
2009-07-22  9:15             ` Marcel Holtmann
2009-07-22 11:07               ` Rémi Denis-Courmont
2009-07-23 14:34                 ` Dan Williams [this message]
     [not found]                   ` <1248359692.774.22.camel-bi+AKbBUZKY6gyzm1THtWbp2dZbC/Bob@public.gmane.org>
2009-07-24 12:58                     ` Rémi Denis-Courmont
2009-07-24 12:01               ` Oliver Neukum
2009-07-24 12:14                 ` Rémi Denis-Courmont
2009-07-24 12:31                   ` Oliver Neukum
     [not found]                     ` <200907241431.08858.oliver-GvhC2dPhHPQdnm+yROfE0A@public.gmane.org>
2009-07-24 12:48                       ` Alan Cox
     [not found]                         ` <20090724134805.0d9496be-qBU/x9rampVanCEyBjwyrvXRex20P6io@public.gmane.org>
2009-07-24 13:00                           ` Rémi Denis-Courmont
2009-07-24 14:12                           ` Oliver Neukum
2009-07-24 14:19                             ` Alan Cox
2009-07-24 16:59                               ` Oliver Neukum
2009-07-24 18:00                             ` Marcel Holtmann
2009-07-24 23:19                               ` Alan Cox
2009-07-27 17:36                               ` Dan Williams
2009-07-27 17:59                                 ` Marcel Holtmann
  -- strict thread matches above, loose matches on Subject: below --
2009-07-17  9:56 Rémi Denis-Courmont
2009-07-17 13:47 ` Oliver Neukum
     [not found]   ` <200907171547.39815.oliver-GvhC2dPhHPQdnm+yROfE0A@public.gmane.org>
2009-07-20  6:35     ` Rémi Denis-Courmont
     [not found]       ` <200907200935.19103.remi.denis-courmont-xNZwKgViW5gAvxtiuMwx3w@public.gmane.org>
2009-07-20  6:41         ` Oliver Neukum
2009-07-20 14:55       ` David Miller
2009-07-21 19:42 ` David Miller
     [not found]   ` <20090721.124217.03326492.davem-fT/PcQaiUtIeIZ0/mPfg9Q@public.gmane.org>
2009-07-21 20:14     ` Marcel Holtmann
2009-07-21 20:18       ` David Miller
     [not found]         ` <20090721.131816.116617596.davem-fT/PcQaiUtIeIZ0/mPfg9Q@public.gmane.org>
2009-07-21 20:20           ` Marcel Holtmann
2009-07-21 20:20           ` David Miller
2009-07-22  6:57         ` Rémi Denis-Courmont
2009-07-15 13:59 Rémi Denis-Courmont
     [not found] ` <1247666341-7121-1-git-send-email-remi.denis-courmont-xNZwKgViW5gAvxtiuMwx3w@public.gmane.org>
2009-07-15 14:20   ` Oliver Neukum
2009-07-16  7:12     ` Rémi Denis-Courmont

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1248359692.774.22.camel@localhost.localdomain \
    --to=dcbw@redhat.com \
    --cc=alan@lxorguk.ukuu.org.uk \
    --cc=linux-usb@vger.kernel.org \
    --cc=marcel@holtmann.org \
    --cc=netdev@vger.kernel.org \
    --cc=oliver@neukum.org \
    --cc=remi.denis-courmont@nokia.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).