Hi Stefan,the vchiq_remote_initialised() only checks the member remote, but not
Sorry, indeed I completely missed this mail.
Quoting Stefan Wahren (2024-06-13 21:01:42)
Hi Kieran,I don't understand this comment. Nothing is dropped is it?
Am 13.06.24 um 21:41 schrieb Kieran Bingham:
The vchiq_state used to be obtained through an accessorthank you for sending this patch. Maybe it's worth to mention that this
which would validate that the VCHIQ had been initialised
correctly with the remote.
In commit 42a2f6664e18 ("staging: vc04_services: Move global g_state to
vchiq_state") the global state was moved to the vchiq_mgnt structures
stored as a vchiq instance specific context. This conversion removed the
helpers and instead replaced users of this helper with the assumption
that the state is always available and the remote connected.
Fix this broken assumption by re-introducing the logic that was lost
during the conversion.
patch also drop some unnecessary NULL checks of state.
The newly added vchiq_remote_initialised() is itself a null-check too!