ahci: clean up ahci_broken_devslp quirk
authorNiklas Cassel <cassel@kernel.org>
Wed, 14 Feb 2024 13:00:10 +0000 (14:00 +0100)
committerNiklas Cassel <cassel@kernel.org>
Mon, 19 Feb 2024 08:51:56 +0000 (09:51 +0100)
commitbf6f1581d121d4723daf46ccd8d1a91d99e39b6d
treecc800bb854cf38dc275c91108e2aff14ad086308
parentf2b70a264b44a6c3952fadbcc3e6711deed8458f
ahci: clean up ahci_broken_devslp quirk

Most quirks are applied using a specific board type board_ahci_no*
(e.g. board_ahci_nomsi, board_ahci_noncq), which then sets a flag
representing the specific quirk.

ahci_pci_tbl (which is the table of all supported PCI devices), then
uses that board type for the PCI vendor and device IDs which need to
be quirked.

The ahci_broken_devslp quirk is not implemented in this standard way.

Modify the ahci_broken_devslp quirk to be implemented like the other
quirks. This way, we will not have the same PCI device and vendor ID
scattered over ahci.c. It will simply be defined in a single location.

Suggested-by: Dan Williams <dan.j.williams@intel.com>
Reviewed-by: Damien Le Moal <dlemoal@kernel.org>
Reviewed-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Signed-off-by: Niklas Cassel <cassel@kernel.org>
drivers/ata/ahci.c