* [PATCH] net: dsa: microchip: fill regmap_config name
@ 2019-08-29 14:14 George McCollister
2019-08-29 15:06 ` Marek Vasut
2019-08-31 20:19 ` David Miller
0 siblings, 2 replies; 3+ messages in thread
From: George McCollister @ 2019-08-29 14:14 UTC (permalink / raw)
To: netdev
Cc: Woojung Huh, Andrew Lunn, Florian Fainelli, Tristram Ha,
Marek Vasut, linux-kernel, George McCollister
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 <george.mccollister@gmail.com>
---
drivers/net/dsa/microchip/ksz_common.h | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/net/dsa/microchip/ksz_common.h b/drivers/net/dsa/microchip/ksz_common.h
index ee7096d8af07..72ec250b9540 100644
--- a/drivers/net/dsa/microchip/ksz_common.h
+++ b/drivers/net/dsa/microchip/ksz_common.h
@@ -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), \
--
2.11.0
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] net: dsa: microchip: fill regmap_config name
2019-08-29 14:14 [PATCH] net: dsa: microchip: fill regmap_config name George McCollister
@ 2019-08-29 15:06 ` Marek Vasut
2019-08-31 20:19 ` David Miller
1 sibling, 0 replies; 3+ messages in thread
From: Marek Vasut @ 2019-08-29 15:06 UTC (permalink / raw)
To: George McCollister, netdev
Cc: Woojung Huh, Andrew Lunn, Florian Fainelli, Tristram Ha, linux-kernel
On 8/29/19 4:14 PM, George McCollister wrote:
> 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 <george.mccollister@gmail.com>
Reviewed-by: Marek Vasut <marex@denx.de>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] net: dsa: microchip: fill regmap_config name
2019-08-29 14:14 [PATCH] net: dsa: microchip: fill regmap_config name George McCollister
2019-08-29 15:06 ` Marek Vasut
@ 2019-08-31 20:19 ` David Miller
1 sibling, 0 replies; 3+ messages in thread
From: David Miller @ 2019-08-31 20:19 UTC (permalink / raw)
To: george.mccollister
Cc: netdev, woojung.huh, andrew, f.fainelli, Tristram.Ha, marex,
linux-kernel
From: George McCollister <george.mccollister@gmail.com>
Date: Thu, 29 Aug 2019 09:14:41 -0500
> 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 <george.mccollister@gmail.com>
Applied.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2019-08-31 20:19 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-08-29 14:14 [PATCH] net: dsa: microchip: fill regmap_config name George McCollister
2019-08-29 15:06 ` Marek Vasut
2019-08-31 20:19 ` David Miller
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).