From: Stefan Wahren <wahrenst@gmx.net>
To: Umang Jain <umang.jain@ideasonboard.com>,
linux-staging@lists.linux.dev,
linux-arm-kernel@lists.infradead.org,
linux-rpi-kernel@lists.infradead.org,
linux-media@vger.kernel.org, linux-kernel@vger.kernel.org
Cc: Stefan Wahren <stefan.wahren@i2se.com>,
Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
Florian Fainelli <f.fainelli@gmail.com>,
Adrien Thierry <athierry@redhat.com>,
Dan Carpenter <error27@gmail.com>,
Dave Stevenson <dave.stevenson@raspberrypi.com>,
Kieran Bingham <kieran.bingham@ideasonboard.com>,
Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Subject: Re: [PATCH v11 2/5] staging: vc04_services: vchiq_arm: Register vchiq_bus_type
Date: Wed, 13 Sep 2023 23:01:06 +0200 [thread overview]
Message-ID: <0793697d-08b9-49bf-eef7-2abf33dfa747@gmx.net> (raw)
In-Reply-To: <20230913195354.835884-3-umang.jain@ideasonboard.com>
Hi Umang,
Am 13.09.23 um 21:53 schrieb Umang Jain:
> Register the vchiq_bus_type bus with the vchiq interface.
> The bcm2835-camera and bcm2835_audio will be registered to this bus type
> going ahead.
>
> Signed-off-by: Umang Jain <umang.jain@ideasonboard.com>
> Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
> ---
> .../vc04_services/interface/vchiq_arm/vchiq_arm.c | 13 ++++++++++++-
> .../interface/vchiq_arm/vchiq_device.c | 7 -------
> 2 files changed, 12 insertions(+), 8 deletions(-)
>
> 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..d993a91de237 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 <linux/cdev.h>
> #include <linux/fs.h>
> #include <linux/device.h>
> +#include <linux/device/bus.h>
> #include <linux/mm.h>
> #include <linux/highmem.h>
> #include <linux/pagemap.h>
> @@ -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,9 +1872,17 @@ 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)
> + if (ret) {
> pr_err("Failed to register vchiq driver\n");
> + bus_unregister(&vchiq_bus_type);
> + }
>
> return ret;
> }
> @@ -1880,6 +1890,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);
> diff --git a/drivers/staging/vc04_services/interface/vchiq_arm/vchiq_device.c b/drivers/staging/vc04_services/interface/vchiq_arm/vchiq_device.c
> index aad55c461905..b8c46f39e74a 100644
> --- a/drivers/staging/vc04_services/interface/vchiq_arm/vchiq_device.c
> +++ b/drivers/staging/vc04_services/interface/vchiq_arm/vchiq_device.c
> @@ -74,13 +74,6 @@ vchiq_device_register(struct device *parent, const char *name)
> device->dev.bus = &vchiq_bus_type;
> device->dev.release = vchiq_device_release;
>
> - of_dma_configure(&device->dev, parent->of_node, true);
> - ret = dma_set_mask_and_coherent(&device->dev, DMA_BIT_MASK(32));
> - if (ret) {
> - dev_err(&device->dev, "32-bit DMA enable failed\n");
> - return NULL;
> - }
> -
this code was added in the patch before and now it's removed again.
Please avoid this.
> ret = device_register(&device->dev);
> if (ret) {
> dev_err(parent, "Cannot register %s: %d\n", name, ret);
next prev parent reply other threads:[~2023-09-13 21:01 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-09-13 19:53 [PATCH v11 0/5] staging: vc04_services: vchiq: Register devices with a custom bus_type Umang Jain
2023-09-13 19:53 ` [PATCH v11 1/5] staging: vc04_services: vchiq_arm: Add new bus type and device type Umang Jain
2023-09-13 20:58 ` Stefan Wahren
2023-09-14 22:15 ` Robin Murphy
2023-09-14 6:55 ` Dan Carpenter
[not found] ` <700e11e4-057d-78ed-8b52-dd2df97198bf@ideasonboard.com>
2023-09-25 12:18 ` Dan Carpenter
2023-09-17 8:40 ` Stefan Wahren
2023-09-13 19:53 ` [PATCH v11 2/5] staging: vc04_services: vchiq_arm: Register vchiq_bus_type Umang Jain
2023-09-13 21:01 ` Stefan Wahren [this message]
2023-09-14 8:22 ` Umang Jain
2023-09-13 19:53 ` [PATCH v11 3/5] staging: bcm2835-camera: Register bcm2835-camera with vchiq_bus_type Umang Jain
2023-09-13 19:53 ` [PATCH v11 4/5] staging: bcm2835-audio: Register bcm2835-audio " Umang Jain
2023-09-13 19:53 ` [PATCH v11 5/5] staging: vc04_services: vchiq_arm: Remove vchiq_register_child() Umang Jain
2023-09-14 6:45 ` Dan Carpenter
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=0793697d-08b9-49bf-eef7-2abf33dfa747@gmx.net \
--to=wahrenst@gmx.net \
--cc=athierry@redhat.com \
--cc=dave.stevenson@raspberrypi.com \
--cc=error27@gmail.com \
--cc=f.fainelli@gmail.com \
--cc=gregkh@linuxfoundation.org \
--cc=kieran.bingham@ideasonboard.com \
--cc=laurent.pinchart@ideasonboard.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-media@vger.kernel.org \
--cc=linux-rpi-kernel@lists.infradead.org \
--cc=linux-staging@lists.linux.dev \
--cc=stefan.wahren@i2se.com \
--cc=umang.jain@ideasonboard.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox