spi: pxa2xx: add missed break
Subsystems (3)
PATCH 1/2 spi: pxa2xx: add missed break
The commit 7c7289a40425 ("spi: pxa2xx: Default thresholds to PXA configuration") while splitting up CE4100 code obviously missed a break condition in one chunk. Add it here.
Looks like we have no active user of CE4100, though better to fix this later than never.
--- drivers/spi/spi-pxa2xx.c | 1 + 1 file changed, 1 insertion(+)
drivers/spi/spi-pxa2xx.c +1 -0
@@ -1690,6 +1690,7 @@ static int pxa2xx_spi_probe(struct platform_device *pdev)pxa2xx_spi_write (drv_data,SSCR1 , tmp); tmp =SSCR0_SCR (2 ) | SSCR0_Motorola |SSCR0_DataSize (8 );pxa2xx_spi_write (drv_data,SSCR0 , tmp); +break ;default : tmp =SSCR1_RxTresh (RX_THRESH_DFLT ) |SSCR1_TxTresh (TX_THRESH_DFLT );
Signature · 6 lines
2.11.0 -- 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: pxa2xx: fix indentation of the comments in header
In reply to a message not in the archiveJust for sake of readability fix the indentation of the comments in pxa2xx_ssp.h header file.
--- include/linux/pxa2xx_ssp.h | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-)
include/linux/pxa2xx_ssp.h +7 -7
@@ -90,9 +90,9 @@#define SSSR_RFL_MASK (0xf << 12)/* Receive FIFO Level mask */ #define SSCR1_TFT (0x000003c0)/* Transmit FIFO Threshold (mask) */ -#define SSCR1_TxTresh (x) (((x) - 1) << 6)/* level [1..16] */ +#define SSCR1_TxTresh (x) (((x) - 1) << 6)/* level [1..16] */ #define SSCR1_RFT (0x00003c00)/* Receive FIFO Threshold (mask) */ -#define SSCR1_RxTresh (x) (((x) - 1) << 10)/* level [1..16] */ +#define SSCR1_RxTresh (x) (((x) - 1) << 10)/* level [1..16] */ #define RX_THRESH_CE4100_DFLT 2#define TX_THRESH_CE4100_DFLT 2
@@ -106,9 +106,9 @@#define CE4100_SSCR1_RxTresh (x) (((x) - 1) << 10)/* level [1..4] */ /* QUARK_X1000 SSCR0 bit definition */ -#define QUARK_X1000_SSCR0_DSS (0x1F)/* Data Size Select (mask) */ -#define QUARK_X1000_SSCR0_DataSize (x) ((x) - 1)/* Data Size Select [4..32] */ -#define QUARK_X1000_SSCR0_FRF (0x3 << 5)/* FRame Format (mask) */ +#define QUARK_X1000_SSCR0_DSS (0x1F << 0)/* Data Size Select (mask) */ +#define QUARK_X1000_SSCR0_DataSize (x) ((x) - 1)/* Data Size Select [4..32] */ +#define QUARK_X1000_SSCR0_FRF (0x3 << 5)/* FRame Format (mask) */ #define QUARK_X1000_SSCR0_Motorola (0x0 << 5)/* Motorola's Serial Peripheral Interface (SPI) */ #define RX_THRESH_QUARK_X1000_DFLT 1
@@ -121,8 +121,8 @@#define QUARK_X1000_SSCR1_TxTresh (x) (((x) - 1) << 6)/* level [1..32] */ #define QUARK_X1000_SSCR1_RFT (0x1F << 11)/* Receive FIFO Threshold (mask) */ #define QUARK_X1000_SSCR1_RxTresh (x) (((x) - 1) << 11)/* level [1..32] */ -#define QUARK_X1000_SSCR1_STRF (1 << 17)/* Select FIFO or EFWR */ -#define QUARK_X1000_SSCR1_EFWR (1 << 16)/* Enable FIFO Write/Read */ +#define QUARK_X1000_SSCR1_STRF (1 << 17)/* Select FIFO or EFWR */ +#define QUARK_X1000_SSCR1_EFWR (1 << 16)/* Enable FIFO Write/Read */ /* extra bits in PXA255, PXA26x and PXA27x SSP ports */ #define SSCR0_TISSP (1 << 4)/* TI Sync Serial Protocol */
Signature · 6 lines
2.11.0 -- 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
Applied "spi: pxa2xx: fix indentation of the comments in header" to the spi tree
In reply to a message not in the archiveThe patch
spi: pxa2xx: fix indentation of the comments in header
has been applied to the spi tree at
git://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi.git
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
Quoted 1 line
From
63971c5682bf89e15083733dcd7b4610e789e843Mon Sep 17 00:00:00 2001
From: Andy Shevchenko <andriy.shevchenko-VuQAYsv1563Yd54FQh9/[email protected]>
Date: Mon, 2 Jan 2017 13:44:29 +0200
Subject: [PATCH] spi: pxa2xx: fix indentation of the comments in header
Just for sake of readability fix the indentation of the comments in pxa2xx_ssp.h header file.
--- include/linux/pxa2xx_ssp.h | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-)
include/linux/pxa2xx_ssp.h +7 -7
@@ -90,9 +90,9 @@#define SSSR_RFL_MASK (0xf << 12)/* Receive FIFO Level mask */ #define SSCR1_TFT (0x000003c0)/* Transmit FIFO Threshold (mask) */ -#define SSCR1_TxTresh (x) (((x) - 1) << 6)/* level [1..16] */ +#define SSCR1_TxTresh (x) (((x) - 1) << 6)/* level [1..16] */ #define SSCR1_RFT (0x00003c00)/* Receive FIFO Threshold (mask) */ -#define SSCR1_RxTresh (x) (((x) - 1) << 10)/* level [1..16] */ +#define SSCR1_RxTresh (x) (((x) - 1) << 10)/* level [1..16] */ #define RX_THRESH_CE4100_DFLT 2#define TX_THRESH_CE4100_DFLT 2
@@ -106,9 +106,9 @@#define CE4100_SSCR1_RxTresh (x) (((x) - 1) << 10)/* level [1..4] */ /* QUARK_X1000 SSCR0 bit definition */ -#define QUARK_X1000_SSCR0_DSS (0x1F)/* Data Size Select (mask) */ -#define QUARK_X1000_SSCR0_DataSize (x) ((x) - 1)/* Data Size Select [4..32] */ -#define QUARK_X1000_SSCR0_FRF (0x3 << 5)/* FRame Format (mask) */ +#define QUARK_X1000_SSCR0_DSS (0x1F << 0)/* Data Size Select (mask) */ +#define QUARK_X1000_SSCR0_DataSize (x) ((x) - 1)/* Data Size Select [4..32] */ +#define QUARK_X1000_SSCR0_FRF (0x3 << 5)/* FRame Format (mask) */ #define QUARK_X1000_SSCR0_Motorola (0x0 << 5)/* Motorola's Serial Peripheral Interface (SPI) */ #define RX_THRESH_QUARK_X1000_DFLT 1
@@ -121,8 +121,8 @@#define QUARK_X1000_SSCR1_TxTresh (x) (((x) - 1) << 6)/* level [1..32] */ #define QUARK_X1000_SSCR1_RFT (0x1F << 11)/* Receive FIFO Threshold (mask) */ #define QUARK_X1000_SSCR1_RxTresh (x) (((x) - 1) << 11)/* level [1..32] */ -#define QUARK_X1000_SSCR1_STRF (1 << 17)/* Select FIFO or EFWR */ -#define QUARK_X1000_SSCR1_EFWR (1 << 16)/* Enable FIFO Write/Read */ +#define QUARK_X1000_SSCR1_STRF (1 << 17)/* Select FIFO or EFWR */ +#define QUARK_X1000_SSCR1_EFWR (1 << 16)/* Enable FIFO Write/Read */ /* extra bits in PXA255, PXA26x and PXA27x SSP ports */ #define SSCR0_TISSP (1 << 4)/* TI Sync Serial Protocol */
Signature · 6 lines
2.11.0 -- 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
Applied "spi: pxa2xx: add missed break" to the spi tree
In reply to a message not in the archiveThe patch
spi: pxa2xx: add missed break
has been applied to the spi tree at
git://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi.git
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
Quoted 1 line
From
a2dd8af00ca7fff4972425a4a6b19dd1840dc807Mon Sep 17 00:00:00 2001
From: Andy Shevchenko <andriy.shevchenko-VuQAYsv1563Yd54FQh9/[email protected]>
Date: Mon, 2 Jan 2017 13:44:28 +0200
Subject: [PATCH] spi: pxa2xx: add missed break
The commit 7c7289a40425 ("spi: pxa2xx: Default thresholds to PXA configuration") while splitting up CE4100 code obviously missed a break condition in one chunk. Add it here.
Looks like we have no active user of CE4100, though better to fix this later than never.
--- drivers/spi/spi-pxa2xx.c | 1 + 1 file changed, 1 insertion(+)
drivers/spi/spi-pxa2xx.c +1 -0
@@ -1690,6 +1690,7 @@ static int pxa2xx_spi_probe(struct platform_device *pdev)pxa2xx_spi_write (drv_data,SSCR1 , tmp); tmp =SSCR0_SCR (2 ) | SSCR0_Motorola |SSCR0_DataSize (8 );pxa2xx_spi_write (drv_data,SSCR0 , tmp); +break ;default : tmp =SSCR1_RxTresh (RX_THRESH_DFLT ) |SSCR1_TxTresh (TX_THRESH_DFLT );
Signature · 6 lines
2.11.0 -- 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