On 22.05.2025 16:51:40, Vincent Mailhol wrote:
On Thu. 22 May 2025 at 15:38, Elaine Zhang [off-list ref] wrote:
quoted
Is new controller:
Support CAN and CANFD protocol.
Support Dma.
Please write a more verbose description with proper sentences.
quoted
Signed-off-by: Elaine Zhang <redacted>
You need to break this into several patches and several files.
You can not put everything in rockchip_canfd-core.c. Create a
rockchip_rk3568.c in which you will move all the already existing
rk3568 specific functions. Then, in another patch, create a
rockchip_rk3576.c that will contain all the new code. Also adjust the
headers accordingly.
I think the first patch modifying driver code should be to add the
callbacks to rockchip_canfd-core.c and move the rk3568 code to it. The
second patch to add the rk3576 without DMA and then add DMA mode. Maybe
even split more. Have a look at the series where I added the original
driver for an idea how to add the support incremental.
regards,
Marc
--
Pengutronix e.K. | Marc Kleine-Budde |
Embedded Linux | https://www.pengutronix.de |
Vertretung Nürnberg | Phone: +49-5121-206917-129 |
Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-9 |