2009/5/16 Daniel Ribeiro <[email protected]>:
> Use dlci lines as device numbers. No mapping, use a standard from the
> kernel so userspace doesnt need to be different between the phones.

i think mapping in moto code is to get same device numbers for different dlcis.
so if we remove mapping, device numbers _would_ be different and
we should handle this in userspace.

> Same as AT lines? :)

AFAIK, mux driver should know, which type dlci is:


if (iscmdtty[line]) {
  TS0710_DEBUGSTR(&d_buf[1], c);
  TS0710_DEBUG("CMDTAG");
  d_buf[0] = CMDTAG;
} else {
  TS0710_DEBUG("DATATAG");
  d_buf[0] = DATATAG;
}


maby this can be somehow detectded from bp.

> If BP does not return an error on an invalid DLCI open, then we need to
> pass some platform_data. If it returns an error, then its not needed.

ok

> just the open() is enough atm. But you can fake the open() anyway, you
> just have to send the data to BP so it thinks that the line was opened.

yep. we can just open all channels on initialisation. but see below.

> Do nothing to warn bp about open()/close(). Make it fully virtual, let
> bp think that all the lines are always opened.

ok. this looks good to prevent bp from panic, but is this correct way?


-- 
 wbr, Ilya
 ICQ: none, Jabber: [email protected]

Reply via email to