mirror of
https://github.com/linuxboot/heads.git
synced 2024-12-29 17:28:54 +00:00
b71f3757c1
* modules/linux: add support for building with kernel 5.4.69 Add support to module, port patches from 4.19.139. Needed for newer platforms not supported by 4.19 kernel. Signed-off-by: Matt DeVillier <matt.devillier@puri.sm> * CircleCI: add rysnc dependency for building kernel 5.x Signed-off-by: Matt DeVillier <matt.devillier@puri.sm> * Migrate all Librem boards to kernel 5.x, common config Update linux-librem_common.config from 4.x to 5.x, and add CONFIG items needed to support the librem_l1um (AST DRM drivers, serial port output). Tested on Librem 13v4, Librem Mini, and Librem Server L1UM. Signed-off-by: Matt DeVillier <matt.devillier@puri.sm>
19 lines
787 B
Diff
19 lines
787 B
Diff
diff --recursive -u ./clean/linux-4.9.80/drivers/ata/libahci.c linux-4.9.80/drivers/ata/libahci.c
|
|
--- ./clean/linux-4.9.80/drivers/ata/libahci.c 2018-02-03 11:05:43.000000000 -0500
|
|
+++ linux-4.9.80/drivers/ata/libahci.c 2018-02-07 18:02:32.526535910 -0500
|
|
@@ -537,8 +537,12 @@
|
|
}
|
|
|
|
/* fabricate port_map from cap.nr_ports for < AHCI 1.3 */
|
|
- if (!port_map && vers < 0x10300) {
|
|
- port_map = (1 << ahci_nr_ports(cap)) - 1;
|
|
+ if (!port_map) { // && vers < 0x10300) {
|
|
+ printk("%s: saved_port=%02x\n", __func__, hpriv->saved_port_map);
|
|
+ writel(0x1, mmio + HOST_PORTS_IMPL);
|
|
+ port_map = readl(mmio + HOST_PORTS_IMPL);
|
|
+
|
|
+ //port_map = (1 << ahci_nr_ports(cap)) - 1;
|
|
dev_warn(dev, "forcing PORTS_IMPL to 0x%x\n", port_map);
|
|
|
|
/* write the fixed up value to the PI register */
|