diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2023-02-25 15:10:14 -0800 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2023-02-25 15:10:14 -0800 |
commit | 562ed38ded83a5cd3ecf9a1a875c7ee786c146ae (patch) | |
tree | b70d0c82742d92c4a32b01f5c0090c09d21388c3 /drivers | |
parent | 2e3036a2642b6145a8117d21514bfc5f8d5ea595 (diff) | |
parent | 6ccbe33a39523f6d62b22c5ee99c6695993c935e (diff) | |
download | lwn-562ed38ded83a5cd3ecf9a1a875c7ee786c146ae.tar.gz lwn-562ed38ded83a5cd3ecf9a1a875c7ee786c146ae.zip |
Merge tag 'mailbox-v6.3' of git://git.linaro.org/landing-teams/working/fujitsu/integration
Pull mailbox updates from Jassi Brar:
- qcom: misc changes to bindings for sa8775p, QDU1000/QRU1000, IPQ5332,
SDX55, msm8976, glink-rpm-edge
- sti: convert to DT schema
- zynq: switch to flexible array to simplify code
* tag 'mailbox-v6.3' of git://git.linaro.org/landing-teams/working/fujitsu/integration:
dt-bindings: mailbox: qcom-ipcc: Add compatible for QDU1000/QRU1000
mailbox: qcom-apcs-ipc: add IPQ5332 APSS clock support
dt-bindings: mailbox: qcom: add compatible for the IPQ5332 SoC
dt-bindings: remoteproc: qcom,glink-rpm-edge: convert to DT schema
mailbox: qcom-apcs-ipc: enable APCS clock device for MSM8996
dt-bindings: mailbox: qcom: add #clock-cells to msm8996 example
dt-bindings: mailbox: qcom: add missing platforms to conditional clauses
dt-bindings: mailbox: qcom: correct the list of platforms using clocks
dt-bindings: mailbox: qcom: enable syscon compatible for msm8976
dt-bindings: mailbox: qcom: add SDX55 compatible
dt-bindings: mailbox: qcom-ipcc: document the sa8775p platform
dt-bindings: mailbox: sti-mailbox: convert to DT schema
mailbox: zynq: Switch to flexible array to simplify code
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/mailbox/qcom-apcs-ipc-mailbox.c | 3 | ||||
-rw-r--r-- | drivers/mailbox/zynqmp-ipi-mailbox.c | 6 |
2 files changed, 4 insertions, 5 deletions
diff --git a/drivers/mailbox/qcom-apcs-ipc-mailbox.c b/drivers/mailbox/qcom-apcs-ipc-mailbox.c index 0e9f9cba8668..6bbf87c6d60b 100644 --- a/drivers/mailbox/qcom-apcs-ipc-mailbox.c +++ b/drivers/mailbox/qcom-apcs-ipc-mailbox.c @@ -42,7 +42,7 @@ static const struct qcom_apcs_ipc_data msm8994_apcs_data = { }; static const struct qcom_apcs_ipc_data msm8996_apcs_data = { - .offset = 16, .clk_name = NULL + .offset = 16, .clk_name = "qcom-apcs-msm8996-clk" }; static const struct qcom_apcs_ipc_data apps_shared_apcs_data = { @@ -141,6 +141,7 @@ static int qcom_apcs_ipc_remove(struct platform_device *pdev) /* .data is the offset of the ipc register within the global block */ static const struct of_device_id qcom_apcs_ipc_of_match[] = { + { .compatible = "qcom,ipq5332-apcs-apps-global", .data = &ipq6018_apcs_data }, { .compatible = "qcom,ipq6018-apcs-apps-global", .data = &ipq6018_apcs_data }, { .compatible = "qcom,ipq8074-apcs-apps-global", .data = &ipq6018_apcs_data }, { .compatible = "qcom,msm8916-apcs-kpss-global", .data = &msm8916_apcs_data }, diff --git a/drivers/mailbox/zynqmp-ipi-mailbox.c b/drivers/mailbox/zynqmp-ipi-mailbox.c index 12e004ff1a14..a4c8d23c76e2 100644 --- a/drivers/mailbox/zynqmp-ipi-mailbox.c +++ b/drivers/mailbox/zynqmp-ipi-mailbox.c @@ -110,7 +110,7 @@ struct zynqmp_ipi_pdata { unsigned int method; u32 local_id; int num_mboxes; - struct zynqmp_ipi_mbox *ipi_mboxes; + struct zynqmp_ipi_mbox ipi_mboxes[]; }; static struct device_driver zynqmp_ipi_mbox_driver = { @@ -635,7 +635,7 @@ static int zynqmp_ipi_probe(struct platform_device *pdev) int num_mboxes, ret = -EINVAL; num_mboxes = of_get_child_count(np); - pdata = devm_kzalloc(dev, sizeof(*pdata) + (num_mboxes * sizeof(*mbox)), + pdata = devm_kzalloc(dev, struct_size(pdata, ipi_mboxes, num_mboxes), GFP_KERNEL); if (!pdata) return -ENOMEM; @@ -649,8 +649,6 @@ static int zynqmp_ipi_probe(struct platform_device *pdev) } pdata->num_mboxes = num_mboxes; - pdata->ipi_mboxes = (struct zynqmp_ipi_mbox *) - ((char *)pdata + sizeof(*pdata)); mbox = pdata->ipi_mboxes; for_each_available_child_of_node(np, nc) { |