| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * Copyright (C) 2017 Fuzhou Rockchip Electronics Co.Ltd |
|---|
| 3 | 4 | * Author: Jacob Chen <jacob-chen@iotwrt.com> |
|---|
| 4 | | - * |
|---|
| 5 | | - * This software is licensed under the terms of the GNU General Public |
|---|
| 6 | | - * License version 2, as published by the Free Software Foundation, and |
|---|
| 7 | | - * may be copied, distributed, and modified under those terms. |
|---|
| 8 | | - * |
|---|
| 9 | | - * This program is distributed in the hope that it will be useful, |
|---|
| 10 | | - * but WITHOUT ANY WARRANTY; without even the implied warranty of |
|---|
| 11 | | - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|---|
| 12 | | - * GNU General Public License for more details. |
|---|
| 13 | 5 | */ |
|---|
| 14 | 6 | |
|---|
| 15 | 7 | #include <linux/pm_runtime.h> |
|---|
| .. | .. |
|---|
| 87 | 79 | struct rockchip_rga *rga = ctx->rga; |
|---|
| 88 | 80 | int ret; |
|---|
| 89 | 81 | |
|---|
| 90 | | - ret = pm_runtime_get_sync(rga->dev); |
|---|
| 82 | + ret = pm_runtime_resume_and_get(rga->dev); |
|---|
| 91 | 83 | if (ret < 0) { |
|---|
| 92 | | - pm_runtime_put_noidle(rga->dev); |
|---|
| 93 | 84 | rga_buf_return_buffers(q, VB2_BUF_STATE_QUEUED); |
|---|
| 94 | 85 | return ret; |
|---|
| 95 | 86 | } |
|---|