<html data-lt-installed="true">
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
</head>
<body style="padding-bottom: 1px;">
<p>Hello everyone. I have a serdev driver that communicates with a
coprocessor using HDLC [1]. I am currently using my own HDLC
implementation, but someone pointed out to me that I might be able
to use `drivers/net/wan/hdlc` instead. <br>
</p>
<p>However, I am not quite sure how I am supposed to use it. I think
I am supposed to `register_hdlc_protocol` in the serdev probe. The
`hdlc_proto->netif_rx` callback is called when data is
available, and `hdlc_proto->xmit` is called to send data? What
is the format of `skb-data` in rx? <br>
</p>
<p>It would be great if someone could point me to some drivers that
use Linux internal HDLC implementation.<br>
</p>
<p><br>
</p>
<p>Ayush Singh<br>
</p>
<p><br>
</p>
<p>[1]:
<a class="moz-txt-link-freetext" href="https://git.beagleboard.org/gsoc/greybus/beagleplay-greybus-driver/-/tree/develop">https://git.beagleboard.org/gsoc/greybus/beagleplay-greybus-driver/-/tree/develop</a><br>
</p>
</body>
<lt-container></lt-container>
</html>