Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 7C2DFC05027 for ; Mon, 20 Feb 2023 06:13:45 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 427FF85890; Mon, 20 Feb 2023 07:13:23 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=fail (p=none dis=none) header.from=sholland.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=sholland.org header.i=@sholland.org header.b="IMjcAyKR"; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=messagingengine.com header.i=@messagingengine.com header.b="arFlDlj/"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id DC2538582C; Mon, 20 Feb 2023 07:13:13 +0100 (CET) Received: from wout2-smtp.messagingengine.com (wout2-smtp.messagingengine.com [64.147.123.25]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 9CCEF81421 for ; Mon, 20 Feb 2023 07:13:10 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=sholland.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=samuel@sholland.org Received: from compute6.internal (compute6.nyi.internal [10.202.2.47]) by mailout.west.internal (Postfix) with ESMTP id 1487A3200CBE; Mon, 20 Feb 2023 01:13:09 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute6.internal (MEProxy); Mon, 20 Feb 2023 01:13:09 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sholland.org; h= cc:cc:content-transfer-encoding:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:sender :subject:subject:to:to; s=fm2; t=1676873588; x=1676959988; bh=6+ ffJKKd904PGE2PUUvL/ZzaitvaPHjfFcXrQQuSMrc=; b=IMjcAyKRpTRxX0eWWK WayiNreU2p2GDswfwkOXmQeKApzUjaBsaTKN8UdWyR0GEEEx65OIQG5Lv9ehMk2K 7NlGrVq+Yd2YFkk9jo5kUhG8R1jePJ/3OESybZq31ZZOa5mImXyJPeyF31fKJYs6 Mdk6yMbANXjiP4147P9M8OeL1sXQ9dgoRppy0QtZikdTHzyW++2c9lfrmPoI95hD IPqCbmp9midukYCigj2RW4Bxe2g6W6sNKJD9g+K1Wfk8xod49vty4HZzSRbWVi9h zwO1OB/Jg7B+FctXY5kzj0k+a+KlVGxyq90ENU39s+ti4T7i5RIijXiTqnKIOdVy ZPGA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:sender:subject :subject:to:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm1; t=1676873588; x=1676959988; bh=6+ffJKKd904PG E2PUUvL/ZzaitvaPHjfFcXrQQuSMrc=; b=arFlDlj/xURx/uALAGgSbfuH9rY3w QahDVBt/bIljJ7MkQnn70uCd1D7KfLU0WC797oI3OghHF3KXPkhRSyB1qYgNuFdH QESsK50DsOWdrP3yxz9uJz6OG9zsT3TX6PtELi4ODB2UdVaRKcIpyoOKB208t1H9 x9ob4st2E6YOGFXrAUK859vXuQpUXq4vSHfYp5CPXDfvopC2GRp8TBhLXgtVCheJ ffD2JW8e04PU4VOXK1ewDlyNnFG2MOjWRaS8QlvF7R4qFmGQOH/PMnKV/fyEaoZm EVNo/WUcPLUJhB3Q5LKg6/1mywmfGkqM7LoUkNx4/ZIVD/8DGDbIKpXCA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvhedrudejgedgledtucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefhvfevufffkffojghfggfgsedtke ertdertddtnecuhfhrohhmpefurghmuhgvlhcujfholhhlrghnugcuoehsrghmuhgvlhes shhhohhllhgrnhgurdhorhhgqeenucggtffrrghtthgvrhhnpedukeetueduhedtleetve fguddvvdejhfefudelgfduveeggeehgfdufeeitdevteenucevlhhushhtvghrufhiiigv pedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehsrghmuhgvlhesshhhohhllhgrnhgurd horhhg X-ME-Proxy: Feedback-ID: i0ad843c9:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 20 Feb 2023 01:13:08 -0500 (EST) From: Samuel Holland To: u-boot@lists.denx.de Cc: Samuel Holland Subject: [PATCH 2/3] remoteproc: Remove unused mem_type platform data Date: Mon, 20 Feb 2023 00:13:02 -0600 Message-Id: <20230220061304.43198-3-samuel@sholland.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230220061304.43198-1-samuel@sholland.org> References: <20230220061304.43198-1-samuel@sholland.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.6 at phobos.denx.de X-Virus-Status: Clean There is only one possible value for this field, it is unused except for debugging, and the devicetree property is not documented. Signed-off-by: Samuel Holland --- cmd/remoteproc.c | 12 +----------- doc/develop/driver-model/remoteproc-framework.rst | 1 - drivers/remoteproc/rproc-uclass.c | 7 ------- drivers/remoteproc/sandbox_testproc.c | 1 - include/remoteproc.h | 15 --------------- 5 files changed, 1 insertion(+), 35 deletions(-) diff --git a/cmd/remoteproc.c b/cmd/remoteproc.c index ca3b436242a..2b2e52e7d3e 100644 --- a/cmd/remoteproc.c +++ b/cmd/remoteproc.c @@ -20,7 +20,6 @@ static int print_remoteproc_list(void) struct udevice *dev; struct uclass *uc; int ret; - char *type; ret = uclass_get(UCLASS_REMOTEPROC, &uc); if (ret) { @@ -38,18 +37,9 @@ static int print_remoteproc_list(void) if (!(dev_get_flags(dev) & DM_FLAG_ACTIVATED)) continue; - switch (uc_pdata->mem_type) { - case RPROC_INTERNAL_MEMORY_MAPPED: - type = "internal memory mapped"; - break; - default: - type = "unknown"; - break; - } - printf("%d - Name:'%s' type:'%s' supports: %s%s%s%s%s%s\n", + printf("%d - Name:'%s' supports: %s%s%s%s%s%s\n", dev_seq(dev), uc_pdata->name, - type, ops->load ? "load " : "", ops->start ? "start " : "", ops->stop ? "stop " : "", diff --git a/doc/develop/driver-model/remoteproc-framework.rst b/doc/develop/driver-model/remoteproc-framework.rst index 566495a21c4..bdbbb8ab7be 100644 --- a/doc/develop/driver-model/remoteproc-framework.rst +++ b/doc/develop/driver-model/remoteproc-framework.rst @@ -121,7 +121,6 @@ a simplified definition of a device is as follows: struct dm_rproc_uclass_pdata proc_3_test = { .name = "proc_3_legacy", - .mem_type = RPROC_INTERNAL_MEMORY_MAPPED, .driver_plat_data = &mydriver_data; }; diff --git a/drivers/remoteproc/rproc-uclass.c b/drivers/remoteproc/rproc-uclass.c index 50bcc9030e9..3eacd4a8d9b 100644 --- a/drivers/remoteproc/rproc-uclass.c +++ b/drivers/remoteproc/rproc-uclass.c @@ -136,12 +136,6 @@ static int rproc_pre_probe(struct udevice *dev) bool tmp; debug("'%s': using fdt\n", dev->name); uc_pdata->name = dev_read_string(dev, "remoteproc-name"); - - /* Default is internal memory mapped */ - uc_pdata->mem_type = RPROC_INTERNAL_MEMORY_MAPPED; - tmp = dev_read_bool(dev, "remoteproc-internal-memory-mapped"); - if (tmp) - uc_pdata->mem_type = RPROC_INTERNAL_MEMORY_MAPPED; #else /* Nothing much we can do about this, can we? */ return -EINVAL; @@ -153,7 +147,6 @@ static int rproc_pre_probe(struct udevice *dev) debug("'%s': using legacy data\n", dev->name); if (pdata->name) uc_pdata->name = pdata->name; - uc_pdata->mem_type = pdata->mem_type; uc_pdata->driver_plat_data = pdata->driver_plat_data; } diff --git a/drivers/remoteproc/sandbox_testproc.c b/drivers/remoteproc/sandbox_testproc.c index 78b108184bb..4cb784ce32e 100644 --- a/drivers/remoteproc/sandbox_testproc.c +++ b/drivers/remoteproc/sandbox_testproc.c @@ -349,7 +349,6 @@ U_BOOT_DRIVER(sandbox_testproc) = { /* TODO(nm@ti.com): Remove this along with non-DT support */ static struct dm_rproc_uclass_pdata proc_3_test = { .name = "proc_3_legacy", - .mem_type = RPROC_INTERNAL_MEMORY_MAPPED, }; U_BOOT_DRVINFO(proc_3_demo) = { diff --git a/include/remoteproc.h b/include/remoteproc.h index d8cde73748b..0c4d64706d9 100644 --- a/include/remoteproc.h +++ b/include/remoteproc.h @@ -383,23 +383,9 @@ struct rproc { u32 trace_len; }; -/** - * enum rproc_mem_type - What type of memory model does the rproc use - * @RPROC_INTERNAL_MEMORY_MAPPED: Remote processor uses own memory and is memory - * mapped to the host processor over an address range. - * - * Please note that this is an enumeration of memory model of different types - * of remote processors. Few of the remote processors do have own internal - * memories, while others use external memory for instruction and data. - */ -enum rproc_mem_type { - RPROC_INTERNAL_MEMORY_MAPPED = 0, -}; - /** * struct dm_rproc_uclass_pdata - platform data for a CPU * @name: Platform-specific way of naming the Remote proc - * @mem_type: one of 'enum rproc_mem_type' * @driver_plat_data: driver specific platform data that may be needed. * * This can be accessed with dev_get_uclass_plat() for any UCLASS_REMOTEPROC @@ -408,7 +394,6 @@ enum rproc_mem_type { */ struct dm_rproc_uclass_pdata { const char *name; - enum rproc_mem_type mem_type; void *driver_plat_data; }; -- 2.39.2