mirror of
https://github.com/corundum/corundum.git
synced 2025-01-30 08:32:52 +08:00
modules/mqnic: Fix typo in reading nominal clock period registers
Signed-off-by: Alex Forencich <alex@alexforencich.com>
This commit is contained in:
parent
72d8583235
commit
e9b62594c0
@ -71,7 +71,7 @@ static int mqnic_phc_adjfine(struct ptp_clock_info *ptp, long scaled_ppm)
|
||||
}
|
||||
|
||||
nom_per_fns = ioread32(mdev->phc_rb->regs + MQNIC_RB_PHC_REG_NOM_PERIOD_FNS);
|
||||
nom_per_fns = (u64) ioread32(mdev->phc_rb->regs + MQNIC_RB_PHC_REG_NOM_PERIOD_NS) << 32;
|
||||
nom_per_fns |= (u64) ioread32(mdev->phc_rb->regs + MQNIC_RB_PHC_REG_NOM_PERIOD_NS) << 32;
|
||||
|
||||
if (nom_per_fns == 0)
|
||||
nom_per_fns = 0x4ULL << 32;
|
||||
|
Loading…
x
Reference in New Issue
Block a user