[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <nycvar.YFH.7.76.1908191413200.27147@cbobk.fhfr.pm>
Date: Mon, 19 Aug 2019 14:13:35 +0200 (CEST)
From: Jiri Kosina <jikos@...nel.org>
To: Benjamin Tissoires <benjamin.tissoires@...hat.com>
cc: David Barksdale <dbarksdale@...ogix.com>,
linux-input@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH] HID: cp2112: prevent sleeping function called from
invalid context
On Mon, 12 Aug 2019, Benjamin Tissoires wrote:
> When calling request_threaded_irq() with a CP2112, the function
> cp2112_gpio_irq_startup() is called in a IRQ context.
>
> Therefore we can not sleep, and we can not call
> cp2112_gpio_direction_input() there.
>
> Move the call to cp2112_gpio_direction_input() earlier to have a working
> driver.
>
> Signed-off-by: Benjamin Tissoires <benjamin.tissoires@...hat.com>
Pushed out to for-5.3/upstream-fixes.
--
Jiri Kosina
SUSE Labs
Powered by blists - more mailing lists