9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* [9fans] usb/serial control open
@ 2014-03-23 18:09 erik quanstrom
  2014-03-23 18:34 ` Gorka Guardiola
  0 siblings, 1 reply; 15+ messages in thread
From: erik quanstrom @ 2014-03-23 18:09 UTC (permalink / raw)
  To: 9fans

it seems odd to me that opening the ctl file would
reset some serial parameters.  wouldn't it be better
to leave them alone?

static int
dopen(Usbfs *fs, Fid *fid, int)
{
	ulong path;
	Serialport *p;

	path = fid->qid.path & ~fs->qid;
	p = fs->aux;
	switch(path){		/* BUG: unneeded? */
	case Qdata:
		dsprint(2, "serial, opened data\n");
		break;
	case Qctl:
		dsprint(2, "serial, opened ctl\n");
		if(p->isjtag)
			return 0;
>>		serialctl(p, "l8 i1");	/* default line parameters */
		break;
	}
	return 0;
}

- erik



^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2014-03-24  1:49 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-03-23 18:09 [9fans] usb/serial control open erik quanstrom
2014-03-23 18:34 ` Gorka Guardiola
2014-03-23 18:55   ` erik quanstrom
2014-03-23 19:47     ` Gorka Guardiola
2014-03-23 19:55       ` Gorka Guardiola
2014-03-23 20:32         ` erik quanstrom
2014-03-23 21:08           ` Gorka Guardiola
2014-03-24  1:49             ` erik quanstrom
2014-03-23 21:32           ` Bakul Shah
2014-03-23 21:53             ` erik quanstrom
2014-03-23 22:02               ` Bakul Shah
2014-03-24  0:32                 ` erik quanstrom
2014-03-24  0:41                   ` Bakul Shah
2014-03-23  5:04                     ` lucio
2014-03-23 19:53   ` Gorka Guardiola

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).