From: Muhammad Nuzaihan <zaihan@unrealasia.net>
To: Andrew Lunn <andrew@lunn.ch>
Cc: netdev@vger.kernel.org, Loic Poulain <loic.poulain@linaro.org>,
Sergey Ryazanov <ryazanov.s.a@gmail.com>,
Johannes Berg <johannes@sipsolutions.net>
Subject: Re: [PATCH] Add NMEA GPS character device for PCIe MHI Quectel Module to read NMEA statements.
Date: Thu, 02 Jan 2025 22:20:23 +0800 [thread overview]
Message-ID: <Z5TGPS.PN2YJKFH2CDV@unrealasia.net> (raw)
In-Reply-To: <4b576e34-ec43-4789-b18b-86d592f9d031@lunn.ch>
Hi Andrew,
I'm actually new to netdev and the main kernel.org documentation on
submitting patches
(https://www.kernel.org/doc/html/v4.17/process/submitting-patches.html)
was not clear on the commit message (or i've missed it).
Thank you for pointing me to the netdev maintainer process page.
Anyway, i will make a new v3 patch tomorrow on a new thread to address
the issues you mentioned. I'll follow the guidelines as you required.
Sorry for the mess.
Thank you,
Muhammad Nuzaihan
On Thu, Jan 2 2025 at 02:22:15 PM +0100, Andrew Lunn <andrew@lunn.ch>
wrote:
> On Thu, Jan 02, 2025 at 05:12:41AM +0800, Muhammad Nuzaihan wrote:
>> Hi netdev,
>>
>> I made a mistake in choosing AT mode IPC, which is incorrect. For
>> NMEA
>> streams it should use LOOPBACK for IPC. If it uses AT, i noticed
>> that using
>> gpsd will cause intermittent IOCTL errors which is caused when gpsd
>> wants to
>> write to the device.
>>
>> Attached is the patch.
>
> This is not my area, so i cannot do a full review, but a few things to
> note.
>
> Please start a new thread for each version of a patch, and wait at
> lest 24 hours between each version.
>
> The commit message should be formal, since it will be part of the
> kernel history.
>
> https://www.kernel.org/doc/html/latest/process/maintainer-netdev.html
>
>> @@ -876,7 +880,8 @@ static long wwan_port_fops_ioctl(struct file
>> *filp, unsigned int cmd,
>> struct wwan_port *port = filp->private_data;
>> int res;
>>
>> - if (port->type == WWAN_PORT_AT) { /* AT port specific IOCTLs */
>> + if (port->type == WWAN_PORT_AT ||
>> + WWAN_PORT_NMEA) { /* AT or NMEA port specific IOCTLs */
>
> This looks wrong. || WWAN_PORT_NMEA will always be true, assuming
> WWAN_PORT_NMEA is not 0.
>
> Andrew
>
> ---
> pw-bot: cr
next prev parent reply other threads:[~2025-01-02 15:00 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-01-01 18:34 [PATCH] Add NMEA GPS character device for PCIe MHI Quectel Module to read NMEA statements Muhammad Nuzaihan
2025-01-01 21:12 ` Muhammad Nuzaihan
2025-01-02 13:22 ` Andrew Lunn
2025-01-02 14:20 ` Muhammad Nuzaihan [this message]
2025-01-02 17:18 ` Sergey Ryazanov
2025-01-02 18:05 ` Muhammad Nuzaihan
2025-01-02 19:15 ` Muhammad Nuzaihan
2025-01-03 16:32 ` Muhammad Nuzaihan
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=Z5TGPS.PN2YJKFH2CDV@unrealasia.net \
--to=zaihan@unrealasia.net \
--cc=andrew@lunn.ch \
--cc=johannes@sipsolutions.net \
--cc=loic.poulain@linaro.org \
--cc=netdev@vger.kernel.org \
--cc=ryazanov.s.a@gmail.com \
/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 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).