.. | .. |
---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-or-later |
---|
1 | 2 | /* |
---|
2 | 3 | * drivers/ata/sata_dwc_460ex.c |
---|
3 | 4 | * |
---|
.. | .. |
---|
11 | 12 | * Based on versions provided by AMCC and Synopsys which are: |
---|
12 | 13 | * Copyright 2006 Applied Micro Circuits Corporation |
---|
13 | 14 | * COPYRIGHT (C) 2005 SYNOPSYS, INC. ALL RIGHTS RESERVED |
---|
14 | | - * |
---|
15 | | - * This program is free software; you can redistribute it and/or modify it |
---|
16 | | - * under the terms of the GNU General Public License as published by the |
---|
17 | | - * Free Software Foundation; either version 2 of the License, or (at your |
---|
18 | | - * option) any later version. |
---|
19 | 15 | */ |
---|
20 | 16 | |
---|
21 | 17 | #ifdef CONFIG_SATA_DWC_DEBUG |
---|
.. | .. |
---|
149 | 145 | #endif |
---|
150 | 146 | }; |
---|
151 | 147 | |
---|
152 | | -#define SATA_DWC_QCMD_MAX 32 |
---|
| 148 | +/* |
---|
| 149 | + * Allow one extra special slot for commands and DMA management |
---|
| 150 | + * to account for libata internal commands. |
---|
| 151 | + */ |
---|
| 152 | +#define SATA_DWC_QCMD_MAX (ATA_MAX_QUEUE + 1) |
---|
153 | 153 | |
---|
154 | 154 | struct sata_dwc_device_port { |
---|
155 | 155 | struct sata_dwc_device *hsdev; |
---|