forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-05-13 9d77db3c730780c8ef5ccd4b66403ff5675cfe4e
kernel/drivers/scsi/arm/powertec.c
....@@ -1,11 +1,8 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
23 * linux/drivers/acorn/scsi/powertec.c
34 *
45 * Copyright (C) 1997-2005 Russell King
5
- *
6
- * This program is free software; you can redistribute it and/or modify
7
- * it under the terms of the GNU General Public License version 2 as
8
- * published by the Free Software Foundation.
96 */
107 #include <linux/module.h>
118 #include <linux/blkdev.h>
....@@ -17,11 +14,11 @@
1714 #include <linux/interrupt.h>
1815 #include <linux/init.h>
1916 #include <linux/dma-mapping.h>
17
+#include <linux/pgtable.h>
2018
2119 #include <asm/dma.h>
2220 #include <asm/ecard.h>
2321 #include <asm/io.h>
24
-#include <asm/pgtable.h>
2522
2623 #include "../scsi.h"
2724 #include <scsi/scsi_host.h>
....@@ -141,12 +138,13 @@
141138
142139 bufs = copy_SCp_to_sg(&info->sg[0], SCp, NR_SG);
143140
144
- if (direction == DMA_OUT)
145
- map_dir = DMA_TO_DEVICE,
141
+ if (direction == DMA_OUT) {
142
+ map_dir = DMA_TO_DEVICE;
146143 dma_dir = DMA_MODE_WRITE;
147
- else
148
- map_dir = DMA_FROM_DEVICE,
144
+ } else {
145
+ map_dir = DMA_FROM_DEVICE;
149146 dma_dir = DMA_MODE_READ;
147
+ }
150148
151149 dma_map_sg(dev, info->sg, bufs, map_dir);
152150
....@@ -294,7 +292,6 @@
294292 .sg_tablesize = SG_MAX_SEGMENTS,
295293 .dma_boundary = IOMD_DMA_BOUNDARY,
296294 .cmd_per_lun = 2,
297
- .use_clustering = ENABLE_CLUSTERING,
298295 .proc_name = "powertec",
299296 };
300297