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
This commit is contained in:
parent
565485b8b5
commit
2c0756d306
|
@ -31,6 +31,7 @@
|
|||
* network ports from the rest of the cvmx-helper files.
|
||||
*/
|
||||
|
||||
#include <linux/bug.h>
|
||||
#include <asm/octeon/octeon.h>
|
||||
#include <asm/octeon/cvmx-bootinfo.h>
|
||||
|
||||
|
@ -210,6 +211,9 @@ cvmx_helper_link_info_t __cvmx_helper_board_link_get(int ipd_port)
|
|||
{
|
||||
cvmx_helper_link_info_t result;
|
||||
|
||||
WARN(!octeon_is_simulation(),
|
||||
"Using deprecated link status - please update your DT");
|
||||
|
||||
/* Unless we fix it later, all links are defaulted to down */
|
||||
result.u64 = 0;
|
||||
|
||||
|
|
|
@ -30,6 +30,7 @@
|
|||
* Helper functions for common, but complicated tasks.
|
||||
*
|
||||
*/
|
||||
#include <linux/bug.h>
|
||||
#include <asm/octeon/octeon.h>
|
||||
|
||||
#include <asm/octeon/cvmx-config.h>
|
||||
|
@ -1116,6 +1117,7 @@ cvmx_helper_link_info_t cvmx_helper_link_get(int ipd_port)
|
|||
if (index == 0)
|
||||
result = __cvmx_helper_rgmii_link_get(ipd_port);
|
||||
else {
|
||||
WARN(1, "Using deprecated link status - please update your DT");
|
||||
result.s.full_duplex = 1;
|
||||
result.s.link_up = 1;
|
||||
result.s.speed = 1000;
|
||||
|
|
Loading…
Reference in New Issue