mirror of
https://github.com/torvalds/linux.git
synced 2026-05-28 17:13:52 +02:00
net: macb: fix use of at91_default_usrio without CONFIG_OF
If CONFIG_OF is not enabled, at91_default_usrio is used undeclared in
gem_default_config. Move at91_default_usrio back above the CONFIG_OF
section where macb_default_usrio used to be, so that it is unconditionally
defined and defined prior to any of the users.
Reported-by: kernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202603280028.wQjUrIvv-lkp@intel.com/
Reported-by: Jiawen Wu <jiawenwu@trustnetic.com>
Closes: https://lore.kernel.org/all/06a701dcc014$86def5b0$949ce110$@trustnetic.com/
Fixes: a17871778e ("net: macb: rename macb_default_usrio to at91_default_usrio as not all platforms have mii mode control in usrio")
Signed-off-by: Conor Dooley <conor.dooley@microchip.com>
Link: https://patch.msgid.link/20260331-enroll-sensation-50901318a419@spud
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
This commit is contained in:
parent
a77fb1ace4
commit
cee10a01e2
|
|
@ -4949,6 +4949,13 @@ static int macb_init(struct platform_device *pdev,
|
|||
return macb_init_dflt(pdev);
|
||||
}
|
||||
|
||||
static const struct macb_usrio_config at91_default_usrio = {
|
||||
.mii = MACB_BIT(MII),
|
||||
.rmii = MACB_BIT(RMII),
|
||||
.rgmii = GEM_BIT(RGMII),
|
||||
.clken = MACB_BIT(CLKEN),
|
||||
};
|
||||
|
||||
#if defined(CONFIG_OF)
|
||||
/* 1518 rounded up */
|
||||
#define AT91ETHER_MAX_RBUFF_SZ 0x600
|
||||
|
|
@ -5523,13 +5530,6 @@ static int eyeq5_init(struct platform_device *pdev)
|
|||
return ret;
|
||||
}
|
||||
|
||||
static const struct macb_usrio_config at91_default_usrio = {
|
||||
.mii = MACB_BIT(MII),
|
||||
.rmii = MACB_BIT(RMII),
|
||||
.rgmii = GEM_BIT(RGMII),
|
||||
.clken = MACB_BIT(CLKEN),
|
||||
};
|
||||
|
||||
static const struct macb_usrio_config mpfs_usrio = {
|
||||
.tsu_source = 0,
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user