mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 19:51:31 -04:00
Merge branch 'spi-4.19' into spi-linus
This commit is contained in:
commit
92d58fd13a
4 changed files with 16 additions and 4 deletions
|
|
@ -89,7 +89,7 @@
|
|||
#define BSPI_BPP_MODE_SELECT_MASK BIT(8)
|
||||
#define BSPI_BPP_ADDR_SELECT_MASK BIT(16)
|
||||
|
||||
#define BSPI_READ_LENGTH 512
|
||||
#define BSPI_READ_LENGTH 256
|
||||
|
||||
/* MSPI register offsets */
|
||||
#define MSPI_SPCR0_LSB 0x000
|
||||
|
|
@ -355,7 +355,7 @@ static int bcm_qspi_bspi_set_flex_mode(struct bcm_qspi *qspi,
|
|||
int bpc = 0, bpp = 0;
|
||||
u8 command = op->cmd.opcode;
|
||||
int width = op->cmd.buswidth ? op->cmd.buswidth : SPI_NBITS_SINGLE;
|
||||
int addrlen = op->addr.nbytes * 8;
|
||||
int addrlen = op->addr.nbytes;
|
||||
int flex_mode = 1;
|
||||
|
||||
dev_dbg(&qspi->pdev->dev, "set flex mode w %x addrlen %x hp %d\n",
|
||||
|
|
|
|||
|
|
@ -445,6 +445,9 @@ static int rockchip_spi_prepare_dma(struct rockchip_spi *rs)
|
|||
struct dma_slave_config rxconf, txconf;
|
||||
struct dma_async_tx_descriptor *rxdesc, *txdesc;
|
||||
|
||||
memset(&rxconf, 0, sizeof(rxconf));
|
||||
memset(&txconf, 0, sizeof(txconf));
|
||||
|
||||
spin_lock_irqsave(&rs->lock, flags);
|
||||
rs->state &= ~RXBUSY;
|
||||
rs->state &= ~TXBUSY;
|
||||
|
|
|
|||
|
|
@ -1343,8 +1343,8 @@ static int sh_msiof_spi_probe(struct platform_device *pdev)
|
|||
|
||||
i = platform_get_irq(pdev, 0);
|
||||
if (i < 0) {
|
||||
dev_err(&pdev->dev, "cannot get platform IRQ\n");
|
||||
ret = -ENOENT;
|
||||
dev_err(&pdev->dev, "cannot get IRQ\n");
|
||||
ret = i;
|
||||
goto err1;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue