Le 15/10/2021 à 21:59, Mark Cave-Ayland a écrit : > On 15/10/2021 08:17, Laurent Vivier wrote: > >> Le 13/10/2021 à 23:21, Mark Cave-Ayland a écrit : >>> Add a new auxmode GPIO that is updated when port B bit 6 is changed >>> indicating >>> whether the hardware is configured for A/UX mode. >> >> Stupid question: why do you use GPIO to pass the auxmode information between >> VIA and GLUE? >> >> Can't we use object_property_set_link() to set a pointer to the GLUE object? > > For devices that are independent i.e. not contained within others I prefer to > restrict the interface > to properties that are visible within "info qom-tree" which are MRs and > GPIOs. Otherwise GLUE > requires knowledge of VIA internals which breaks the device abstraction. >
OK, makes sense. Thanks, Laurent