Re: Hardware initialization in line discipline - ldisc_open() ?

From: Alan Cox
Date: Thu Oct 15 2009 - 17:31:24 EST


> Since the packet format is the same it would be easy to reuse the
> normal ldisc receive path for the handshake, however the ldisc would
> not see the response until after ldisc_open() has succeeded.

Indeed.

> Can you suggest a solution to this problem? Ideally one that can be
> contained in the ldisc.

Similar problem with the GSM mux I've been working on. I've gone for
making the ldisc attach always work and then kicking things off via an
ioctl which sets the desired mode/parameters/encoding.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/