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

Commit c132b492 authored by Sujeev Dias's avatar Sujeev Dias
Browse files

mhi: core: fix 32-bit compilation errors



Fix compile errors related to arm32 platforms.

CRs-Fixed: 2378639
Change-Id: I6fd41673ff90a6902514d26d5af9e190d171c7a9
Signed-off-by: default avatarSujeev Dias <sdias@codeaurora.org>
parent 71f9600f
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
/* SPDX-License-Identifier: GPL-2.0-only */
/* Copyright (c) 2018, The Linux Foundation. All rights reserved. */
/* Copyright (c) 2018-2019, The Linux Foundation. All rights reserved. */

#ifndef _MHI_INT_H
#define _MHI_INT_H
@@ -212,7 +212,7 @@ extern struct bus_type mhi_bus_type;
#define BHIE_RXVECSTATUS_STATUS_ERROR (0x03)

/* convert ticks to micro seconds by dividing by 19.2 */
#define TIME_TICKS_TO_US(x) (((x) * 10) / 192)
#define TIME_TICKS_TO_US(x) (div_u64((x) * 10, 192))

struct mhi_event_ctxt {
	u32 reserved : 8;
@@ -324,7 +324,7 @@ enum mhi_cmd_type {
	| (ieot << 9) | (ieob << 8) | chain)

/* rsc transfer descriptor macros */
#define MHI_RSCTRE_DATA_PTR(ptr, len) ((len << 48) | ptr)
#define MHI_RSCTRE_DATA_PTR(ptr, len) (((u64)len << 48) | ptr)
#define MHI_RSCTRE_DATA_DWORD0(cookie) (cookie)
#define MHI_RSCTRE_DATA_DWORD1 (MHI_PKT_TYPE_COALESCING << 16)