Skip to content

Commit 46faa01

Browse files
pameruosofrank-w
authored andcommitted
net: phy: as21xxx: fix temperature monitor config parameter
The CFG_PARAM/DIRECT temperature monitor parameter is decimal 11 in the AS21xxx firmware, so it must be encoded as 0xb rather than the hexadecimal literal 0x11 used by the upstream define. This value was verified against firmware 1.9.1 during hardware testing: the configuration payload uses { 0x4, 11, 0x4, 0 } and the monitor returns valid samples after configuration and start. The adjacent IPC_CFG_PARAM_DIRECT_SDS_RESTART_AN (0x10) and IPC_CFG_PARAM_DIRECT_WOL (0x12) values are unchanged because they were not verified by this change. Signed-off-by: Pietro Ameruoso <p.ameruoso@live.it>
1 parent f4190b0 commit 46faa01

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/net/phy/as21xxx.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@
110110
#define IPC_CFG_PARAM_DIRECT_DPC_SDS_WAIT_ETH 0x8
111111
#define IPC_CFG_PARAM_DIRECT_WDT 0x9
112112
#define IPC_CFG_PARAM_DIRECT_SDS_RESTART_AN 0x10
113-
#define IPC_CFG_PARAM_DIRECT_TEMP_MON 0x11
113+
#define IPC_CFG_PARAM_DIRECT_TEMP_MON 0xb
114114
#define IPC_CFG_PARAM_DIRECT_WOL 0x12
115115

116116
/* Sub command of CMD_TEMP_MON */

0 commit comments

Comments
 (0)