| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-or-later |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * linux/drivers/media/platform/s5p-mfc/s5p_mfc_ctrl.c |
|---|
| 3 | 4 | * |
|---|
| 4 | 5 | * Copyright (c) 2010 Samsung Electronics Co., Ltd. |
|---|
| 5 | 6 | * http://www.samsung.com/ |
|---|
| 6 | | - * |
|---|
| 7 | | - * This program is free software; you can redistribute it and/or modify |
|---|
| 8 | | - * it under the terms of the GNU General Public License as published by |
|---|
| 9 | | - * the Free Software Foundation; either version 2 of the License, or |
|---|
| 10 | | - * (at your option) any later version. |
|---|
| 11 | 7 | */ |
|---|
| 12 | 8 | |
|---|
| 13 | 9 | #include <linux/delay.h> |
|---|
| .. | .. |
|---|
| 51 | 47 | struct firmware *fw_blob; |
|---|
| 52 | 48 | int i, err = -EINVAL; |
|---|
| 53 | 49 | |
|---|
| 54 | | - /* Firmare has to be present as a separate file or compiled |
|---|
| 50 | + /* Firmware has to be present as a separate file or compiled |
|---|
| 55 | 51 | * into kernel. */ |
|---|
| 56 | 52 | mfc_debug_enter(); |
|---|
| 57 | 53 | |
|---|
| .. | .. |
|---|
| 472 | 468 | s5p_mfc_hw_call(dev->mfc_ops, try_run, dev); |
|---|
| 473 | 469 | /* Wait until instance is returned or timeout occurred */ |
|---|
| 474 | 470 | if (s5p_mfc_wait_for_done_ctx(ctx, |
|---|
| 475 | | - S5P_MFC_R2H_CMD_CLOSE_INSTANCE_RET, 0)) |
|---|
| 471 | + S5P_MFC_R2H_CMD_CLOSE_INSTANCE_RET, 0)){ |
|---|
| 472 | + clear_work_bit_irqsave(ctx); |
|---|
| 476 | 473 | mfc_err("Err returning instance\n"); |
|---|
| 474 | + } |
|---|
| 477 | 475 | |
|---|
| 478 | 476 | /* Free resources */ |
|---|
| 479 | 477 | s5p_mfc_hw_call(dev->mfc_ops, release_codec_buffers, ctx); |
|---|