.. | .. |
---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-or-later |
---|
1 | 2 | /* |
---|
2 | 3 | * IDE tuning and bus mastering support for the CS5510/CS5520 |
---|
3 | 4 | * chipsets |
---|
.. | .. |
---|
17 | 18 | * *** This driver is strictly experimental *** |
---|
18 | 19 | * |
---|
19 | 20 | * (c) Copyright Red Hat Inc 2002 |
---|
20 | | - * |
---|
21 | | - * This program is free software; you can redistribute it and/or modify it |
---|
22 | | - * under the terms of the GNU General Public License as published by the |
---|
23 | | - * Free Software Foundation; either version 2, or (at your option) any |
---|
24 | | - * later version. |
---|
25 | | - * |
---|
26 | | - * This program is distributed in the hope that it will be useful, but |
---|
27 | | - * WITHOUT ANY WARRANTY; without even the implied warranty of |
---|
28 | | - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
---|
29 | | - * General Public License for more details. |
---|
30 | 21 | * |
---|
31 | 22 | * Documentation: |
---|
32 | 23 | * Not publicly available. |
---|
.. | .. |
---|
164 | 155 | return -ENODEV; |
---|
165 | 156 | } |
---|
166 | 157 | |
---|
167 | | - if (dma_set_mask(&pdev->dev, DMA_BIT_MASK(32))) { |
---|
| 158 | + if (dma_set_mask_and_coherent(&pdev->dev, DMA_BIT_MASK(32))) { |
---|
168 | 159 | printk(KERN_ERR DRV_NAME ": unable to configure DMA mask.\n"); |
---|
169 | | - return -ENODEV; |
---|
170 | | - } |
---|
171 | | - if (dma_set_coherent_mask(&pdev->dev, DMA_BIT_MASK(32))) { |
---|
172 | | - printk(KERN_ERR DRV_NAME ": unable to configure consistent DMA mask.\n"); |
---|
173 | 160 | return -ENODEV; |
---|
174 | 161 | } |
---|
175 | 162 | |
---|