[RFC PATCH 0/4] Add support for QMC HDLC and PHY
Andrew Lunn
andrew at lunn.ch
Thu Apr 20 13:41:27 PDT 2023
> I can move to a basic framer abstraction as you suggested. At least:
> - devm_of_framer_optional_get()
> - devm_framer_create()
> - framer_notifier_register() or something similar.
>
> Where do you expect to see this framer abstraction and the pef2256
> framer part ?
> driver/net/wan/framer/, other place ?
That seems like a good location.
> I think driver/net/wan/framer/ can be a good place to start as only HDLC
> will use this abstraction.
> I can use the framer abstraction from the QMC HDLC driver itself or try
> to move it to the HDLC core. Do you think it will be interesting to have
> it move to the HDLC core ?
Having it in the core would be nice. But i don't know that code, so i
cannot say how easy/hard it will be do to. hdlc.c already seems to
have some code for carrier. So you need to be careful not to break
that.
Andrew
More information about the linux-phy
mailing list