Message ID | 20221121214722.22563-3-umang.jain@ideasonboard.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp1851712wrr; Mon, 21 Nov 2022 13:49:19 -0800 (PST) X-Google-Smtp-Source: AA0mqf5UjT9VWuILT081eH434ar9MNBmDlThl4wVmyy2d8au6dLFZ+HF7M0nXmbAxJuWizGjcQo6 X-Received: by 2002:a17:90a:3d49:b0:213:9458:8a93 with SMTP id o9-20020a17090a3d4900b0021394588a93mr28631521pjf.233.1669067359454; Mon, 21 Nov 2022 13:49:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669067359; cv=none; d=google.com; s=arc-20160816; b=PNDe6FVailh+dZ8OVS7gnd9dz3JlXIEUKMbcQ+ZnYs+pYfrmjRHN8FA7me+gwLomLf pFLI/Q2oAjtRXDdWa8KKan3VOD8/L+3t1wdUGUut1SG3yukX96P8mZC5++Zmq5f4xzzg f6Ma3jRQ8XvPPtckzkBDy9NtvQFXxoYuNhTUy7+Vg6K4NMllmEwTvLtMGjaAlpytUdpM vxLrE43+HFfnDBvVtL+rDaL50bjYNw1DFzGy5DghCtQaCK/SxzWRaiZD2U6qN6KMmIo9 UYPZ0qan9YbcfJqnJO0aUDyMEuWlGPQS8ptAhlTfp1cAYjkgMMBPEUsZYmyH1H+oXCLF X6rg== 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=XKA7OetuxyHn0/7Yx79VczhEkEydInuzm/wwILTcdcs=; b=Hv733LyzYyAWLHoPqClmiyB224Isfj8TeLBqdGZNo4lHR7nixiqo/NbybbfoJwB/su GgfIGNR3ResW24eWJnjlGTIci7RuE6ciuUWA6TY5aU9P9WJWDcVlDSk0gYJIr7l+Dasw t/jS+6R2dbVY6ZkvMhCj9Zt6lVILw/pLjIP1x983kBfY4aWc3Cg6F3IN27iL/PzmzwfR BBomXvXuR58fISZwYRoYAZZCfGwd5AbML3LGa4YaDndRP56sPeUKyWWSmjBHh/1LWUQJ maXDzFTXQrDxEysaLitFQSLHTcSiUkrk6aj0lgOMxSxzYhNi/ETJj8o3wTNxm/wZ+rAg 2lEw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=wV+c4UQe; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id p19-20020a170902e35300b0017872bc9843si10839713plc.137.2022.11.21.13.49.05; Mon, 21 Nov 2022 13:49:19 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=wV+c4UQe; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230289AbiKUVsr (ORCPT <rfc822;cjcooper78@gmail.com> + 99 others); Mon, 21 Nov 2022 16:48:47 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38452 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231408AbiKUVsl (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Mon, 21 Nov 2022 16:48:41 -0500 Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [213.167.242.64]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4AF06D53A9; Mon, 21 Nov 2022 13:48:37 -0800 (PST) Received: from umang.jainideasonboard.com (unknown [103.86.18.138]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 084E5E61; Mon, 21 Nov 2022 22:48:30 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1669067316; bh=O8PGqwvk0qKv2naaAUYDVsypILKqSXQmDZKmiivH3eY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=wV+c4UQeUMeEEfsRPLPFRdMUDyiw/dpuBsFBEg2OW5RUqoDsimavQb7QGebb7PrM8 MQ8fo7hzhUCEhimJ4gkkJa2Q7abPuItXm+FkMwuwYfm1xcvZrFZZhOSnTOAm8ZcqeN TwyYfUe1McWOChBYqmSKJXTXoenAEynSIzY3FuVQ= From: Umang Jain <umang.jain@ideasonboard.com> 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, Broadcom internal kernel review list <bcm-kernel-feedback-list@broadcom.com> Cc: Dave Stevenson <dave.stevenson@raspberrypi.com>, Florian Fainelli <f.fainelli@gmail.com>, Naushir Patuck <naush@raspberrypi.com>, David Plowman <david.plowman@raspberrypi.com>, Kieran Bingham <kieran.bingham@ideasonboard.com>, Laurent Pinchart <laurent.pinchart@ideasonboard.com>, Umang Jain <umang.jain@ideasonboard.com> Subject: [PATCH 02/14] staging: vchiq_arm: Register vcsm-cma as a platform driver Date: Tue, 22 Nov 2022 03:17:10 +0530 Message-Id: <20221121214722.22563-3-umang.jain@ideasonboard.com> X-Mailer: git-send-email 2.37.3 In-Reply-To: <20221121214722.22563-1-umang.jain@ideasonboard.com> References: <20221121214722.22563-1-umang.jain@ideasonboard.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_PASS,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1750143975721505046?= X-GMAIL-MSGID: =?utf-8?q?1750143975721505046?= |
Series |
staging: vc04_services: bcm2835-isp support
|
|
Commit Message
Umang Jain
Nov. 21, 2022, 9:47 p.m. UTC
From: Dave Stevenson <dave.stevenson@raspberrypi.com> Following the same pattern as bcm2835-camera and bcm2835-audio, register the vcsm-cma driver as a platform driver. Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.com> Signed-off-by: Umang Jain <umang.jain@ideasonboard.com> --- drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c | 3 +++ 1 file changed, 3 insertions(+)
Comments
Hi Umang and Dave, Thank you for the patch. On Tue, Nov 22, 2022 at 03:17:10AM +0530, Umang Jain wrote: > From: Dave Stevenson <dave.stevenson@raspberrypi.com> > > Following the same pattern as bcm2835-camera and bcm2835-audio, > register the vcsm-cma driver as a platform driver. > > Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.com> > Signed-off-by: Umang Jain <umang.jain@ideasonboard.com> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> > --- > 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 dc33490ba7fb..642fdbc0d654 100644 > --- a/drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c > +++ b/drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c > @@ -67,6 +67,7 @@ struct vchiq_state g_state; > > static struct platform_device *bcm2835_camera; > static struct platform_device *bcm2835_audio; > +static struct platform_device *vcsm_cma; > > struct vchiq_drvdata { > const unsigned int cache_line_size; > @@ -1832,6 +1833,7 @@ static int vchiq_probe(struct platform_device *pdev) > goto error_exit; > } > > + vcsm_cma = vchiq_register_child(pdev, "vcsm-cma"); > bcm2835_camera = vchiq_register_child(pdev, "bcm2835-camera"); > bcm2835_audio = vchiq_register_child(pdev, "bcm2835_audio"); > > @@ -1847,6 +1849,7 @@ static int vchiq_remove(struct platform_device *pdev) > { > platform_device_unregister(bcm2835_audio); > platform_device_unregister(bcm2835_camera); > + platform_device_unregister(vcsm_cma); > vchiq_debugfs_deinit(); > vchiq_deregister_chrdev(); >
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 dc33490ba7fb..642fdbc0d654 100644 --- a/drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c +++ b/drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c @@ -67,6 +67,7 @@ struct vchiq_state g_state; static struct platform_device *bcm2835_camera; static struct platform_device *bcm2835_audio; +static struct platform_device *vcsm_cma; struct vchiq_drvdata { const unsigned int cache_line_size; @@ -1832,6 +1833,7 @@ static int vchiq_probe(struct platform_device *pdev) goto error_exit; } + vcsm_cma = vchiq_register_child(pdev, "vcsm-cma"); bcm2835_camera = vchiq_register_child(pdev, "bcm2835-camera"); bcm2835_audio = vchiq_register_child(pdev, "bcm2835_audio"); @@ -1847,6 +1849,7 @@ static int vchiq_remove(struct platform_device *pdev) { platform_device_unregister(bcm2835_audio); platform_device_unregister(bcm2835_camera); + platform_device_unregister(vcsm_cma); vchiq_debugfs_deinit(); vchiq_deregister_chrdev();