History

Merge tag 'mailbox-fixes-v6.18-rc7' of git://git.kernel.org/pub/scm/linux/kernel/git/jassibrar/mailbox

Pull mailbox fixes from Jassi Brar: - omap: check for pending msgs only when mbox is exclusive - mailbox-test: debugfs_create_dir error checking - mtk: - cmdq: fix DMA address handling - gpueb: Add missing 'static' to mailbox ops struct - pcc: don't zero error register - th1520: fix clock imbalance on probe failure * tag 'mailbox-fixes-v6.18-rc7' of git://git.kernel.org/pub/scm/linux/kernel/git/jassibrar/mailbox: mailbox: th1520: fix clock imbalance on probe failure mailbox: pcc: don't zero error register mailbox: mtk-gpueb: Add missing 'static' to mailbox ops struct mailbox: mtk-cmdq: Refine DMA address handling for the command buffer mailbox: mailbox-test: Fix debugfs_create_dir error checking mailbox: omap-mailbox: Check for pending msgs only when mbox is exclusive

Linus Torvalds committed 11 months ago

Commit 24a84ea2 parents 4331989 e3cee987 files · +68 −38Browse files

Showing the changes to include (1 of 7 files). Show all

Unified · Split

include/linux/mailbox/mtk-cmdq-mailbox.h+10−0
@@ -77,6 +77,16 @@ struct cmdq_pkt { · 76 unmodified lines
7777 size_t buf_size; /* real buffer size */
7878 };
7979
80+/**
81+ * cmdq_get_shift_pa() - get the shift bits of physical address
82+ * @chan: mailbox channel
83+ *
84+ * GCE can only fetch the command buffer address from a 32-bit register.
85+ * Some SOCs support more than 32-bit command buffer address for GCE, which
86+ * requires some shift bits to make the address fit into the 32-bit register.
87+ *
88+ * Return: the shift bits of physical address
89+ */
8090 u8 cmdq_get_shift_pa(struct mbox_chan *chan);
8191
8292 #endif /* __MTK_CMDQ_MAILBOX_H__ */