.. | .. |
---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
---|
1 | 2 | /* |
---|
2 | 3 | * Aic94xx SAS/SATA DDB management |
---|
3 | 4 | * |
---|
4 | 5 | * Copyright (C) 2005 Adaptec, Inc. All rights reserved. |
---|
5 | 6 | * 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 |
---|
24 | 7 | * |
---|
25 | 8 | * $Id: //depot/aic94xx/aic94xx_dev.c#21 $ |
---|
26 | 9 | */ |
---|
.. | .. |
---|
187 | 170 | } |
---|
188 | 171 | } else { |
---|
189 | 172 | 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)) |
---|
193 | 174 | asd_ddbsite_write_byte(asd_ha, ddb, MAX_CCONN, |
---|
194 | 175 | 4); |
---|
195 | 176 | else |
---|
.. | .. |
---|
255 | 236 | |
---|
256 | 237 | /** |
---|
257 | 238 | * asd_init_sata_pm_port_ddb -- SATA Port Multiplier Port |
---|
258 | | - * dev: pointer to domain device |
---|
| 239 | + * @dev: pointer to domain device |
---|
259 | 240 | * |
---|
260 | 241 | * For SATA Port Multiplier Ports we need to allocate one SATA Port |
---|
261 | 242 | * Multiplier Port DDB and depending on whether the target on it |
---|
.. | .. |
---|
300 | 281 | |
---|
301 | 282 | /** |
---|
302 | 283 | * asd_init_sata_pm_ddb -- SATA Port Multiplier |
---|
303 | | - * dev: pointer to domain device |
---|
| 284 | + * @dev: pointer to domain device |
---|
304 | 285 | * |
---|
305 | 286 | * For STP and direct-attached SATA Port Multipliers we need |
---|
306 | 287 | * one target port DDB entry and one SATA PM table DDB entry. |
---|