Skip to content

Commit f2b70a2

Browse files
committed
ahci: rename board_ahci_nosntf
Commit 7edbb60 ("ahci: clean up intel_pcs_quirk") added a new board type (board_ahci_pcs_quirk) which applies the Intel PCS quirk for legacy platforms. However, it also modified board_ahci_avn and board_ahci_nosntf to apply the same quirk. board_ahci_avn is defined under the label: /* board IDs for specific chipsets in alphabetical order */ This is a board for a specific chipset, so the naming is perfectly fine. (The name does not need to be suffixed with _pcs_quirk, since all controllers for this chipset require the quirk to be applied). board_ahci_nosntf is defined under the label: /* board IDs by feature in alphabetical order */ This is a board for a specific feature/quirk. However, it is used to apply two different quirks. Rename board_ahci_nosntf to more clearly highlight that this board ID applies two different quirks. Fixes: 7edbb60 ("ahci: clean up intel_pcs_quirk") Reviewed-by: Damien Le Moal <[email protected]> Reviewed-by: Mika Westerberg <[email protected]> Signed-off-by: Niklas Cassel <[email protected]>
1 parent 7edbb60 commit f2b70a2

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

drivers/ata/ahci.c

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,6 @@ enum board_ids {
5353
board_ahci_no_debounce_delay,
5454
board_ahci_nomsi,
5555
board_ahci_noncq,
56-
board_ahci_nosntf,
5756
/*
5857
* board_ahci_pcs_quirk is for legacy Intel platforms.
5958
* Modern Intel platforms should use board_ahci instead.
@@ -62,6 +61,7 @@ enum board_ids {
6261
* without testing that the platform actually works without the quirk.)
6362
*/
6463
board_ahci_pcs_quirk,
64+
board_ahci_pcs_quirk_no_sntf,
6565
board_ahci_yes_fbs,
6666

6767
/* board IDs for specific chipsets in alphabetical order */
@@ -165,16 +165,16 @@ static const struct ata_port_info ahci_port_info[] = {
165165
.udma_mask = ATA_UDMA6,
166166
.port_ops = &ahci_ops,
167167
},
168-
[board_ahci_nosntf] = {
169-
AHCI_HFLAGS (AHCI_HFLAG_NO_SNTF |
170-
AHCI_HFLAG_INTEL_PCS_QUIRK),
168+
[board_ahci_pcs_quirk] = {
169+
AHCI_HFLAGS (AHCI_HFLAG_INTEL_PCS_QUIRK),
171170
.flags = AHCI_FLAG_COMMON,
172171
.pio_mask = ATA_PIO4,
173172
.udma_mask = ATA_UDMA6,
174173
.port_ops = &ahci_ops,
175174
},
176-
[board_ahci_pcs_quirk] = {
177-
AHCI_HFLAGS (AHCI_HFLAG_INTEL_PCS_QUIRK),
175+
[board_ahci_pcs_quirk_no_sntf] = {
176+
AHCI_HFLAGS (AHCI_HFLAG_INTEL_PCS_QUIRK |
177+
AHCI_HFLAG_NO_SNTF),
178178
.flags = AHCI_FLAG_COMMON,
179179
.pio_mask = ATA_PIO4,
180180
.udma_mask = ATA_UDMA6,
@@ -271,7 +271,7 @@ static const struct pci_device_id ahci_pci_tbl[] = {
271271
{ PCI_VDEVICE(INTEL, 0x2683), board_ahci_pcs_quirk }, /* ESB2 */
272272
{ PCI_VDEVICE(INTEL, 0x27c6), board_ahci_pcs_quirk }, /* ICH7-M DH */
273273
{ PCI_VDEVICE(INTEL, 0x2821), board_ahci_pcs_quirk }, /* ICH8 */
274-
{ PCI_VDEVICE(INTEL, 0x2822), board_ahci_nosntf }, /* ICH8/Lewisburg RAID*/
274+
{ PCI_VDEVICE(INTEL, 0x2822), board_ahci_pcs_quirk_no_sntf }, /* ICH8/Lewisburg RAID*/
275275
{ PCI_VDEVICE(INTEL, 0x2824), board_ahci_pcs_quirk }, /* ICH8 */
276276
{ PCI_VDEVICE(INTEL, 0x2829), board_ahci_pcs_quirk }, /* ICH8M */
277277
{ PCI_VDEVICE(INTEL, 0x282a), board_ahci_pcs_quirk }, /* ICH8M */

0 commit comments

Comments
 (0)