* [PATCH net] net: mdiobus: Debug print fwnode handle instead of raw pointer
@ 2024-09-05 14:32 Alexander Dahl
2024-09-05 14:52 ` Andrew Lunn
2024-09-05 16:33 ` Florian Fainelli
0 siblings, 2 replies; 3+ messages in thread
From: Alexander Dahl @ 2024-09-05 14:32 UTC (permalink / raw)
To: netdev
Cc: Calvin Johnson, Andrew Lunn, Heiner Kallweit, Russell King,
David S. Miller, Eric Dumazet, Jakub Kicinski, Paolo Abeni,
open list
Was slightly misleading before, because printed is pointer to fwnode,
not to phy device, as placement in message suggested. Include header
for dev_dbg() declaration while at it.
Output before:
[ +0.001247] mdio_bus f802c000.ethernet-ffffffff: registered phy 2612f00a fwnode at address 3
Output after:
[ +0.001229] mdio_bus f802c000.ethernet-ffffffff: registered phy fwnode /ahb/apb/ethernet@f802c000/ethernet-phy@3 at address 3
Signed-off-by: Alexander Dahl <ada@thorsis.com>
---
drivers/net/mdio/fwnode_mdio.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/drivers/net/mdio/fwnode_mdio.c b/drivers/net/mdio/fwnode_mdio.c
index fd02f5cbc853..b156493d7084 100644
--- a/drivers/net/mdio/fwnode_mdio.c
+++ b/drivers/net/mdio/fwnode_mdio.c
@@ -7,6 +7,7 @@
*/
#include <linux/acpi.h>
+#include <linux/dev_printk.h>
#include <linux/fwnode_mdio.h>
#include <linux/of.h>
#include <linux/phy.h>
@@ -104,7 +105,7 @@ int fwnode_mdiobus_phy_device_register(struct mii_bus *mdio,
return rc;
}
- dev_dbg(&mdio->dev, "registered phy %p fwnode at address %i\n",
+ dev_dbg(&mdio->dev, "registered phy fwnode %pfw at address %i\n",
child, addr);
return 0;
}
base-commit: 8e69c96df771ab469cec278edb47009351de4da6
--
2.39.2
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH net] net: mdiobus: Debug print fwnode handle instead of raw pointer
2024-09-05 14:32 [PATCH net] net: mdiobus: Debug print fwnode handle instead of raw pointer Alexander Dahl
@ 2024-09-05 14:52 ` Andrew Lunn
2024-09-05 16:33 ` Florian Fainelli
1 sibling, 0 replies; 3+ messages in thread
From: Andrew Lunn @ 2024-09-05 14:52 UTC (permalink / raw)
To: Alexander Dahl
Cc: netdev, Calvin Johnson, Heiner Kallweit, Russell King,
David S. Miller, Eric Dumazet, Jakub Kicinski, Paolo Abeni,
open list
On Thu, Sep 05, 2024 at 04:32:47PM +0200, Alexander Dahl wrote:
> Was slightly misleading before, because printed is pointer to fwnode,
> not to phy device, as placement in message suggested. Include header
> for dev_dbg() declaration while at it.
>
> Output before:
>
> [ +0.001247] mdio_bus f802c000.ethernet-ffffffff: registered phy 2612f00a fwnode at address 3
>
> Output after:
>
> [ +0.001229] mdio_bus f802c000.ethernet-ffffffff: registered phy fwnode /ahb/apb/ethernet@f802c000/ethernet-phy@3 at address 3
>
> Signed-off-by: Alexander Dahl <ada@thorsis.com>
The patch itself looks good. But i think this should be for net-next,
not net. '2612f00a' is not particularly useful, but i don't think it
causes problems for anybody as required by the Stable rules.
So the Subject should be [PATCH net-next]
https://www.kernel.org/doc/html/latest/process/maintainer-netdev.html
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Andrew
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH net] net: mdiobus: Debug print fwnode handle instead of raw pointer
2024-09-05 14:32 [PATCH net] net: mdiobus: Debug print fwnode handle instead of raw pointer Alexander Dahl
2024-09-05 14:52 ` Andrew Lunn
@ 2024-09-05 16:33 ` Florian Fainelli
1 sibling, 0 replies; 3+ messages in thread
From: Florian Fainelli @ 2024-09-05 16:33 UTC (permalink / raw)
To: Alexander Dahl, netdev
Cc: Calvin Johnson, Andrew Lunn, Heiner Kallweit, Russell King,
David S. Miller, Eric Dumazet, Jakub Kicinski, Paolo Abeni,
open list
On 9/5/24 07:32, Alexander Dahl wrote:
> Was slightly misleading before, because printed is pointer to fwnode,
> not to phy device, as placement in message suggested. Include header
> for dev_dbg() declaration while at it.
>
> Output before:
>
> [ +0.001247] mdio_bus f802c000.ethernet-ffffffff: registered phy 2612f00a fwnode at address 3
>
> Output after:
>
> [ +0.001229] mdio_bus f802c000.ethernet-ffffffff: registered phy fwnode /ahb/apb/ethernet@f802c000/ethernet-phy@3 at address 3
>
> Signed-off-by: Alexander Dahl <ada@thorsis.com>
Reviewed-by: Florian Fainelli <florian.fainelli@broadcom.com>
--
Florian
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2024-09-05 16:33 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-09-05 14:32 [PATCH net] net: mdiobus: Debug print fwnode handle instead of raw pointer Alexander Dahl
2024-09-05 14:52 ` Andrew Lunn
2024-09-05 16:33 ` Florian Fainelli
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).