Skip to content

Commit 50c7703

Browse files
committed
Merge tag 'ti-driver-soc-for-v6.16' of https://git.kernel.org/pub/scm/linux/kernel/git/ti/linux into soc/drivers
TI SoC driver updates for v6.16 - ti_sci: Bug fix in CPU latency conversion from us to ms for TISCI protocol - k3-socinfo: Add JTAG ID for AM62LX - Code cleanups: wkup_m3_ipc: Use dev_err_probe, k3-ringacc: use device_match_of_probe and knav_qmss_queue: drop unnecessary NULL check * tag 'ti-driver-soc-for-v6.16' of https://git.kernel.org/pub/scm/linux/kernel/git/ti/linux: soc: ti: wkup_m3_ipc: Use dev_err_probe firmware: ti_sci: Convert CPU latency constraint from us to ms soc: ti: k3-socinfo: Add JTAG ID for AM62LX soc: ti: knav_qmss_queue: Remove unnecessary NULL check before free_percpu() soc: ti: k3-ringacc: Use device_match_of_node() Link: https://lore.kernel.org/r/20250512144719.mpkyw2jbyzslb5hy@yearly Signed-off-by: Arnd Bergmann <[email protected]>
2 parents a97bf0c + 877afe1 commit 50c7703

File tree

5 files changed

+18
-11
lines changed

5 files changed

+18
-11
lines changed

drivers/firmware/ti_sci.c

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
/*
33
* Texas Instruments System Control Interface Protocol Driver
44
*
5-
* Copyright (C) 2015-2024 Texas Instruments Incorporated - https://www.ti.com/
5+
* Copyright (C) 2015-2025 Texas Instruments Incorporated - https://www.ti.com/
66
* Nishanth Menon
77
*/
88

@@ -3670,6 +3670,7 @@ static int __maybe_unused ti_sci_suspend(struct device *dev)
36703670
struct ti_sci_info *info = dev_get_drvdata(dev);
36713671
struct device *cpu_dev, *cpu_dev_max = NULL;
36723672
s32 val, cpu_lat = 0;
3673+
u16 cpu_lat_ms;
36733674
int i, ret;
36743675

36753676
if (info->fw_caps & MSG_FLAG_CAPS_LPM_DM_MANAGED) {
@@ -3682,9 +3683,16 @@ static int __maybe_unused ti_sci_suspend(struct device *dev)
36823683
}
36833684
}
36843685
if (cpu_dev_max) {
3685-
dev_dbg(cpu_dev_max, "%s: sending max CPU latency=%u\n", __func__, cpu_lat);
3686+
/*
3687+
* PM QoS latency unit is usecs, device manager uses msecs.
3688+
* Convert to msecs and round down for device manager.
3689+
*/
3690+
cpu_lat_ms = cpu_lat / USEC_PER_MSEC;
3691+
dev_dbg(cpu_dev_max, "%s: sending max CPU latency=%u ms\n", __func__,
3692+
cpu_lat_ms);
36863693
ret = ti_sci_cmd_set_latency_constraint(&info->handle,
3687-
cpu_lat, TISCI_MSG_CONSTRAINT_SET);
3694+
cpu_lat_ms,
3695+
TISCI_MSG_CONSTRAINT_SET);
36883696
if (ret)
36893697
return ret;
36903698
}

drivers/soc/ti/k3-ringacc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1291,7 +1291,7 @@ struct k3_ringacc *of_k3_ringacc_get_by_phandle(struct device_node *np,
12911291

12921292
mutex_lock(&k3_ringacc_list_lock);
12931293
list_for_each_entry(entry, &k3_ringacc_list, list)
1294-
if (entry->dev->of_node == ringacc_np) {
1294+
if (device_match_of_node(entry->dev, ringacc_np)) {
12951295
ringacc = entry;
12961296
break;
12971297
}

drivers/soc/ti/k3-socinfo.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@
4343
#define JTAG_ID_PARTNO_AM62AX 0xBB8D
4444
#define JTAG_ID_PARTNO_AM62PX 0xBB9D
4545
#define JTAG_ID_PARTNO_J722S 0xBBA0
46+
#define JTAG_ID_PARTNO_AM62LX 0xBBA7
4647

4748
static const struct k3_soc_id {
4849
unsigned int id;
@@ -58,6 +59,7 @@ static const struct k3_soc_id {
5859
{ JTAG_ID_PARTNO_AM62AX, "AM62AX" },
5960
{ JTAG_ID_PARTNO_AM62PX, "AM62PX" },
6061
{ JTAG_ID_PARTNO_J722S, "J722S" },
62+
{ JTAG_ID_PARTNO_AM62LX, "AM62LX" },
6163
};
6264

6365
static const char * const j721e_rev_string_map[] = {

drivers/soc/ti/knav_qmss_queue.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -252,8 +252,7 @@ static struct knav_queue *__knav_queue_open(struct knav_queue_inst *inst,
252252
return qh;
253253

254254
err:
255-
if (qh->stats)
256-
free_percpu(qh->stats);
255+
free_percpu(qh->stats);
257256
devm_kfree(inst->kdev->dev, qh);
258257
return ERR_PTR(ret);
259258
}

drivers/soc/ti/wkup_m3_ipc.c

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -644,11 +644,9 @@ static int wkup_m3_ipc_probe(struct platform_device *pdev)
644644

645645
m3_ipc->mbox = mbox_request_channel(&m3_ipc->mbox_client, 0);
646646

647-
if (IS_ERR(m3_ipc->mbox)) {
648-
dev_err(dev, "IPC Request for A8->M3 Channel failed! %ld\n",
649-
PTR_ERR(m3_ipc->mbox));
650-
return PTR_ERR(m3_ipc->mbox);
651-
}
647+
if (IS_ERR(m3_ipc->mbox))
648+
return dev_err_probe(dev, PTR_ERR(m3_ipc->mbox),
649+
"IPC Request for A8->M3 Channel failed!\n");
652650

653651
if (of_property_read_u32(dev->of_node, "ti,rproc", &rproc_phandle)) {
654652
dev_err(&pdev->dev, "could not get rproc phandle\n");

0 commit comments

Comments
 (0)