hc
2023-12-11 d2ccde1c8e90d38cee87a1b0309ad2827f3fd30d
kernel/drivers/scsi/aic94xx/aic94xx_dev.c
....@@ -1,26 +1,9 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
23 * Aic94xx SAS/SATA DDB management
34 *
45 * Copyright (C) 2005 Adaptec, Inc. All rights reserved.
56 * Copyright (C) 2005 Luben Tuikov <luben_tuikov@adaptec.com>
6
- *
7
- * This file is licensed under GPLv2.
8
- *
9
- * This file is part of the aic94xx driver.
10
- *
11
- * The aic94xx driver is free software; you can redistribute it and/or
12
- * modify it under the terms of the GNU General Public License as
13
- * published by the Free Software Foundation; version 2 of the
14
- * License.
15
- *
16
- * The aic94xx driver 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 GNU
19
- * General Public License for more details.
20
- *
21
- * You should have received a copy of the GNU General Public License
22
- * along with the aic94xx driver; if not, write to the Free Software
23
- * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
247 *
258 * $Id: //depot/aic94xx/aic94xx_dev.c#21 $
269 */
....@@ -187,9 +170,7 @@
187170 }
188171 } else {
189172 flags |= CONCURRENT_CONN_SUPP;
190
- if (!dev->parent &&
191
- (dev->dev_type == SAS_EDGE_EXPANDER_DEVICE ||
192
- dev->dev_type == SAS_FANOUT_EXPANDER_DEVICE))
173
+ if (!dev->parent && dev_is_expander(dev->dev_type))
193174 asd_ddbsite_write_byte(asd_ha, ddb, MAX_CCONN,
194175 4);
195176 else
....@@ -255,7 +236,7 @@
255236
256237 /**
257238 * asd_init_sata_pm_port_ddb -- SATA Port Multiplier Port
258
- * dev: pointer to domain device
239
+ * @dev: pointer to domain device
259240 *
260241 * For SATA Port Multiplier Ports we need to allocate one SATA Port
261242 * Multiplier Port DDB and depending on whether the target on it
....@@ -300,7 +281,7 @@
300281
301282 /**
302283 * asd_init_sata_pm_ddb -- SATA Port Multiplier
303
- * dev: pointer to domain device
284
+ * @dev: pointer to domain device
304285 *
305286 * For STP and direct-attached SATA Port Multipliers we need
306287 * one target port DDB entry and one SATA PM table DDB entry.