From patchwork Tue Jun 27 20:16:25 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Umang Jain X-Patchwork-Id: 113595 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp8462735vqr; Tue, 27 Jun 2023 13:50:01 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7wAVtZ2unsufcL3gZ97mQa9Zm80KwMzuOBRAn03ebQiCEKcoUneFcF5arL50OSc8mmg8LK X-Received: by 2002:a17:902:e851:b0:1b0:6c10:6836 with SMTP id t17-20020a170902e85100b001b06c106836mr7597866plg.33.1687899001292; Tue, 27 Jun 2023 13:50:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687899001; cv=none; d=google.com; s=arc-20160816; b=h2ZwVgt4qigfyGdzqxPrIRw6bVXAaU2RbUFBU6zW8cngwGx4edCv11p5d4cyy3l8Vk ULdzVk75NfOeDDlT4xxyMZpaIogGh81hXz7BjAV5fBi/qcLQ8KXaR9rXo9W0maMpgde1 oLzatyOSXha/bd3SGkNyE6ysiwcGEVvjejM55tmtGObzh1YwHhEy9BuFAigEnRRdwWoS 4+neH7OE+NOlUDYrPnOie+kWUpoXev3hxMuRV3i8A8H53oY4MiUWo8Pqm8S5znXbVypO ikg4/c+rCvawinvE4fgjnl8CWwPENnEsWFJ55LPeluGduP0Q72YD2AjP04UM9uaqMFip gVtg== 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id li11-20020a170903294b00b001b561d3daf9si7267937plb.215.2023.06.27.13.49.48; Tue, 27 Jun 2023 13:50:01 -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 S231345AbjF0UT1 (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 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?1769890382922323984?= X-GMAIL-MSGID: =?utf-8?q?1769890382922323984?= 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 Reviewed-by: Kieran Bingham --- .../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);