mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-08 22:45:43 +00:00
core/linux-armv7-rc to 4.19.rc1-1
This commit is contained in:
parent
d647b7b83d
commit
caf66aebc9
16 changed files with 622 additions and 611 deletions
|
@ -1,7 +1,7 @@
|
||||||
From 6cd78f818001a5e2caac7cadc3ffff95d752a021 Mon Sep 17 00:00:00 2001
|
From 6ea8686dc9fe35d8eb0db8377948f878bb5f197e Mon Sep 17 00:00:00 2001
|
||||||
From: Willy Tarreau <w@xxxxxx>
|
From: Willy Tarreau <w@xxxxxx>
|
||||||
Date: Sun, 2 Dec 2012 19:59:28 +0100
|
Date: Sun, 2 Dec 2012 19:59:28 +0100
|
||||||
Subject: [PATCH 01/14] ARM: atags: add support for Marvell's u-boot
|
Subject: [PATCH 01/13] ARM: atags: add support for Marvell's u-boot
|
||||||
|
|
||||||
Marvell uses a specific atag in its u-boot which includes among other
|
Marvell uses a specific atag in its u-boot which includes among other
|
||||||
information the MAC addresses for up to 4 network interfaces.
|
information the MAC addresses for up to 4 network interfaces.
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
From a383c6aaa67e862797d380a5163e633637358568 Mon Sep 17 00:00:00 2001
|
From 0b2a95fb47a6cae403fb6e7d8b46dbe30d803cf9 Mon Sep 17 00:00:00 2001
|
||||||
From: Willy Tarreau <w@xxxxxx>
|
From: Willy Tarreau <w@xxxxxx>
|
||||||
Date: Sun, 2 Dec 2012 19:56:58 +0100
|
Date: Sun, 2 Dec 2012 19:56:58 +0100
|
||||||
Subject: [PATCH 02/14] ARM: atags/fdt: retrieve MAC addresses from Marvell
|
Subject: [PATCH 02/13] ARM: atags/fdt: retrieve MAC addresses from Marvell
|
||||||
boot loader
|
boot loader
|
||||||
|
|
||||||
The atags are parsed and if a Marvell atag is found, up to 4 MAC
|
The atags are parsed and if a Marvell atag is found, up to 4 MAC
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
From 121aa156d4d107cf2b174c8eac89c7c473c43829 Mon Sep 17 00:00:00 2001
|
From 8381475130812e6b31cf700edee0388b0167a988 Mon Sep 17 00:00:00 2001
|
||||||
From: Kevin Mihelich <kevin@archlinuxarm.org>
|
From: Kevin Mihelich <kevin@archlinuxarm.org>
|
||||||
Date: Fri, 5 Sep 2014 15:41:19 -0600
|
Date: Fri, 5 Sep 2014 15:41:19 -0600
|
||||||
Subject: [PATCH 03/14] SMILE Plug device tree file
|
Subject: [PATCH 03/13] SMILE Plug device tree file
|
||||||
|
|
||||||
This adds a dts file for the SMILE Plug, which only differs from the Mirabox
|
This adds a dts file for the SMILE Plug, which only differs from the Mirabox
|
||||||
dts with the LED definitions.
|
dts with the LED definitions.
|
||||||
|
@ -14,10 +14,10 @@ Signed-off-by: Kevin Mihelich <kevin@archlinuxarm.org>
|
||||||
create mode 100644 arch/arm/boot/dts/armada-370-smileplug.dts
|
create mode 100644 arch/arm/boot/dts/armada-370-smileplug.dts
|
||||||
|
|
||||||
diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile
|
diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile
|
||||||
index 37a3de760d40..823a9ef2675d 100644
|
index b5bd3de87c33..547603bafae1 100644
|
||||||
--- a/arch/arm/boot/dts/Makefile
|
--- a/arch/arm/boot/dts/Makefile
|
||||||
+++ b/arch/arm/boot/dts/Makefile
|
+++ b/arch/arm/boot/dts/Makefile
|
||||||
@@ -1115,6 +1115,7 @@ dtb-$(CONFIG_MACH_ARMADA_370) += \
|
@@ -1138,6 +1138,7 @@ dtb-$(CONFIG_MACH_ARMADA_370) += \
|
||||||
armada-370-db.dtb \
|
armada-370-db.dtb \
|
||||||
armada-370-dlink-dns327l.dtb \
|
armada-370-dlink-dns327l.dtb \
|
||||||
armada-370-mirabox.dtb \
|
armada-370-mirabox.dtb \
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
From bca0f6d98bb3003178d962f83ba795d524460346 Mon Sep 17 00:00:00 2001
|
From abf76b3e15bc0a6e777cf7ed908fdeb586513dd2 Mon Sep 17 00:00:00 2001
|
||||||
From: Kevin Mihelich <kevin@archlinuxarm.org>
|
From: Kevin Mihelich <kevin@archlinuxarm.org>
|
||||||
Date: Fri, 5 Sep 2014 15:43:56 -0600
|
Date: Fri, 5 Sep 2014 15:43:56 -0600
|
||||||
Subject: [PATCH 04/14] fix mvsdio eMMC timing
|
Subject: [PATCH 04/13] fix mvsdio eMMC timing
|
||||||
|
|
||||||
These changes from Globalscale change the MMC timing to allow the eMMC versions
|
These changes from Globalscale change the MMC timing to allow the eMMC versions
|
||||||
of the Mirabox and SMILE Plug to work.
|
of the Mirabox and SMILE Plug to work.
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
From 021b0a93050b75f56690bbe41fc470c77f7573c0 Mon Sep 17 00:00:00 2001
|
From 96b1b9a89f1418da53e482296fbe8b6d188bdaac Mon Sep 17 00:00:00 2001
|
||||||
From: popcornmix <popcornmix@gmail.com>
|
From: popcornmix <popcornmix@gmail.com>
|
||||||
Date: Tue, 18 Feb 2014 01:43:50 -0300
|
Date: Tue, 18 Feb 2014 01:43:50 -0300
|
||||||
Subject: [PATCH 05/14] net/smsc95xx: Allow mac address to be set as a
|
Subject: [PATCH 05/13] net/smsc95xx: Allow mac address to be set as a
|
||||||
parameter
|
parameter
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
From 529b0cbe182106ce8b52cf465f3c54c3e0f12e1c Mon Sep 17 00:00:00 2001
|
From 1160370454aa52b104daf90f268ed60272c854ab Mon Sep 17 00:00:00 2001
|
||||||
From: Kevin Mihelich <kevin@archlinuxarm.org>
|
From: Kevin Mihelich <kevin@archlinuxarm.org>
|
||||||
Date: Sat, 14 Feb 2015 12:32:27 +0100
|
Date: Sat, 14 Feb 2015 12:32:27 +0100
|
||||||
Subject: [PATCH 06/14] set default cubietruck led triggers
|
Subject: [PATCH 06/13] set default cubietruck led triggers
|
||||||
|
|
||||||
Signed-off-by: Kevin Mihelich <kevin@archlinuxarm.org>
|
Signed-off-by: Kevin Mihelich <kevin@archlinuxarm.org>
|
||||||
---
|
---
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
From adec3bf3f301ddb15994be72c92f43cc5569dd03 Mon Sep 17 00:00:00 2001
|
From 572a7b93f66d79062d93e7c6fd28ddf140a1c14c Mon Sep 17 00:00:00 2001
|
||||||
From: Kevin Mihelich <kevin@archlinuxarm.org>
|
From: Kevin Mihelich <kevin@archlinuxarm.org>
|
||||||
Date: Thu, 11 Aug 2016 00:42:37 -0600
|
Date: Thu, 11 Aug 2016 00:42:37 -0600
|
||||||
Subject: [PATCH 07/14] exynos4412-odroid: set higher minimum buck2 regulator
|
Subject: [PATCH 07/13] exynos4412-odroid: set higher minimum buck2 regulator
|
||||||
voltage
|
voltage
|
||||||
|
|
||||||
Set a higher minimum voltage to help reboot issue.
|
Set a higher minimum voltage to help reboot issue.
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
From 58b7a9138a44bef39a860611354c3dac0f558b1f Mon Sep 17 00:00:00 2001
|
From 46ca7d062b22205db04f07e947d3349552f1bcd7 Mon Sep 17 00:00:00 2001
|
||||||
From: Kevin Mihelich <kevin@archlinuxarm.org>
|
From: Kevin Mihelich <kevin@archlinuxarm.org>
|
||||||
Date: Sun, 7 May 2017 13:32:25 -0600
|
Date: Sun, 7 May 2017 13:32:25 -0600
|
||||||
Subject: [PATCH 08/14] ARM: dove: enable ethernet on D3Plug
|
Subject: [PATCH 08/13] ARM: dove: enable ethernet on D3Plug
|
||||||
|
|
||||||
Signed-off-by: Kevin Mihelich <kevin@archlinuxarm.org>
|
Signed-off-by: Kevin Mihelich <kevin@archlinuxarm.org>
|
||||||
---
|
---
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
From 4ddcbb9ed40c97371724245d0b8d01d471bb6570 Mon Sep 17 00:00:00 2001
|
From a87c1bebbd061ee80fb1b979c2e257a742bc6a83 Mon Sep 17 00:00:00 2001
|
||||||
From: Peter Chen <peter.chen@nxp.com>
|
From: Peter Chen <peter.chen@nxp.com>
|
||||||
Date: Wed, 21 Jun 2017 14:42:03 +0800
|
Date: Wed, 21 Jun 2017 14:42:03 +0800
|
||||||
Subject: [PATCH 09/14] power: add power sequence library
|
Subject: [PATCH 09/13] power: add power sequence library
|
||||||
|
|
||||||
We have an well-known problem that the device needs to do some power
|
We have an well-known problem that the device needs to do some power
|
||||||
sequence before it can be recognized by related host, the typical
|
sequence before it can be recognized by related host, the typical
|
||||||
|
@ -109,10 +109,10 @@ index 000000000000..554608e5f3b6
|
||||||
+.. kernel-doc:: drivers/power/pwrseq/core.c
|
+.. kernel-doc:: drivers/power/pwrseq/core.c
|
||||||
+ :export:
|
+ :export:
|
||||||
diff --git a/MAINTAINERS b/MAINTAINERS
|
diff --git a/MAINTAINERS b/MAINTAINERS
|
||||||
index 96e98e206b0d..99339375209c 100644
|
index a5b256b25905..61f64089db76 100644
|
||||||
--- a/MAINTAINERS
|
--- a/MAINTAINERS
|
||||||
+++ b/MAINTAINERS
|
+++ b/MAINTAINERS
|
||||||
@@ -11398,6 +11398,15 @@ F: drivers/firmware/psci*.c
|
@@ -11605,6 +11605,15 @@ F: drivers/firmware/psci*.c
|
||||||
F: include/linux/psci.h
|
F: include/linux/psci.h
|
||||||
F: include/uapi/linux/psci.h
|
F: include/uapi/linux/psci.h
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
From 1358757f34c7feff4aab541814c73f6cf3e83b69 Mon Sep 17 00:00:00 2001
|
From fce0a6cc938622413cf166231fde1beb586acf3e Mon Sep 17 00:00:00 2001
|
||||||
From: Peter Chen <peter.chen@nxp.com>
|
From: Peter Chen <peter.chen@nxp.com>
|
||||||
Date: Wed, 21 Jun 2017 14:42:05 +0800
|
Date: Wed, 21 Jun 2017 14:42:05 +0800
|
||||||
Subject: [PATCH 10/14] usb: core: add power sequence handling for USB devices
|
Subject: [PATCH 10/13] usb: core: add power sequence handling for USB devices
|
||||||
|
|
||||||
Some hard-wired USB devices need to do power sequence to let the
|
Some hard-wired USB devices need to do power sequence to let the
|
||||||
device work normally, the typical power sequence like: enable USB
|
device work normally, the typical power sequence like: enable USB
|
||||||
|
@ -39,7 +39,7 @@ index 987fc5ba6321..bd09fc8ff763 100644
|
||||||
---help---
|
---help---
|
||||||
Universal Serial Bus (USB) is a specification for a serial bus
|
Universal Serial Bus (USB) is a specification for a serial bus
|
||||||
diff --git a/drivers/usb/core/hub.c b/drivers/usb/core/hub.c
|
diff --git a/drivers/usb/core/hub.c b/drivers/usb/core/hub.c
|
||||||
index fcae521df29b..0c708d3ef179 100644
|
index 462ce49f683a..8e5b2ef9c2ab 100644
|
||||||
--- a/drivers/usb/core/hub.c
|
--- a/drivers/usb/core/hub.c
|
||||||
+++ b/drivers/usb/core/hub.c
|
+++ b/drivers/usb/core/hub.c
|
||||||
@@ -28,6 +28,7 @@
|
@@ -28,6 +28,7 @@
|
||||||
|
@ -50,7 +50,7 @@ index fcae521df29b..0c708d3ef179 100644
|
||||||
|
|
||||||
#include <linux/uaccess.h>
|
#include <linux/uaccess.h>
|
||||||
#include <asm/byteorder.h>
|
#include <asm/byteorder.h>
|
||||||
@@ -1654,6 +1655,7 @@ static void hub_disconnect(struct usb_interface *intf)
|
@@ -1658,6 +1659,7 @@ static void hub_disconnect(struct usb_interface *intf)
|
||||||
hub->error = 0;
|
hub->error = 0;
|
||||||
hub_quiesce(hub, HUB_DISCONNECT);
|
hub_quiesce(hub, HUB_DISCONNECT);
|
||||||
|
|
||||||
|
@ -58,7 +58,7 @@ index fcae521df29b..0c708d3ef179 100644
|
||||||
mutex_lock(&usb_port_peer_mutex);
|
mutex_lock(&usb_port_peer_mutex);
|
||||||
|
|
||||||
/* Avoid races with recursively_mark_NOTATTACHED() */
|
/* Avoid races with recursively_mark_NOTATTACHED() */
|
||||||
@@ -1700,11 +1702,41 @@ static bool hub_descriptor_is_sane(struct usb_host_interface *desc)
|
@@ -1704,11 +1706,41 @@ static bool hub_descriptor_is_sane(struct usb_host_interface *desc)
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -100,7 +100,7 @@ index fcae521df29b..0c708d3ef179 100644
|
||||||
|
|
||||||
desc = intf->cur_altsetting;
|
desc = intf->cur_altsetting;
|
||||||
hdev = interface_to_usbdev(intf);
|
hdev = interface_to_usbdev(intf);
|
||||||
@@ -1795,6 +1827,7 @@ static int hub_probe(struct usb_interface *intf, const struct usb_device_id *id)
|
@@ -1799,6 +1831,7 @@ static int hub_probe(struct usb_interface *intf, const struct usb_device_id *id)
|
||||||
INIT_DELAYED_WORK(&hub->leds, led_work);
|
INIT_DELAYED_WORK(&hub->leds, led_work);
|
||||||
INIT_DELAYED_WORK(&hub->init_work, NULL);
|
INIT_DELAYED_WORK(&hub->init_work, NULL);
|
||||||
INIT_WORK(&hub->events, hub_event);
|
INIT_WORK(&hub->events, hub_event);
|
||||||
|
@ -108,7 +108,7 @@ index fcae521df29b..0c708d3ef179 100644
|
||||||
usb_get_intf(intf);
|
usb_get_intf(intf);
|
||||||
usb_get_dev(hdev);
|
usb_get_dev(hdev);
|
||||||
|
|
||||||
@@ -1808,11 +1841,14 @@ static int hub_probe(struct usb_interface *intf, const struct usb_device_id *id)
|
@@ -1812,11 +1845,14 @@ static int hub_probe(struct usb_interface *intf, const struct usb_device_id *id)
|
||||||
if (id->driver_info & HUB_QUIRK_CHECK_PORT_AUTOSUSPEND)
|
if (id->driver_info & HUB_QUIRK_CHECK_PORT_AUTOSUSPEND)
|
||||||
hub->quirk_check_port_auto_suspend = 1;
|
hub->quirk_check_port_auto_suspend = 1;
|
||||||
|
|
||||||
|
@ -126,7 +126,7 @@ index fcae521df29b..0c708d3ef179 100644
|
||||||
}
|
}
|
||||||
|
|
||||||
static int
|
static int
|
||||||
@@ -3653,14 +3689,19 @@ static int hub_suspend(struct usb_interface *intf, pm_message_t msg)
|
@@ -3657,7 +3693,7 @@ static int hub_suspend(struct usb_interface *intf, pm_message_t msg)
|
||||||
|
|
||||||
/* stop hub_wq and related activity */
|
/* stop hub_wq and related activity */
|
||||||
hub_quiesce(hub, HUB_SUSPEND);
|
hub_quiesce(hub, HUB_SUSPEND);
|
||||||
|
@ -134,6 +134,8 @@ index fcae521df29b..0c708d3ef179 100644
|
||||||
+ return pwrseq_suspend_list(&hub->pwrseq_list);
|
+ return pwrseq_suspend_list(&hub->pwrseq_list);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Report wakeup requests from the ports of a resuming root hub */
|
||||||
|
@@ -3697,8 +3733,13 @@ static void report_wakeup_requests(struct usb_hub *hub)
|
||||||
static int hub_resume(struct usb_interface *intf)
|
static int hub_resume(struct usb_interface *intf)
|
||||||
{
|
{
|
||||||
struct usb_hub *hub = usb_get_intfdata(intf);
|
struct usb_hub *hub = usb_get_intfdata(intf);
|
||||||
|
@ -145,8 +147,8 @@ index fcae521df29b..0c708d3ef179 100644
|
||||||
+ return ret;
|
+ return ret;
|
||||||
+
|
+
|
||||||
hub_activate(hub, HUB_RESUME);
|
hub_activate(hub, HUB_RESUME);
|
||||||
return 0;
|
|
||||||
}
|
/*
|
||||||
diff --git a/drivers/usb/core/hub.h b/drivers/usb/core/hub.h
|
diff --git a/drivers/usb/core/hub.h b/drivers/usb/core/hub.h
|
||||||
index 4accfb63f7dc..abe71c5e84cb 100644
|
index 4accfb63f7dc..abe71c5e84cb 100644
|
||||||
--- a/drivers/usb/core/hub.h
|
--- a/drivers/usb/core/hub.h
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
From 0b61e501bdfb883df4211fdc47d246df6af06e5a Mon Sep 17 00:00:00 2001
|
From 84920ea6544dd79a0d5fd1cdb2ee54e91bc657c4 Mon Sep 17 00:00:00 2001
|
||||||
From: Joshua Clayton <stillcompiling@gmail.com>
|
From: Joshua Clayton <stillcompiling@gmail.com>
|
||||||
Date: Wed, 21 Jun 2017 14:42:06 +0800
|
Date: Wed, 21 Jun 2017 14:42:06 +0800
|
||||||
Subject: [PATCH 11/14] ARM: dts: imx6qdl: Enable usb node children with <reg>
|
Subject: [PATCH 11/13] ARM: dts: imx6qdl: Enable usb node children with <reg>
|
||||||
|
|
||||||
Give usb nodes #address and #size attributes, so that a child node
|
Give usb nodes #address and #size attributes, so that a child node
|
||||||
representing a permanently connected device such as an onboard hub may
|
representing a permanently connected device such as an onboard hub may
|
||||||
|
@ -14,10 +14,10 @@ Signed-off-by: Peter Chen <peter.chen@nxp.com>
|
||||||
1 file changed, 6 insertions(+)
|
1 file changed, 6 insertions(+)
|
||||||
|
|
||||||
diff --git a/arch/arm/boot/dts/imx6qdl.dtsi b/arch/arm/boot/dts/imx6qdl.dtsi
|
diff --git a/arch/arm/boot/dts/imx6qdl.dtsi b/arch/arm/boot/dts/imx6qdl.dtsi
|
||||||
index 911141e24681..c74e9c7a83bf 100644
|
index 61d2d26afbf4..bb67b1e6bc91 100644
|
||||||
--- a/arch/arm/boot/dts/imx6qdl.dtsi
|
--- a/arch/arm/boot/dts/imx6qdl.dtsi
|
||||||
+++ b/arch/arm/boot/dts/imx6qdl.dtsi
|
+++ b/arch/arm/boot/dts/imx6qdl.dtsi
|
||||||
@@ -965,6 +965,8 @@
|
@@ -964,6 +964,8 @@
|
||||||
|
|
||||||
usbh1: usb@2184200 {
|
usbh1: usb@2184200 {
|
||||||
compatible = "fsl,imx6q-usb", "fsl,imx27-usb";
|
compatible = "fsl,imx6q-usb", "fsl,imx27-usb";
|
||||||
|
@ -26,7 +26,7 @@ index 911141e24681..c74e9c7a83bf 100644
|
||||||
reg = <0x02184200 0x200>;
|
reg = <0x02184200 0x200>;
|
||||||
interrupts = <0 40 IRQ_TYPE_LEVEL_HIGH>;
|
interrupts = <0 40 IRQ_TYPE_LEVEL_HIGH>;
|
||||||
clocks = <&clks IMX6QDL_CLK_USBOH3>;
|
clocks = <&clks IMX6QDL_CLK_USBOH3>;
|
||||||
@@ -979,6 +981,8 @@
|
@@ -978,6 +980,8 @@
|
||||||
|
|
||||||
usbh2: usb@2184400 {
|
usbh2: usb@2184400 {
|
||||||
compatible = "fsl,imx6q-usb", "fsl,imx27-usb";
|
compatible = "fsl,imx6q-usb", "fsl,imx27-usb";
|
||||||
|
@ -35,7 +35,7 @@ index 911141e24681..c74e9c7a83bf 100644
|
||||||
reg = <0x02184400 0x200>;
|
reg = <0x02184400 0x200>;
|
||||||
interrupts = <0 41 IRQ_TYPE_LEVEL_HIGH>;
|
interrupts = <0 41 IRQ_TYPE_LEVEL_HIGH>;
|
||||||
clocks = <&clks IMX6QDL_CLK_USBOH3>;
|
clocks = <&clks IMX6QDL_CLK_USBOH3>;
|
||||||
@@ -992,6 +996,8 @@
|
@@ -991,6 +995,8 @@
|
||||||
|
|
||||||
usbh3: usb@2184600 {
|
usbh3: usb@2184600 {
|
||||||
compatible = "fsl,imx6q-usb", "fsl,imx27-usb";
|
compatible = "fsl,imx6q-usb", "fsl,imx27-usb";
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
From 3e35057ab8b11c232a7c0edeea3299d53c6d600d Mon Sep 17 00:00:00 2001
|
From 6dc233c33d2fd13deea2ff6f469a941f65ed9bcf Mon Sep 17 00:00:00 2001
|
||||||
From: Peter Chen <peter.chen@nxp.com>
|
From: Peter Chen <peter.chen@nxp.com>
|
||||||
Date: Wed, 21 Jun 2017 14:42:07 +0800
|
Date: Wed, 21 Jun 2017 14:42:07 +0800
|
||||||
Subject: [PATCH 12/14] ARM: dts: imx6qdl-udoo.dtsi: fix onboard USB HUB
|
Subject: [PATCH 12/13] ARM: dts: imx6qdl-udoo.dtsi: fix onboard USB HUB
|
||||||
property
|
property
|
||||||
|
|
||||||
The current dts describes USB HUB's property at USB controller's
|
The current dts describes USB HUB's property at USB controller's
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
From 9d40728e452daf4d77f8924e499814138dc5363c Mon Sep 17 00:00:00 2001
|
From 3c8593ae4e13a0eff55883dc4e2d99044050ca23 Mon Sep 17 00:00:00 2001
|
||||||
From: Joshua Clayton <stillcompiling@gmail.com>
|
From: Joshua Clayton <stillcompiling@gmail.com>
|
||||||
Date: Wed, 21 Jun 2017 14:42:08 +0800
|
Date: Wed, 21 Jun 2017 14:42:08 +0800
|
||||||
Subject: [PATCH 13/14] ARM: dts: imx6q-evi: Fix onboard hub reset line
|
Subject: [PATCH 13/13] ARM: dts: imx6q-evi: Fix onboard hub reset line
|
||||||
|
|
||||||
Previously the onboard hub was made to work by treating its
|
Previously the onboard hub was made to work by treating its
|
||||||
reset gpio as a regulator enable.
|
reset gpio as a regulator enable.
|
||||||
|
|
|
@ -1,61 +0,0 @@
|
||||||
From a877c2568fc96a7a7ba89dd4cf0df20341df2a37 Mon Sep 17 00:00:00 2001
|
|
||||||
From: Ethan Tuttle <ethan@ethantuttle.com>
|
|
||||||
Date: Tue, 19 Jun 2018 21:31:08 -0700
|
|
||||||
Subject: [PATCH 14/14] ARM: mvebu: declare asm symbols as character arrays in
|
|
||||||
pmsu.c
|
|
||||||
|
|
||||||
With CONFIG_FORTIFY_SOURCE, memcpy uses the declared size of operands to
|
|
||||||
detect buffer overflows. If src or dest is declared as a char, attempts to
|
|
||||||
copy more than byte will result in a fortify_panic().
|
|
||||||
|
|
||||||
Address this problem in mvebu_setup_boot_addr_wa() by declaring
|
|
||||||
mvebu_boot_wa_start and mvebu_boot_wa_end as character arrays. Also remove
|
|
||||||
a couple addressof operators to avoid "arithmetic on pointer to an
|
|
||||||
incomplete type" compiler error.
|
|
||||||
|
|
||||||
See commit 54a7d50b9205 ("x86: mark kprobe templates as character arrays,
|
|
||||||
not single characters") for a similar fix.
|
|
||||||
|
|
||||||
Fixes "detected buffer overflow in memcpy" error during init on some mvebu
|
|
||||||
systems (armada-370-xp, armada-375):
|
|
||||||
|
|
||||||
(fortify_panic) from (mvebu_setup_boot_addr_wa+0xb0/0xb4)
|
|
||||||
(mvebu_setup_boot_addr_wa) from (mvebu_v7_cpu_pm_init+0x154/0x204)
|
|
||||||
(mvebu_v7_cpu_pm_init) from (do_one_initcall+0x7c/0x1a8)
|
|
||||||
(do_one_initcall) from (kernel_init_freeable+0x1bc/0x254)
|
|
||||||
(kernel_init_freeable) from (kernel_init+0x8/0x114)
|
|
||||||
(kernel_init) from (ret_from_fork+0x14/0x2c)
|
|
||||||
|
|
||||||
Signed-off-by: Ethan Tuttle <ethan@ethantuttle.com>
|
|
||||||
Tested-by: Ethan Tuttle <ethan@ethantuttle.com>
|
|
||||||
---
|
|
||||||
arch/arm/mach-mvebu/pmsu.c | 6 +++---
|
|
||||||
1 file changed, 3 insertions(+), 3 deletions(-)
|
|
||||||
|
|
||||||
diff --git a/arch/arm/mach-mvebu/pmsu.c b/arch/arm/mach-mvebu/pmsu.c
|
|
||||||
index 27a78c80e5b1..73d5d72dfc3e 100644
|
|
||||||
--- a/arch/arm/mach-mvebu/pmsu.c
|
|
||||||
+++ b/arch/arm/mach-mvebu/pmsu.c
|
|
||||||
@@ -116,8 +116,8 @@ void mvebu_pmsu_set_cpu_boot_addr(int hw_cpu, void *boot_addr)
|
|
||||||
PMSU_BOOT_ADDR_REDIRECT_OFFSET(hw_cpu));
|
|
||||||
}
|
|
||||||
|
|
||||||
-extern unsigned char mvebu_boot_wa_start;
|
|
||||||
-extern unsigned char mvebu_boot_wa_end;
|
|
||||||
+extern unsigned char mvebu_boot_wa_start[];
|
|
||||||
+extern unsigned char mvebu_boot_wa_end[];
|
|
||||||
|
|
||||||
/*
|
|
||||||
* This function sets up the boot address workaround needed for SMP
|
|
||||||
@@ -130,7 +130,7 @@ int mvebu_setup_boot_addr_wa(unsigned int crypto_eng_target,
|
|
||||||
phys_addr_t resume_addr_reg)
|
|
||||||
{
|
|
||||||
void __iomem *sram_virt_base;
|
|
||||||
- u32 code_len = &mvebu_boot_wa_end - &mvebu_boot_wa_start;
|
|
||||||
+ u32 code_len = mvebu_boot_wa_end - mvebu_boot_wa_start;
|
|
||||||
|
|
||||||
mvebu_mbus_del_window(BOOTROM_BASE, BOOTROM_SIZE);
|
|
||||||
mvebu_mbus_add_window_by_id(crypto_eng_target, crypto_eng_attribute,
|
|
||||||
--
|
|
||||||
2.18.0
|
|
||||||
|
|
|
@ -3,9 +3,9 @@
|
||||||
|
|
||||||
buildarch=4
|
buildarch=4
|
||||||
|
|
||||||
_rcver=4.18
|
_rcver=4.19
|
||||||
_rcrel=8
|
_rcrel=1
|
||||||
_rcnrel=armv7-x2
|
_rcnrel=armv7-x1
|
||||||
|
|
||||||
pkgbase=linux-armv7-rc
|
pkgbase=linux-armv7-rc
|
||||||
_srcname=linux-${_rcver}-rc${_rcrel}
|
_srcname=linux-${_rcver}-rc${_rcrel}
|
||||||
|
@ -33,30 +33,28 @@ source=("https://git.kernel.org/torvalds/t/${_srcname}.tar.gz"
|
||||||
'0011-ARM-dts-imx6qdl-Enable-usb-node-children-with-reg.patch'
|
'0011-ARM-dts-imx6qdl-Enable-usb-node-children-with-reg.patch'
|
||||||
'0012-ARM-dts-imx6qdl-udoo.dtsi-fix-onboard-USB-HUB-proper.patch'
|
'0012-ARM-dts-imx6qdl-udoo.dtsi-fix-onboard-USB-HUB-proper.patch'
|
||||||
'0013-ARM-dts-imx6q-evi-Fix-onboard-hub-reset-line.patch'
|
'0013-ARM-dts-imx6q-evi-Fix-onboard-hub-reset-line.patch'
|
||||||
'0014-ARM-mvebu-declare-asm-symbols-as-character-arrays-in.patch'
|
|
||||||
'config'
|
'config'
|
||||||
'kernel.its'
|
'kernel.its'
|
||||||
'kernel.keyblock'
|
'kernel.keyblock'
|
||||||
'kernel_data_key.vbprivk'
|
'kernel_data_key.vbprivk'
|
||||||
'linux.preset'
|
'linux.preset'
|
||||||
'99-linux.hook')
|
'99-linux.hook')
|
||||||
md5sums=('95478cfbfbffac542c847a76199b4541'
|
md5sums=('efe2a53ff4b045387a7ebf0059862e0a'
|
||||||
'03fc26be91d2c8b92aa70cbac6d486ef'
|
'3e39df0fa769bc9b4590db78f4f4b176'
|
||||||
'fb218c1825366e722be83dd705d02822'
|
'e006cc9c6c38207cee7c8e7a7344d445'
|
||||||
'bfeb8670a65fc8c14a7076ec623e9898'
|
'fb0b2320b6303eec8018eedb5f18697b'
|
||||||
'1651316b545214bb346af28f3925ccd0'
|
'1d2f258cde46197de614583998caecc8'
|
||||||
'625bc1c129c076f85a0794277438fbf3'
|
'245dba8b6a1e7982b8213a448b77facf'
|
||||||
'95ffcc1c52475c1de2e5478c4896f0ca'
|
'2a4918f32075b69b790ddf3ccc026a27'
|
||||||
'5d8b1483f219edd892536e26663d16c7'
|
'5b9bd510403b18f5441d972e2e3cb12a'
|
||||||
'8be87b6399b1cabbca28ee3592d5a9c9'
|
'9a4c64547f4a928cf7a6eff34140eb00'
|
||||||
'0fcaafdce5964746e7de8c2bfd8a3421'
|
'41ca0b9b3b51c96c5d7c664ffdf801e2'
|
||||||
'd1f48c3560244b8d37084ec316b412d1'
|
'151a35f6362e0ba0b2302817a6f8d780'
|
||||||
'ec013d7dcb738d91ebe668addc96af8f'
|
'a1cb2662e0d0478bf3d89666912e9408'
|
||||||
'2d2e38af1b7db6d27babb8e072c144fc'
|
'cf42944b8f43808da0169ceb527a62ce'
|
||||||
'eb51f5bbcf5b38956a0ba931d7898f07'
|
'34cb78e69877d11c4d6de608b9224b18'
|
||||||
'cd9f373ec6e45e99610c9892a8e38100'
|
'aa9f3877d2b523bffa06ec337bb823e4'
|
||||||
'8b896e19eac2b3bff797c48e737a166b'
|
'ef2cf6952492e20862d6e0f4ee2cbc3e'
|
||||||
'0cd85c86fe652667791d282f8af22096'
|
|
||||||
'4f2379ed84258050edb858ee8d281678'
|
'4f2379ed84258050edb858ee8d281678'
|
||||||
'61c5ff73c136ed07a7aadbf58db3d96a'
|
'61c5ff73c136ed07a7aadbf58db3d96a'
|
||||||
'584777ae88bce2c5659960151b64c7d8'
|
'584777ae88bce2c5659960151b64c7d8'
|
||||||
|
@ -84,7 +82,6 @@ prepare() {
|
||||||
git apply ../0011-ARM-dts-imx6qdl-Enable-usb-node-children-with-reg.patch
|
git apply ../0011-ARM-dts-imx6qdl-Enable-usb-node-children-with-reg.patch
|
||||||
git apply ../0012-ARM-dts-imx6qdl-udoo.dtsi-fix-onboard-USB-HUB-proper.patch
|
git apply ../0012-ARM-dts-imx6qdl-udoo.dtsi-fix-onboard-USB-HUB-proper.patch
|
||||||
git apply ../0013-ARM-dts-imx6q-evi-Fix-onboard-hub-reset-line.patch
|
git apply ../0013-ARM-dts-imx6q-evi-Fix-onboard-hub-reset-line.patch
|
||||||
git apply ../0014-ARM-mvebu-declare-asm-symbols-as-character-arrays-in.patch
|
|
||||||
|
|
||||||
cat "${srcdir}/config" > ./.config
|
cat "${srcdir}/config" > ./.config
|
||||||
|
|
||||||
|
|
File diff suppressed because it is too large
Load diff
Loading…
Reference in a new issue