Skip to content
Commit 995585ec authored by Philipp Rosenberger's avatar Philipp Rosenberger Committed by Jakub Kicinski
Browse files

net: enc28j60: Use threaded interrupt instead of workqueue



The Microchip ENC28J60 SPI Ethernet driver schedules a work item from
the interrupt handler because accesses to the SPI bus may sleep.

On PREEMPT_RT (which forces interrupt handling into threads) this
old-fashioned approach unnecessarily increases latency because an
interrupt results in first waking the interrupt thread, then scheduling
the work item.  So, a double indirection to handle an interrupt.

Avoid by converting the driver to modern threaded interrupt handling.

Signed-off-by: default avatarPhilipp Rosenberger <p.rosenberger@kunbus.com>
Signed-off-by: default avatarZhi Han <hanzhi09@gmail.com>
[lukas: rewrite commit message, linewrap request_threaded_irq() call]
Signed-off-by: default avatarLukas Wunner <lukas@wunner.de>
Reviewed-by: default avatarPiotr Raczynski <piotr.raczynski@intel.com>
Link: https://lore.kernel.org/r/342380d989ce26bc49f0e5d45fbb0416a5f7809f.1683606193.git.lukas@wunner.de


Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
parent bc88ba0c
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment