Loading drivers/spi/spi-npcm-pspi.c +14 −6 Original line number Diff line number Diff line Loading @@ -199,15 +199,23 @@ static void npcm_pspi_send(struct npcm_pspi *priv) wsize = min(bytes_per_word(priv->bits_per_word), priv->tx_bytes); priv->tx_bytes -= wsize; if (priv->tx_buf) { if (wsize == 1) if (!priv->tx_buf) return; switch (wsize) { case 1: iowrite8(*priv->tx_buf, NPCM_PSPI_DATA + priv->base); if (wsize == 2) break; case 2: iowrite16(*priv->tx_buf, NPCM_PSPI_DATA + priv->base); break; default: WARN_ON_ONCE(1); return; } priv->tx_buf += wsize; } } static void npcm_pspi_recv(struct npcm_pspi *priv) { Loading Loading
drivers/spi/spi-npcm-pspi.c +14 −6 Original line number Diff line number Diff line Loading @@ -199,15 +199,23 @@ static void npcm_pspi_send(struct npcm_pspi *priv) wsize = min(bytes_per_word(priv->bits_per_word), priv->tx_bytes); priv->tx_bytes -= wsize; if (priv->tx_buf) { if (wsize == 1) if (!priv->tx_buf) return; switch (wsize) { case 1: iowrite8(*priv->tx_buf, NPCM_PSPI_DATA + priv->base); if (wsize == 2) break; case 2: iowrite16(*priv->tx_buf, NPCM_PSPI_DATA + priv->base); break; default: WARN_ON_ONCE(1); return; } priv->tx_buf += wsize; } } static void npcm_pspi_recv(struct npcm_pspi *priv) { Loading