summaryrefslogtreecommitdiffstats
path: root/drivers/soc/fsl
diff options
context:
space:
mode:
authorMadalin Bucur <madalin.bucur@nxp.com>2018-11-21 13:41:07 +0200
committerDavid S. Miller <davem@davemloft.net>2018-11-23 11:17:06 -0800
commit830b61ba4ee2b7a33cac160d55275513b1ba4eea (patch)
treebaaffbcdc3753032c121187092cfa3945a6b521f /drivers/soc/fsl
parent2882b06ddaa5fbfaf1e65c1beaed8819fb7a0440 (diff)
downloadtalos-obmc-linux-830b61ba4ee2b7a33cac160d55275513b1ba4eea.tar.gz
talos-obmc-linux-830b61ba4ee2b7a33cac160d55275513b1ba4eea.zip
soc: fsl: qbman: read ithresh from HW
Read the DQRR interrupt threshold directly from the hardware. Signed-off-by: Madalin Bucur <madalin.bucur@nxp.com> Signed-off-by: Roy Pledge <roy.pledge@nxp.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/soc/fsl')
-rw-r--r--drivers/soc/fsl/qbman/qman.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/soc/fsl/qbman/qman.c b/drivers/soc/fsl/qbman/qman.c
index 5ce24718c2fd..ce7c03052e33 100644
--- a/drivers/soc/fsl/qbman/qman.c
+++ b/drivers/soc/fsl/qbman/qman.c
@@ -1025,7 +1025,7 @@ EXPORT_SYMBOL(qman_dqrr_set_ithresh);
void qman_dqrr_get_ithresh(struct qman_portal *portal, u8 *ithresh)
{
if (portal && ithresh)
- *ithresh = portal->p.dqrr.ithresh;
+ *ithresh = qm_in(&portal->p, QM_REG_DQRR_ITR);
}
EXPORT_SYMBOL(qman_dqrr_get_ithresh);
OpenPOWER on IntegriCloud