From: Bartosz Golaszewski Date: Fri, 29 Nov 2019 10:22:18 +0000 (+0100) Subject: gpiolib: emit a debug message when adding events to a full kfifo X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=248ae1752e91438cb7cfc8432b88bc34410e8e4e;p=openwrt%2Fstaging%2Fblogic.git 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: Bartosz Golaszewski --- diff --git a/drivers/gpio/gpiolib.c b/drivers/gpio/gpiolib.c index 43d98309e725..36afe0b2b150 100644 --- a/drivers/gpio/gpiolib.c +++ b/drivers/gpio/gpiolib.c @@ -978,6 +978,8 @@ static irqreturn_t lineevent_irq_thread(int irq, void *p) 1, &le->wait.lock); if (ret) wake_up_poll(&le->wait, EPOLLIN); + else + pr_debug_ratelimited("event FIFO is full - event dropped\n"); return IRQ_HANDLED; }