Clause-22/Clause-45 MDIO regmap support fixups
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v2 Latest2 patches 1 replyIn review
- v12 patches 3 repliesSuperseded
Patches in v2 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | regmap: mdio: Fix regmap_bus pointer constnessdrivers/ | +1 | 0 replies | |
| 2/2 | regmap: mdio: Reject invalid addressesdrivers/ | +16 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.
Cover letter [PATCH v2 0/2] Clause-22/Clause-45 MDIO regmap support fixups
A proposed patch to make C22 access more strict [1], was posted in reply to an RFC series which also added C45 register access [2]. It appears that as a result, the original RFC patches got merged instead.
Access functions are corrected to return -ENXIO, instead of silently ignoring any invalid high bits in the register offset.
Additionally, a warning about a discarded const qualifier is fixed.
[1] Proposed C22 patch:
https://lore.kernel.org/lkml/[email protected]/
[2] RFC series:
https://lore.kernel.org/lkml/[email protected]/
---
Changes since v1:
- Keep C45 access code, but apply fix for discarded pointer constness
- Return -ENXIO for invalid C45 access too, as done for invalid C22 access
Sander Vanheule (2):
regmap: mdio: Fix regmap_bus pointer constness
regmap: mdio: Reject invalid addresses
drivers/base/regmap/regmap-mdio.c | 22 +++++++++++++++++----- 1 file changed, 17 insertions(+), 5 deletions(-)
Signature · 1 line
2.31.1