Skip to content

Commit 5f81d54

Browse files
gmccollisterdavem330
authored andcommitted
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 initialized. "debugfs: Directory '${bus-id}' with parent 'regmap' already present!" Signed-off-by: George McCollister <[email protected]> Reviewed-by: Marek Vasut <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 5b16100 commit 5f81d54

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/net/dsa/microchip/ksz_common.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,7 @@ static inline void ksz_pwrite32(struct ksz_device *dev, int port, int offset,
128128

129129
#define KSZ_REGMAP_ENTRY(width, swp, regbits, regpad, regalign) \
130130
{ \
131+
.name = #width, \
131132
.val_bits = (width), \
132133
.reg_stride = (width) / 8, \
133134
.reg_bits = (regbits) + (regalign), \

0 commit comments

Comments
 (0)