OSDN Git Service

sfc: populate the timer reload field
authorBert Kenward <bkenward@solarflare.com>
Mon, 18 Dec 2017 16:57:41 +0000 (16:57 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 18 Dec 2017 18:07:50 +0000 (13:07 -0500)
commit0bc959a95e8c1ee0295d2b85538a2a32b7b87880
treec601877dc0955589847e3666fc362fa6d2acc7e3
parentd8d8ccf277419b6feb281a2d08d9f881b2b724be
sfc: populate the timer reload field

The timer mode register now has a separate field for the reload value.
Since we always use this timer with the reload (for interrupt moderation)
we set this to the same as the initial value.

Previous hardware ignores this field, so we can safely set these bits
on all hardware that uses this register.

Signed-off-by: Edward Cree <ecree@solarflare.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/sfc/ef10.c