Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
sc16is7xx: Don't spin if no data received
See: #2676 Signed-off-by: Phil Elwell <[email protected]>
- Loading branch information
9ca74c5
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sc16is7xx_port_irq() returns void, it should be simply "return;" The present version fails to compile at least with some compiler versions.
9ca74c5
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Which kernel version are you looking at? It returns a bool in rpi-4.14.y, rpi-4.19.y and rpi-4.20.y.
9ca74c5
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
9ca74c5
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Indeed, I was looking at the kernel before a recent patch, that went into the mainline and also into stable kernels. So, in 4.18.20 it's bool, but in 4.8.19 it's still void. Sorry for the noise.