.. | .. |
---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
---|
1 | 2 | /* |
---|
2 | 3 | * skl-sst-cldma.c - Code Loader DMA handler |
---|
3 | 4 | * |
---|
4 | 5 | * Copyright (C) 2015, Intel Corporation. |
---|
5 | 6 | * Author: Subhransu S. Prusty <subhransu.s.prusty@intel.com> |
---|
6 | 7 | * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
---|
7 | | - * |
---|
8 | | - * This program is free software; you can redistribute it and/or modify |
---|
9 | | - * it under the terms of the GNU General Public License as version 2, as |
---|
10 | | - * published by the Free Software Foundation. |
---|
11 | | - * |
---|
12 | | - * This program is distributed in the hope that it will be useful, but |
---|
13 | | - * WITHOUT ANY WARRANTY; without even the implied warranty of |
---|
14 | | - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
---|
15 | | - * General Public License for more details. |
---|
16 | 8 | */ |
---|
17 | 9 | |
---|
18 | 10 | #include <linux/device.h> |
---|
| 11 | +#include <linux/io.h> |
---|
19 | 12 | #include <linux/mm.h> |
---|
20 | 13 | #include <linux/delay.h> |
---|
21 | 14 | #include "../common/sst-dsp.h" |
---|
.. | .. |
---|
252 | 245 | skl_cldma_copy_to_buf(struct sst_dsp *ctx, const void *bin, |
---|
253 | 246 | u32 total_size, bool wait) |
---|
254 | 247 | { |
---|
255 | | - int ret = 0; |
---|
| 248 | + int ret; |
---|
256 | 249 | bool start = true; |
---|
257 | 250 | unsigned int excess_bytes; |
---|
258 | 251 | u32 size; |
---|