mirror of
git://nv-tegra.nvidia.com/linux-nv-oot.git
synced 2025-12-22 17:25:35 +03:00
nvethernet:change osd_usleep_range with osd_usleep
osd_usleep function using fsleep internally instead of usleep. usleep has backward compatibility issue with andriod in gvs Bug 4921002 Change-Id: Id3a1b5593decf9efbe175ed4490c851072437e71 Signed-off-by: Harsukhwinder Singh <harsukhwinde@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3268621 GVS: buildbot_gerritrpt <buildbot_gerritrpt@nvidia.com> Reviewed-by: svcacv <svcacv@nvidia.com> Reviewed-by: Bhadram Varka <vbhadram@nvidia.com> Reviewed-by: Srinivas Ramachandran <srinivasra@nvidia.com>
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
// SPDX-License-Identifier: GPL-2.0-only
|
// SPDX-License-Identifier: GPL-2.0-only
|
||||||
/* Copyright (c) 2019-2024, NVIDIA CORPORATION & AFFILIATES. All rights reserved */
|
// SPDX-FileCopyrightText: Copyright (c) 2019-2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
|
||||||
|
|
||||||
#include "ether_linux.h"
|
#include "ether_linux.h"
|
||||||
|
|
||||||
@@ -100,11 +100,10 @@ static void osd_udelay(unsigned long long usec)
|
|||||||
* Algorithm: Invokes OSD function to add sleep.
|
* Algorithm: Invokes OSD function to add sleep.
|
||||||
*
|
*
|
||||||
* @param[in] umin: Minimum sleep required in micro seconds.
|
* @param[in] umin: Minimum sleep required in micro seconds.
|
||||||
* @param[in] umax: Maximum sleep required in micro seconds.
|
|
||||||
*/
|
*/
|
||||||
static void osd_usleep_range(unsigned long long umin, unsigned long long umax)
|
static void osd_usleep(unsigned long long usec)
|
||||||
{
|
{
|
||||||
usleep_range(umin, umax);
|
fsleep(usec);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -926,7 +925,7 @@ void ether_assign_osd_ops(struct osi_core_priv_data *osi_core,
|
|||||||
{
|
{
|
||||||
osi_core->osd_ops.ops_log = osd_log;
|
osi_core->osd_ops.ops_log = osd_log;
|
||||||
osi_core->osd_ops.udelay = osd_udelay;
|
osi_core->osd_ops.udelay = osd_udelay;
|
||||||
osi_core->osd_ops.usleep_range = osd_usleep_range;
|
osi_core->osd_ops.usleep = osd_usleep;
|
||||||
osi_core->osd_ops.padctrl_mii_rx_pins = ether_padctrl_mii_rx_pins;
|
osi_core->osd_ops.padctrl_mii_rx_pins = ether_padctrl_mii_rx_pins;
|
||||||
#ifdef OSI_DEBUG
|
#ifdef OSI_DEBUG
|
||||||
osi_core->osd_ops.printf = osd_core_printf;
|
osi_core->osd_ops.printf = osd_core_printf;
|
||||||
|
|||||||
Reference in New Issue
Block a user