Skip to content

Commit 4c587a9

Browse files
3x380Vtsbogend
authored andcommitted
MIPS: OCTEON: warn only once if deprecated link status is being used
Avoid flooding kernel log with warnings. Fixes: 2c0756d ("MIPS: OCTEON: warn if deprecated link status is being used") Signed-off-by: Ladislav Michl <ladis@linux-mips.org> Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org> Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
1 parent ee9ef11 commit 4c587a9

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

arch/mips/cavium-octeon/executive/cvmx-helper-board.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ union cvmx_helper_link_info __cvmx_helper_board_link_get(int ipd_port)
211211
{
212212
union cvmx_helper_link_info result;
213213

214-
WARN(!octeon_is_simulation(),
214+
WARN_ONCE(!octeon_is_simulation(),
215215
"Using deprecated link status - please update your DT");
216216

217217
/* Unless we fix it later, all links are defaulted to down */

arch/mips/cavium-octeon/executive/cvmx-helper.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1096,7 +1096,7 @@ union cvmx_helper_link_info cvmx_helper_link_get(int ipd_port)
10961096
if (index == 0)
10971097
result = __cvmx_helper_rgmii_link_get(ipd_port);
10981098
else {
1099-
WARN(1, "Using deprecated link status - please update your DT");
1099+
WARN_ONCE(1, "Using deprecated link status - please update your DT");
11001100
result.s.full_duplex = 1;
11011101
result.s.link_up = 1;
11021102
result.s.speed = 1000;

0 commit comments

Comments
 (0)