Commit 5f81d545 authored by George McCollister's avatar George McCollister Committed by David S. Miller
Browse files

net: dsa: microchip: fill regmap_config name

Use the register value width as the regmap_config name to prevent the
following error when the second and third regmap_configs are
 "debugfs: Directory '${bus-id}' with parent 'regmap' already present!"

Signed-off-by: default avatarGeorge McCollister <>
Reviewed-by: default avatarMarek Vasut <>
Signed-off-by: default avatarDavid S. Miller <>
parent 5b161002
......@@ -128,6 +128,7 @@ static inline void ksz_pwrite32(struct ksz_device *dev, int port, int offset,
#define KSZ_REGMAP_ENTRY(width, swp, regbits, regpad, regalign) \
{ \
.name = #width, \
.val_bits = (width), \
.reg_stride = (width) / 8, \
.reg_bits = (regbits) + (regalign), \
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment