From: Manivannan Sadhasivam <mani@kernel.org>
To: Daniele Palmas <dnlplm@gmail.com>
Cc: mhi@lists.linux.dev, linux-arm-msm@vger.kernel.org,
Network Development <netdev@vger.kernel.org>,
loic.poulain@linaro.org
Subject: Re: MHI DTR client implementation
Date: Mon, 7 Nov 2022 17:28:56 +0530 [thread overview]
Message-ID: <20221107115856.GE2220@thinkpad> (raw)
In-Reply-To: <CAGRyCJGWQagceLhnECBcpPfG5jMPZrjbsHrio1BvgpZJhk0pbA@mail.gmail.com>
+ Loic
On Tue, Sep 20, 2022 at 04:23:25PM +0200, Daniele Palmas wrote:
> Hello all,
>
> I'm looking for some guidance related to a possible MHI client for
> serial ports signals management implementation.
>
> Testing the AT channels with Telit modems I noted that unsolicited
> indications do not show: the root cause for this is DTR not set for
> those ports through MHI channels 18/19, something that with current
> upstream code can't be done due to the missing DTR client driver.
>
> I currently have an hack, based on the very first mhi stack submission
> (see https://lore.kernel.org/lkml/1524795811-21399-2-git-send-email-sdias@codeaurora.org/#Z31drivers:bus:mhi:core:mhi_dtr.c),
> solving my issue, but I would like to understand which would be the
> correct way, so maybe I can contribute some code.
>
> Should the MHI DTR client be part of the WWAN subsystem?
Yes, since WWAN is going to be the consumer of this channel, it makes sense to
host the client driver there.
> If yes, does it make sense to have an associated port exposed as a char
> device?
If the goal is to control the DTR settings from userspace, then you can use
the "AT" chardev node and handle the DTR settings in this client driver.
Because at the end of the day, user is going to read/write from AT port only.
Adding one more ctrl port and have it configured before using AT port is going
to be a pain.
Thanks,
Mani
> I guess the answer is no, since it should be used just by the AT ports
> created by mhi_wwan_ctrl, but I'm not sure if that's possible.
>
> Or should the DTR management be somehow part of the MHI stack and
> mhi_wwan_ctrl interacts with that through exported functions?
>
> Thanks a lot in advance,
> Daniele
>
--
மணிவண்ணன் சதாசிவம்
next prev parent reply other threads:[~2022-11-07 11:59 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-09-20 14:23 MHI DTR client implementation Daniele Palmas
2022-11-07 11:58 ` Manivannan Sadhasivam [this message]
2022-11-07 13:46 ` Loic Poulain
2022-11-07 16:28 ` Daniele Palmas
2022-11-07 16:36 ` Jeffrey Hugo
2022-11-07 16:18 ` Daniele Palmas
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20221107115856.GE2220@thinkpad \
--to=mani@kernel.org \
--cc=dnlplm@gmail.com \
--cc=linux-arm-msm@vger.kernel.org \
--cc=loic.poulain@linaro.org \
--cc=mhi@lists.linux.dev \
--cc=netdev@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.