Commit 248ae175 authored by Bartosz Golaszewski's avatar Bartosz Golaszewski

gpiolib: emit a debug message when adding events to a full kfifo

Currently if the line-event kfifo is full, we just silently drop any new
events. Add a ratelimited debug message so that we at least have some
trace in the kernel log of event overflow.
Signed-off-by: default avatarBartosz Golaszewski <bgolaszewski@baylibre.com>
parent dea9c80e
...@@ -978,6 +978,8 @@ static irqreturn_t lineevent_irq_thread(int irq, void *p) ...@@ -978,6 +978,8 @@ static irqreturn_t lineevent_irq_thread(int irq, void *p)
1, &le->wait.lock); 1, &le->wait.lock);
if (ret) if (ret)
wake_up_poll(&le->wait, EPOLLIN); wake_up_poll(&le->wait, EPOLLIN);
else
pr_debug_ratelimited("event FIFO is full - event dropped\n");
return IRQ_HANDLED; return IRQ_HANDLED;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment