spi/rockchip: fix endian mode for 16-bit transfers
Subsystems (2)
PATCH 1/1 spi/rockchip: fix endian mode for 16-bit transfers
16-bit transfers must be in big endian mode on wire.
--- drivers/spi/spi-rockchip.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/spi/spi-rockchip.c +2 -1
@@ -510,7 +510,8 @@ static void rockchip_spi_config(struct rockchip_spi *rs)int rsd =0 ;u32 cr0 = (CR0_BHT_8BIT <<CR0_BHT_OFFSET ) - | (CR0_SSD_ONE <<CR0_SSD_OFFSET ); + | (CR0_SSD_ONE <<CR0_SSD_OFFSET ) + | (CR0_EM_BIG <<CR0_EM_OFFSET ); cr0 |= (rs->n_bytes <<CR0_DFS_OFFSET ); cr0 |= ((rs->mode &0x3 ) <<CR0_SCPH_OFFSET );
Signature · 1 line
1.7.9.5
Applied "spi/rockchip: fix endian mode for 16-bit transfers" to the spi tree
In reply to a message not in the archiveThe patch
spi/rockchip: fix endian mode for 16-bit transfers
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
0277e01aebc8895198a4717ccaf7e4fcf39ada78Mon Sep 17 00:00:00 2001
From: Alexander Kochetkov <[email protected]>
Date: Sun, 6 Mar 2016 13:04:17 +0300
Subject: [PATCH] spi/rockchip: fix endian mode for 16-bit transfers
16-bit transfers must be in big endian mode on wire.
--- drivers/spi/spi-rockchip.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/spi/spi-rockchip.c +2 -1
@@ -506,7 +506,8 @@ static void rockchip_spi_config(struct rockchip_spi *rs)int rsd =0 ;u32 cr0 = (CR0_BHT_8BIT <<CR0_BHT_OFFSET ) - | (CR0_SSD_ONE <<CR0_SSD_OFFSET ); + | (CR0_SSD_ONE <<CR0_SSD_OFFSET ) + | (CR0_EM_BIG <<CR0_EM_OFFSET ); cr0 |= (rs->n_bytes <<CR0_DFS_OFFSET ); cr0 |= ((rs->mode &0x3 ) <<CR0_SCPH_OFFSET );
Signature · 6 lines
2.7.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