All of lore.kernel.org
 help / color / mirror / Atom feed
From: linuxtestproject.agent@gmail.com
To: Andrea Cervesato <andrea.cervesato@suse.de>
Cc: ltp@lists.linux.it
Subject: Re: [LTP] fw_load: Modernize ltp_fw_load kernel module
Date: Wed, 10 Jun 2026 17:03:43 +0000	[thread overview]
Message-ID: <20260610170343.4168-1-linuxtestproject.agent@gmail.com> (raw)
In-Reply-To: <20260610-fw_load-v2-1-fca6faa237ab@suse.com>

Hi Andrea,

On Wed Jun 10 15:50:44 2026 +0200, Andrea Cervesato wrote:
> fw_load: Modernize ltp_fw_load kernel module

--- [PATCH 2/3] ---

> -MAKE_TARGETS	:= ltp_fw_load.ko
> +MAKE_TARGETS	:= fw_load01 fw_load02 ltp_fw_load.ko

fw_load02.c is not created until PATCH 3/3, so building the tree at
this commit will fail with a missing-source error. Each patch must
compile on its own without intermediate breakage.

Move fw_load02 out of MAKE_TARGETS here and add it in PATCH 3/3
together with the source file.

> +/*\
> + * [Algorithm]
> + *
> + * - Create firmware files in the standard firmware search
> + *   directories:
> ...
> + * - Load the helper module with ``fw_size`` matching the blob size

The algorithm lists "Create firmware files" before "Load the helper
module", but the code in setup() loads the module first (line 111)
and creates the firmware files after (lines 114-125). Since
request_firmware() is only triggered later via sysfs the order does
not matter for correctness, but the algorithm block should match the
actual code order.

Verdict: Needs revision

---
Note:

The agent can sometimes produce false positives although often its
findings are genuine. If you find issues with the review, please
comment this email or ignore the suggestions.

Regards,
LTP AI Reviewer

-- 
Mailing list info: https://lists.linux.it/listinfo/ltp

  reply	other threads:[~2026-06-10 17:04 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-06-10 13:50 [LTP] [PATCH v2 0/3] Rewrite fw_load test using new API Andrea Cervesato
2026-06-10 13:50 ` [LTP] [PATCH v2 1/3] fw_load: Modernize ltp_fw_load kernel module Andrea Cervesato
2026-06-10 17:03   ` linuxtestproject.agent [this message]
2026-06-10 13:50 ` [LTP] [PATCH v2 2/3] firmware/fw_load: rewrite firmware loading test using new LTP API Andrea Cervesato
2026-06-10 13:50 ` [LTP] [PATCH v2 3/3] firmware/fw_load: add fw_load02 for custom firmware path Andrea Cervesato
  -- strict thread matches above, loose matches on Subject: below --
2026-06-15 12:12 [LTP] [PATCH v7 1/4] fw_load: Modernize ltp_fw_load kernel module Andrea Cervesato
2026-06-15 13:21 ` [LTP] " linuxtestproject.agent
2026-06-11 13:44 [LTP] [PATCH v6 1/4] " Andrea Cervesato
2026-06-11 14:44 ` [LTP] " linuxtestproject.agent
2026-06-10 17:07 [LTP] [PATCH v3 1/3] " Andrea Cervesato
2026-06-10 19:44 ` [LTP] " linuxtestproject.agent
2026-06-10 12:51 [LTP] [PATCH 1/3] " Andrea Cervesato
2026-06-10 13:27 ` [LTP] " linuxtestproject.agent

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=20260610170343.4168-1-linuxtestproject.agent@gmail.com \
    --to=linuxtestproject.agent@gmail.com \
    --cc=andrea.cervesato@suse.de \
    --cc=ltp@lists.linux.it \
    /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.