Re: [PATCH net-next v4 5/8] mfd: zl3073x: Add functions to work with register mailboxes

From: Ivan Vecera
Date: Thu Apr 24 2025 - 15:26:49 EST


On 24. 04. 25 9:10 odp., Andrew Lunn wrote:
Each sequence has to be protected by some lock and this lock needs to be
placed in MFD. Yes the routines for MB access can be for example in DPLL
driver but still the locks have to be inside MFD. So they have to be
exposed to sub-devices.

The point of using MFD was gpio? Does the gpio driver need access to
the mailboxes? Does any other sub driver other than DPLL need to
access mailboxes?

Yes, PHC (PTP) sub-driver is using mailboxes as well. Gpio as well for some initial configuration.

The mutex needs to be shared, but that could be in the common data
structure.

Do you mean that sub-device would access mutexes placed in zl3073x_dev which is parent (mfd) driver structure?

Ivan