All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] spi: spi-loopback-test: Add module param for iteration length
@ 2023-04-03  4:09 Rohit Ner
  2023-04-03 11:16 ` Mark Brown
  2023-04-13 17:52 ` Mark Brown
  0 siblings, 2 replies; 3+ messages in thread
From: Rohit Ner @ 2023-04-03  4:09 UTC (permalink / raw)
  To: broonie; +Cc: linux-spi, linux-kernel, Manu Gautam, Joy Chakraborty

SPI test framework is designed to run each test case for
a list of lengths.
Introduce a module parameter to limit the iterations
to a single value among the list of lengths.

Signed-off-by: Rohit Ner <rohitner@google.com>

diff --git a/drivers/spi/spi-loopback-test.c b/drivers/spi/spi-loopback-test.c
index 313106eb8d40..675a73cf1579 100644
--- a/drivers/spi/spi-loopback-test.c
+++ b/drivers/spi/spi-loopback-test.c
@@ -53,6 +53,12 @@ module_param(no_cs, int, 0);
 MODULE_PARM_DESC(no_cs,
                 "if set Chip Select (CS) will not be used");

+/* run tests only for a specific length */
+static int run_only_iter_len = -1;
+module_param(run_only_iter_len, int, 0);
+MODULE_PARM_DESC(run_only_iter_len,
+                "only run tests for a length of this number in
iterate_len list");
+
 /* run only a specific test */
 static int run_only_test = -1;
 module_param(run_only_test, int, 0);
@@ -1033,6 +1039,8 @@ int spi_test_run_test(struct spi_device *spi,
const struct spi_test *test,

        for (idx_len = 0; idx_len < SPI_TEST_MAX_ITERATE &&
             (len = test->iterate_len[idx_len]) != -1; idx_len++) {
+               if ((run_only_iter_len > -1) && len != run_only_iter_len)
+                       continue;
                FOR_EACH_ALIGNMENT(tx_align) {
                        FOR_EACH_ALIGNMENT(rx_align) {
                                /* and run the iteration */

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] spi: spi-loopback-test: Add module param for iteration length
  2023-04-03  4:09 [PATCH] spi: spi-loopback-test: Add module param for iteration length Rohit Ner
@ 2023-04-03 11:16 ` Mark Brown
  2023-04-13 17:52 ` Mark Brown
  1 sibling, 0 replies; 3+ messages in thread
From: Mark Brown @ 2023-04-03 11:16 UTC (permalink / raw)
  To: Rohit Ner; +Cc: linux-spi, linux-kernel, Manu Gautam, Joy Chakraborty

[-- Attachment #1: Type: text/plain, Size: 308 bytes --]

On Mon, Apr 03, 2023 at 09:39:10AM +0530, Rohit Ner wrote:
> SPI test framework is designed to run each test case for
> a list of lengths.
> Introduce a module parameter to limit the iterations
> to a single value among the list of lengths.

This doesn't apply against current code, please check and resend.

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] spi: spi-loopback-test: Add module param for iteration length
  2023-04-03  4:09 [PATCH] spi: spi-loopback-test: Add module param for iteration length Rohit Ner
  2023-04-03 11:16 ` Mark Brown
@ 2023-04-13 17:52 ` Mark Brown
  1 sibling, 0 replies; 3+ messages in thread
From: Mark Brown @ 2023-04-13 17:52 UTC (permalink / raw)
  To: Rohit Ner; +Cc: linux-spi, linux-kernel, Manu Gautam, Joy Chakraborty

On Mon, 03 Apr 2023 09:39:10 +0530, Rohit Ner wrote:
> SPI test framework is designed to run each test case for
> a list of lengths.
> Introduce a module parameter to limit the iterations
> to a single value among the list of lengths.
> 
> 

Applied to

   https://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi.git for-next

Thanks!

[1/1] spi: spi-loopback-test: Add module param for iteration length
      commit: 6d87552c0b86b9677d762002082df5f5b7e3c33f

All being well this means that it will be integrated into the linux-next
tree (usually sometime in the next 24 hours) and sent to Linus during
the next merge window (or sooner if it is a bug fix), however if
problems are discovered then the patch may be dropped or reverted.

You may get further e-mails resulting from automated or manual testing
and review of the tree, please engage with people reporting problems and
send followup patches addressing any issues that are reported if needed.

If any updates are required or you are submitting further changes they
should be sent as incremental updates against current git, existing
patches will not be replaced.

Please add any relevant lists and maintainers to the CCs when replying
to this mail.

Thanks,
Mark


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2023-04-13 17:52 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-04-03  4:09 [PATCH] spi: spi-loopback-test: Add module param for iteration length Rohit Ner
2023-04-03 11:16 ` Mark Brown
2023-04-13 17:52 ` Mark Brown

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.