From patchwork Thu Nov 9 21:02:54 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Umang Jain X-Patchwork-Id: 163584 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b129:0:b0:403:3b70:6f57 with SMTP id q9csp705144vqs; Thu, 9 Nov 2023 13:03:41 -0800 (PST) X-Google-Smtp-Source: AGHT+IEakCDM5stht82BFR5eyyz1E8YuQNphduHod5BcxRKPb92i3VE15O/H850I66uUXFS/StAP X-Received: by 2002:a17:902:d382:b0:1cc:78a5:50a2 with SMTP id e2-20020a170902d38200b001cc78a550a2mr5851954pld.39.1699563821369; Thu, 09 Nov 2023 13:03:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1699563821; cv=none; d=google.com; s=arc-20160816; b=x8wkRDiQtrZBnWsxnlLijmazVfHovQDSncrsted1H24AfP3MQfTWpZXFqBvXjaTMaa 6RMgw9B0pSRu7CYo1hAsungNmOFgHZGUlPScXjbu2wt6I9iZloW+uZNWVa0uE0oFBlxp CHP/uhL9pVxmrpyjvTCAc17PlojAYrPYn0T0wkwhfzAQ03kLOs6KZ+xKu8uNKehIJH5b vJQUXvGdUmsFhnFuR3i/vs+UR5/c/UECXOaUN/rLgEEU0AUSOSzz2ROTrhU+LTsrRUq+ ztowyEuvJmuZxjXRnPH8YJ1BoI/5yy/js9YEzKzALbZd3/nftSrqntVtG03p8wiI5T2D qO4Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=H/wou42aybwQ8MgDFIcn6o6IgbQlQ55Wgz+SWNbB3UI=; fh=jB4ZJnu48Rd5A9Gw+jJTxc8V04xPsHLMeRevtz00HEY=; b=TnOb4fzgyLpzUZrwtauDgouxQ5gBlc+Hl8f65xQhQAcNP83zuVgiOcFTy/6ZttrsQD rFBVX2LJ7iAiujIbfMVeB7ld9+TiEyiWUWYJXhZl4FOHchNKRmMRYYNWaG98iwmgaKl9 ubZwuBM3jjduRWfxwPteerOF63qkzSOaEApAR5gUU1md/3M3mO5GsJuDz8eD5V+Ie5NO a+XbVM1fmZhybBW8Lrk3OSWuMZepJgMnE/UAZpMk35UpF/AHTJY+rlI8e/MdHBtD3gt2 MO0G4hdzuvLJ+rdfm6V46Smy9o9FSjB9l5yI+MG8FNoRBmk7TkN0J34KxEtlJZnRySbQ rAlA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=nNTZadJd; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id i17-20020a170902c95100b001c3411c9b83si6359238pla.454.2023.11.09.13.03.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 09 Nov 2023 13:03:41 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=nNTZadJd; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 7B1CA839C866; Thu, 9 Nov 2023 13:03:39 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345241AbjKIVD2 (ORCPT + 30 others); Thu, 9 Nov 2023 16:03:28 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35014 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345219AbjKIVD0 (ORCPT ); Thu, 9 Nov 2023 16:03:26 -0500 Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [IPv6:2001:4b98:dc2:55:216:3eff:fef7:d647]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 619303A8D; Thu, 9 Nov 2023 13:03:24 -0800 (PST) Received: from umang.jain (unknown [103.251.226.64]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id B9636124F; Thu, 9 Nov 2023 22:02:58 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1699563780; bh=UfJyIu1xY2d99szk35sdQMZkI8dWjEPq/02vKPTcI8s=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=nNTZadJd3eph/vo7bCIAOBm+gng2BsXYpV9Vng2WzMaNV6PhMAMd5rwEAWxc+ENsh bkyBGV0MzjDqulVEMYo+2l/o9rO4IIVoO3BQoZUVFTvuLaG/t+cqcfZEKTvKs2GcDS mvQ7EFOLzELG1ijsIshitJa+h/o+rk3DHyjFkvPk= From: Umang Jain To: linux-media@vger.kernel.org, kernel-list@raspberrypi.com, linux-kernel@vger.kernel.org, linux-rpi-kernel@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-staging@lists.linux.dev Cc: Dave Stevenson , Kieran Bingham , Laurent Pinchart , "Ricardo B . Marliere" , Dan Carpenter , Stefan Wahren , Umang Jain Subject: [PATCH v2 02/15] staging: vc04_services: vchiq_arm: Register vcsm-cma driver Date: Thu, 9 Nov 2023 16:02:54 -0500 Message-ID: <20231109210309.638594-3-umang.jain@ideasonboard.com> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20231109210309.638594-1-umang.jain@ideasonboard.com> References: <20231109210309.638594-1-umang.jain@ideasonboard.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Thu, 09 Nov 2023 13:03:39 -0800 (PST) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1782121833512756197 X-GMAIL-MSGID: 1782121833512756197 Register the vcsm-cma driver with the vchiq_bus_type. Signed-off-by: Umang Jain --- drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c b/drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c index 9fb8f657cc78..5a9073480dd3 100644 --- a/drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c +++ b/drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c @@ -70,6 +70,7 @@ struct vchiq_state g_state; */ static struct vchiq_device *bcm2835_audio; static struct vchiq_device *bcm2835_camera; +static struct vchiq_device *vcsm_cma; struct vchiq_drvdata { const unsigned int cache_line_size; @@ -1840,6 +1841,7 @@ static int vchiq_probe(struct platform_device *pdev) goto error_exit; } + vcsm_cma = vchiq_device_register(&pdev->dev, "vcsm-cma"); bcm2835_audio = vchiq_device_register(&pdev->dev, "bcm2835-audio"); bcm2835_camera = vchiq_device_register(&pdev->dev, "bcm2835-camera"); @@ -1855,6 +1857,7 @@ static void vchiq_remove(struct platform_device *pdev) { vchiq_device_unregister(bcm2835_audio); vchiq_device_unregister(bcm2835_camera); + vchiq_device_unregister(vcsm_cma); vchiq_debugfs_deinit(); vchiq_deregister_chrdev(); }