Add aarch64 patches to fix mustang usb, seattle eth, and console settings
This commit is contained in:
parent
b6d84528bc
commit
b4512393ac
1847
amd-xgbe-phy-a0-Add-support-for-XGBE-PHY-on-A0.patch
Normal file
1847
amd-xgbe-phy-a0-Add-support-for-XGBE-PHY-on-A0.patch
Normal file
File diff suppressed because it is too large
Load Diff
46
arm64-avoid-needing-console-to-enable-serial-console.patch
Normal file
46
arm64-avoid-needing-console-to-enable-serial-console.patch
Normal file
@ -0,0 +1,46 @@
|
|||||||
|
From 3bba3a1990d065e30630c5c67ed32689106aef57 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Mark Salter <msalter@redhat.com>
|
||||||
|
Date: Wed, 25 Mar 2015 14:17:50 -0400
|
||||||
|
Subject: [PATCH 4/4] arm64: avoid needing console= to enable serial console
|
||||||
|
|
||||||
|
Tell kernel to prefer one of the serial ports for console on
|
||||||
|
platforms currently supported (pl011 or 8250). console= on
|
||||||
|
command line will override these assumed preferences. This is
|
||||||
|
just a hack to get the behavior we want from DT provided by
|
||||||
|
firmware.
|
||||||
|
|
||||||
|
Signed-off-by: Mark Salter <msalter@redhat.com>
|
||||||
|
---
|
||||||
|
arch/arm64/kernel/setup.c | 19 +++++++++++++++++++
|
||||||
|
1 file changed, 19 insertions(+)
|
||||||
|
|
||||||
|
diff --git a/arch/arm64/kernel/setup.c b/arch/arm64/kernel/setup.c
|
||||||
|
index e8420f6..8473381 100644
|
||||||
|
--- a/arch/arm64/kernel/setup.c
|
||||||
|
+++ b/arch/arm64/kernel/setup.c
|
||||||
|
@@ -547,3 +547,22 @@ const struct seq_operations cpuinfo_op = {
|
||||||
|
.stop = c_stop,
|
||||||
|
.show = c_show
|
||||||
|
};
|
||||||
|
+
|
||||||
|
+/*
|
||||||
|
+ * Temporary hack to avoid need for console= on command line
|
||||||
|
+ */
|
||||||
|
+static int __init arm64_console_setup(void)
|
||||||
|
+{
|
||||||
|
+ /* Allow cmdline to override our assumed preferences */
|
||||||
|
+ if (console_set_on_cmdline)
|
||||||
|
+ return 0;
|
||||||
|
+
|
||||||
|
+ if (IS_ENABLED(CONFIG_SERIAL_AMBA_PL011))
|
||||||
|
+ add_preferred_console("ttyAMA", 0, "115200");
|
||||||
|
+
|
||||||
|
+ if (IS_ENABLED(CONFIG_SERIAL_8250))
|
||||||
|
+ add_preferred_console("ttyS", 0, "115200");
|
||||||
|
+
|
||||||
|
+ return 0;
|
||||||
|
+}
|
||||||
|
+early_initcall(arm64_console_setup);
|
||||||
|
--
|
||||||
|
1.9.3
|
||||||
|
|
@ -578,6 +578,9 @@ Patch15000: watchdog-Disable-watchdog-on-virtual-machines.patch
|
|||||||
|
|
||||||
# ARM64
|
# ARM64
|
||||||
Patch21000: net-amd-Add-xgbe-a0-driver.patch
|
Patch21000: net-amd-Add-xgbe-a0-driver.patch
|
||||||
|
Patch21001: amd-xgbe-phy-a0-Add-support-for-XGBE-PHY-on-A0.patch
|
||||||
|
Patch21002: arm64-avoid-needing-console-to-enable-serial-console.patch
|
||||||
|
Patch21003: usb-make-xhci-platform-driver-use-64-bit-or-32-bit-D.patch
|
||||||
|
|
||||||
# ARMv7
|
# ARMv7
|
||||||
Patch21020: ARM-tegra-usb-no-reset.patch
|
Patch21020: ARM-tegra-usb-no-reset.patch
|
||||||
@ -1211,6 +1214,9 @@ ApplyPatch lib-cpumask-Make-CPUMASK_OFFSTACK-usable-without-deb.patch
|
|||||||
|
|
||||||
# ARM64
|
# ARM64
|
||||||
ApplyPatch net-amd-Add-xgbe-a0-driver.patch
|
ApplyPatch net-amd-Add-xgbe-a0-driver.patch
|
||||||
|
ApplyPatch amd-xgbe-phy-a0-Add-support-for-XGBE-PHY-on-A0.patch
|
||||||
|
ApplyPatch arm64-avoid-needing-console-to-enable-serial-console.patch
|
||||||
|
ApplyPatch usb-make-xhci-platform-driver-use-64-bit-or-32-bit-D.patch
|
||||||
|
|
||||||
#
|
#
|
||||||
# ARM
|
# ARM
|
||||||
@ -2227,6 +2233,9 @@ fi
|
|||||||
#
|
#
|
||||||
#
|
#
|
||||||
%changelog
|
%changelog
|
||||||
|
* Wed Mar 25 2015 Peter Robinson <pbrobinson@fedoraproject.org>
|
||||||
|
- Add aarch64 patches to fix mustang usb, seattle eth, and console settings
|
||||||
|
|
||||||
* Wed Mar 25 2015 Josh Boyer <jwboyer@fedoraproject.org> - 4.0.0-0.rc5.git2.4
|
* Wed Mar 25 2015 Josh Boyer <jwboyer@fedoraproject.org> - 4.0.0-0.rc5.git2.4
|
||||||
- Add patches to fix a few more i915 hangs/oopses
|
- Add patches to fix a few more i915 hangs/oopses
|
||||||
|
|
||||||
|
44
usb-make-xhci-platform-driver-use-64-bit-or-32-bit-D.patch
Normal file
44
usb-make-xhci-platform-driver-use-64-bit-or-32-bit-D.patch
Normal file
@ -0,0 +1,44 @@
|
|||||||
|
From 30b01a7a85c0a2993870f7ed93059f9957bff59f Mon Sep 17 00:00:00 2001
|
||||||
|
From: Mark Langsdorf <mlangsdo@redhat.com>
|
||||||
|
Date: Wed, 25 Mar 2015 14:12:51 -0400
|
||||||
|
Subject: [PATCH 3/4] usb: make xhci platform driver use 64 bit or 32 bit DMA
|
||||||
|
|
||||||
|
The xhci platform driver needs to work on systems that either only
|
||||||
|
support 64-bit DMA or only support 32-bit DMA. Attempt to set a
|
||||||
|
coherent dma mask for 64-bit DMA, and attempt again with 32-bit
|
||||||
|
DMA if that fails.
|
||||||
|
|
||||||
|
Signed-off-by: Mark Langsdorf <mlangsdo@redhat.com>
|
||||||
|
---
|
||||||
|
drivers/usb/host/xhci-plat.c | 15 +++++++--------
|
||||||
|
1 file changed, 7 insertions(+), 8 deletions(-)
|
||||||
|
|
||||||
|
diff --git a/drivers/usb/host/xhci-plat.c b/drivers/usb/host/xhci-plat.c
|
||||||
|
index 0e11d61..cc5ca2c 100644
|
||||||
|
--- a/drivers/usb/host/xhci-plat.c
|
||||||
|
+++ b/drivers/usb/host/xhci-plat.c
|
||||||
|
@@ -83,14 +83,13 @@ static int xhci_plat_probe(struct platform_device *pdev)
|
||||||
|
if (irq < 0)
|
||||||
|
return -ENODEV;
|
||||||
|
|
||||||
|
- /* Initialize dma_mask and coherent_dma_mask to 32-bits */
|
||||||
|
- ret = dma_set_coherent_mask(&pdev->dev, DMA_BIT_MASK(32));
|
||||||
|
- if (ret)
|
||||||
|
- return ret;
|
||||||
|
- if (!pdev->dev.dma_mask)
|
||||||
|
- pdev->dev.dma_mask = &pdev->dev.coherent_dma_mask;
|
||||||
|
- else
|
||||||
|
- dma_set_mask(&pdev->dev, DMA_BIT_MASK(32));
|
||||||
|
+ /* Try setting the coherent_dma_mask to 64 bits, then try 32 bits */
|
||||||
|
+ ret = dma_set_mask_and_coherent(&pdev->dev, DMA_BIT_MASK(64));
|
||||||
|
+ if (ret) {
|
||||||
|
+ ret = dma_set_mask_and_coherent(&pdev->dev, DMA_BIT_MASK(32));
|
||||||
|
+ if (ret)
|
||||||
|
+ return ret;
|
||||||
|
+ }
|
||||||
|
|
||||||
|
hcd = usb_create_hcd(driver, &pdev->dev, dev_name(&pdev->dev));
|
||||||
|
if (!hcd)
|
||||||
|
--
|
||||||
|
1.9.3
|
||||||
|
|
Loading…
Reference in New Issue
Block a user