From 09862fec2658021c29db84ea3c4fe8794f4437d8 Mon Sep 17 00:00:00 2001 From: "Vanya A. Sergeev" Date: Fri, 11 Dec 2020 03:41:21 -0600 Subject: [PATCH] tests/spi: remove extra flags assertions in newer kernels the spidev driver appends SPI_CS_HIGH to the mode when the SPI controller is configured to use GPIOs for chip selects, which breaks the assertion that extra flags is zero in this SPI test. --- tests/test_spi.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/tests/test_spi.c b/tests/test_spi.c index 9c1b540..ae5ae7d 100644 --- a/tests/test_spi.c +++ b/tests/test_spi.c @@ -36,7 +36,6 @@ void test_open_config_close(void) { unsigned int mode; spi_bit_order_t bit_order; uint8_t bits_per_word; - uint8_t extra_flags; uint32_t max_speed; ptest(); @@ -47,13 +46,11 @@ void test_open_config_close(void) { passert(spi_open(spi, device, 0, 100000) == 0); - /* Confirm bit_order = MSB first, bits_per_word = 8, extra_flags = 0 */ + /* Confirm bit_order = MSB first, bits_per_word = 8 */ passert(spi_get_bit_order(spi, &bit_order) == 0); passert(bit_order == MSB_FIRST); passert(spi_get_bits_per_word(spi, &bits_per_word) == 0); passert(bits_per_word == 8); - passert(spi_get_extra_flags(spi, &extra_flags) == 0); - passert(extra_flags == 0); /* Not going to try different bit order or bits per word, because not all * SPI controllers support them */