From: Denis Kenzior <denkenz@gmail.com>
To: Grant Erickson <gerickson@nuovations.com>, ofono@lists.linux.dev
Subject: Re: [PATCH v4 4/7] qmi: Implement QMI service request rate limiting in 'can_write_data'.
Date: Fri, 14 Feb 2025 15:08:02 -0600 [thread overview]
Message-ID: <0fc81066-67e8-4e8a-858d-e92784d72912@gmail.com> (raw)
In-Reply-To: <35556cf3af8ce161ab6e178bdf4615ee94407bc6.1739553712.git.gerickson@nuovations.com>
Hi Grant,
On 2/14/25 11:22 AM, Grant Erickson wrote:
> Determine if we need to rate-limit QMI services requests to a
> transport-specific minimum request period. If so, return true so that
> the queue can be retried again later.
>
> Adds the following data members to 'qmi_transport':
>
> * Minimum request period
> - The minimum period, in microseconds, for back-to-back QMI
> service requests.
>
> * Last request time
> - Time, in microseconds, when the last QMI service request was
> sent.
>
> to support the implementation.
> ---
> drivers/qmimodem/qmi.c | 35 +++++++++++++++++++++++++++++++++++
> 1 file changed, 35 insertions(+)
>
The CI doesn't like this version either:
Alpine (musl) gcc optimized
===========================
Configure: PASS
Build: FAIL
drivers/qmimodem/qmi.c: In function 'can_write_data':
drivers/qmimodem/qmi.c:701:50: error: 'now' may be used uninitialized
[-Werror=maybe-uninitialized]
701 | transport->last_req_sent_time_us = now;
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
drivers/qmimodem/qmi.c:669:18: note: 'now' was declared here
669 | uint64_t now;
| ^~~
cc1: all warnings being treated as errors
make[1]: *** [Makefile:4090: drivers/qmimodem/qmi.o] Error 1
make[1]: Target 'all-am' not remade because of errors.
make: *** [Makefile:2405: all] Error 2
Regards,
-Denis
next prev parent reply other threads:[~2025-02-14 21:08 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-02-14 17:22 [PATCH v4 0/7] Add QMI Device Service Request Rate-limit Option Grant Erickson
2025-02-14 17:22 ` [PATCH v4 1/7] qmi: Added enumeration for device quirk flags Grant Erickson
2025-02-14 17:22 ` [PATCH v4 2/7] qmi: Added structure for device options Grant Erickson
2025-02-14 17:22 ` [PATCH v4 3/7] qmi: Added device options parameter to 'qmi_qmux_device_new' Grant Erickson
2025-02-14 17:22 ` [PATCH v4 4/7] qmi: Implement QMI service request rate limiting in 'can_write_data' Grant Erickson
2025-02-14 21:08 ` Denis Kenzior [this message]
2025-02-14 23:42 ` Grant Erickson
2025-02-14 17:22 ` [PATCH v4 5/7] qmi: Handle request rate limit option in 'qmi_qmux_device_new' Grant Erickson
2025-02-14 17:22 ` [PATCH v4 6/7] udevng: Set the QMI minimum service request period for Quectel BG96 modems Grant Erickson
2025-02-14 17:22 ` [PATCH v4 7/7] gobi: Pass QMI qmux device options to 'qmi_qmux_device_new' Grant Erickson
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=0fc81066-67e8-4e8a-858d-e92784d72912@gmail.com \
--to=denkenz@gmail.com \
--cc=gerickson@nuovations.com \
--cc=ofono@lists.linux.dev \
/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