public inbox for kernelnewbies@kernelnewbies.org
 help / color / mirror / Atom feed
From: Ayush Singh <ayushdevel1325@gmail.com>
To: kernelnewbies@kernelnewbies.org
Cc: khc@pm.waw.pl
Subject: Re: Using net/wan/hdlc with serdev
Date: Fri, 11 Aug 2023 00:40:50 +0530	[thread overview]
Message-ID: <3e150f46-d3c8-ea5b-0f84-33cdab963dbf@gmail.com> (raw)
In-Reply-To: <776435cc-1314-22c7-4ff9-88078496b11a@gmail.com>


[-- Attachment #1.1: Type: text/plain, Size: 720 bytes --]

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

[-- Attachment #1.2: Type: text/html, Size: 1187 bytes --]

[-- Attachment #2: Type: text/plain, Size: 170 bytes --]

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

  reply	other threads:[~2023-08-10 19:13 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-08-03 15:24 Using net/wan/hdlc with serdev Ayush Singh
2023-08-10 19:10 ` Ayush Singh [this message]
2023-08-11  6:48   ` Bjørn Mork

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3e150f46-d3c8-ea5b-0f84-33cdab963dbf@gmail.com \
    --to=ayushdevel1325@gmail.com \
    --cc=kernelnewbies@kernelnewbies.org \
    --cc=khc@pm.waw.pl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox