spi: intel: Only look for TFS and RFS in status when handling isr

If those are not set it means the controller has nothing to request
anymore from the driver.

Change-Id: Ie7e834e82b931e4b02ded3f9f619735b31b0a121
Signed-off-by: Tomasz Bursztyka <tomasz.bursztyka@linux.intel.com>
This commit is contained in:
Tomasz Bursztyka 2015-10-08 17:48:23 +03:00 committed by Anas Nashif
commit ded73a41b1

View file

@ -365,11 +365,11 @@ void spi_intel_isr(void *arg)
goto out;
}
if (status & (INTEL_SPI_SSSR_RFS | INTEL_SPI_SSSR_RNE)) {
if (status & INTEL_SPI_SSSR_RFS) {
pull_data(dev);
}
if (status & (INTEL_SPI_SSSR_TFS | INTEL_SPI_SSSR_TNF)) {
if (status & INTEL_SPI_SSSR_TFS) {
push_data(dev);
}