Skip to content
Unverified Commit dff404de authored by Sander Vanheule's avatar Sander Vanheule Committed by Mark Brown
Browse files

regmap: mdio: Clean up invalid clause-22 addresses



Currently a regmap configuration for regmap-mdio must have a register
address width of 5 bits (cf. clause-22 register access). This is not
enforced on the provided register addresses, which would enable
clause-45 MDIO bus access, if the right bit packing is used.

Prevent clause-45 access, and other invalid addresses, by masking the
provided register address.

Signed-off-by: default avatarSander Vanheule <sander@svanheule.net>
Link: https://lore.kernel.org/r/f7013f67e6d6ff56ec98660f18320f6ffcc1a777.1622743333.git.sander@svanheule.net


Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent bcd23f93
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment