Skip to content
Browse files

ibus/gk20a: use udelay() in interrupt context

gk20a_ibus_init_ibus_ring() can be called from gk20a_ibus_intr(), in
non-interruptible context. Replace use of usleep_range() with udelay().

Reported-by: Thierry Reding <>
Signed-off-by: Alexandre Courbot <>
Signed-off-by: Ben Skeggs <>
  • Loading branch information
Gnurou authored and skeggsb committed Jul 14, 2016
1 parent 20ba864 commit f51f8578a1e358d38fe11fcbfd8b80bc05023274
Showing with 1 addition and 1 deletion.
  1. +1 −1 drm/nouveau/nvkm/subdev/ibus/gk20a.c
@@ -29,7 +29,7 @@ gk20a_ibus_init_ibus_ring(struct nvkm_subdev *ibus)
nvkm_mask(device, 0x137250, 0x3f, 0);

nvkm_mask(device, 0x000200, 0x20, 0);
usleep_range(20, 30);
nvkm_mask(device, 0x000200, 0x20, 0x20);

nvkm_wr32(device, 0x12004c, 0x4);

0 comments on commit f51f857

Please sign in to comment.
You can’t perform that action at this time.