]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
net/mlx5: Remove broken and unused mlx5_query_mtppse()
authorLi RongQing <lirongqing@baidu.com>
Mon, 15 Jun 2026 14:04:06 +0000 (22:04 +0800)
committerJakub Kicinski <kuba@kernel.org>
Wed, 17 Jun 2026 23:35:33 +0000 (16:35 -0700)
commitb50fa1e07cf875609b9d34c5c8b32dcf11b8b603
tree900bc2a399359beeed7e57aed8066b944467409d
parentefb8763d7bbb40cff4cc55a6b62c3095a038149c
net/mlx5: Remove broken and unused mlx5_query_mtppse()

mlx5_query_mtppse() reads the Event Trigger Pin (MTPPSE) register but
reads the returned arm and mode values from the input buffer 'in'
instead of the output buffer 'out', so it always returns the values
that were written rather than the actual hardware state, making the
query useless.

The function has no in-tree callers. Remove it rather than fix it.

Signed-off-by: Li RongQing <lirongqing@baidu.com>
Reviewed-by: Gal Pressman <gal@nvidia.com>
Link: https://patch.msgid.link/20260615140406.1828-1-lirongqing@baidu.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/mellanox/mlx5/core/mlx5_core.h
drivers/net/ethernet/mellanox/mlx5/core/port.c