Kernel Newbies archive mirror
 help / color / mirror / Atom feed
From: Ayush Singh <ayushdevel1325@gmail.com>
To: kernelnewbies@kernelnewbies.org
Subject: Using net/wan/hdlc with serdev
Date: Thu, 3 Aug 2023 20:54:06 +0530	[thread overview]
Message-ID: <776435cc-1314-22c7-4ff9-88078496b11a@gmail.com> (raw)


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

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.

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?

It would be great if someone could point me to some drivers that use 
Linux internal HDLC implementation.


Ayush Singh


[1]: 
https://git.beagleboard.org/gsoc/greybus/beagleplay-greybus-driver/-/tree/develop

[-- Attachment #1.2: Type: text/html, Size: 1257 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-03 15:26 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-08-03 15:24 Ayush Singh [this message]
2023-08-10 19:10 ` Using net/wan/hdlc with serdev Ayush Singh
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=776435cc-1314-22c7-4ff9-88078496b11a@gmail.com \
    --to=ayushdevel1325@gmail.com \
    --cc=kernelnewbies@kernelnewbies.org \
    /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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).