netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Re: [net-next v2] wwan: core: add print for wwan port attach/disconnect
       [not found] <20230417094617.2927393-1-slark_xiao@163.com>
@ 2023-04-19 12:06 ` Loic Poulain
  2023-04-20  1:39 ` Jakub Kicinski
  1 sibling, 0 replies; 6+ messages in thread
From: Loic Poulain @ 2023-04-19 12:06 UTC (permalink / raw)
  To: Slark Xiao
  Cc: ryazanov.s.a, johannes, davem, edumazet, kuba, pabeni, netdev,
	linux-kernel

On Mon, 17 Apr 2023 at 11:47, Slark Xiao <slark_xiao@163.com> wrote:
>
> Refer to USB serial device or net device, there is a notice to
> let end user know the status of device, like attached or
> disconnected. Add attach/disconnect print for wwan device as
> well.
>
> Signed-off-by: Slark Xiao <slark_xiao@163.com>

Reviewed-by: Loic Poulain <loic.poulain@linaro.org>

> ---
>
> v2: Use dev_name() instead of kobj item and make print neat.
> ---
>  drivers/net/wwan/wwan_core.c | 3 +++
>  1 file changed, 3 insertions(+)
>
> diff --git a/drivers/net/wwan/wwan_core.c b/drivers/net/wwan/wwan_core.c
> index 2e1c01cf00a9..aa54fa6d5f90 100644
> --- a/drivers/net/wwan/wwan_core.c
> +++ b/drivers/net/wwan/wwan_core.c
> @@ -492,6 +492,7 @@ struct wwan_port *wwan_create_port(struct device *parent,
>         if (err)
>                 goto error_put_device;
>
> +       dev_info(&wwandev->dev, "port %s attached\n", dev_name(&port->dev));
>         return port;
>
>  error_put_device:
> @@ -517,6 +518,8 @@ void wwan_remove_port(struct wwan_port *port)
>
>         skb_queue_purge(&port->rxq);
>         dev_set_drvdata(&port->dev, NULL);
> +
> +       dev_info(&wwandev->dev, "port %s disconnected\n", dev_name(&port->dev));
>         device_unregister(&port->dev);
>
>         /* Release related wwan device */
> --
> 2.34.1
>

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [net-next v2] wwan: core: add print for wwan port attach/disconnect
       [not found] <20230417094617.2927393-1-slark_xiao@163.com>
  2023-04-19 12:06 ` [net-next v2] wwan: core: add print for wwan port attach/disconnect Loic Poulain
@ 2023-04-20  1:39 ` Jakub Kicinski
  2023-04-20  3:23   ` Slark Xiao
  1 sibling, 1 reply; 6+ messages in thread
From: Jakub Kicinski @ 2023-04-20  1:39 UTC (permalink / raw)
  To: Slark Xiao
  Cc: loic.poulain, ryazanov.s.a, johannes, davem, edumazet, pabeni,
	netdev, linux-kernel

On Mon, 17 Apr 2023 17:46:17 +0800 Slark Xiao wrote:
> Refer to USB serial device or net device, there is a notice to
> let end user know the status of device, like attached or
> disconnected. Add attach/disconnect print for wwan device as
> well.
> 
> Signed-off-by: Slark Xiao <slark_xiao@163.com>

Patch never made it to the list:

https://lore.kernel.org/r/20230417094617.2927393-1-slark_xiao@163.com/

:( Could you resend?

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [net-next v2] wwan: core: add print for wwan port attach/disconnect
@ 2023-04-20  2:36 Slark Xiao
  2023-04-21  3:00 ` Jakub Kicinski
  2023-04-21  3:10 ` patchwork-bot+netdevbpf
  0 siblings, 2 replies; 6+ messages in thread
From: Slark Xiao @ 2023-04-20  2:36 UTC (permalink / raw)
  To: loic.poulain, ryazanov.s.a, johannes, davem, edumazet, kuba,
	pabeni
  Cc: netdev, linux-kernel, Slark Xiao

Refer to USB serial device or net device, there is a notice to
let end user know the status of device, like attached or
disconnected. Add attach/disconnect print for wwan device as
well.

Signed-off-by: Slark Xiao <slark_xiao@163.com>
---

v2: Use dev_name() instead of kobj item and make print neat.
---
 drivers/net/wwan/wwan_core.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/drivers/net/wwan/wwan_core.c b/drivers/net/wwan/wwan_core.c
index 2e1c01cf00a9..aa54fa6d5f90 100644
--- a/drivers/net/wwan/wwan_core.c
+++ b/drivers/net/wwan/wwan_core.c
@@ -492,6 +492,7 @@ struct wwan_port *wwan_create_port(struct device *parent,
 	if (err)
 		goto error_put_device;
 
+	dev_info(&wwandev->dev, "port %s attached\n", dev_name(&port->dev));
 	return port;
 
 error_put_device:
@@ -517,6 +518,8 @@ void wwan_remove_port(struct wwan_port *port)
 
 	skb_queue_purge(&port->rxq);
 	dev_set_drvdata(&port->dev, NULL);
+
+	dev_info(&wwandev->dev, "port %s disconnected\n", dev_name(&port->dev));
 	device_unregister(&port->dev);
 
 	/* Release related wwan device */
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 6+ messages in thread

* Re:Re: [net-next v2] wwan: core: add print for wwan port attach/disconnect
  2023-04-20  1:39 ` Jakub Kicinski
@ 2023-04-20  3:23   ` Slark Xiao
  0 siblings, 0 replies; 6+ messages in thread
From: Slark Xiao @ 2023-04-20  3:23 UTC (permalink / raw)
  To: Jakub Kicinski
  Cc: loic.poulain, ryazanov.s.a, johannes, davem, edumazet, pabeni,
	netdev, linux-kernel




At 2023-04-20 09:39:05, "Jakub Kicinski" <kuba@kernel.org> wrote:
>On Mon, 17 Apr 2023 17:46:17 +0800 Slark Xiao wrote:
>> Refer to USB serial device or net device, there is a notice to
>> let end user know the status of device, like attached or
>> disconnected. Add attach/disconnect print for wwan device as
>> well.
>> 
>> Signed-off-by: Slark Xiao <slark_xiao@163.com>
>
>Patch never made it to the list:
>
>https://lore.kernel.org/r/20230417094617.2927393-1-slark_xiao@163.com/
>
>:( Could you resend?
Send again. Previous email sent to netdev and link-kernel failed with unknown reason.

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [net-next v2] wwan: core: add print for wwan port attach/disconnect
  2023-04-20  2:36 Slark Xiao
@ 2023-04-21  3:00 ` Jakub Kicinski
  2023-04-21  3:10 ` patchwork-bot+netdevbpf
  1 sibling, 0 replies; 6+ messages in thread
From: Jakub Kicinski @ 2023-04-21  3:00 UTC (permalink / raw)
  To: Slark Xiao
  Cc: loic.poulain, ryazanov.s.a, johannes, davem, edumazet, pabeni,
	netdev, linux-kernel

On Thu, 20 Apr 2023 10:36:17 +0800 Slark Xiao wrote:
> Refer to USB serial device or net device, there is a notice to
> let end user know the status of device, like attached or
> disconnected. Add attach/disconnect print for wwan device as
> well.
> 
> Signed-off-by: Slark Xiao <slark_xiao@163.com>

Looks the same as previous posting, applying, but please make sure you
include review tags you received.

https://lore.kernel.org/all/CAMZdPi_WFxQ_aNU1t6dDh7F_aBB99XyeoFGBW2t6DryoJyFJuA@mail.gmail.com/

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [net-next v2] wwan: core: add print for wwan port attach/disconnect
  2023-04-20  2:36 Slark Xiao
  2023-04-21  3:00 ` Jakub Kicinski
@ 2023-04-21  3:10 ` patchwork-bot+netdevbpf
  1 sibling, 0 replies; 6+ messages in thread
From: patchwork-bot+netdevbpf @ 2023-04-21  3:10 UTC (permalink / raw)
  To: Slark Xiao
  Cc: loic.poulain, ryazanov.s.a, johannes, davem, edumazet, kuba,
	pabeni, netdev, linux-kernel

Hello:

This patch was applied to netdev/net-next.git (main)
by Jakub Kicinski <kuba@kernel.org>:

On Thu, 20 Apr 2023 10:36:17 +0800 you wrote:
> Refer to USB serial device or net device, there is a notice to
> let end user know the status of device, like attached or
> disconnected. Add attach/disconnect print for wwan device as
> well.
> 
> Signed-off-by: Slark Xiao <slark_xiao@163.com>
> 
> [...]

Here is the summary with links:
  - [net-next,v2] wwan: core: add print for wwan port attach/disconnect
    https://git.kernel.org/netdev/net-next/c/787e6144aef7

You are awesome, thank you!
-- 
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html



^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2023-04-21  3:10 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <20230417094617.2927393-1-slark_xiao@163.com>
2023-04-19 12:06 ` [net-next v2] wwan: core: add print for wwan port attach/disconnect Loic Poulain
2023-04-20  1:39 ` Jakub Kicinski
2023-04-20  3:23   ` Slark Xiao
2023-04-20  2:36 Slark Xiao
2023-04-21  3:00 ` Jakub Kicinski
2023-04-21  3:10 ` patchwork-bot+netdevbpf

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).