Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp19052744rwd; Wed, 28 Jun 2023 04:34:08 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7NwS9smWWQ9/i6rK7R5IMWC5CST+NRZeWziov/Xvwv+3t1hBbwvdQJTZdu/dwc1ujvjzkp X-Received: by 2002:a05:6402:690:b0:51d:94d2:ffd2 with SMTP id f16-20020a056402069000b0051d94d2ffd2mr7623738edy.2.1687952047845; Wed, 28 Jun 2023 04:34:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687952047; cv=none; d=google.com; s=arc-20160816; b=B1m9kbJgqoPw8jKZekJZOXZgLO+B7EtzxXdn44OnVnIRfvAcGbGl8wXw8WHq1QqvSy fLlKerH2hkM3O02Oe6Frr1joHqhLBCFSG6zGgqs2QaLKH4dh/4WX+mxdwIgN3pldaORU Vq5DJse30Z5UGpr/4BZqJbpqU3FxT+o/f0sHmYQWkasn9HUoy+zfhxlSTbmJ0T+Rw/UQ 4EhDwC6RpBGrD5DezqxxqUck8J3cvNoq4C4lSYwMIyeDLQTK1zCDdLMwVfIfnJqGwAYp Q7Mv+SNtxZNkLeaPslbtI3RW9sV4lwj6utGQQaaH6mbbDeFZ4dM7FrJqkI+E+azkIxUA Ja4Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:message-id:date:to:cc:from:subject :references:in-reply-to:content-transfer-encoding:mime-version :dkim-signature; bh=Ot/T01oRXj3aqRtiM9npkkfDrxnuG+Sh/YofqpkoqCs=; fh=9/h3Bfv7+tJRg4Cg0ZJunioPC8qN6sauW1t085AXrJg=; b=T/S+iYQA+OPuWlZPPdiAtXaNZq2pkTn4VGYGYl2arnwNJGLlQCsNV7UdrPZE7jBaHQ jb95DOEweY6k2+VL2ISDc2hZBtO9d6/JfiSWXCeQGZYbZ4JYhLK5A/t6OGQggDq4Rjyd x8ydHnC0V0QjwDY5OWqUdiJhOEv/b3Mnaup29Tgc9M/+wNq6CFCU8b7JrbB9TQvx70Tw pKD2Sy+Aap9bVDToz4QEmc7u8BDGHRH4cOg9t9rfs3LrLRk9Pv799rlsmO+OPNVMgv9i lIqGc42mkrax/G2xUHgegtFJhqCpjjyokjXl40+5bBlQfJrfHq6QdnEd9BNC1Z9wAYo0 6qPg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=HKOQlmho; 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 k16-20020aa7d8d0000000b0051be8f5ef5dsi5342103eds.438.2023.06.28.04.33.43; Wed, 28 Jun 2023 04:34:07 -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=HKOQlmho; 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 S230451AbjF1LVm (ORCPT + 99 others); Wed, 28 Jun 2023 07:21:42 -0400 Received: from perceval.ideasonboard.com ([213.167.242.64]:48884 "EHLO perceval.ideasonboard.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231890AbjF1LVe (ORCPT ); Wed, 28 Jun 2023 07:21:34 -0400 Received: from pendragon.ideasonboard.com (aztw-30-b2-v4wan-166917-cust845.vm26.cable.virginm.net [82.37.23.78]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 5E620814; Wed, 28 Jun 2023 13:20:52 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1687951252; bh=abc8pk8RuvvZJla85WjtaH3AoscYHKj27LLRxuhLM+E=; h=In-Reply-To:References:Subject:From:Cc:To:Date:From; b=HKOQlmhowxdU42zNj6H3E6T3eOqEEhzXTKmfc8bXe9RwDb/A99rCqBjBX9uWt9xn3 tMnRI7u9H+OBkHZg+RwAQ1br5UzExCOZYoZldGLs3T7pjnX1iruPEU4E46qps37Uf6 ehh4URLI2YyUURVZ+mFfgZnBdKjVjohp4j3TwaEw= Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable In-Reply-To: <20230627201628.207483-3-umang.jain@ideasonboard.com> References: <20230627201628.207483-1-umang.jain@ideasonboard.com> <20230627201628.207483-3-umang.jain@ideasonboard.com> Subject: Re: [PATCH v8 2/5] staging: vc04_services: vchiq_arm: Register vchiq_bus_type From: Kieran Bingham Cc: stefan.wahren@i2se.com, gregkh@linuxfoundation.org, f.fainelli@gmail.com, athierry@redhat.com, error27@gmail.com, dave.stevenson@raspberrypi.com, laurent.pinchart@ideasonboard.com, Umang Jain To: Umang Jain , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-media@vger.kernel.org, linux-rpi-kernel@lists.infradead.org, linux-staging@lists.linux.dev Date: Wed, 28 Jun 2023 12:21:29 +0100 Message-ID: <168795128917.2878450.12280941046284606847@Monstersaurus> User-Agent: alot/0.10 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Quoting Umang Jain (2023-06-27 21:16:25) > Register the vchiq_bus_type bus with the vchiq interface. > The bcm2835-camera nad bcm2835_audio will be registered to this bus type s/nad/and/ Is it possible to rename bcm2835_audio to bcm2835-audio for consistency? Or is that baked into existing usage/abi already? If it can be changed, I think it's probably something to do in an independent patch at the end of the series anyway. I suspect this patch could be merged with 1/5 but I think it's ok separate too. Reviewed-by: Kieran Bingham > going ahead. >=20 > Signed-off-by: Umang Jain > --- > .../vc04_services/interface/vchiq_arm/vchiq_arm.c | 9 +++++++++ > 1 file changed, 9 insertions(+) >=20 > 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" > =20 > @@ -1870,6 +1872,12 @@ static int __init vchiq_driver_init(void) > { > int ret; > =20 > + ret =3D bus_register(&vchiq_bus_type); > + if (ret) { > + pr_err("Failed to register %s\n", vchiq_bus_type.name); > + return ret; > + } > + > ret =3D platform_driver_register(&vchiq_driver); > if (ret) > pr_err("Failed to register vchiq driver\n"); > @@ -1880,6 +1888,7 @@ module_init(vchiq_driver_init); > =20 > static void __exit vchiq_driver_exit(void) > { > + bus_unregister(&vchiq_bus_type); > platform_driver_unregister(&vchiq_driver); > } > module_exit(vchiq_driver_exit); > --=20 > 2.39.1 >