]> git.baikalelectronics.ru Git - kernel.git/commit
mailbox: mpfs: fix handling of the reg property
authorConor Dooley <conor.dooley@microchip.com>
Wed, 24 Aug 2022 07:08:11 +0000 (08:08 +0100)
committerJassi Brar <jaswinder.singh@linaro.org>
Thu, 6 Oct 2022 02:48:31 +0000 (21:48 -0500)
commit2b93f0c1edf06de79608b17a9d12468bfab7118c
tree056d8357957bd26abbe23522390c89d27d203393
parent27d26f02ee7c08a8ec756ff52b01eddb83e0a8d2
mailbox: mpfs: fix handling of the reg property

The "data" region of the PolarFire SoC's system controller mailbox is
not one continuous register space - the system controller's QSPI sits
between the control and data registers. Split the "data" reg into two
parts: "data" & "control". Optionally get the "data" register address
from the 3rd reg property in the devicetree & fall back to using the
old base + MAILBOX_REG_OFFSET that the current code uses.

Fixes: e24438db50e8 ("mbox: add polarfire soc system controller mailbox")
Signed-off-by: Conor Dooley <conor.dooley@microchip.com>
Signed-off-by: Jassi Brar <jaswinder.singh@linaro.org>
drivers/mailbox/mailbox-mpfs.c