Commit 16ceda2
amd-xgbe: do not double read link status
The link status is latched low so that momentary link drops
can be detected. Always double-reading the status defeats this
design feature. Only double read if link was already down
This prevents unnecessary duplicate readings of the link status.
Fixes: 4f3b20b ("amd-xgbe: add support for rx-adaptation")
Signed-off-by: Raju Rangoju <Raju.Rangoju@amd.com>
Reviewed-by: Simon Horman <horms@kernel.org>
Link: https://patch.msgid.link/20250701065016.4140707-1-Raju.Rangoju@amd.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>1 parent 103406b commit 16ceda2
2 files changed
+19
-9
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1304 | 1304 | | |
1305 | 1305 | | |
1306 | 1306 | | |
| 1307 | + | |
| 1308 | + | |
| 1309 | + | |
| 1310 | + | |
1307 | 1311 | | |
1308 | 1312 | | |
1309 | 1313 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2746 | 2746 | | |
2747 | 2747 | | |
2748 | 2748 | | |
2749 | | - | |
2750 | | - | |
| 2749 | + | |
2751 | 2750 | | |
2752 | 2751 | | |
2753 | 2752 | | |
| |||
2781 | 2780 | | |
2782 | 2781 | | |
2783 | 2782 | | |
2784 | | - | |
2785 | | - | |
2786 | | - | |
2787 | | - | |
2788 | 2783 | | |
| 2784 | + | |
| 2785 | + | |
| 2786 | + | |
| 2787 | + | |
| 2788 | + | |
| 2789 | + | |
| 2790 | + | |
| 2791 | + | |
| 2792 | + | |
| 2793 | + | |
| 2794 | + | |
| 2795 | + | |
| 2796 | + | |
2789 | 2797 | | |
2790 | 2798 | | |
2791 | 2799 | | |
| |||
2804 | 2812 | | |
2805 | 2813 | | |
2806 | 2814 | | |
2807 | | - | |
2808 | | - | |
2809 | | - | |
| 2815 | + | |
2810 | 2816 | | |
2811 | 2817 | | |
2812 | 2818 | | |
| |||
0 commit comments