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

Marc Kleine-Budde mkl at pengutronix.de
Thu May 22 00:59:55 PDT 2025


On 22.05.2025 16:51:40, Vincent Mailhol wrote:
> On Thu. 22 May 2025 at 15:38, Elaine Zhang <zhangqing at rock-chips.com> wrote:
> >
> > Is new controller:
> > Support CAN and CANFD protocol.
> > Support Dma.
> 
> Please write a more verbose description with proper sentences.
> 
> > Signed-off-by: Elaine Zhang <zhangqing at rock-chips.com>
> 
> 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   |
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20250522/8ac4865a/attachment.sig>


More information about the linux-arm-kernel mailing list