Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp2848514lqp; Mon, 25 Mar 2024 10:56:02 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXCZtuh0KrltAo2zz1gTFf9Ad/oEWYx1QyQS9WmPkPyJNHzUX3JhOkHjSa/6wXF23lecgjTfSnRFSVRDEFKi8gQYwQXhocrggNYKhyv+w== X-Google-Smtp-Source: AGHT+IGyf9tQAIgVExHI/cbnXQuiKHAYn/AjEzn8eWGOVYW3NbeFTmh0pNzwkbiTkbefHEKlFcR2 X-Received: by 2002:a17:90a:c907:b0:2a0:6a35:55fc with SMTP id v7-20020a17090ac90700b002a06a3555fcmr5570252pjt.5.1711389362273; Mon, 25 Mar 2024 10:56:02 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711389362; cv=pass; d=google.com; s=arc-20160816; b=gVgH8S1eMYWvXuFHPFqnHnBXdt1bBZQ3V4tZiMBG2Nq6yjkhoQ8hx9qXsCuf+dsRSj TxLE6unOWnMm165dnvQCr1tX6QDAxrtboy2Tk1dAqS8fU9Y8g/XZjge9zh6eCa4YmJcf Tl17r7YVqUDkOIaeswDoevoptWSIKgWFC3AuEGJJr6pgVfKAihd95ond/vASTlsKQgKs RfDUYWmxhoFWc3V01S3ndSUHZnTChryWplPFb6XTSkeD5DiTlVNIIxodu0sbczxTbiCj 5sDU8Wo2tuTbEyayCQ7/xqXyLQXBB7VKyM7+sJGbcNXmsD1WXDrGluoMFnthYbx3Y8sY o4Jw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=TuY6VETr0CDU+pGqpyrVp2v9Y506MoJZo3FRapPogA8=; fh=H5W7LSRqKp3WTJ0erkSSi9UulL/fg1YeUMn6vpI3VDE=; b=lKRIFH0S7MKfasjd8JXWc60E5eT7NsPL9ZhwZmzFiVjTdKGo+dQblzw6vPIT1bAS/P +vB6lTdCe/ZUALfVCfUTolq6A3CueWYzxuhYsYZd/5H1PJ5tcVQ642asrknH5AfXbgO3 /nTmozJMuyc9aUM5eF77g+M/6riSqfdjGFJ0f6c77C4zvFxxSJa+fbRpmwa6Ld7UMtS+ F92L0Bu5frHlVmMInmrEacNkI5gsUlVawob1F2hRvtSExMZrEbIhTgusetBkd3YGRutY 9D/wQ/vdva/qvbrOEOBi1EDoojoawr6/dDxkKeH0+nXVoIChOdcJ5qdl22kqpMSCshcV iAag==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=mZJZ30FR; arc=pass (i=1 spf=pass spfdomain=ti.com dkim=pass dkdomain=ti.com dmarc=pass fromdomain=ti.com); spf=pass (google.com: domain of linux-kernel+bounces-117526-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-117526-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id h16-20020a17090adb9000b002a0249e26efsi9185153pjv.86.2024.03.25.10.56.02 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 25 Mar 2024 10:56:02 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-117526-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=mZJZ30FR; arc=pass (i=1 spf=pass spfdomain=ti.com dkim=pass dkdomain=ti.com dmarc=pass fromdomain=ti.com); spf=pass (google.com: domain of linux-kernel+bounces-117526-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-117526-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 1B65C3242CD for ; Mon, 25 Mar 2024 17:48:02 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C64E913AD21; Mon, 25 Mar 2024 16:58:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=ti.com header.i=@ti.com header.b="mZJZ30FR" Received: from lelv0142.ext.ti.com (lelv0142.ext.ti.com [198.47.23.249]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 5164913AD0D; Mon, 25 Mar 2024 16:58:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.47.23.249 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711385895; cv=none; b=lBSqvDt7FmZ/MpCX8CFYI/2cYNHX5aYKCfCDigLhqnNROc6s1YNTxBr6FRGlwm5GxFBXOK4LHaYD5fQASb3OHpSzAPFG0ZOla38PCFNsQM51ujxW0ph0/iTR+XuuoNmM340MOir+vxesarUKmPVabVToVmMYyvBTEpNEuoCGNsI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711385895; c=relaxed/simple; bh=sgsGIdh6rXa+N6eNCVGxGbFVkGZfZjwxfq7Srb4nJuA=; h=From:To:CC:Subject:Date:Message-ID:MIME-Version:Content-Type; b=AQUWHaEjZ5P1vSFhpOGoLnIftDgXaE2uqJaJCmd2cG6bfbsv8kFEAGc3hcaxr2lh6waYI4sJNW6cq/vYIIBg5Zm/SW5mTGjWI9hrLcocCYo8se8efN1S5iHhlR/WyqcvdFRquDSIEQQDvvxJRkrgt6Q2CUkYuzDlhQaZCXLWOrg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=ti.com; spf=pass smtp.mailfrom=ti.com; dkim=pass (1024-bit key) header.d=ti.com header.i=@ti.com header.b=mZJZ30FR; arc=none smtp.client-ip=198.47.23.249 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=ti.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=ti.com Received: from fllv0034.itg.ti.com ([10.64.40.246]) by lelv0142.ext.ti.com (8.15.2/8.15.2) with ESMTP id 42PGw9k2006240; Mon, 25 Mar 2024 11:58:09 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1711385889; bh=TuY6VETr0CDU+pGqpyrVp2v9Y506MoJZo3FRapPogA8=; h=From:To:CC:Subject:Date; b=mZJZ30FRQBCfqA93Ncw6s/CjBL1M6wyurmmmB58wnnGZb0whWlwBduVHk/ONUWyUE OiofznNqcNgjLAimFYroi7g0p7R9VHtSyn/ruBYzqs5WHmALJKgGoB8dG9GyyUFLCd NSxm8rUO89v0QnO3WhF6/YJ0CTwEhwLPITLNl9bU= Received: from DFLE115.ent.ti.com (dfle115.ent.ti.com [10.64.6.36]) by fllv0034.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 42PGw9SY079557 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Mon, 25 Mar 2024 11:58:09 -0500 Received: from DFLE107.ent.ti.com (10.64.6.28) by DFLE115.ent.ti.com (10.64.6.36) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23; Mon, 25 Mar 2024 11:58:09 -0500 Received: from lelvsmtp6.itg.ti.com (10.180.75.249) by DFLE107.ent.ti.com (10.64.6.28) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23 via Frontend Transport; Mon, 25 Mar 2024 11:58:08 -0500 Received: from lelvsmtp6.itg.ti.com ([10.249.42.149]) by lelvsmtp6.itg.ti.com (8.15.2/8.15.2) with ESMTP id 42PGw83i029739; Mon, 25 Mar 2024 11:58:08 -0500 From: Andrew Davis To: Bjorn Andersson , Mathieu Poirier CC: , , Andrew Davis Subject: [PATCH 1/3] remoteproc: k3-dsp: Fix usage of omap_mbox_message and mbox_msg_t Date: Mon, 25 Mar 2024 11:58:06 -0500 Message-ID: <20240325165808.31885-1-afd@ti.com> X-Mailer: git-send-email 2.39.2 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 The type of message sent using omap-mailbox is always u32. The definition of mbox_msg_t is uintptr_t which is wrong as that type changes based on the architecture (32bit vs 64bit). Use u32 unconditionally and remove the now unneeded omap-mailbox.h include. Signed-off-by: Andrew Davis --- drivers/remoteproc/ti_k3_dsp_remoteproc.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/drivers/remoteproc/ti_k3_dsp_remoteproc.c b/drivers/remoteproc/ti_k3_dsp_remoteproc.c index 3555b535b1683..33b30cfb86c9d 100644 --- a/drivers/remoteproc/ti_k3_dsp_remoteproc.c +++ b/drivers/remoteproc/ti_k3_dsp_remoteproc.c @@ -11,7 +11,6 @@ #include #include #include -#include #include #include #include @@ -113,7 +112,7 @@ static void k3_dsp_rproc_mbox_callback(struct mbox_client *client, void *data) client); struct device *dev = kproc->rproc->dev.parent; const char *name = kproc->rproc->name; - u32 msg = omap_mbox_message(data); + u32 msg = (u32)(uintptr_t)(data); dev_dbg(dev, "mbox msg: 0x%x\n", msg); @@ -152,11 +151,11 @@ static void k3_dsp_rproc_kick(struct rproc *rproc, int vqid) { struct k3_dsp_rproc *kproc = rproc->priv; struct device *dev = rproc->dev.parent; - mbox_msg_t msg = (mbox_msg_t)vqid; + u32 msg = vqid; int ret; /* send the index of the triggered virtqueue in the mailbox payload */ - ret = mbox_send_message(kproc->mbox, (void *)msg); + ret = mbox_send_message(kproc->mbox, (void *)(uintptr_t)msg); if (ret < 0) dev_err(dev, "failed to send mailbox message (%pe)\n", ERR_PTR(ret)); -- 2.39.2