hc
2023-12-11 d2ccde1c8e90d38cee87a1b0309ad2827f3fd30d
kernel/drivers/scsi/ncr53c8xx.c
....@@ -1,21 +1,9 @@
1
+// SPDX-License-Identifier: GPL-2.0-or-later
12 /******************************************************************************
23 ** Device driver for the PCI-SCSI NCR538XX controller family.
34 **
45 ** Copyright (C) 1994 Wolfgang Stanglmeier
56 **
6
-** This program is free software; you can redistribute it and/or modify
7
-** it under the terms of the GNU General Public License as published by
8
-** the Free Software Foundation; either version 2 of the License, or
9
-** (at your option) any later version.
10
-**
11
-** This program is distributed in the hope that it will be useful,
12
-** but WITHOUT ANY WARRANTY; without even the implied warranty of
13
-** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
-** GNU General Public License for more details.
15
-**
16
-** You should have received a copy of the GNU General Public License
17
-** along with this program; if not, write to the Free Software
18
-** Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
197 **
208 **-----------------------------------------------------------------------------
219 **
....@@ -1734,7 +1722,7 @@
17341722 ** Miscellaneous configuration and status parameters.
17351723 **----------------------------------------------------------------
17361724 */
1737
- u_char disc; /* Diconnection allowed */
1725
+ u_char disc; /* Disconnection allowed */
17381726 u_char scsi_mode; /* Current SCSI BUS mode */
17391727 u_char order; /* Tag order to use */
17401728 u_char verbose; /* Verbosity for this controller*/
....@@ -2215,7 +2203,7 @@
22152203 ** Possible data corruption during Memory Write and Invalidate.
22162204 ** This work-around resets the addressing logic prior to the
22172205 ** start of the first MOVE of a DATA IN phase.
2218
- ** (See Documentation/scsi/ncr53c8xx.txt for more information)
2206
+ ** (See Documentation/scsi/ncr53c8xx.rst for more information)
22192207 */
22202208 SCR_JUMPR ^ IFFALSE (IF (SCR_DATA_IN)),
22212209 20,
....@@ -3652,7 +3640,7 @@
36523640 new = old;
36533641 break;
36543642 }
3655
- /* fall through */
3643
+ fallthrough;
36563644 default:
36573645 panic("ncr_script_copy_and_bind: weird relocation %x\n", old);
36583646 break;
....@@ -3922,11 +3910,14 @@
39223910 np->scsi_mode = SMODE_HVD;
39233911 break;
39243912 }
3913
+ fallthrough;
39253914 case 3: /* SYMBIOS controllers report HVD through GPIO3 */
39263915 if (INB(nc_gpreg) & 0x08)
39273916 break;
3917
+ fallthrough;
39283918 case 2: /* Set HVD unconditionally */
39293919 np->scsi_mode = SMODE_HVD;
3920
+ fallthrough;
39303921 case 1: /* Trust previous settings for HVD */
39313922 if (np->sv_stest2 & 0x20)
39323923 np->scsi_mode = SMODE_HVD;
....@@ -4305,7 +4296,7 @@
43054296 break;
43064297 cp->phys.header.wgoalp = cpu_to_scr(goalp);
43074298 cp->phys.header.wlastp = cpu_to_scr(lastp);
4308
- /* fall through */
4299
+ fallthrough;
43094300 case DMA_FROM_DEVICE:
43104301 goalp = NCB_SCRIPT_PHYS (np, data_in2) + 8;
43114302 if (segments <= MAX_SCATTERL)
....@@ -6726,6 +6717,7 @@
67266717 OUTL_DSP (scr_to_cpu(tp->lp[0]->jump_ccb[0]));
67276718 return;
67286719 }
6720
+ fallthrough;
67296721 case SIR_RESEL_BAD_TARGET: /* Will send a TARGET RESET message */
67306722 case SIR_RESEL_BAD_LUN: /* Will send a TARGET RESET message */
67316723 case SIR_RESEL_BAD_I_T_L_Q: /* Will send an ABORT TAG message */
....@@ -6833,7 +6825,7 @@
68336825 */
68346826 OUTB (HS_PRT, HS_BUSY);
68356827
6836
- /* fall through */
6828
+ fallthrough;
68376829
68386830 case SIR_NEGO_PROTO:
68396831 /*-------------------------------------------------------
....@@ -8313,7 +8305,6 @@
83138305 tpnt->this_id = 7;
83148306 tpnt->sg_tablesize = SCSI_NCR_SG_TABLESIZE;
83158307 tpnt->cmd_per_lun = SCSI_NCR_CMD_PER_LUN;
8316
- tpnt->use_clustering = ENABLE_CLUSTERING;
83178308
83188309 if (device->differential)
83198310 driver_setup.diff_support = device->differential;