aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/enic/vnic_intr.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/enic/vnic_intr.c')
-rw-r--r--drivers/net/enic/vnic_intr.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/drivers/net/enic/vnic_intr.c b/drivers/net/enic/vnic_intr.c
index 3873771d75cc..0ca107f7bc8c 100644
--- a/drivers/net/enic/vnic_intr.c
+++ b/drivers/net/enic/vnic_intr.c
@@ -46,7 +46,7 @@ int vnic_intr_alloc(struct vnic_dev *vdev, struct vnic_intr *intr,
46 return 0; 46 return 0;
47} 47}
48 48
49void vnic_intr_init(struct vnic_intr *intr, unsigned int coalescing_timer, 49void vnic_intr_init(struct vnic_intr *intr, u32 coalescing_timer,
50 unsigned int coalescing_type, unsigned int mask_on_assertion) 50 unsigned int coalescing_type, unsigned int mask_on_assertion)
51{ 51{
52 vnic_intr_coalescing_timer_set(intr, coalescing_timer); 52 vnic_intr_coalescing_timer_set(intr, coalescing_timer);
@@ -56,9 +56,10 @@ void vnic_intr_init(struct vnic_intr *intr, unsigned int coalescing_timer,
56} 56}
57 57
58void vnic_intr_coalescing_timer_set(struct vnic_intr *intr, 58void vnic_intr_coalescing_timer_set(struct vnic_intr *intr,
59 unsigned int coalescing_timer) 59 u32 coalescing_timer)
60{ 60{
61 iowrite32(coalescing_timer, &intr->ctrl->coalescing_timer); 61 iowrite32(vnic_dev_intr_coal_timer_usec_to_hw(intr->vdev,
62 coalescing_timer), &intr->ctrl->coalescing_timer);
62} 63}
63 64
64void vnic_intr_clean(struct vnic_intr *intr) 65void vnic_intr_clean(struct vnic_intr *intr)