mirror of
git://nv-tegra.nvidia.com/linux-nv-oot.git
synced 2025-12-22 17:25:35 +03:00
usb: typec: Setting same toggle time is not error
Invoking fusb301_set_toggle_time() with input parameter same as current register value to set toggle time shouldn't be treated as error. This patch is to change message level from dev_err() to dev_info() when above situation is met. Bug 4218496 Signed-off-by: Jim Lin <jilin@nvidia.com> Change-Id: Ieab7cfe8ae8496ca4a5f3b514d9e278479f200d0 Reviewed-on: https://git-master.nvidia.com/r/c/linux-5.10/+/2946869 (cherry picked from commit 2a53cb0010a449ffd5ce6d6afe7f39dc5d020e65) Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2990991 Reviewed-by: svcacv <svcacv@nvidia.com> Reviewed-by: Haotien Hsu <haotienh@nvidia.com> Reviewed-by: WK Tsai <wtsai@nvidia.com> GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
This commit is contained in:
committed by
mobile promotions
parent
68d1ae26d6
commit
5c6720246f
@@ -1,9 +1,22 @@
|
|||||||
// SPDX-License-Identifier: GPL-2.0
|
// SPDX-License-Identifier: GPL-2.0-only
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2021, LGE Inc. All rights reserved.
|
* Copyright (c) 2021, LGE Inc. All rights reserved.
|
||||||
* Copyright (c) 2022-2023, NVIDIA CORPORATION. All rights reserved.
|
*
|
||||||
|
* SPDX-FileCopyrightText: Copyright (c) 2022-2023 NVIDIA CORPORATION & AFFILIATES.
|
||||||
|
* All rights reserved.
|
||||||
|
*
|
||||||
|
* This program is free software; you can redistribute it and/or modify it
|
||||||
|
* under the terms and conditions of the GNU General Public License,
|
||||||
|
* version 2, as published by the Free Software Foundation.
|
||||||
|
*
|
||||||
|
* This program is distributed in the hope it will be useful, but WITHOUT
|
||||||
|
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||||
|
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
|
||||||
|
* more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU General Public License
|
||||||
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <linux/module.h>
|
#include <linux/module.h>
|
||||||
#include <linux/kernel.h>
|
#include <linux/kernel.h>
|
||||||
#include <linux/slab.h>
|
#include <linux/slab.h>
|
||||||
@@ -358,7 +371,7 @@ static int fusb301_set_toggle_time(struct fusb301_chip *chip, u8 toggle_time)
|
|||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
}
|
}
|
||||||
if (toggle_time == chip->dttime) {
|
if (toggle_time == chip->dttime) {
|
||||||
dev_err(cdev, "toggle_time(%d) is not updated\n", toggle_time);
|
dev_info(cdev, "toggle_time(%d) is not updated\n", toggle_time);
|
||||||
return rc;
|
return rc;
|
||||||
}
|
}
|
||||||
rc = fusb301_write_masked_byte(chip->client,
|
rc = fusb301_write_masked_byte(chip->client,
|
||||||
|
|||||||
Reference in New Issue
Block a user