Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp18236193rwd; Tue, 27 Jun 2023 13:52:52 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4rC+vbSzDgQsplWGL99Jr9DFde+S1+6tNkFpMk8H51IniLlWZ47YlRNHmm7uI+ER28pgv8 X-Received: by 2002:a05:6a20:3d12:b0:125:dee7:cfed with SMTP id y18-20020a056a203d1200b00125dee7cfedmr9332888pzi.16.1687899171942; Tue, 27 Jun 2023 13:52:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687899171; cv=none; d=google.com; s=arc-20160816; b=F4ClIEMQZJ2pVZc3OgL0VP3LCp5BVr/Tg4zGIJC59M+K7P3CYDXT75A8LCnXzVzOVx vgOB4WaSPW9CP8GpRtJxQ+qsczyU5SiYY3rK3e6KFABaU5IRDICbta4TeaacDA1T216v IL7ZBVT/T1XjVnBKv+329SiogWTaKLRgTTRu5kCiUo+Y8NYxUITp4wVR43ZAa/Xg90G/ rsY/Rf4IxOyxiTfyxD2KS2Rous37x2IC0E7DL6XsT55Maf66LSHWSSz079gYYI6HTX9V BV7lC9MgwVVWzGUb5hiX7lauTnsR6eImIroIKyuIbAwbmmkiiNzZu5Pg9nSKq2R8EycP Ahwg== 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=; fh=KJ7fz4phEMuOPL/5CIrq/GEqblJHB3UXSqcptreppbo=; b=JYSBRFDeS0T0GDlYpd9Gndu7qBcpKfoareVwh4ekG3q56bolIY4qfIy9z/xstASCJ+ aaKaGTeHnMPVYig/fT7BR1pHK1X7AVYrYjTqXRN7vkoONSDE/HuVud/qrtoqJoJCP/0n s9/oKemXK65mXO4txFjCls87Mb+sG7cHLF0O67xCHbXz6en7W3zMtZ4/B1I6dMVgiQFw 5kCksdBgtIqpeXwATaBLdOkSDXroIpAe6Hk+5Je6M7Xj3WkiHNjqfE1+JTdLvQwPWVbE 2mmveIbXkSL4R+rGwCsNjhkyriyQJB8sd4KN1pLD8hFu1y4TO5PcpUurt9Dms4QcAZyh W5Ww== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=i8iqgiRN; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id s7-20020a63f047000000b00553b9b18882si8011484pgj.574.2023.06.27.13.52.39; Tue, 27 Jun 2023 13:52:51 -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=i8iqgiRN; 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 S231332AbjF0UT1 (ORCPT + 99 others); Tue, 27 Jun 2023 16:19:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39980 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231339AbjF0UTM (ORCPT ); Tue, 27 Jun 2023 16:19:12 -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 6716930DE; Tue, 27 Jun 2023 13:18:50 -0700 (PDT) Received: from umang.jainideasonboard.com (85-160-38-115.reb.o2.cz [85.160.38.115]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 765F22C1E; Tue, 27 Jun 2023 22:15:55 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1687896956; bh=h1HbFuL1coODwZNUdPdZyZjoMMWonPwJDJRxIgNIO9Y=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=i8iqgiRN4u9l00ZAeq0b5EYY+2KAN7bWs/hUbX2+6Pnqbsi1/u2/h9R7hVRvPPkx7 aPiSBoVxm7JPYIp7A/PQ1iNEiYPL8VlAHPVgqlEJxGU5ejWG8uuFKmPGxsbnawchv+ pEXsjH6ARfukV2TXKznx0k1phIIABvDXXIDuwGUM= 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 v8 2/5] staging: vc04_services: vchiq_arm: Register vchiq_bus_type Date: Tue, 27 Jun 2023 22:16:25 +0200 Message-Id: <20230627201628.207483-3-umang.jain@ideasonboard.com> X-Mailer: git-send-email 2.39.1 In-Reply-To: <20230627201628.207483-1-umang.jain@ideasonboard.com> References: <20230627201628.207483-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, 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 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); -- 2.39.1