Skip to content

Commit 318229b

Browse files
3x380Vgregkh
authored andcommitted
MIPS: OCTEON: warn only once if deprecated link status is being used
[ Upstream commit 4c587a9 ] 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> Signed-off-by: Sasha Levin <sashal@kernel.org>
1 parent 5e6d37a commit 318229b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

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
@@ -1100,7 +1100,7 @@ union cvmx_helper_link_info cvmx_helper_link_get(int ipd_port)
11001100
if (index == 0)
11011101
result = __cvmx_helper_rgmii_link_get(ipd_port);
11021102
else {
1103-
WARN(1, "Using deprecated link status - please update your DT");
1103+
WARN_ONCE(1, "Using deprecated link status - please update your DT");
11041104
result.s.full_duplex = 1;
11051105
result.s.link_up = 1;
11061106
result.s.speed = 1000;

0 commit comments

Comments
 (0)