[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <3cd7fc7d-075f-4945-b84d-7326e3c99553@gmail.com>
Date: Wed, 6 Dec 2023 02:02:57 +0530
From: Ayush Singh <ayushdevel1325@...il.com>
To: Greg KH <gregkh@...uxfoundation.org>
Cc: Johan Hovold <johan@...nel.org>, greybus-dev@...ts.linaro.org,
elder@...nel.org, linux-kernel@...r.kernel.org,
jkridner@...gleboard.org, kernel test robot <yujie.liu@...el.com>
Subject: Re: [PATCH V3] greybus: gb-beagleplay: Ensure le for values in
transport
On 12/6/23 01:15, Greg KH wrote:
> I'm confused, what exactly is needed here to be sent that isn't in the
> existing message definition.
>
> And as to your original statement, the protocol definition was not
> designed for any specific use case that would make IoT "special" here
> that I can see. It was designed to provide a discoverable way to
> describe and control hardware on an unknown transport layer for devices
> that are not discoverable by definition (serial, i2c, etc.)
>
> The fact that we implemented this on both USB and unipro successfully
> provided that the transport layer for the data should be working and
> agnositic.
>
> thanks,
>
> greg k-h
So, the missing information is the AP cport which is sending the
message/for which the message is intended. Each AP cport will be
connected to a cport in some greybus node. For a simple case like USB,
where AP can directly talk to the node, and we do not really need the
cport information outside of kernel driver.
I think under normal circumstances, the kernel driver is supposed to
directly communicate with the node. However, in beagle play, the subghz
transport is only present in CC1352 coprocessor. This means CC1352 needs
to act as the middle man between AP and node (aka perform the APBridge
tasks). So it needs to maintain a way to keep track of all active
greybus connections, and route the messages between AP and Node cports.
I am not quite sure where SVC is supposed to be in Linux kernel greybus
setup. Since SVC needs to be able to detect module insertion/removal, it
needs to be able to access the same transport as APBridge. Thus, CC1352
(and gbridge in old setup) are responsible for both SVC and APBridge roles.
Simply put, if the kernel driver cannot directly connect to the node,
the processor / network entity handling APBridge tasks will need to
cport information. And it probably is good to make it possible to
separate APBridge from AP in complex networks.
Feel free to ask questions if I was unclear regarding something. Also
feel free to correct me if I got something wrong since I only started
working on greybus this summer.
Ayush Singh
Powered by blists - more mailing lists