Article View: linux.kernel.netdev
Article #2352Re: [PATCH net-next v8 1/2] net: wwan: core: propagate modem control signals to port drivers
From: Daniele Palmas
Date: Mon, 12 Oct 2026 13:40
Date: Mon, 12 Oct 2026 13:40
63 lines
12079 bytes
12079 bytes
Hi Peter and Loic, Il giorno lun 12 ott 2026 alle ore 14:15 Loic Poulain <loic.poulain@oss.qualcomm.com> ha scritto: > > Hi Peter, > > On Sat, Oct 10, 2026 at 7:16 PM Peter Hunt <peter.hunt@opengear.com> wrote: > > > > Hi Loic, > > > > A follow-up to my reply, as I overstated one point and would rather ask > > than argue on both. (Adding Daniele, as the first question touches his > > recent QCDM ioctl work.) > > > > On the AT-only check: I said QCDM has no DTR semantics, but I don't > > actually know that. I've only verified DTR/RTS on the AT (DUN) port of a > > Sierra EM9291. I don't know whether the DIAG channel behind QCDM ports > > honours DTR on these modems, or whether libqcdm relies on it now that > > QCDM ports have the TIOCM ioctls. So I see two options: > > > > a) Keep it AT-only in all four places (open, close, removal, ioctl). > > b) Call ->dtr_rts for any port with the TIOCM ioctls (AT and QCDM) > > whenever the driver implements it, again in all four places, and > > leave it to the driver to ignore ports where it doesn't apply. > > > > Which would you prefer? If you or Daniele know that QCDM/DIAG ports > > care about DTR, that would settle it for b). > > I think we can go with option a) for now. The documentation I have > only references virtual RS-232 control signals for DUN, and we can > always revisit this later if additional use cases arise. > Agree, I don't think control signals are used for diag. Regards, Daniele > > > > On the locking: I agree the data_lock/ops_lock split is awkward, and > > it's this series that made the two locks interact. Most of the races > > found in earlier versions came from it. My only concern is the blocking > > write case I mentioned, so the options as I see them are: > > > > a) Use only ops_lock, with the whole ioctl handler under a guard and > > mutex_lock_interruptible() so a waiting ioctl can be interrupted, > > accepting the wait behind a blocking write on rpmsg ports. > > b) Keep data_lock for the termios/TIOCM state and take ops_lock, > > interruptibly, only around the ->dtr_rts call. v9 already limits > > that to when DTR or RTS actually changes. > > > > I'm happy to do either in v9, which do you prefer? > > I would also lean toward option a). We may want more fine-grained > locking in the future, particularly given the blocking write path, but > I think the current approach is acceptable for now. > > Regards, > Loic
Technical Details
Message-ID:
<CAGRyCJFnszYkYbB8fJneue_DgJY_9yOwK2_T1aB-b+RuK7mqjA@mail.gmail.com>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-345012-linux-kernel-netdev=dewy.ruReferences:
<20261007182238.1154851-2-peter.hunt@opengear.com> <CAFEp6-2QsKyZfEdSotVPhxVNOyRzncUphqLY5cRwHXGJiEbzuA@mail.gmail.com> <20261009001714.1078580-1-peter.hunt@opengear.com> <20261010171531.1659006-1-peter.hunt@opengear.com> <CAFEp6-0vuU2sy3pfgyprMMiLOaKCoZMQN=nHQ+dQR1ku9dbwkw@mail.gmail.com>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-345012-linux-kernel-netdev=dewy.ru
From: dnlplm@gmail.com (Daniele Palmas)
Newsgroups: linux.kernel.netdev
Subject: Re: [PATCH net-next v8 1/2] net: wwan: core: propagate modem control
signals to port drivers
Date: Mon, 12 Oct 2026 15:40:39 +0200
Organization: Usenet Network
Message-ID: <CAGRyCJFnszYkYbB8fJneue_DgJY_9yOwK2_T1aB-b+RuK7mqjA@mail.gmail.com>
References: <20261007182238.1154851-2-peter.hunt@opengear.com>
<CAFEp6-2QsKyZfEdSotVPhxVNOyRzncUphqLY5cRwHXGJiEbzuA@mail.gmail.com>
<20261009001714.1078580-1-peter.hunt@opengear.com> <20261010171531.1659006-1-peter.hunt@opengear.com>
<CAFEp6-0vuU2sy3pfgyprMMiLOaKCoZMQN=nHQ+dQR1ku9dbwkw@mail.gmail.com>
MIME-Version: 1.0
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Injection-Info: usenet.network;
logging-data="1791970"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:8uYKrRh5scIEcC1j5uUKeWndJPg= sha256:JHhrHsjammC63GDpZYbybDWk1Ibu7aZzxxALJawFvOo=
sha1:/uc9JQB2Wm4DfhuJeDA4UXxfBlQ= sha256:bHHGMbz0ZGKCkEKDAvdNa1t4GLjKiONl3iJlQA+3P2U=
List-ID: <netdev.vger.kernel.org>
X-Mailpost-Empty-Hdrs: X-Spam-Level
X-Received: from localhost (localhost [127.0.0.1])
by mail.dewy.ru (Postfix) with ESMTP id A0ED010FBFD; Mon, 12 Oct 2026 17:06:28 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: 0.251
X-Spam-Status: No, score=0.251 tagged_above=-9999 required=6.31
tests=[DCC_REPUT_70_89=0.1, DKIM_SIGNED=0.1, DKIM_VALID=-0.1,
DKIM_VALID_AU=-0.1, FREEMAIL_FORGED_FROMDOMAIN=0.001,
FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.249,
HK_RANDOM_FROM=1, MAILING_LIST_MULTI=-1, SPF_HELO_NONE=0.001,
SPF_PASS=-0.001] autolearn=no autolearn_force=no
X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (2048-bit key)
header.d=gmail.com
X-Received: from mail.dewy.ru ([127.0.0.1])
by localhost (mail.dewy.ru [127.0.0.1]) (amavisd-new, port 10024)
with ESMTP id DgeBg9d7iSM7;
Mon, 12 Oct 2026 17:06:25 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=104.64.211.4; helo=sin.lore.kernel.org; envelope-from=netdev+bounces-345012-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN>
X-Authentication-Results: OpenDMARC; dmarc=fail (p=none dis=none) header.from=gmail.com
X-Received: from sin.lore.kernel.org (sin.lore.kernel.org [104.64.211.4])
by mail.dewy.ru (Postfix) with ESMTPS id F224010FBD4; Mon, 12 Oct 2026 17:06:16 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.90.174.1])
by sin.lore.kernel.org (Postfix) with ESMTP id 81C8933B89; Mon, 12 Oct 2026 13:41:44 +0000 (UTC)
X-Received: from localhost.localdomain (localhost.localdomain [127.0.0.1])
by smtp.subspace.kernel.org (Postfix) with ESMTP id 49B4F37B3F7;
Mon, 12 Oct 2026 13:40:53 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="pRyjw5dn"
X-Received: from mail-ua1-f46.google.com (mail-ua1-f46.google.com [209.85.222.46])
(using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits))
(No client certificate requested)
by smtp.subspace.kernel.org (Postfix) with ESMTPS id BDD2B383C8F
for <netdev@vger.kernel.org>; Mon, 12 Oct 2026 13:40:51 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org; arc=pass smtp.client-ip=209.85.222.46
X-ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116;
t=1791812453; cv=pass; b=unjBNntx4Erz+71i0DZnzSHc0xIYvF72ft+P7qOpSc9UYD/uXlqVssgl20f+EIjskP6MyzMpH+P7tEIsEwsgD3k1ayqAfdaAyUbrDPsuV4su+7MIr+ooPnNKguTttKOJnNkb9R7EcMjZGnSMh6ARi2RWLgsERurI6v2d7itYClw=
X-ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org;
s=arc-20240116; t=1791812453; c=relaxed/simple;
bh=tr28fG4ZEXTsiIAwMe0wjF7BnaOQzBQT7Xkb6b/2La0=;
h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject:
To:Cc:Content-Type; b=sMyxS5pLNegz6mjIgxwKYFRZfAVXZlRDUhg+2vMlrCnweFeMx3sMbMqABA69VYrJq8WsTwLMBxMNKNi0s8Zf30Q4ZaAhSVt/ia2XxfRuE5RWckd/iWEZeb1bRGomqhun67VuBxDrWc5WDjd8I499Lx+77hE7lbCntgn8asS8Jz0=
X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=pRyjw5dn; arc=pass smtp.client-ip=209.85.222.46
X-Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com
X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com
X-Received: by mail-ua1-f46.google.com with SMTP id a1e0cc1a2514c-988c90ee9e8so438957241.1
for <netdev@vger.kernel.org>; Mon, 12 Oct 2026 06:40:51 -0700 (PDT)
X-ARC-Seal: i=1; a=rsa-sha256; t=1791812450; cv=none;
d=google.com; s=arc-20260327;
b=IjGtVBP+WH3IwhQL/ybmlpNgSmSk9T75c7mdvMG2h7jLFcFhsKJd6AVjZMkP8wlL/K
dVZmnyFOC0u1zOTLwHTn4HNDv7DxlQ9rWOvozfblZhflC+4QRteXABLQVkZjlvExQd9t
jmpQCFyzSXIvvNh/5wx7/0lEj3O2uynGUzIcPQ/z2N3ikJy90UkNmfF0CkUyem/UhD6E
MFMV8fOQFbUkLNCvdWTeAdXPikqo/i/Puv4zwUFO6Rx5pOiHst5rRpByCjQ1KmKEaZdE
HwPoAgLCRFZJ0ausftQAmJ7GYGF6sSMrOGF1XtX6DEuKuk60CWNifpMb2q9ewWgUHfXY
tPQw==
X-ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20260327;
h=content-transfer-encoding:cc:to:subject:message-id:date:from
:in-reply-to:references:mime-version:dkim-signature;
bh=fISPJgkN0H7LYXqIa8i3iQfM2z/jXKgb3BG/d5Eps08=;
fh=/pCTdGd1k1AbRjIwudvLe4kPUOX/4Vc1RC5HhyDyosc=;
b=jRX7hAFEf6yi4T97ckf+Wa2CN8c1if5wUkcSGkl+HEplpYh8Ys2h1Mrtn89/qFUyOW
bzvwkHsg+5JCbEXYTjRw3LYXH6pwK2Z3TSELjJAwXBO1wa0sCDSf8n8P7H/YiobSr5NN
QlBISxqyVs/uqqOyfTpV2FfyHdX5FXMBCc7uHPri5u8iANF79J7dfwnnAYGTd/u0iFUq
K2Iwz/Lqu1R/WMPr4FXsv42ynNEPOAdue+v493G6QTUjb6uKS3X3iOsEQ9HBnDXjp+wI
+GrSLltrv4qELUmSdelgX5ev9vzuCo51tfDrmw39DEkf1WFXR6YJQxeiezr+SeCKbFFd
v9ZQ==;
darn=vger.kernel.org
X-ARC-Authentication-Results: i=1; mx.google.com; arc=none
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=gmail.com; s=20251104; t=1791812450; x=1792417250; darn=vger.kernel.org;
h=content-transfer-encoding:content-type:cc:to:subject:message-id
:date:from:in-reply-to:references:mime-version:from:to:cc:subject
:date:message-id:reply-to:content-type;
bh=fISPJgkN0H7LYXqIa8i3iQfM2z/jXKgb3BG/d5Eps08=;
b=pRyjw5dn/Kruk86zA3s6mVhdAv8ouj8o7tcJm6whzyn4iWhpQ3HHDSic7Xl1JDla1i
S93Ivg8rG53EMXchKK2D4dQI+ku4SKe1rMmTJrdsN5woBsaOK1lfMUPsYZuvFzrdiBik
znZmmtWYeAH/W0Uv9VUm0tgU7kOSG05qmowkKcBohyGzJjyxE4OWMkF9MTSDbASdNUYV
t/G6TP1PJSahD6Dg8URPLbg+mNMjnHolUiVZQz5FQ6/cuh0lMDaztNBLN8zAc7EJdY9s
0hPVlflfGWec5E8dbNP5LXf29vF03gaQqlokKoeNX/VuiqwOIWbGMe9raxJNqknwvteZ
pNxQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20260707; t=1791812450; x=1792417250;
h=content-transfer-encoding:content-type:cc:to:subject:message-id
:date:from:in-reply-to:references:mime-version:x-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YKXnikma97gYgbxZHbNrUW0CzOLLQu69sG7W3VsQ+3U4vNILWeuamU
ar5cHZFZs
X-Received: by 2002:a05:6102:f10:b0:7c1:918d:d188 with SMTP id
ada2fe7eead31-7cb373e9685mr2247621137.35.1791812450478; Mon, 12 Oct 2026
06:40:50 -0700 (PDT)
X-Precedence: bulk
X-Mailing-List: netdev@vger.kernel.org
X-List-Subscribe: <mailto:netdev+subscribe@vger.kernel.org>
X-List-Unsubscribe: <mailto:netdev+unsubscribe@vger.kernel.org>
X-In-Reply-To: <CAFEp6-0vuU2sy3pfgyprMMiLOaKCoZMQN=nHQ+dQR1ku9dbwkw@mail.gmail.com>
X-Gm-Features: AclHuK99dZi0qD-kjTJ8chj2shsT6zJyFcPaX8IvEYin0Vx-u0gytz2jHkZuBVk
X-Cc: Peter Hunt <peter.hunt@opengear.com>, ryazanov.s.a@gmail.com,
johannes@sipsolutions.net, mani@kernel.org, andrew+netdev@lunn.ch,
davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com,
netdev@vger.kernel.org, mhi@lists.linux.dev, linux-arm-msm@vger.kernel.org,
linux-kernel@vger.kernel.org