diff options
Diffstat (limited to 'drivers/gpu/nvgpu/common/bus/bus_gm20b.c')
-rw-r--r-- | drivers/gpu/nvgpu/common/bus/bus_gm20b.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/gpu/nvgpu/common/bus/bus_gm20b.c b/drivers/gpu/nvgpu/common/bus/bus_gm20b.c index d2c4c2b7..ef5fee8c 100644 --- a/drivers/gpu/nvgpu/common/bus/bus_gm20b.c +++ b/drivers/gpu/nvgpu/common/bus/bus_gm20b.c | |||
@@ -53,14 +53,16 @@ int gm20b_bus_bar1_bind(struct gk20a *g, struct nvgpu_mem *bar1_inst) | |||
53 | u32 val = gk20a_readl(g, bus_bind_status_r()); | 53 | u32 val = gk20a_readl(g, bus_bind_status_r()); |
54 | u32 pending = bus_bind_status_bar1_pending_v(val); | 54 | u32 pending = bus_bind_status_bar1_pending_v(val); |
55 | u32 outstanding = bus_bind_status_bar1_outstanding_v(val); | 55 | u32 outstanding = bus_bind_status_bar1_outstanding_v(val); |
56 | if (!pending && !outstanding) | 56 | if (!pending && !outstanding) { |
57 | break; | 57 | break; |
58 | } | ||
58 | 59 | ||
59 | nvgpu_udelay(5); | 60 | nvgpu_udelay(5); |
60 | } while (!nvgpu_timeout_expired(&timeout)); | 61 | } while (!nvgpu_timeout_expired(&timeout)); |
61 | 62 | ||
62 | if (nvgpu_timeout_peek_expired(&timeout)) | 63 | if (nvgpu_timeout_peek_expired(&timeout)) { |
63 | err = -EINVAL; | 64 | err = -EINVAL; |
65 | } | ||
64 | 66 | ||
65 | return err; | 67 | return err; |
66 | } | 68 | } |