Re: Using net/wan/hdlc with serdev

Ayush Singh <[email protected]>
Newsgroups gmane.linux.kernel.kernelnewbies
Message-ID <[email protected]>
So after some more looking around in the code, I think the workflow is 
quite a bit different than what I thought in the previous mail. I think 
I am supposed to allocate hdlc device using `alloc_hdlcdev` in the 
`serdev->probe` and then implementing `hdlc->xmit` to send data over UART.

But well, I am not sure how to create an HDLC frame? Is there a helper 
that creates HDLC frame skbuff for me? Or maybe the hdlc implementation 
is simply not designed to be used for Asynchronous framing [1]. It would 
be great if someone could explain how to use this HDLC module or point 
to some resource I might have missed.


Ayush Singh


[1]: 
https://en.wikipedia.org/wiki/High-Level_Data_Link_Control#Asynchronous_framing

_______________________________________________
Kernelnewbies mailing list
[email protected]
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.