mirror of
https://github.com/torvalds/linux.git
synced 2026-07-28 01:55:51 +02:00
net: phy: realtek: replace magic number with register bit macros
Replace magic number with register bit macros. The description of the RTL8211B interrupt register is obtained from publicly available datasheet (RTL8211B(L) Rev. 1.5 Datasheet) Signed-off-by: Aleksander Jan Bajkowski <olek2@wp.pl> Reviewed-by: Daniel Golle <daniel@makrotopia.org> Link: https://patch.msgid.link/20260502092857.156831-1-olek2@wp.pl Signed-off-by: Jakub Kicinski <kuba@kernel.org>
This commit is contained in:
parent
f7622e58e8
commit
052065add1
|
|
@ -40,7 +40,12 @@
|
|||
RTL8201F_ISR_LINK)
|
||||
|
||||
#define RTL821x_INER 0x12
|
||||
#define RTL8211B_INER_INIT 0x6400
|
||||
#define RTL8211B_INER_SPEED BIT(14)
|
||||
#define RTL8211B_INER_DUPLEX BIT(13)
|
||||
#define RTL8211B_INER_LINK_STATUS BIT(10)
|
||||
#define RTL8211B_INER_INIT (RTL8211B_INER_SPEED | \
|
||||
RTL8211B_INER_DUPLEX | \
|
||||
RTL8211B_INER_LINK_STATUS)
|
||||
#define RTL8211E_INER_LINK_STATUS BIT(10)
|
||||
#define RTL8211F_INER_PME BIT(7)
|
||||
#define RTL8211F_INER_LINK_STATUS BIT(4)
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user