Hi, Julien. On Tue, Dec 5, 2017 at 1:26 PM, Julien Grall <[email protected]> wrote: > > > On 09/11/17 17:10, Oleksandr Tyshchenko wrote: >> >> From: Oleksandr Tyshchenko <[email protected]> > > > Please explain the rationale behind adding a new field in struct device.
Basically it is needed for the "direct ported" drivers from Linux. I added this field in order to make SCPI protocol driver happy. It operates with platform_set_drvdata/platform_get_drvdata helpers. Sure, I will add detailed description if we decide to go this way. > >> >> Signed-off-by: Oleksandr Tyshchenko <[email protected]> >> CC: Stefano Stabellini <[email protected]> >> CC: Julien Grall <[email protected]> >> --- >> xen/include/asm-arm/device.h | 1 + >> 1 file changed, 1 insertion(+) >> >> diff --git a/xen/include/asm-arm/device.h b/xen/include/asm-arm/device.h >> index 6734ae8..3e2f34a 100644 >> --- a/xen/include/asm-arm/device.h >> +++ b/xen/include/asm-arm/device.h >> @@ -20,6 +20,7 @@ struct device >> struct dt_device_node *of_node; /* Used by drivers imported from >> Linux */ >> #endif >> struct dev_archdata archdata; >> + void *driver_data; >> }; >> typedef struct device device_t; >> > > Cheers, > > -- > Julien Grall -- Regards, Oleksandr Tyshchenko _______________________________________________ Xen-devel mailing list [email protected] https://lists.xenproject.org/mailman/listinfo/xen-devel
