.. | .. |
---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-or-later |
---|
1 | 2 | /* |
---|
2 | 3 | * sata_sx4.c - Promise SATA |
---|
3 | 4 | * |
---|
.. | .. |
---|
7 | 8 | * |
---|
8 | 9 | * Copyright 2003-2004 Red Hat, Inc. |
---|
9 | 10 | * |
---|
10 | | - * |
---|
11 | | - * This program is free software; you can redistribute it and/or modify |
---|
12 | | - * it under the terms of the GNU General Public License as published by |
---|
13 | | - * the Free Software Foundation; either version 2, or (at your option) |
---|
14 | | - * any later version. |
---|
15 | | - * |
---|
16 | | - * This program is distributed in the hope that it will be useful, |
---|
17 | | - * but WITHOUT ANY WARRANTY; without even the implied warranty of |
---|
18 | | - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
---|
19 | | - * GNU General Public License for more details. |
---|
20 | | - * |
---|
21 | | - * You should have received a copy of the GNU General Public License |
---|
22 | | - * along with this program; see the file COPYING. If not, write to |
---|
23 | | - * the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. |
---|
24 | | - * |
---|
25 | | - * |
---|
26 | 11 | * libata documentation is available via 'make {ps|pdf}docs', |
---|
27 | 12 | * as Documentation/driver-api/libata.rst |
---|
28 | 13 | * |
---|
29 | 14 | * Hardware documentation available under NDA. |
---|
30 | | - * |
---|
31 | 15 | */ |
---|
32 | 16 | |
---|
33 | 17 | /* |
---|
.. | .. |
---|
685 | 669 | case ATA_PROT_NODATA: |
---|
686 | 670 | if (qc->tf.flags & ATA_TFLAG_POLLING) |
---|
687 | 671 | break; |
---|
688 | | - /*FALLTHROUGH*/ |
---|
| 672 | + fallthrough; |
---|
689 | 673 | case ATA_PROT_DMA: |
---|
690 | 674 | pdc20621_packet_start(qc); |
---|
691 | 675 | return 0; |
---|
.. | .. |
---|
1488 | 1472 | } |
---|
1489 | 1473 | |
---|
1490 | 1474 | /* configure and activate */ |
---|
1491 | | - rc = dma_set_mask(&pdev->dev, ATA_DMA_MASK); |
---|
1492 | | - if (rc) |
---|
1493 | | - return rc; |
---|
1494 | | - rc = dma_set_coherent_mask(&pdev->dev, ATA_DMA_MASK); |
---|
| 1475 | + rc = dma_set_mask_and_coherent(&pdev->dev, ATA_DMA_MASK); |
---|
1495 | 1476 | if (rc) |
---|
1496 | 1477 | return rc; |
---|
1497 | 1478 | |
---|