Skip to content

Commit 830b61b

Browse files
madalinbucurdavem330
authored andcommitted
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>
1 parent 2882b06 commit 830b61b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎drivers/soc/fsl/qbman/qman.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1025,7 +1025,7 @@ EXPORT_SYMBOL(qman_dqrr_set_ithresh);
10251025
void qman_dqrr_get_ithresh(struct qman_portal *portal, u8 *ithresh)
10261026
{
10271027
if (portal && ithresh)
1028-
*ithresh = portal->p.dqrr.ithresh;
1028+
*ithresh = qm_in(&portal->p, QM_REG_DQRR_ITR);
10291029
}
10301030
EXPORT_SYMBOL(qman_dqrr_get_ithresh);
10311031

0 commit comments

Comments
 (0)