Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit eac3f0b6 authored by Camera Software Integration's avatar Camera Software Integration Committed by Gerrit - the friendly Code Review server
Browse files

Merge "msm: camera: ope: Fix for 32-bit kernel" into camera-kernel.lnx.4.0

parents c450d2e4 deb0914e
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
// SPDX-License-Identifier: GPL-2.0-only
/*
 * Copyright (c) 2017-2021, The Linux Foundation. All rights reserved.
 * Copyright (c) 2017-2022, The Linux Foundation. All rights reserved.
 */

#include <linux/uaccess.h>
@@ -19,6 +19,7 @@
#include <media/cam_defs.h>
#include <media/cam_ope.h>
#include <media/cam_cpas.h>
#include <linux/math64.h>

#include "cam_sync_api.h"
#include "cam_packet_util.h"
@@ -625,7 +626,7 @@ static bool cam_ope_check_req_delay(struct cam_ope_ctx *ctx_data,

	if (ts_ns - req_time <
		((ctx_data->req_timer_timeout -
			ctx_data->req_timer_timeout / 10) * 1000000)) {
			div_u64(ctx_data->req_timer_timeout, 10)) * 1000000)) {
		CAM_INFO(CAM_OPE, "ctx: %d, ts_ns : %llu",
		ctx_data->ctx_id, ts_ns);
		cam_ope_req_timer_reset(ctx_data);