Thread (9 messages) 9 messages, 4 authors, 2025-05-22

Re: [PATCH v3 2/3] net: can: rockchip: add can for RK3576 Soc

From: Marc Kleine-Budde <mkl@pengutronix.de>
Date: 2025-05-22 08:00:15
Also in: linux-arm-kernel, linux-can, linux-rockchip, lkml

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   |

Attachments

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help