Skip to content

Commit 3a0eb19

Browse files
committed
Merge tag 'for-5.7/libata-2020-03-29' of git://git.kernel.dk/linux-block
Pull libata updates from Jens Axboe: - Series from Bart, making the libata code smaller on PATA only setups. This is useful for smaller/embedded use cases, and will help us move some of those off drivers/ide. - Kill unused BPRINTK() (Hannes) - Add various Comet Lake ahci PCI ids (Kai-Heng, Mika) - Fix for a double scsi_host_put() in error handling (John) - Use scnprintf (Takashi) - Assign OF node to the SCSI device (Linus Walleij) * tag 'for-5.7/libata-2020-03-29' of git://git.kernel.dk/linux-block: (36 commits) ata: make "libata.force" kernel parameter optional ata: move ata_eh_analyze_ncq_error() & co. to libata-sata.c ata: start separating SATA specific code from libata-eh.c ata: move ata_sas_*() to libata-sata.c ata: start separating SATA specific code from libata-scsi.c ata: move sata_deb_timing_*() to libata-sata.c ata: move ata_qc_complete_multiple() to libata-sata.c ata: move sata_link_hardreset() to libata-sata.c ata: move sata_link_{debounce,resume}() to libata-sata.c ata: move *sata_set_spd*() to libata-sata.c ata: move sata_scr_*() to libata-sata.c ata: start separating SATA specific code from libata-core.c ata: let compiler optimize out ata_eh_set_lpm() on non-SATA hosts ata: let compiler optimize out ata_dev_config_ncq() on non-SATA hosts ata: add CONFIG_SATA_HOST=n version of ata_ncq_enabled() ata: separate PATA timings code from libata-core.c ata: fix CodingStyle issues in PATA timings code ata: remove EXPORT_SYMBOL_GPL()s not used by modules ata: move EXPORT_SYMBOL_GPL()s close to exported code ata: optimize ata_scsi_rbuf[] size ...
2 parents c03cb66 + bf89b0b commit 3a0eb19

16 files changed

Lines changed: 2065 additions & 1857 deletions

‎drivers/ata/Kconfig‎

Lines changed: 77 additions & 0 deletions
Large diffs are not rendered by default.

‎drivers/ata/Makefile‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,9 @@ obj-$(CONFIG_PATA_LEGACY) += pata_legacy.o
123123

124124
libata-y := libata-core.o libata-scsi.o libata-eh.o \
125125
libata-transport.o libata-trace.o
126+
libata-$(CONFIG_SATA_HOST) += libata-sata.o
126127
libata-$(CONFIG_ATA_SFF) += libata-sff.o
127128
libata-$(CONFIG_SATA_PMP) += libata-pmp.o
128129
libata-$(CONFIG_ATA_ACPI) += libata-acpi.o
129130
libata-$(CONFIG_SATA_ZPODD) += libata-zpodd.o
131+
libata-$(CONFIG_PATA_TIMINGS) += libata-pata-timings.o

‎drivers/ata/ahci.c‎

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@
4040
enum {
4141
AHCI_PCI_BAR_STA2X11 = 0,
4242
AHCI_PCI_BAR_CAVIUM = 0,
43+
AHCI_PCI_BAR_LOONGSON = 0,
4344
AHCI_PCI_BAR_ENMOTUS = 2,
4445
AHCI_PCI_BAR_CAVIUM_GEN5 = 4,
4546
AHCI_PCI_BAR_STANDARD = 5,
@@ -245,6 +246,7 @@ static const struct ata_port_info ahci_port_info[] = {
245246

246247
static const struct pci_device_id ahci_pci_tbl[] = {
247248
/* Intel */
249+
{ PCI_VDEVICE(INTEL, 0x06d6), board_ahci }, /* Comet Lake PCH-H RAID */
248250
{ PCI_VDEVICE(INTEL, 0x2652), board_ahci }, /* ICH6 */
249251
{ PCI_VDEVICE(INTEL, 0x2653), board_ahci }, /* ICH6M */
250252
{ PCI_VDEVICE(INTEL, 0x27c1), board_ahci }, /* ICH7 */
@@ -401,6 +403,8 @@ static const struct pci_device_id ahci_pci_tbl[] = {
401403
{ PCI_VDEVICE(INTEL, 0xa252), board_ahci }, /* Lewisburg RAID*/
402404
{ PCI_VDEVICE(INTEL, 0xa256), board_ahci }, /* Lewisburg RAID*/
403405
{ PCI_VDEVICE(INTEL, 0xa356), board_ahci }, /* Cannon Lake PCH-H RAID */
406+
{ PCI_VDEVICE(INTEL, 0x06d7), board_ahci }, /* Comet Lake-H RAID */
407+
{ PCI_VDEVICE(INTEL, 0xa386), board_ahci }, /* Comet Lake PCH-V RAID */
404408
{ PCI_VDEVICE(INTEL, 0x0f22), board_ahci_mobile }, /* Bay Trail AHCI */
405409
{ PCI_VDEVICE(INTEL, 0x0f23), board_ahci_mobile }, /* Bay Trail AHCI */
406410
{ PCI_VDEVICE(INTEL, 0x22a3), board_ahci_mobile }, /* Cherry Tr. AHCI */
@@ -589,6 +593,9 @@ static const struct pci_device_id ahci_pci_tbl[] = {
589593
/* Enmotus */
590594
{ PCI_DEVICE(0x1c44, 0x8000), board_ahci },
591595

596+
/* Loongson */
597+
{ PCI_VDEVICE(LOONGSON, 0x7a08), board_ahci },
598+
592599
/* Generic, PCI class code for AHCI */
593600
{ PCI_ANY_ID, PCI_ANY_ID, PCI_ANY_ID, PCI_ANY_ID,
594601
PCI_CLASS_STORAGE_SATA_AHCI, 0xffffff, board_ahci },
@@ -1680,6 +1687,9 @@ static int ahci_init_one(struct pci_dev *pdev, const struct pci_device_id *ent)
16801687
ahci_pci_bar = AHCI_PCI_BAR_CAVIUM;
16811688
if (pdev->device == 0xa084)
16821689
ahci_pci_bar = AHCI_PCI_BAR_CAVIUM_GEN5;
1690+
} else if (pdev->vendor == PCI_VENDOR_ID_LOONGSON) {
1691+
if (pdev->device == 0x7a08)
1692+
ahci_pci_bar = AHCI_PCI_BAR_LOONGSON;
16831693
}
16841694

16851695
/* acquire resources */

0 commit comments

Comments
 (0)