Thread (16 messages) 16 messages, 6 authors, 2020-01-17

Re: [PATCH V2] firmware: arm_scmi: Make scmi core independent of transport type

flat view

From: Arnd Bergmann <arnd@arndb.de>
Date: 2020-01-13 11:36:38
Also in: lkml

On Mon, Jan 13, 2020 at 7:42 AM Viresh Kumar [off-list ref] wrote:
On 10-01-20, 12:15, Arnd Bergmann wrote:
quoted
On Fri, Jan 10, 2020 at 10:43 AM Viresh Kumar [off-list ref] wrote:

Simply dropping the __iomem isn't much better, now you get other
type mismatches.
Right. So what exactly do you suggest I should do now? Drop __iomem
from the structure's payload field but keep all local variables and
function arguments with __iomem ?
quoted
quoted
+struct scmi_chan_info {
+       void *payload;
+       struct device *dev;
+       struct scmi_handle *handle;
+       void *transport_info;
+};
Maybe you can wrap the scmi_chan_info inside of another
structure that contains  the payload pointer, and use container_of
to convert between them?
We don't need to convert between the two of them, isn't it ? Are you
referring some other field here ?
quoted
It's not obvious which parts of the structure should be shared and
which are transport specific.
All transport specific information is kept in the transport specific
structure which is saved here in the transport_info field. Is there
something else that isn't clear ?
To answer all three, what I meant is that the payload pointer appears
to be transport specific and should not be part of the common
structure if there is generic way to access it.

      Arnd

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help