spi: sun4i: Set bits_per_word_mask to only support 8 bits word length
Subsystems (2)
PATCH 1/2 spi: sun4i: Set bits_per_word_mask to only support 8 bits word length
This controller only supports 8 bits word length.
Set bits_per_word_mask so spi core will reject transfers that attempt to use an unsupported bits_per_word value.
--- drivers/spi/spi-sun4i.c | 1 + 1 file changed, 1 insertion(+)
drivers/spi/spi-sun4i.c +1 -0
@@ -392,6 +392,7 @@ static int sun4i_spi_probe(struct platform_device *pdev) master->transfer_one = sun4i_spi_transfer_one; master->num_chipselect =4 ; master->mode_bits =SPI_CPOL |SPI_CPHA |SPI_CS_HIGH |SPI_LSB_FIRST ; + master->bits_per_word_mask =SPI_BPW_MASK (8 ); master->dev.of_node = pdev->dev.of_node; master->auto_runtime_pm = true;
Signature · 8 lines
1.8.1.2 -- To unsubscribe from this list: send the line "unsubscribe linux-spi" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
PATCH 2/2 spi: sun6i: Set bits_per_word_mask to only support 8 bits word length
This controller only supports 8 bits word length.
Set bits_per_word_mask so spi core will reject transfers that attempt to use an unsupported bits_per_word value.
--- drivers/spi/spi-sun6i.c | 1 + 1 file changed, 1 insertion(+)
drivers/spi/spi-sun6i.c +1 -0
@@ -391,6 +391,7 @@ static int sun6i_spi_probe(struct platform_device *pdev) master->transfer_one = sun6i_spi_transfer_one; master->num_chipselect =4 ; master->mode_bits =SPI_CPOL |SPI_CPHA |SPI_CS_HIGH |SPI_LSB_FIRST ; + master->bits_per_word_mask =SPI_BPW_MASK (8 ); master->dev.of_node = pdev->dev.of_node; master->auto_runtime_pm = true;
Signature · 8 lines
1.8.1.2 -- To unsubscribe from this list: send the line "unsubscribe linux-spi" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
Re: [PATCH 2/2] spi: sun6i: Set bits_per_word_mask to only support 8 bits word length
Quoted 5 lines · Axel Lin
This controller only supports 8 bits word length.
Setbits_per_word_maskso spi core will reject transfers that attempt to use an unsupportedbits_per_wordvalue.Signed-off-by Axel Lin <[email protected]>
Thanks!
Maxime
Signature · 3 lines
Maxime Ripard, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com
Quoted 5 lines · Axel Lin
This controller only supports 8 bits word length.
Setbits_per_word_maskso spi core will reject transfers that attempt to use an unsupportedbits_per_wordvalue.Signed-off-by Axel Lin <[email protected]>
Thanks!
Maxime
Signature · 3 lines
Maxime Ripard, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com
Mark Brown
AppliedQuoted 3 lines · Axel Lin
This controller only supports 8 bits word length.
Setbits_per_word_maskso spi core will reject transfers that attempt to use an unsupportedbits_per_wordvalue.
Applied, thanks.