mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-12 21:57:43 +00:00
422d97b8b0
This reverts commit 710d7fbe21
.
Re-instate the code so subsequent commits can clean it up and get it
building properly.
Signed-off-by: Chris Packham <chris.packham@alliedtelesis.co.nz>
Link: https://lore.kernel.org/r/20200205001116.14096-3-chris.packham@alliedtelesis.co.nz
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
30 lines
627 B
C
30 lines
627 B
C
// SPDX-License-Identifier: GPL-2.0
|
|
/*
|
|
* This file is based on code from OCTEON SDK by Cavium Networks.
|
|
*
|
|
* Copyright (c) 2003-2007 Cavium Networks
|
|
*/
|
|
|
|
#include <linux/phy.h>
|
|
#include <linux/kernel.h>
|
|
#include <linux/netdevice.h>
|
|
#include <linux/ratelimit.h>
|
|
#include <net/dst.h>
|
|
|
|
#include "octeon-ethernet.h"
|
|
#include "ethernet-defines.h"
|
|
#include "ethernet-util.h"
|
|
#include "ethernet-mdio.h"
|
|
|
|
int cvm_oct_sgmii_open(struct net_device *dev)
|
|
{
|
|
return cvm_oct_common_open(dev, cvm_oct_link_poll);
|
|
}
|
|
|
|
int cvm_oct_sgmii_init(struct net_device *dev)
|
|
{
|
|
cvm_oct_common_init(dev);
|
|
|
|
/* FIXME: Need autoneg logic */
|
|
return 0;
|
|
}
|