Skip to content

Commit 2c0756d

Browse files
aakoskinpaulburton
authored andcommitted
MIPS: OCTEON: warn if deprecated link status is being used
Warn if deprecated link status is being used. Signed-off-by: Aaro Koskinen <aaro.koskinen@iki.fi> Signed-off-by: Paul Burton <paul.burton@mips.com> Cc: linux-mips@vger.kernel.org
1 parent 565485b commit 2c0756d

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
* network ports from the rest of the cvmx-helper files.
3232
*/
3333

34+
#include <linux/bug.h>
3435
#include <asm/octeon/octeon.h>
3536
#include <asm/octeon/cvmx-bootinfo.h>
3637

@@ -210,6 +211,9 @@ cvmx_helper_link_info_t __cvmx_helper_board_link_get(int ipd_port)
210211
{
211212
cvmx_helper_link_info_t result;
212213

214+
WARN(!octeon_is_simulation(),
215+
"Using deprecated link status - please update your DT");
216+
213217
/* Unless we fix it later, all links are defaulted to down */
214218
result.u64 = 0;
215219

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
* Helper functions for common, but complicated tasks.
3131
*
3232
*/
33+
#include <linux/bug.h>
3334
#include <asm/octeon/octeon.h>
3435

3536
#include <asm/octeon/cvmx-config.h>
@@ -1116,6 +1117,7 @@ cvmx_helper_link_info_t cvmx_helper_link_get(int ipd_port)
11161117
if (index == 0)
11171118
result = __cvmx_helper_rgmii_link_get(ipd_port);
11181119
else {
1120+
WARN(1, "Using deprecated link status - please update your DT");
11191121
result.s.full_duplex = 1;
11201122
result.s.link_up = 1;
11211123
result.s.speed = 1000;

0 commit comments

Comments
 (0)