mirror of
git://nv-tegra.nvidia.com/linux-nv-oot.git
synced 2025-12-23 09:42:19 +03:00
nvidia: drivers: fix linux-5.7-rc5 build
Fix build linux-5.7-rc5 errors including following: - change timespec to timespec64. replace getnstimeofday with ktime_get_ts64 - replace usage of macro FIELD_SIZEOF with sizeof_field in ethtool.c nvethernet and eqos files. - support 2 arguments for of_get_phy_mode call bug 200617764 Change-Id: I46067d7d36d08ee9556b2722e9ccec707b8853d4 Signed-off-by: Bitan Biswas <bbiswas@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvidia/+/2347244 Tested-by: mobile promotions <svcmobile_promotions@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
committed by
Revanth Kumar Uppala
parent
c6b2d05d26
commit
0e7b230bab
@@ -14,6 +14,7 @@
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#include <linux/version.h>
|
||||
#include "ether_linux.h"
|
||||
|
||||
/**
|
||||
@@ -3576,7 +3577,15 @@ rst_clk_fail:
|
||||
static int ether_parse_phy_dt(struct ether_priv_data *pdata,
|
||||
struct device_node *node)
|
||||
{
|
||||
#if KERNEL_VERSION(5, 5, 0) > LINUX_VERSION_CODE
|
||||
pdata->interface = of_get_phy_mode(node);
|
||||
#else
|
||||
int err;
|
||||
|
||||
err = of_get_phy_mode(node, &pdata->interface);
|
||||
if (err < 0)
|
||||
pr_debug("%s(): phy interface not found\n", __func__);
|
||||
#endif
|
||||
|
||||
pdata->phy_node = of_parse_phandle(node, "phy-handle", 0);
|
||||
if (pdata->phy_node == NULL)
|
||||
|
||||
Reference in New Issue
Block a user