Skip to content

Commit

Permalink
fix MPFS_ETHMAC_LP/HPWORK flags
Browse files Browse the repository at this point in the history
Set HPWORK as default workqueue for eth ISR work
  • Loading branch information
jnippula committed Dec 13, 2023
1 parent 8e170d2 commit aa09a94
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
14 changes: 14 additions & 0 deletions arch/risc-v/src/mpfs/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -852,6 +852,20 @@ endchoice # GMAC speed

endif # !MPFS_MAC_AUTONEG

config MPFS_ETHMAC_HPWORK
bool "Use HP workqueue"
default n
depends on MPFS_ETHMAC
---help---
Select HPWORK workqueue for eth ISR work

config MPFS_ETHMAC_LPWORK
bool "Use LP workqueue"
default n
depends on MPFS_ETHMAC
---help---
Select LPWORK workqueue for eth ISR work

config MPFS_ETHMAC_MDC_CLOCK_SOURCE_HZ
int "MDC Clock Source (Hz)"
default 125000000
Expand Down
2 changes: 1 addition & 1 deletion arch/risc-v/src/mpfs/mpfs_ethernet.c
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@
# elif defined(CONFIG_MPFS_ETHMAC_LPWORK)
# define ETHWORK LPWORK
# else
# define ETHWORK LPWORK
# define ETHWORK HPWORK
# endif
#endif

Expand Down

0 comments on commit aa09a94

Please sign in to comment.