mirror of
https://github.com/torvalds/linux.git
synced 2026-07-31 03:27:03 +02:00
interconnect: qcom: qnoc-qos: Don't skip writing urg_fwd when it's zero
Some QoS enable urgent forwarding by default, but we don't always want this. So don't assume the register already has zero and write it unconditionally. Change-Id: I257e099a588870f8d6e6d68b7fd794e22781450e Signed-off-by: Mike Tipton <mdtipton@codeaurora.org>
This commit is contained in:
parent
bc2e1198cc
commit
81216c014f
|
|
@ -1,6 +1,6 @@
|
|||
// SPDX-License-Identifier: GPL-2.0-only
|
||||
/*
|
||||
* Copyright (c) 2020, The Linux Foundation. All rights reserved.
|
||||
* Copyright (c) 2020-2021, The Linux Foundation. All rights reserved.
|
||||
*
|
||||
*/
|
||||
|
||||
|
|
@ -13,7 +13,7 @@
|
|||
|
||||
#define QOSGEN_MAINCTL_LO(p, qp) ((p)->offsets[qp] + \
|
||||
(p)->regs[QOSGEN_OFF_MAINCTL_LO])
|
||||
# define QOS_SLV_URG_MSG_EN BIT(3)
|
||||
#define QOS_SLV_URG_MSG_EN_SHFT 3
|
||||
# define QOS_DFLT_PRIO_MASK 0x7
|
||||
# define QOS_DFLT_PRIO_SHFT 4
|
||||
|
||||
|
|
@ -49,11 +49,9 @@ static void qcom_icc_set_qos(struct qcom_icc_node *node)
|
|||
QOS_DFLT_PRIO_MASK << QOS_DFLT_PRIO_SHFT,
|
||||
qos->config->prio << QOS_DFLT_PRIO_SHFT);
|
||||
|
||||
if (qos->config->urg_fwd)
|
||||
regmap_update_bits(node->regmap,
|
||||
QOSGEN_MAINCTL_LO(qos, port),
|
||||
QOS_SLV_URG_MSG_EN,
|
||||
QOS_SLV_URG_MSG_EN);
|
||||
regmap_update_bits(node->regmap, QOSGEN_MAINCTL_LO(qos, port),
|
||||
BIT(QOS_SLV_URG_MSG_EN_SHFT),
|
||||
qos->config->urg_fwd << QOS_SLV_URG_MSG_EN_SHFT);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user