.. | .. |
---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
---|
1 | 2 | /* |
---|
2 | 3 | * Samsung EXYNOS4x12 FIMC-IS (Imaging Subsystem) driver |
---|
3 | 4 | * |
---|
.. | .. |
---|
5 | 6 | * |
---|
6 | 7 | * Authors: Sylwester Nawrocki <s.nawrocki@samsung.com> |
---|
7 | 8 | * Younghwan Joo <yhwan.joo@samsung.com> |
---|
8 | | - * |
---|
9 | | - * This program is free software; you can redistribute it and/or modify |
---|
10 | | - * it under the terms of the GNU General Public License version 2 as |
---|
11 | | - * published by the Free Software Foundation. |
---|
12 | 9 | */ |
---|
13 | 10 | #define pr_fmt(fmt) "%s:%d " fmt, __func__, __LINE__ |
---|
14 | 11 | |
---|
.. | .. |
---|
36 | 33 | |
---|
37 | 34 | static const struct fimc_fmt fimc_isp_formats[FIMC_ISP_NUM_FORMATS] = { |
---|
38 | 35 | { |
---|
39 | | - .name = "RAW8 (GRBG)", |
---|
40 | 36 | .fourcc = V4L2_PIX_FMT_SGRBG8, |
---|
41 | 37 | .depth = { 8 }, |
---|
42 | 38 | .color = FIMC_FMT_RAW8, |
---|
43 | 39 | .memplanes = 1, |
---|
44 | 40 | .mbus_code = MEDIA_BUS_FMT_SGRBG8_1X8, |
---|
45 | 41 | }, { |
---|
46 | | - .name = "RAW10 (GRBG)", |
---|
47 | 42 | .fourcc = V4L2_PIX_FMT_SGRBG10, |
---|
48 | 43 | .depth = { 10 }, |
---|
49 | 44 | .color = FIMC_FMT_RAW10, |
---|
50 | 45 | .memplanes = 1, |
---|
51 | 46 | .mbus_code = MEDIA_BUS_FMT_SGRBG10_1X10, |
---|
52 | 47 | }, { |
---|
53 | | - .name = "RAW12 (GRBG)", |
---|
54 | 48 | .fourcc = V4L2_PIX_FMT_SGRBG12, |
---|
55 | 49 | .depth = { 12 }, |
---|
56 | 50 | .color = FIMC_FMT_RAW12, |
---|
.. | .. |
---|
310 | 304 | pr_debug("on: %d\n", on); |
---|
311 | 305 | |
---|
312 | 306 | if (on) { |
---|
313 | | - ret = pm_runtime_get_sync(&is->pdev->dev); |
---|
314 | | - if (ret < 0) { |
---|
315 | | - pm_runtime_put(&is->pdev->dev); |
---|
| 307 | + ret = pm_runtime_resume_and_get(&is->pdev->dev); |
---|
| 308 | + if (ret < 0) |
---|
316 | 309 | return ret; |
---|
317 | | - } |
---|
| 310 | + |
---|
318 | 311 | set_bit(IS_ST_PWR_ON, &is->state); |
---|
319 | 312 | |
---|
320 | 313 | ret = fimc_is_start_firmware(is); |
---|