spi/mips-lantiq: set SPI_MASTER_HALF_DUPLEX flag
authorJohn Crispin <blogic@openwrt.org>
Wed, 30 Jan 2013 20:33:31 +0000 (21:33 +0100)
committerGrant Likely <grant.likely@secretlab.ca>
Tue, 5 Feb 2013 17:16:55 +0000 (17:16 +0000)
Due to hardware limitations of the spi/flash frontend of the EBU we need to set
the SPI_MASTER_HALF_DUPLEX flag.

Signed-off-by: Thomas Langer <thomas.langer@lantiq.com>
Signed-off-by: John Crispin <blogic@openwrt.org>
Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
drivers/spi/spi-falcon.c

index f9c66c2..c7a74f0 100644 (file)
@@ -423,6 +423,7 @@ static int falcon_sflash_probe(struct platform_device *pdev)
 
        master->mode_bits = SPI_MODE_3;
        master->num_chipselect = 1;
+       master->flags = SPI_MASTER_HALF_DUPLEX;
        master->bus_num = -1;
        master->setup = falcon_sflash_setup;
        master->prepare_transfer_hardware = falcon_sflash_prepare_xfer;