Skip to content

Commit fe675d4

Browse files
committed
Merge tag 'mailbox-v4.20' of git://git.linaro.org/landing-teams/working/fujitsu/integration
Pull mailbox updates from Jassi Brar: - convert print users to use the %pOFn format specifier - enable ti-msgmr driver for the K3 platform as well - add QCS404 to compatible list of QCOM's APCS IPC driver - minor spelling fixes toogle -> toggle - kzalloc failure catch in Mediatek driver * tag 'mailbox-v4.20' of git://git.linaro.org/landing-teams/working/fujitsu/integration: mailbox: mediatek: Add check for possible failure of kzalloc mailbox: bcm-flexrm-mailbox: fix spelling mistake "toogle" -> "toggle" mailbox: qcom: Add QCS404 APPS Global compatible drivers: mailbox: Make ti-msgmr driver depend on ARCH_K3 mailbox: Convert to using %pOFn instead of device_node.name
2 parents e64433d + 9f0a0a3 commit fe675d4

File tree

6 files changed

+14
-9
lines changed

6 files changed

+14
-9
lines changed

Documentation/devicetree/bindings/mailbox/qcom,apcs-kpss-global.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ platforms.
1111
"qcom,msm8916-apcs-kpss-global",
1212
"qcom,msm8996-apcs-hmss-global"
1313
"qcom,msm8998-apcs-hmss-global"
14+
"qcom,qcs404-apcs-apps-global"
1415
"qcom,sdm845-apss-shared"
1516

1617
- reg:

drivers/mailbox/Kconfig

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -105,12 +105,12 @@ config STI_MBOX
105105

106106
config TI_MESSAGE_MANAGER
107107
tristate "Texas Instruments Message Manager Driver"
108-
depends on ARCH_KEYSTONE
108+
depends on ARCH_KEYSTONE || ARCH_K3
109109
help
110110
An implementation of Message Manager slave driver for Keystone
111-
architecture SoCs from Texas Instruments. Message Manager is a
112-
communication entity found on few of Texas Instrument's keystone
113-
architecture SoCs. These may be used for communication between
111+
and K3 architecture SoCs from Texas Instruments. Message Manager
112+
is a communication entity found on few of Texas Instrument's keystone
113+
and K3 architecture SoCs. These may be used for communication between
114114
multiple processors within the SoC. Select this driver if your
115115
platform has support for the hardware block.
116116

drivers/mailbox/bcm-flexrm-mailbox.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -375,7 +375,7 @@ static u32 flexrm_estimate_header_desc_count(u32 nhcnt)
375375
return hcnt;
376376
}
377377

378-
static void flexrm_flip_header_toogle(void *desc_ptr)
378+
static void flexrm_flip_header_toggle(void *desc_ptr)
379379
{
380380
u64 desc = flexrm_read_desc(desc_ptr);
381381

@@ -709,7 +709,7 @@ static void *flexrm_spu_write_descs(struct brcm_message *msg, u32 nhcnt,
709709
wmb();
710710

711711
/* Flip toggle bit in header */
712-
flexrm_flip_header_toogle(orig_desc_ptr);
712+
flexrm_flip_header_toggle(orig_desc_ptr);
713713

714714
return desc_ptr;
715715
}
@@ -838,7 +838,7 @@ static void *flexrm_sba_write_descs(struct brcm_message *msg, u32 nhcnt,
838838
wmb();
839839

840840
/* Flip toggle bit in header */
841-
flexrm_flip_header_toogle(orig_desc_ptr);
841+
flexrm_flip_header_toggle(orig_desc_ptr);
842842

843843
return desc_ptr;
844844
}

drivers/mailbox/mtk-cmdq-mailbox.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -363,6 +363,9 @@ static int cmdq_mbox_send_data(struct mbox_chan *chan, void *data)
363363
WARN_ON(cmdq->suspended);
364364

365365
task = kzalloc(sizeof(*task), GFP_ATOMIC);
366+
if (!task)
367+
return -ENOMEM;
368+
366369
task->cmdq = cmdq;
367370
INIT_LIST_HEAD(&task->list_entry);
368371
task->pa_base = pkt->pa_base;

drivers/mailbox/qcom-apcs-ipc-mailbox.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,7 @@ static const struct of_device_id qcom_apcs_ipc_of_match[] = {
126126
{ .compatible = "qcom,msm8916-apcs-kpss-global", .data = (void *)8 },
127127
{ .compatible = "qcom,msm8996-apcs-hmss-global", .data = (void *)16 },
128128
{ .compatible = "qcom,msm8998-apcs-hmss-global", .data = (void *)8 },
129+
{ .compatible = "qcom,qcs404-apcs-apps-global", .data = (void *)8 },
129130
{ .compatible = "qcom,sdm845-apss-shared", .data = (void *)12 },
130131
{}
131132
};

drivers/mailbox/ti-msgmgr.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -560,8 +560,8 @@ static struct mbox_chan *ti_msgmgr_of_xlate(struct mbox_controller *mbox,
560560
}
561561

562562
err:
563-
dev_err(inst->dev, "Queue ID %d, Proxy ID %d is wrong on %s\n",
564-
req_qid, req_pid, p->np->name);
563+
dev_err(inst->dev, "Queue ID %d, Proxy ID %d is wrong on %pOFn\n",
564+
req_qid, req_pid, p->np);
565565
return ERR_PTR(-ENOENT);
566566
}
567567

0 commit comments

Comments
 (0)