aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/cns3xxx/patches-4.19/080-sata_support.patch
diff options
context:
space:
mode:
authorAdrian Schmutzler <freifunk@adrianschmutzler.de>2020-08-31 19:46:35 +0200
committerAdrian Schmutzler <freifunk@adrianschmutzler.de>2020-09-14 00:19:27 +0200
commita9790dff532e154a93b12abaeccd7889d9159791 (patch)
tree57e06c6743118d486bd3ffe4e85d0e20284abb8c /target/linux/cns3xxx/patches-4.19/080-sata_support.patch
parent04d3b517dc3301e0148a2ce811ffc136568b04bd (diff)
downloadupstream-a9790dff532e154a93b12abaeccd7889d9159791.tar.gz
upstream-a9790dff532e154a93b12abaeccd7889d9159791.tar.bz2
upstream-a9790dff532e154a93b12abaeccd7889d9159791.zip
cns3xxx: drop target
This target has not been updated to 5.4 yet, and the only person trying it (Koen) decided to retreat based on the following reasons: - The target is not DT-aware at all - The huge amount of effort required - The SoC itself reached EoL at Cavium for some time now - Upstream removed some important parts as it's also slowly getting EoL over there - The commercial product that used this will fade out shortly - The amount of download for this binary suggest that the target is not that popular Since nobody has picked up the work since then, and this is the last remaining 4.19-only target, finally drop it now. Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
Diffstat (limited to 'target/linux/cns3xxx/patches-4.19/080-sata_support.patch')
-rw-r--r--target/linux/cns3xxx/patches-4.19/080-sata_support.patch40
1 files changed, 0 insertions, 40 deletions
diff --git a/target/linux/cns3xxx/patches-4.19/080-sata_support.patch b/target/linux/cns3xxx/patches-4.19/080-sata_support.patch
deleted file mode 100644
index 65a5275bec..0000000000
--- a/target/linux/cns3xxx/patches-4.19/080-sata_support.patch
+++ /dev/null
@@ -1,40 +0,0 @@
---- a/drivers/ata/ahci_platform.c
-+++ b/drivers/ata/ahci_platform.c
-@@ -44,11 +44,18 @@ static struct scsi_host_template ahci_pl
- AHCI_SHT(DRV_NAME),
- };
-
-+static const struct ata_port_info cns3xxx_port_info = {
-+ .flags = AHCI_FLAG_COMMON,
-+ .pio_mask = ATA_PIO4,
-+ .udma_mask = ATA_UDMA6,
-+ .port_ops = &ahci_pmp_retry_srst_ops,
-+};
-+
- static int ahci_probe(struct platform_device *pdev)
- {
- struct device *dev = &pdev->dev;
- struct ahci_host_priv *hpriv;
-- const struct ata_port_info *port;
-+ const struct ata_port_info *port = &ahci_port_info;
- int rc;
-
- hpriv = ahci_platform_get_resources(pdev,
-@@ -66,9 +73,14 @@ static int ahci_probe(struct platform_de
- if (of_device_is_compatible(dev->of_node, "hisilicon,hisi-ahci"))
- hpriv->flags |= AHCI_HFLAG_NO_FBS | AHCI_HFLAG_NO_NCQ;
-
-- port = acpi_device_get_match_data(dev);
-- if (!port)
-- port = &ahci_port_info;
-+ if (IS_ENABLED(CONFIG_ARCH_CNS3XXX)) {
-+ port = &cns3xxx_port_info;
-+ }
-+ else {
-+ port = acpi_device_get_match_data(dev);
-+ if (!port)
-+ port = &ahci_port_info;
-+ }
-
- rc = ahci_platform_init_host(pdev, hpriv, port,
- &ahci_platform_sht);