Skip to content

Commit

Permalink
spi/rockchip: master->mode_bits: remove SPI_CS_HIGH bit
Browse files Browse the repository at this point in the history
Suggested-by: Jonas Gorski <jogo@openwrt.org>
Signed-off-by: Addy Ke <addy.ke@rockchip.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
  • Loading branch information
Addy Ke authored and Mark Brown committed Jul 11, 2014
1 parent 2df08e7 commit ee78099
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions drivers/spi/spi-rockchip.c
Original file line number Diff line number Diff line change
Expand Up @@ -295,11 +295,6 @@ static int rockchip_spi_prepare_message(struct spi_master *master,
struct rockchip_spi *rs = spi_master_get_devdata(master);
struct spi_device *spi = msg->spi;

if (spi->mode & SPI_CS_HIGH) {
dev_err(rs->dev, "spi_cs_hign: not support\n");
return -EINVAL;
}

rs->mode = spi->mode;

return 0;
Expand Down Expand Up @@ -657,7 +652,7 @@ static int rockchip_spi_probe(struct platform_device *pdev)

master->auto_runtime_pm = true;
master->bus_num = pdev->id;
master->mode_bits = SPI_CPOL | SPI_CPHA | SPI_CS_HIGH | SPI_LOOP;
master->mode_bits = SPI_CPOL | SPI_CPHA | SPI_LOOP;
master->num_chipselect = 2;
master->dev.of_node = pdev->dev.of_node;
master->bits_per_word_mask = SPI_BPW_MASK(16) | SPI_BPW_MASK(8);
Expand Down

0 comments on commit ee78099

Please sign in to comment.