Skip to content

Commit

Permalink
Merge branch 'drivers-for-6.10' onto 'v6.9-rc1'
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
Bjorn Andersson committed Mar 28, 2024
2 parents 4cece76 + f8627c3 commit bdfe9fd
Show file tree
Hide file tree
Showing 7 changed files with 26 additions and 16 deletions.
23 changes: 13 additions & 10 deletions drivers/firmware/qcom/qcom_scm.c
Original file line number Diff line number Diff line change
Expand Up @@ -163,9 +163,6 @@ static int qcom_scm_bw_enable(void)
if (!__scm->path)
return 0;

if (IS_ERR(__scm->path))
return -EINVAL;

mutex_lock(&__scm->scm_bw_lock);
if (!__scm->scm_vote_count) {
ret = icc_set_bw(__scm->path, 0, UINT_MAX);
Expand All @@ -183,7 +180,7 @@ static int qcom_scm_bw_enable(void)

static void qcom_scm_bw_disable(void)
{
if (IS_ERR_OR_NULL(__scm->path))
if (!__scm->path)
return;

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

ret = qcom_scm_bw_enable();
if (ret)
return ret;
goto disable_clk;

desc.args[1] = mdata_phys;

ret = qcom_scm_call(__scm->dev, &desc, &res);

qcom_scm_bw_disable();

disable_clk:
qcom_scm_clk_disable();

out:
Expand Down Expand Up @@ -637,10 +635,12 @@ int qcom_scm_pas_mem_setup(u32 peripheral, phys_addr_t addr, phys_addr_t size)

ret = qcom_scm_bw_enable();
if (ret)
return ret;
goto disable_clk;

ret = qcom_scm_call(__scm->dev, &desc, &res);
qcom_scm_bw_disable();

disable_clk:
qcom_scm_clk_disable();

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

ret = qcom_scm_bw_enable();
if (ret)
return ret;
goto disable_clk;

ret = qcom_scm_call(__scm->dev, &desc, &res);
qcom_scm_bw_disable();

disable_clk:
qcom_scm_clk_disable();

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

ret = qcom_scm_bw_enable();
if (ret)
return ret;
goto disable_clk;

ret = qcom_scm_call(__scm->dev, &desc, &res);

qcom_scm_bw_disable();

disable_clk:
qcom_scm_clk_disable();

return ret ? : res.result[0];
Expand Down
2 changes: 1 addition & 1 deletion drivers/soc/qcom/cmd-db.c
Original file line number Diff line number Diff line change
Expand Up @@ -362,7 +362,7 @@ static int __init cmd_db_device_init(void)
{
return platform_driver_register(&cmd_db_dev_driver);
}
arch_initcall(cmd_db_device_init);
core_initcall(cmd_db_device_init);

MODULE_DESCRIPTION("Qualcomm Technologies, Inc. Command DB Driver");
MODULE_LICENSE("GPL v2");
8 changes: 4 additions & 4 deletions drivers/soc/qcom/icc-bwmon.c
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@ static const struct regmap_config msm8998_bwmon_regmap_cfg = {
* Cache is necessary for using regmap fields with non-readable
* registers.
*/
.cache_type = REGCACHE_RBTREE,
.cache_type = REGCACHE_MAPLE,
};

static const struct regmap_config msm8998_bwmon_global_regmap_cfg = {
Expand All @@ -301,7 +301,7 @@ static const struct regmap_config msm8998_bwmon_global_regmap_cfg = {
* Cache is necessary for using regmap fields with non-readable
* registers.
*/
.cache_type = REGCACHE_RBTREE,
.cache_type = REGCACHE_MAPLE,
};

static const struct reg_field sdm845_cpu_bwmon_reg_fields[] = {
Expand Down Expand Up @@ -369,7 +369,7 @@ static const struct regmap_config sdm845_cpu_bwmon_regmap_cfg = {
* Cache is necessary for using regmap fields with non-readable
* registers.
*/
.cache_type = REGCACHE_RBTREE,
.cache_type = REGCACHE_MAPLE,
};

/* BWMON v5 */
Expand Down Expand Up @@ -446,7 +446,7 @@ static const struct regmap_config sdm845_llcc_bwmon_regmap_cfg = {
* Cache is necessary for using regmap fields with non-readable
* registers.
*/
.cache_type = REGCACHE_RBTREE,
.cache_type = REGCACHE_MAPLE,
};

static void bwmon_clear_counters(struct icc_bwmon *bwmon, bool clear_all)
Expand Down
4 changes: 4 additions & 0 deletions drivers/soc/qcom/qcom_stats.c
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,15 @@ static const struct subsystem_data subsystems[] = {
{ "wpss", 605, 13 },
{ "adsp", 606, 2 },
{ "cdsp", 607, 5 },
{ "cdsp1", 607, 12 },
{ "gpdsp0", 607, 17 },
{ "gpdsp1", 607, 18 },
{ "slpi", 608, 3 },
{ "gpu", 609, 0 },
{ "display", 610, 0 },
{ "adsp_island", 613, 2 },
{ "slpi_island", 613, 3 },
{ "apss", 631, QCOM_SMEM_HOST_ANY },
};

struct stats_config {
Expand Down
2 changes: 1 addition & 1 deletion drivers/soc/qcom/rpmh-rsc.c
Original file line number Diff line number Diff line change
Expand Up @@ -1154,7 +1154,7 @@ static int __init rpmh_driver_init(void)
{
return platform_driver_register(&rpmh_driver);
}
arch_initcall(rpmh_driver_init);
core_initcall(rpmh_driver_init);

MODULE_DESCRIPTION("Qualcomm Technologies, Inc. RPMh Driver");
MODULE_LICENSE("GPL v2");
2 changes: 2 additions & 0 deletions drivers/soc/qcom/socinfo.c
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,7 @@ static const char *const pmic_models[] = {
[72] = "PMR735D",
[73] = "PM8550",
[74] = "PMK8550",
[82] = "SMB2360",
};

struct socinfo_params {
Expand Down Expand Up @@ -430,6 +431,7 @@ static const struct soc_id soc_id[] = {
{ qcom_board_id(QRU1000) },
{ qcom_board_id(SM8475_2) },
{ qcom_board_id(QDU1000) },
{ qcom_board_id(X1E80100) },
{ qcom_board_id(SM8650) },
{ qcom_board_id(SM4450) },
{ qcom_board_id(QDU1010) },
Expand Down
1 change: 1 addition & 0 deletions include/dt-bindings/arm/qcom,ids.h
Original file line number Diff line number Diff line change
Expand Up @@ -258,6 +258,7 @@
#define QCOM_ID_QRU1000 539
#define QCOM_ID_SM8475_2 540
#define QCOM_ID_QDU1000 545
#define QCOM_ID_X1E80100 555
#define QCOM_ID_SM8650 557
#define QCOM_ID_SM4450 568
#define QCOM_ID_QDU1010 587
Expand Down

0 comments on commit bdfe9fd

Please sign in to comment.