... > For some reason we don't store neither the actual number of supported > parallel chipselects in the controller, nor the amount of chipselects > used by the spi device, so all loops always need to iterate > SPI_CS_CNT_MAX times and check for the chipselect numbers not being > 0xff instead of limiting by the (possible to know) actual number of > chip selects in use. Or even the highest one ever used. David - Registered Address Lakeside, Bramley Road, Mount Farm, Milton Keynes, MK1 1PT, UK Registration No: 1397386 (Wales)