Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp2844251lqp; Mon, 25 Mar 2024 10:47:07 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCX2lw21HYgrT4nSxDdQsDxT4kNqb9xE4Jz6HlVgP/9YNWQ24yrEH+8oWhPof712/hTMO1KFWeqXSotQTWODes4Gg54wZCBcuCNetpo1gQ== X-Google-Smtp-Source: AGHT+IG/s9KPhyaoZpBM8N6PJyTruDY45QxEubMz6NDE/rS7ugbiqSY8P2/+ZtG6akeu/GRBZQa3 X-Received: by 2002:a05:6808:2f14:b0:3c3:b346:4976 with SMTP id gu20-20020a0568082f1400b003c3b3464976mr727835oib.41.1711388826886; Mon, 25 Mar 2024 10:47:06 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711388826; cv=pass; d=google.com; s=arc-20160816; b=NLScxTl2WDgg3fEC7lmrx/tFRlg4NnoLNtcnMG4rLkm7hP72tjyP9Mi0izTGDL3dqu lTeDfMQ/3i3J6b5sPJG0Pekiq0cQq18FNljtAgOfuFzQuvnMG2RS77Dsx2YQo8XDisV4 8cdTkzrhDNDytR5TjZg0o/gZXQS2vo8tZXlN1Y1ocwLzn9ze2c0GZ/FXY3xPz+e+GNnn iwZvnMZLpF58j1sykdT0iTsEnH+xLTS7UqlRURVPltOAMush1D6n2n6OuPtduhAA7yP2 608m84Ie1a/uHDaYxcvg4GYgWAgwJU19mL3YLDoX+NBbz3fDWPK2dCDUqZ+nbB1eDGYq ci0w== 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=7BGhw+x9Vbv5zmisO7BnWlr/a0jukwZDhsfi6iEDmKs=; fh=MON6bryAQT5dNa8tAHb4S08tTkroGh3k04LR/CJs1FE=; b=lW3LNcqS/beQqfPcGKPySOVQebGvoqbVbnxQB1q5ivOA7l150T1VLaNf/gAetg1UHV 5qpr0MBVPYYQwXqPBkZGjiTY9pWN6FqnknMEE+MvLfKIzkd5HbzDCpq677haOJCEz29v mgtTDxIrG32sksxbxYrUh2iwwyvVKySPjHlb2BJKe8T+ft6psJpB55KsgWhnbpioc7NQ BusS/+wDqNWHrfiDJ/lhMqg0zt8h0y50GNJZOXNaNooPIZhvA3LjADdb01/3Ff3eGZw3 X8+jZAoDOnPGDKZL1p0sKVL9IWKDPIaHqxGJv+GW6xeIdVZV15I4yWsKObeMsVE4tg44 0XJw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=sJ+3121D; 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-117522-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-117522-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id h19-20020a05622a171300b0043131a5e679si5846593qtk.145.2024.03.25.10.47.06 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 25 Mar 2024 10:47:06 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-117522-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=sJ+3121D; 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-117522-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-117522-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id AEFE81C3FC18 for ; Mon, 25 Mar 2024 17:46:46 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4E6E912D1E3; Mon, 25 Mar 2024 16:55:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=ti.com header.i=@ti.com header.b="sJ+3121D" Received: from lelv0143.ext.ti.com (lelv0143.ext.ti.com [198.47.23.248]) (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 5F4E61311AA for ; Mon, 25 Mar 2024 16:55:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.47.23.248 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711385721; cv=none; b=Ubgj+8k1HwAtKRpNNMq06YUSWmNucPQmF/ICD6+PIz5YJ7oqT0uZ36KpYw9aXaB9ysEuBmwydI+HJ1qba0hHBtLX7qg2x7LtDkP3xjpC+l+6wTgMP0JV1Ct4gDh1QdeW5rYvNrtAhxGHZJUPkEneJUVay6HB+FCFzC1UqN/602c= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711385721; c=relaxed/simple; bh=yu6iyNbbLBn5lwo405cEgoNMiuIhYFY5CeNh0z/cPGs=; h=From:To:CC:Subject:Date:Message-ID:MIME-Version:Content-Type; b=GK0puiDABGB7lEqQVeFpUZkECQWLs9XbnsW4Z9yD3unwnSk8J4m3znluCbB72H3GvvREe3PkM/QvcM4+1nlfkmmNHCkLFQIMU0PV6U8gt8jFdKgeqIa00MqqNRC5xpiSf7hxW1/TyZDNAEpEYSX1P4DnROk56lHJPHf0a5Fxbj0= 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=sJ+3121D; arc=none smtp.client-ip=198.47.23.248 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 fllv0035.itg.ti.com ([10.64.41.0]) by lelv0143.ext.ti.com (8.15.2/8.15.2) with ESMTP id 42PGt9kj056059; Mon, 25 Mar 2024 11:55:09 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1711385709; bh=7BGhw+x9Vbv5zmisO7BnWlr/a0jukwZDhsfi6iEDmKs=; h=From:To:CC:Subject:Date; b=sJ+3121DuG2joAbeAShe1abUFFtdubEr9/UUqWY0hC5mXRtytt0U5nVhEQFOxIftE IburLa+1DDCoCDlpLg6BXhrdE+1/0/MMCzhk1CdNiQit3Wr71qNoioBXD1vHq0ERql 5TdNpS4I2ERWTr9W74kdBOu/xIb0Aak8Y4J2kuWU= Received: from DFLE112.ent.ti.com (dfle112.ent.ti.com [10.64.6.33]) by fllv0035.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 42PGt9Jt060618 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Mon, 25 Mar 2024 11:55:09 -0500 Received: from DFLE115.ent.ti.com (10.64.6.36) by DFLE112.ent.ti.com (10.64.6.33) 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:55:09 -0500 Received: from lelvsmtp5.itg.ti.com (10.180.75.250) 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 via Frontend Transport; Mon, 25 Mar 2024 11:55:09 -0500 Received: from lelvsmtp5.itg.ti.com ([10.249.42.149]) by lelvsmtp5.itg.ti.com (8.15.2/8.15.2) with ESMTP id 42PGt8Ye111072; Mon, 25 Mar 2024 11:55:08 -0500 From: Andrew Davis To: Nishanth Menon , Vignesh Raghavendra , Santosh Shilimkar CC: , , Andrew Davis Subject: [PATCH] soc: ti: wkup_m3_ipc: Send NULL dummy message instead of pointer message Date: Mon, 25 Mar 2024 11:55:07 -0500 Message-ID: <20240325165507.30323-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 mbox_send_message() sends a u32 bit message, not a pointer to a message. We only convert to a pointer type as a generic type. If we want to send a dummy message of 0, then simply send 0 (NULL). Signed-off-by: Andrew Davis --- drivers/soc/ti/wkup_m3_ipc.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/drivers/soc/ti/wkup_m3_ipc.c b/drivers/soc/ti/wkup_m3_ipc.c index 6a1c6b34c414a..88f774db92084 100644 --- a/drivers/soc/ti/wkup_m3_ipc.c +++ b/drivers/soc/ti/wkup_m3_ipc.c @@ -16,7 +16,6 @@ #include #include #include -#include #include #include #include @@ -314,7 +313,6 @@ static irqreturn_t wkup_m3_txev_handler(int irq, void *ipc_data) static int wkup_m3_ping(struct wkup_m3_ipc *m3_ipc) { struct device *dev = m3_ipc->dev; - mbox_msg_t dummy_msg = 0; int ret; if (!m3_ipc->mbox) { @@ -330,7 +328,7 @@ static int wkup_m3_ping(struct wkup_m3_ipc *m3_ipc) * the RX callback to avoid multiple interrupts being received * by the CM3. */ - ret = mbox_send_message(m3_ipc->mbox, &dummy_msg); + ret = mbox_send_message(m3_ipc->mbox, NULL); if (ret < 0) { dev_err(dev, "%s: mbox_send_message() failed: %d\n", __func__, ret); @@ -352,7 +350,6 @@ static int wkup_m3_ping(struct wkup_m3_ipc *m3_ipc) static int wkup_m3_ping_noirq(struct wkup_m3_ipc *m3_ipc) { struct device *dev = m3_ipc->dev; - mbox_msg_t dummy_msg = 0; int ret; if (!m3_ipc->mbox) { @@ -361,7 +358,7 @@ static int wkup_m3_ping_noirq(struct wkup_m3_ipc *m3_ipc) return -EIO; } - ret = mbox_send_message(m3_ipc->mbox, &dummy_msg); + ret = mbox_send_message(m3_ipc->mbox, NULL); if (ret < 0) { dev_err(dev, "%s: mbox_send_message() failed: %d\n", __func__, ret); -- 2.39.2