ionic: Don't overwrite the cyclecounter bitmask
authorBrett Creeley <brett.creeley@amd.com>
Fri, 7 Apr 2023 18:45:39 +0000 (11:45 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 12 Apr 2023 08:36:25 +0000 (09:36 +0100)
commitbe690daa224ec41889bf8f293a5bcd8a3ea6a420
tree11ef0aa376807fdb74fbfba68c2b74bd82bc1cba
parentf9408a83278f340e5e38bac06cc31251be385e51
ionic: Don't overwrite the cyclecounter bitmask

The driver was incorrectly overwriting the cyclecounter bitmask,
which was truncating it and not aligning to the hardware mask value.
This isn't causing any issues, but it's wrong. Fix this by not
constraining the cyclecounter/hardware mask.

Luckily, this seems to cause no issues, which is why this change
doesn't have a fixes tag and isn't being sent to net. However, if
any transformations from time->cycles are needed in the future,
this change will be needed.

Suggested-by: Allen Hubbe <allen.hubbe@amd.com>
Signed-off-by: Brett Creeley <brett.creeley@amd.com>
Signed-off-by: Shannon Nelson <shannon.nelson@amd.com>
Reviewed-by: Simon Horman <simon.horman@corigine.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/pensando/ionic/ionic_phc.c