mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-23 12:43:55 +08:00
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>
This commit is contained in:
parent
2882b06dda
commit
830b61ba4e
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user