Skip to content

Commit bdfe9fd

Browse files
committed
Merge branch 'drivers-for-6.10' onto 'v6.9-rc1'
Merge the patches that was picked up for v6.10 before v6.9-rc1 became available onto v6.9-rc1 to reduce the risk for conflicts etc.
2 parents 4cece76 + f8627c3 commit bdfe9fd

7 files changed

Lines changed: 26 additions & 16 deletions

File tree

drivers/firmware/qcom/qcom_scm.c

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -163,9 +163,6 @@ static int qcom_scm_bw_enable(void)
163163
if (!__scm->path)
164164
return 0;
165165

166-
if (IS_ERR(__scm->path))
167-
return -EINVAL;
168-
169166
mutex_lock(&__scm->scm_bw_lock);
170167
if (!__scm->scm_vote_count) {
171168
ret = icc_set_bw(__scm->path, 0, UINT_MAX);
@@ -183,7 +180,7 @@ static int qcom_scm_bw_enable(void)
183180

184181
static void qcom_scm_bw_disable(void)
185182
{
186-
if (IS_ERR_OR_NULL(__scm->path))
183+
if (!__scm->path)
187184
return;
188185

189186
mutex_lock(&__scm->scm_bw_lock);
@@ -569,13 +566,14 @@ int qcom_scm_pas_init_image(u32 peripheral, const void *metadata, size_t size,
569566

570567
ret = qcom_scm_bw_enable();
571568
if (ret)
572-
return ret;
569+
goto disable_clk;
573570

574571
desc.args[1] = mdata_phys;
575572

576573
ret = qcom_scm_call(__scm->dev, &desc, &res);
577-
578574
qcom_scm_bw_disable();
575+
576+
disable_clk:
579577
qcom_scm_clk_disable();
580578

581579
out:
@@ -637,10 +635,12 @@ int qcom_scm_pas_mem_setup(u32 peripheral, phys_addr_t addr, phys_addr_t size)
637635

638636
ret = qcom_scm_bw_enable();
639637
if (ret)
640-
return ret;
638+
goto disable_clk;
641639

642640
ret = qcom_scm_call(__scm->dev, &desc, &res);
643641
qcom_scm_bw_disable();
642+
643+
disable_clk:
644644
qcom_scm_clk_disable();
645645

646646
return ret ? : res.result[0];
@@ -672,10 +672,12 @@ int qcom_scm_pas_auth_and_reset(u32 peripheral)
672672

673673
ret = qcom_scm_bw_enable();
674674
if (ret)
675-
return ret;
675+
goto disable_clk;
676676

677677
ret = qcom_scm_call(__scm->dev, &desc, &res);
678678
qcom_scm_bw_disable();
679+
680+
disable_clk:
679681
qcom_scm_clk_disable();
680682

681683
return ret ? : res.result[0];
@@ -706,11 +708,12 @@ int qcom_scm_pas_shutdown(u32 peripheral)
706708

707709
ret = qcom_scm_bw_enable();
708710
if (ret)
709-
return ret;
711+
goto disable_clk;
710712

711713
ret = qcom_scm_call(__scm->dev, &desc, &res);
712-
713714
qcom_scm_bw_disable();
715+
716+
disable_clk:
714717
qcom_scm_clk_disable();
715718

716719
return ret ? : res.result[0];

drivers/soc/qcom/cmd-db.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -362,7 +362,7 @@ static int __init cmd_db_device_init(void)
362362
{
363363
return platform_driver_register(&cmd_db_dev_driver);
364364
}
365-
arch_initcall(cmd_db_device_init);
365+
core_initcall(cmd_db_device_init);
366366

367367
MODULE_DESCRIPTION("Qualcomm Technologies, Inc. Command DB Driver");
368368
MODULE_LICENSE("GPL v2");

drivers/soc/qcom/icc-bwmon.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,7 @@ static const struct regmap_config msm8998_bwmon_regmap_cfg = {
282282
* Cache is necessary for using regmap fields with non-readable
283283
* registers.
284284
*/
285-
.cache_type = REGCACHE_RBTREE,
285+
.cache_type = REGCACHE_MAPLE,
286286
};
287287

288288
static const struct regmap_config msm8998_bwmon_global_regmap_cfg = {
@@ -301,7 +301,7 @@ static const struct regmap_config msm8998_bwmon_global_regmap_cfg = {
301301
* Cache is necessary for using regmap fields with non-readable
302302
* registers.
303303
*/
304-
.cache_type = REGCACHE_RBTREE,
304+
.cache_type = REGCACHE_MAPLE,
305305
};
306306

307307
static const struct reg_field sdm845_cpu_bwmon_reg_fields[] = {
@@ -369,7 +369,7 @@ static const struct regmap_config sdm845_cpu_bwmon_regmap_cfg = {
369369
* Cache is necessary for using regmap fields with non-readable
370370
* registers.
371371
*/
372-
.cache_type = REGCACHE_RBTREE,
372+
.cache_type = REGCACHE_MAPLE,
373373
};
374374

375375
/* BWMON v5 */
@@ -446,7 +446,7 @@ static const struct regmap_config sdm845_llcc_bwmon_regmap_cfg = {
446446
* Cache is necessary for using regmap fields with non-readable
447447
* registers.
448448
*/
449-
.cache_type = REGCACHE_RBTREE,
449+
.cache_type = REGCACHE_MAPLE,
450450
};
451451

452452
static void bwmon_clear_counters(struct icc_bwmon *bwmon, bool clear_all)

drivers/soc/qcom/qcom_stats.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,15 @@ static const struct subsystem_data subsystems[] = {
3535
{ "wpss", 605, 13 },
3636
{ "adsp", 606, 2 },
3737
{ "cdsp", 607, 5 },
38+
{ "cdsp1", 607, 12 },
39+
{ "gpdsp0", 607, 17 },
40+
{ "gpdsp1", 607, 18 },
3841
{ "slpi", 608, 3 },
3942
{ "gpu", 609, 0 },
4043
{ "display", 610, 0 },
4144
{ "adsp_island", 613, 2 },
4245
{ "slpi_island", 613, 3 },
46+
{ "apss", 631, QCOM_SMEM_HOST_ANY },
4347
};
4448

4549
struct stats_config {

drivers/soc/qcom/rpmh-rsc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1154,7 +1154,7 @@ static int __init rpmh_driver_init(void)
11541154
{
11551155
return platform_driver_register(&rpmh_driver);
11561156
}
1157-
arch_initcall(rpmh_driver_init);
1157+
core_initcall(rpmh_driver_init);
11581158

11591159
MODULE_DESCRIPTION("Qualcomm Technologies, Inc. RPMh Driver");
11601160
MODULE_LICENSE("GPL v2");

drivers/soc/qcom/socinfo.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,7 @@ static const char *const pmic_models[] = {
133133
[72] = "PMR735D",
134134
[73] = "PM8550",
135135
[74] = "PMK8550",
136+
[82] = "SMB2360",
136137
};
137138

138139
struct socinfo_params {
@@ -430,6 +431,7 @@ static const struct soc_id soc_id[] = {
430431
{ qcom_board_id(QRU1000) },
431432
{ qcom_board_id(SM8475_2) },
432433
{ qcom_board_id(QDU1000) },
434+
{ qcom_board_id(X1E80100) },
433435
{ qcom_board_id(SM8650) },
434436
{ qcom_board_id(SM4450) },
435437
{ qcom_board_id(QDU1010) },

include/dt-bindings/arm/qcom,ids.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -258,6 +258,7 @@
258258
#define QCOM_ID_QRU1000 539
259259
#define QCOM_ID_SM8475_2 540
260260
#define QCOM_ID_QDU1000 545
261+
#define QCOM_ID_X1E80100 555
261262
#define QCOM_ID_SM8650 557
262263
#define QCOM_ID_SM4450 568
263264
#define QCOM_ID_QDU1010 587

0 commit comments

Comments
 (0)