Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

wwan: core: add print for wwan port attach/disconnect

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>
Link: https://lore.kernel.org/r/20230420023617.3919569-1-slark_xiao@163.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>

authored by

Slark Xiao and committed by
Jakub Kicinski
787e6144 8fa66e4a

+3
+3
drivers/net/wwan/wwan_core.c
··· 492 492 if (err) 493 493 goto error_put_device; 494 494 495 + dev_info(&wwandev->dev, "port %s attached\n", dev_name(&port->dev)); 495 496 return port; 496 497 497 498 error_put_device: ··· 518 517 519 518 skb_queue_purge(&port->rxq); 520 519 dev_set_drvdata(&port->dev, NULL); 520 + 521 + dev_info(&wwandev->dev, "port %s disconnected\n", dev_name(&port->dev)); 521 522 device_unregister(&port->dev); 522 523 523 524 /* Release related wwan device */