From patchwork Tue Jun 20 13:41:49 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Umang Jain X-Patchwork-Id: 110519 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp3682858vqr; Tue, 20 Jun 2023 06:57:55 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7TMogU3N9qwc7NeNV18gZAERLHX/i4s5cvAjs5993hTBB4Atxz54arv6uhaOCfiNoy0u62 X-Received: by 2002:a17:902:e847:b0:1af:a2a4:837f with SMTP id t7-20020a170902e84700b001afa2a4837fmr12144921plg.26.1687269474752; Tue, 20 Jun 2023 06:57:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687269474; cv=none; d=google.com; s=arc-20160816; b=GitfpXTAJxam0q7//xPelHRBV6+QyxGJ224bJj6SUcMlnQi0+ErSTQdPOXFrB2Er5W GlShTFV2bKKeSjjodRsssBb4sqRj9mbFOPlPtph2AKPl7zzNPVrL6wKoLxP2c4H00+4P gK/2qv0zhEt5ykT0m90KVcX0bc8MTKQISAJzSOYuzRbACOPdbMWe6Wc9ZzWNXpY6bKBn ggx+rUvtEkSBcGI/oq+zTOFTk86K5hnwuqF8lWpM1ynwjRLEdTMkaXbO4LKU7xi5gZ3s 2oGe3gnyjldXSDAe4KDXWt+IsOEhM0ys2P7SCjFtovCK8ZuUhL1JNny7cSzEb3um4iH3 QiLg== 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=VrFQTRMZE+0/YXzL3Z+z01PqooZKqgzZ8lf+l2Bz094=; b=oqeHSnXqCscWRjekyOjVdT42nuTb+x2n9+53FRjsCfxqRjFIxBarIcvRN4sEE2vf4r T5K8qr56Bi1kxq/Hkp4i+qM+hoAmkm7Wz5GC3Z6UXQNCmkGFf7Pr8n5kNnvPPPC4XwpO fzaMTX9srk3wgD/ZbOf33Ei29/DXUE2a3fLxQ5iprEcb52hJYU6YIZM7MNszkbSUZoeY CXBFQsbvBP+jy12Q6G6YxPLjSRiwNntezwSouu8FGHekT7iW3A2dXXQWeV6rKT44JUzP PcEn4t54cSnm4Gb6TKsijD4hQ1zZ5M0ZWsa8Ot7F7p2FE4HD3BTIBhzXVLmo71Z8Ixba dnTQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=U0fkFyIo; 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 x18-20020a17090300d200b001b03d543548si1821770plc.344.2023.06.20.06.57.41; Tue, 20 Jun 2023 06:57:54 -0700 (PDT) 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=U0fkFyIo; 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 S232729AbjFTNmT (ORCPT + 99 others); Tue, 20 Jun 2023 09:42:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41374 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232682AbjFTNmO (ORCPT ); Tue, 20 Jun 2023 09:42:14 -0400 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 2872310F9; Tue, 20 Jun 2023 06:42:13 -0700 (PDT) Received: from umang.jainideasonboard.com (unknown [103.86.18.208]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 5650E15E9; Tue, 20 Jun 2023 15:41:33 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1687268497; bh=h1HbFuL1coODwZNUdPdZyZjoMMWonPwJDJRxIgNIO9Y=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=U0fkFyIonHir/pGXeWSv+lw1081tT7XGmOmZdvT5GBaoD6+Jvy+51gus75NF4xHBT 4cU3VbQWVShUk/NWXxURZgaxQn719EWc1KwOyt5h7yFN48gUU+HvajKfCX1rvIBryK T8wW4VFr980d2QPqehURb5WdWXzn39iFYAivjOmE= From: Umang Jain To: linux-staging@lists.linux.dev, linux-rpi-kernel@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-media@vger.kernel.org, linux-kernel@vger.kernel.org Cc: stefan.wahren@i2se.com, gregkh@linuxfoundation.org, f.fainelli@gmail.com, athierry@redhat.com, error27@gmail.com, dave.stevenson@raspberrypi.com, kieran.bingham@ideasonboard.com, laurent.pinchart@ideasonboard.com, Umang Jain Subject: [PATCH v7 2/5] staging: vc04_services: vchiq_arm: Register vchiq_bus_type Date: Tue, 20 Jun 2023 19:11:49 +0530 Message-Id: <20230620134152.383569-3-umang.jain@ideasonboard.com> X-Mailer: git-send-email 2.39.1 In-Reply-To: <20230620134152.383569-1-umang.jain@ideasonboard.com> References: <20230620134152.383569-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, T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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?1769230276454802783?= X-GMAIL-MSGID: =?utf-8?q?1769230276454802783?= Register the vchiq_bus_type bus with the vchiq interface. The bcm2835-camera nad bcm2835_audio will be registered to this bus type going ahead. Signed-off-by: Umang Jain --- .../vc04_services/interface/vchiq_arm/vchiq_arm.c | 9 +++++++++ 1 file changed, 9 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 aa2313f3bcab..e8d40f891449 100644 --- a/drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c +++ b/drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c @@ -12,6 +12,7 @@ #include #include #include +#include #include #include #include @@ -34,6 +35,7 @@ #include "vchiq_ioctl.h" #include "vchiq_arm.h" #include "vchiq_debugfs.h" +#include "vchiq_device.h" #include "vchiq_connected.h" #include "vchiq_pagelist.h" @@ -1870,6 +1872,12 @@ static int __init vchiq_driver_init(void) { int ret; + ret = bus_register(&vchiq_bus_type); + if (ret) { + pr_err("Failed to register %s\n", vchiq_bus_type.name); + return ret; + } + ret = platform_driver_register(&vchiq_driver); if (ret) pr_err("Failed to register vchiq driver\n"); @@ -1880,6 +1888,7 @@ module_init(vchiq_driver_init); static void __exit vchiq_driver_exit(void) { + bus_unregister(&vchiq_bus_type); platform_driver_unregister(&vchiq_driver); } module_exit(vchiq_driver_exit);