[PATCH net-next 2/2] net: stmmac: loongson1: get ls1b resource only once

Simon Horman horms at kernel.org
Wed Jun 18 11:33:51 PDT 2025


On Wed, Jun 18, 2025 at 11:41:14AM +0100, Russell King (Oracle) wrote:
> ls1b_dwmac_syscon_init() was getting the stmmac iomem resource to detect
> which GMAC block is being used. Move this to a separate setup() function
> that only runs at probe time, so it can sensibly behave with an
> unrecognised resource adress. Use this to set a MAC index (id) which is
> then used in place of testing the base address.
> 
> Signed-off-by: Russell King (Oracle) <rmk+kernel at armlinux.org.uk>

Reviewed-by: Simon Horman <horms at kernel.org>




More information about the linux-arm-kernel mailing list