@@ -47,12 +47,12 @@ MODULE_PARM_DESC(dump_messages,
"BIT(2) - also dump the spi_message data after processing, "
"BIT(3) - also dump the spi_message data before processing");
-/* the device is jumpered for loopback - enabling some rx_buf tests */
-int loopback;
-module_param(loopback, int, 0);
-MODULE_PARM_DESC(loopback,
- "if set enable loopback mode, where the rx_buf " \
- "is checked to match tx_buf after the spi_message " \
+/* the device is jumpered for external loopback - enabling some rx_buf tests */
+int check_rx_buf;
+module_param_named(have_external_loopback, check_rx_buf, int, 0);
+MODULE_PARM_DESC(have_external_loopback,
+ "if set enable external loopback mode, where the rx_buf "
+ "is checked to match tx_buf after the spi_message "
"is executed");
/* run only a specific test */
@@ -455,7 +455,7 @@ static int spi_test_check_loopback_result(struct spi_device *spi,
return ret;
/* if we run without loopback, then return now */
- if (!loopback)
+ if (!check_rx_buf)
return 0;
/* if applicable to transfer check that rx_buf is equal to tx_buf */