-
Notifications
You must be signed in to change notification settings - Fork 2
Open
Description
linux-ptp-driver-package/linux/drivers/ptp/ptp_clockmatrix.c
Lines 1344 to 1353 in ab777a3
| err = idtcm_read(idtcm, (u16)base, OUT_CTRL_1, &val, sizeof(val)); | |
| if (err) | |
| return err; | |
| if (enable) | |
| val |= SQUELCH_DISABLE; | |
| else | |
| val &= ~SQUELCH_DISABLE; | |
| return idtcm_write(idtcm, (u16)base, OUT_CTRL_1, &val, sizeof(val)); |
After converting variable base from int to u16, the two most significant bytes of the value are lost. This makes it impossible to select correct register page.
Metadata
Metadata
Assignees
Labels
No labels