[PATCH net-next 1/6] net: stmmac: add platform library

Jose Abreu Jose.Abreu at synopsys.com
Tue Sep 12 00:59:49 PDT 2023


From: Russell King (Oracle) <rmk+kernel at armlinux.org.uk>
Date: Mon, Sep 11, 2023 at 16:28:40

> Add a platform library of helper functions for common traits in the
> platform drivers. Currently, this is setting the tx clock.
> 
> Signed-off-by: Russell King (Oracle) <rmk+kernel at armlinux.org.uk>
> ---
>  drivers/net/ethernet/stmicro/stmmac/Makefile  |  2 +-
>  .../ethernet/stmicro/stmmac/stmmac_plat_lib.c | 29 +++++++++++++++++++
>  .../ethernet/stmicro/stmmac/stmmac_plat_lib.h |  8 +++++

Wouldn't it be better to just call it "stmmac_lib{.c,.h}" in case we need to add
more helpers on the future that are not only for platform-based drivers?

I believe it's also missing the SPDX identifiers?

Thanks,
Jose


More information about the linux-arm-kernel mailing list