spi: intel: Switch CS before unmasking and after masking interrupts

At this points the slave is ready to deal with the master.

Change-Id: I815d3c577bd0b73100cbf585cc8ca78f180ec713
Signed-off-by: Tomasz Bursztyka <tomasz.bursztyka@linux.intel.com>
This commit is contained in:
Tomasz Bursztyka 2015-10-08 14:15:28 +03:00 committed by Anas Nashif
parent 15058e21ef
commit f18275a5be

View file

@ -421,10 +421,10 @@ int spi_intel_init(struct device *dev)
return DEV_NOT_CONFIG;
}
_spi_config_cs(dev);
info->config_func(dev);
_spi_config_cs(dev);
irq_enable(info->irq);
DBG("SPI Intel Driver initialized on device: %p\n", dev);