* [PATCH] udevng: restore support for phonet modems
@ 2024-10-26 11:53 Sicelo A. Mhlongo
2024-10-28 18:30 ` patchwork-bot+ofono
0 siblings, 1 reply; 2+ messages in thread
From: Sicelo A. Mhlongo @ 2024-10-26 11:53 UTC (permalink / raw)
To: ofono; +Cc: Sicelo A. Mhlongo
Commit 296347f8a4f1 ("udevng: Detect embedded qmi QRTR modems") introduced
a constraint that only rmnet_* modems are valid "net" subsystem devices, thus
breaking phonet modems, which are located in that subsystem as well.
P: /devices/platform/68000000.ocp/48058000.ssi-controller/ssi0/port0/ssi-protocol/net/phonet0
E: DEVPATH=/devices/platform/68000000.ocp/48058000.ssi-controller/ssi0/port0/ssi-protocol/net/phonet0
E: INTERFACE=phonet0
E: OFONO_DRIVER=n900
E: OFONO_ISI_ADDRESS=108
E: SUBSYSTEM=net
Fix the regression by specifically checking for phonet inside
check_net_device().
Fixes: 296347f8a4f1 ("udevng: Detect embedded qmi QRTR modems")
---
plugins/udevng.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/plugins/udevng.c b/plugins/udevng.c
index f4266f39..f34cdcb7 100644
--- a/plugins/udevng.c
+++ b/plugins/udevng.c
@@ -2455,6 +2455,10 @@ static void check_net_device(struct udev_device *device)
}
name = udev_device_get_sysname(device);
+ if (l_str_has_prefix(name, "phonet")) {
+ add_serial_device(device);
+ return;
+ }
if (!l_str_has_prefix(name, "rmnet_"))
return;
--
2.45.2
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] udevng: restore support for phonet modems
2024-10-26 11:53 [PATCH] udevng: restore support for phonet modems Sicelo A. Mhlongo
@ 2024-10-28 18:30 ` patchwork-bot+ofono
0 siblings, 0 replies; 2+ messages in thread
From: patchwork-bot+ofono @ 2024-10-28 18:30 UTC (permalink / raw)
To: Sicelo A. Mhlongo; +Cc: ofono
Hello:
This patch was applied to ofono.git (master)
by Denis Kenzior <denkenz@gmail.com>:
On Sat, 26 Oct 2024 13:53:11 +0200 you wrote:
> Commit 296347f8a4f1 ("udevng: Detect embedded qmi QRTR modems") introduced
> a constraint that only rmnet_* modems are valid "net" subsystem devices, thus
> breaking phonet modems, which are located in that subsystem as well.
>
> P: /devices/platform/68000000.ocp/48058000.ssi-controller/ssi0/port0/ssi-protocol/net/phonet0
> E: DEVPATH=/devices/platform/68000000.ocp/48058000.ssi-controller/ssi0/port0/ssi-protocol/net/phonet0
> E: INTERFACE=phonet0
> E: OFONO_DRIVER=n900
> E: OFONO_ISI_ADDRESS=108
> E: SUBSYSTEM=net
>
> [...]
Here is the summary with links:
- udevng: restore support for phonet modems
https://git.kernel.org/pub/scm/network/ofono/ofono.git/?id=116b6dfef7a7
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] 2+ messages in thread
end of thread, other threads:[~2024-10-28 18:30 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-10-26 11:53 [PATCH] udevng: restore support for phonet modems Sicelo A. Mhlongo
2024-10-28 18:30 ` patchwork-bot+ofono
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.