Skip to content

Commit 76fb2b4

Browse files
author
Jyri Sarha
committed
drm/tilcdc: Remove unnecessary pm_runtime_get() and *_put() calls
commit d81b7f3 upstream. Remove unnecessary pm_runtime_get() and *_put() calls from commit phase callbacks. Those calls are not needed since we have the whole commit phase between pm_runtime_get_sync() and pm_runtime_put_sync(). Signed-off-by: Jyri Sarha <jsarha@ti.com>
1 parent 6db644b commit 76fb2b4

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

drivers/gpu/drm/tilcdc/tilcdc_crtc.c

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -243,8 +243,6 @@ int tilcdc_crtc_page_flip(struct drm_crtc *crtc,
243243

244244
crtc->primary->fb = fb;
245245

246-
pm_runtime_get_sync(dev->dev);
247-
248246
spin_lock_irqsave(&tilcdc_crtc->irq_lock, flags);
249247

250248
if (crtc->hwmode.vrefresh && ktime_to_ns(tilcdc_crtc->last_vblank)) {
@@ -267,8 +265,6 @@ int tilcdc_crtc_page_flip(struct drm_crtc *crtc,
267265

268266
spin_unlock_irqrestore(&tilcdc_crtc->irq_lock, flags);
269267

270-
pm_runtime_put_sync(dev->dev);
271-
272268
return 0;
273269
}
274270

@@ -317,8 +313,6 @@ static void tilcdc_crtc_mode_set_nofb(struct drm_crtc *crtc)
317313
if (WARN_ON(!fb))
318314
return;
319315

320-
pm_runtime_get_sync(dev->dev);
321-
322316
/* Configure the Burst Size and fifo threshold of DMA: */
323317
reg = tilcdc_read(dev, LCDC_DMA_CTRL_REG) & ~0x00000770;
324318
switch (info->dma_burst_sz) {
@@ -467,8 +461,6 @@ static void tilcdc_crtc_mode_set_nofb(struct drm_crtc *crtc)
467461

468462
tilcdc_crtc_update_clk(crtc);
469463

470-
pm_runtime_put_sync(dev->dev);
471-
472464
crtc->hwmode = crtc->state->adjusted_mode;
473465
}
474466

0 commit comments

Comments
 (0)