On Sun, Nov 24, 2013 at 07:08:32PM +0100, Martin Sperl wrote: > This patch makes use of spi_master->setup to set up the flags for all possible > variants of the chip-select polarity flags during device setup. > > It also moves repeated calculations from bcm2835_spi_start_transfer into > setup.
You can't do this safely, setup() may be called while another transfer is active so reprogramming the hardware during setup() may disrupt an ongoing transfer. Remember, setup() can be triggered by client drivers calling spi_setup().
signature.asc
Description: Digital signature
