mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-08 20:07:46 +09:00
UPSTREAM: um: Monitor error events in IRQ controller
Ensure that file closes, connection closes, etc are propagated as interrupts in the interrupt controller. Bug: 176213565 Fixes:ff6a17989c("Epoll based IRQ controller") Signed-off-by: Anton Ivanov <anton.ivanov@cambridgegreys.com> Signed-off-by: Richard Weinberger <richard@nod.at> (cherry picked from commite3a01cbee9) Signed-off-by: Greg Kroah-Hartman <gregkh@google.com> Change-Id: If6751c04731b6d1e75c91409c415ad7bb584e2d2
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
1f85d8b0f4
commit
5a3058bf3d
@@ -48,7 +48,7 @@ int os_epoll_triggered(int index, int events)
|
||||
int os_event_mask(enum um_irq_type irq_type)
|
||||
{
|
||||
if (irq_type == IRQ_READ)
|
||||
return EPOLLIN | EPOLLPRI;
|
||||
return EPOLLIN | EPOLLPRI | EPOLLERR | EPOLLHUP | EPOLLRDHUP;
|
||||
if (irq_type == IRQ_WRITE)
|
||||
return EPOLLOUT;
|
||||
return 0;
|
||||
|
||||
Reference in New Issue
Block a user