From patchwork Mon Nov 21 21:47:22 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Umang Jain X-Patchwork-Id: 24040 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp1857885wrr; Mon, 21 Nov 2022 14:05:16 -0800 (PST) X-Google-Smtp-Source: AA0mqf4ElNIVZhowUUtyDU3TcjT27gAvV2/+AwCV991ZMPTVWMrm+cTM7hh0AuS8Vo412jKPpQyK X-Received: by 2002:a17:907:2a82:b0:7ab:9952:9452 with SMTP id fl2-20020a1709072a8200b007ab99529452mr17909651ejc.142.1669068316564; Mon, 21 Nov 2022 14:05:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669068316; cv=none; d=google.com; s=arc-20160816; b=BmlONXyZUzYkZ/IlJhSxrhu23I6QoFofX/74W9U1iC7hc3v6KIUFfckRDftXYx5fK3 2uETzM38BoL5UWXesE6R5RmIN+4PB5gept/vbz7m16xkB0yNALuWOasi69ole9RA+dGt YgiAZM/4kRGTuaMKMEG8rNBssyiVpkMuFrmxplQWsCF7aOB4s+gSdUp8MjVc6KJ+6XNF HXBbt9svgjqSS/3TnZGgRPBZ8si/V5U8zY9BZNhQvIbp0jQteSLZIv1cv6xVm4ONzBSG SAab1MEJkMyaePQVvT3uamKKm81wvYDzdpbJQ5qr3EpdbgVoMK/OlvgEsoJGpp3LYuoV ervA== 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=3bp9kVW/lLXb2n1EPGJnL9/exQBZ3Tjg+Z83FFdr+cA=; b=McfuXAWst2qq0aRch51cwtz4//hVYIcf46tauV883z75NCs9PKnFyl/C8+7qYYSQS9 6iCzvVHr5yh/5+bQhO4ok1sbXZ0rCot3y2bkdxV0s9IlVmM5WgyPjgsy6hnl9fk60GKe jmNT+f30vWq9BPg0Jhdfs32kb0xIzvggEXTBmlerB1kbpvIbGNb0ZktvrAMTVWS7VNN3 CFnOye+Wu6ifFK/7iBG1JBJTyUpko/N5fTg4ljR8qH7Ch/nyKhzrEzlUaTc2zL3LA2+D MiXLKCWqp9XnM0M5uN0GxfGdS7OV49fmpz82EJ97Tt/FU0/Ky0FPv219nL2CPdDujux8 yN2Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=ONnGRiFa; 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 hd10-20020a170907968a00b00782b24c1ed8si10547938ejc.368.2022.11.21.14.04.38; Mon, 21 Nov 2022 14:05:16 -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=ONnGRiFa; 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 S232069AbiKUVvU (ORCPT + 99 others); Mon, 21 Nov 2022 16:51:20 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39684 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231896AbiKUVu3 (ORCPT ); Mon, 21 Nov 2022 16:50:29 -0500 Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [213.167.242.64]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2F569E0753; Mon, 21 Nov 2022 13:50:24 -0800 (PST) Received: from umang.jainideasonboard.com (unknown [103.86.18.138]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 86E2774C; Mon, 21 Nov 2022 22:50:18 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1669067422; bh=ab/M/OIelsZJVM+cOrB1iuAvkOA5/zw0fpy5r81fmTE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ONnGRiFazzcorUmfvsOxWLnHizKIjiis8UEo/8G7e5n0+w+65WQjdKzR6yvUifnkK BGHYlId7R51m216htZxItp5XlDdK3dkMMUaZc3GhvsBa6DCo2PqmlTN5/ivh9Y64ha 7LjXIZwAiSj2yjCUl+JZQYnmw9VVyhP/wSI/LPuw= 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, Broadcom internal kernel review list Cc: Dave Stevenson , Florian Fainelli , Naushir Patuck , David Plowman , Kieran Bingham , Laurent Pinchart , Umang Jain Subject: [PATCH 14/14] staging: vc04_services: vchiq: Load bcm2835_isp driver from vchiq Date: Tue, 22 Nov 2022 03:17:22 +0530 Message-Id: <20221121214722.22563-15-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 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: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1750144978926681057?= X-GMAIL-MSGID: =?utf-8?q?1750144978926681057?= From: Naushir Patuck bcmn2835_isp is a platform driver dependent on vchiq, therefore add the load/unload functions for it to vchiq. Signed-off-by: Naushir Patuck 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 642fdbc0d654..2d070f80a170 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 *bcm2835_isp; static struct platform_device *vcsm_cma; struct vchiq_drvdata { @@ -1836,6 +1837,7 @@ static int vchiq_probe(struct platform_device *pdev) vcsm_cma = vchiq_register_child(pdev, "vcsm-cma"); bcm2835_camera = vchiq_register_child(pdev, "bcm2835-camera"); bcm2835_audio = vchiq_register_child(pdev, "bcm2835_audio"); + bcm2835_isp = vchiq_register_child(pdev, "bcm2835-isp"); return 0; @@ -1847,6 +1849,7 @@ static int vchiq_probe(struct platform_device *pdev) static int vchiq_remove(struct platform_device *pdev) { + platform_device_unregister(bcm2835_isp); platform_device_unregister(bcm2835_audio); platform_device_unregister(bcm2835_camera); platform_device_unregister(vcsm_cma);