Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
drivers: ethernet: ksz8081: RMII override RNB part
I for the life of me do not know what is going on here with the RNB chip but it seems this override must be set in order for the chip to work, regardless of strap-in configuration, and if not set explicitly, the value after a reset for these two bits will be seemingly random and inconsistent. And it was working before by luck before removing a second redundant reset in a recent commit, because apparently the register was getting the opposite of the reset value according to the datasheet which makes it work. The result of these bits after reset seem to vary depending on host mcu, board, debugger, number of times reset, type of reset, and with a pinch of random chance after keeping all variables seemingly the same, so let's just set it to the value that works explicitly, even if it doesn't make sense. The bit here doesn't have clear documentation but it seems it's for using RMII regardless of the strap in option, which is what we want to do anyways if we know the interface type from DT, so I think it's fine, considering it is making this driver work again. Signed-off-by: Declan Snyder <[email protected]> (cherry picked from commit 495a374)
- Loading branch information