diff options
author | Russell King (Oracle) <rmk+kernel@armlinux.org.uk> | 2025-06-18 11:41:14 +0100 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2025-06-19 15:26:01 -0700 |
commit | e3527bf4dc338ebf12488fdec3e7a952bf3db5dd (patch) | |
tree | 1103c4d4d34eb526eb8529ebe20379ebc158d9e5 /scripts/lib/kdoc/kdoc_re.py | |
parent | b1cffac4792b007866f57bd77b4486ad738855da (diff) |
net: stmmac: loongson1: get ls1b resource only once
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@armlinux.org.uk>
Reviewed-by: Simon Horman <horms@kernel.org>
Reviewed-by: Keguang Zhang <keguang.zhang@gmail.com>
Tested-by: Keguang Zhang <keguang.zhang@gmail.com> # on LS1B & LS1C
Link: https://patch.msgid.link/E1uRqEE-004c7M-Go@rmk-PC.armlinux.org.uk
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'scripts/lib/kdoc/kdoc_re.py')
0 files changed, 0 insertions, 0 deletions