Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp2976392lqp; Mon, 25 Mar 2024 15:17:48 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXQYWVy96UTPyV4xmils8E6bVDm7SePWN7Ume3Tua9fDJO1MiCCZNfl9UOc7PEoP1H8P8NNdU6aY9r0S3reXPN+yIdw7lFt3xLSlNSJZg== X-Google-Smtp-Source: AGHT+IHFm8KSORF8cecUwgaqFuIiwlz4nLzGAD6U2y5IBM7zczmE/bhzzFfO8Mup0oBCy2yMEZIV X-Received: by 2002:a05:6358:d03:b0:17b:f04e:7e0a with SMTP id v3-20020a0563580d0300b0017bf04e7e0amr9825011rwj.20.1711405068571; Mon, 25 Mar 2024 15:17:48 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711405068; cv=pass; d=google.com; s=arc-20160816; b=UxTiMLh4vFNNXHLZpf0CnlIONaSsg/7VvH86U80V+PvASQZrnBm0WQ9Qm9YpfBjSeI dQBJVRhsfuzf9uRtvBCufkCv3GPOsbU7FxR4kSbpw9tMYpiZEoeg1K96uce/nTv/HMyw eBmiKiF/2b1wQpr/YHg4o+oSpUinfPpM9iqC8vPHxtrdVUKfRtLeE/KyY1AIprmC8YS/ LKoCrh6NbDBoGZNfpj+r4nBzJpYeYh06aGmhFkLnJANeBqFPsmqPF1eOfdxmyVzGwk7E ++WXCc8kCH+xs7q3m0DvauoPG/yFdUxJmz3FWwFQ1qhEsUaiDJYuu+cdVvFFner6pkVu Id6w== 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:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=fzz8HZfna6Pp/NIj4g98zvFf9RVRo+dtZspHw7cVATs=; fh=li+nOTWR+R+c2QHViCtM9aHEBgqgbpW81MUCABMZkAY=; b=e1JnL/6+fp3FqMWNefWVfkmLl+Zn5QhJePBvsNQ6F83XfYMJHsADPq/7Dgu2aKFxAh UJIZn1NWrBHP7XX1eaCynA8593xM7ZQD9dZaLe+FpzHAOm2fUA5ELMD5rc+37mk/nmhx gU40qtGFj9/xd/V4kCUwKPsShrhLW1kMADoxTInd0bJvkohWaVH5WKmJFl3nl67YvUvl lUrzUsrAkRNSQreaFQtPCw7Et+pcPsRBRjzYh9aTfPNVF5cKGVRDjLoyfHciOfy/0mxP PTv5q9zZNovzxH+w+x8F3A3XBpayMYSVW3VmURwt7Vbp25KgnEWhSpGGnytp8+hKsd7b +Q6g==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=iCV8Ufgs; 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-117572-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-117572-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id u25-20020a632359000000b005d2c05c7039si8400320pgm.865.2024.03.25.15.17.48 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 25 Mar 2024 15:17:48 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-117572-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=iCV8Ufgs; 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-117572-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-117572-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id EFD2BB26C18 for ; Mon, 25 Mar 2024 17:59:04 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 516D486630; Mon, 25 Mar 2024 17:20:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=ti.com header.i=@ti.com header.b="iCV8Ufgs" 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 CD9325675F; Mon, 25 Mar 2024 17:20:52 +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=1711387254; cv=none; b=IAGuiRITZI3ypmL0+I7MyhtYolVq/ETdVB0+kryxxjacD5XJdNeIjXvUBusFYT+y23pageGddS7/Yrfe25YHznpr36V5otB1gS1KHQKNcKydWtHh+qCNCd6LLCUqzMlFIpkdAS5k88MU9CZYYUg2R52YBHPWDrzucEPRJVv8DPc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711387254; c=relaxed/simple; bh=RLHrE4+FLPei6drd0nfg5Xsf77bF5ZMVxNn5H4/rTNs=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=Jt1YK7DyLZz4MW91ANroLBR5D8KDG2n/fJD+sn7dFZ1gQN6CcZl9l0CR42jj5JSNY8uMCdWzObCO84wFTQYcugkt2M4rzEQrhLqhridH6VD9F7ZopebpV4pPmUrGAY0i1sxxbUBs9wqZr4QIz9xySgjDlJH8X0nXjsLwqYiMxik= 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=iCV8Ufgs; 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 lelv0265.itg.ti.com ([10.180.67.224]) by lelv0143.ext.ti.com (8.15.2/8.15.2) with ESMTP id 42PHKm64061072; Mon, 25 Mar 2024 12:20:48 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1711387248; bh=fzz8HZfna6Pp/NIj4g98zvFf9RVRo+dtZspHw7cVATs=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=iCV8Ufgs1QUH6WIb1B5DRNuzkNmyXAKqEHChPIUQTtBSupAnvJAGhE3R6s3bqLePM FSe2yOk+I2B2EWRzb03RJmTjwRNZvMd7vX8qSjnBaURrMv02XPgeDgdLMbl2c9DGNv 7j+V+u81W3BCjkM8GzJR9i/wAN+ihsIoHKBOnklE= Received: from DFLE104.ent.ti.com (dfle104.ent.ti.com [10.64.6.25]) by lelv0265.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 42PHKmWC008615 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Mon, 25 Mar 2024 12:20:48 -0500 Received: from DFLE101.ent.ti.com (10.64.6.22) by DFLE104.ent.ti.com (10.64.6.25) 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 12:20:47 -0500 Received: from lelvsmtp6.itg.ti.com (10.180.75.249) by DFLE101.ent.ti.com (10.64.6.22) 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 12:20:47 -0500 Received: from lelvsmtp5.itg.ti.com ([10.249.42.149]) by lelvsmtp6.itg.ti.com (8.15.2/8.15.2) with ESMTP id 42PHKkYZ075282; Mon, 25 Mar 2024 12:20:47 -0500 From: Andrew Davis To: Jassi Brar , Hari Nagalla , Nick Saulnier , Bjorn Andersson , Mathieu Poirier CC: , , Andrew Davis Subject: [PATCH 03/13] mailbox: omap: Move omap_mbox_irq_t into driver Date: Mon, 25 Mar 2024 12:20:35 -0500 Message-ID: <20240325172045.113047-4-afd@ti.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240325172045.113047-1-afd@ti.com> References: <20240325172045.113047-1-afd@ti.com> 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 This is only used internal to the driver, move it out of the public header and into the driver file. While we are here, this is not used as a bitwise, so drop that and make it a simple enum type. Signed-off-by: Andrew Davis --- drivers/mailbox/omap-mailbox.c | 5 +++++ include/linux/omap-mailbox.h | 4 ---- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/drivers/mailbox/omap-mailbox.c b/drivers/mailbox/omap-mailbox.c index 8151722eef383..c083734b6954c 100644 --- a/drivers/mailbox/omap-mailbox.c +++ b/drivers/mailbox/omap-mailbox.c @@ -51,6 +51,11 @@ #define MBOX_INTR_CFG_TYPE1 0 #define MBOX_INTR_CFG_TYPE2 1 +typedef enum { + IRQ_TX = 1, + IRQ_RX = 2, +} omap_mbox_irq_t; + struct omap_mbox_fifo { unsigned long msg; unsigned long fifo_stat; diff --git a/include/linux/omap-mailbox.h b/include/linux/omap-mailbox.h index f8ddf8e814167..3cc5c4ed7f5a6 100644 --- a/include/linux/omap-mailbox.h +++ b/include/linux/omap-mailbox.h @@ -10,8 +10,4 @@ typedef uintptr_t mbox_msg_t; #define omap_mbox_message(data) (u32)(mbox_msg_t)(data) -typedef int __bitwise omap_mbox_irq_t; -#define IRQ_TX ((__force omap_mbox_irq_t) 1) -#define IRQ_RX ((__force omap_mbox_irq_t) 2) - #endif /* OMAP_MAILBOX_H */ -- 2.39.2