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:
parent
6090d779d7
commit
ded73a41b1
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue