diff options
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/gk20a_sysfs.c')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/gk20a_sysfs.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/gk20a_sysfs.c b/drivers/gpu/nvgpu/gk20a/gk20a_sysfs.c index 875a99ce..a79ec201 100644 --- a/drivers/gpu/nvgpu/gk20a/gk20a_sysfs.c +++ b/drivers/gpu/nvgpu/gk20a/gk20a_sysfs.c | |||
@@ -294,12 +294,14 @@ static ssize_t railgate_enable_store(struct device *dev, | |||
294 | /* release extra ref count */ | 294 | /* release extra ref count */ |
295 | gk20a_idle(dev); | 295 | gk20a_idle(dev); |
296 | platform->can_railgate = true; | 296 | platform->can_railgate = true; |
297 | platform->user_railgate_disabled = false; | ||
297 | } else if (railgate_enable == 0 && platform->can_railgate) { | 298 | } else if (railgate_enable == 0 && platform->can_railgate) { |
298 | /* take extra ref count */ | 299 | /* take extra ref count */ |
299 | err = gk20a_busy(dev); | 300 | err = gk20a_busy(dev); |
300 | if (err) | 301 | if (err) |
301 | return err; | 302 | return err; |
302 | platform->can_railgate = false; | 303 | platform->can_railgate = false; |
304 | platform->user_railgate_disabled = true; | ||
303 | } | 305 | } |
304 | if (err) | 306 | if (err) |
305 | return err; | 307 | return err; |