Bring in ARM patches from stabilization branch
This commit is contained in:
parent
3ff7c261fb
commit
359584d0b2
|
@ -2515,3 +2515,40 @@ index 8d2cc6e9a03f..78f6c24952dd 100644
|
|||
+ allwinner,leds-active-low;
|
||||
+ status = "okay";
|
||||
+};
|
||||
From 051516f1c20c7d7c274c91b4c2fa73bc8d7fc372 Mon Sep 17 00:00:00 2001
|
||||
From: Peter Robinson <pbrobinson@gmail.com>
|
||||
Date: Sat, 22 Jul 2017 15:08:12 +0100
|
||||
Subject: [PATCH] fix mac assignment so we get static not dynamic MACs
|
||||
|
||||
---
|
||||
arch/arm64/boot/dts/allwinner/sun50i-a64-bananapi-m64.dts | 1 +
|
||||
arch/arm64/boot/dts/allwinner/sun50i-a64-pine64.dts | 1 +
|
||||
2 files changed, 2 insertions(+)
|
||||
|
||||
diff --git a/arch/arm64/boot/dts/allwinner/sun50i-a64-bananapi-m64.dts b/arch/arm64/boot/dts/allwinner/sun50i-a64-bananapi-m64.dts
|
||||
index 0d1f026d831a..ba2fde2909f9 100644
|
||||
--- a/arch/arm64/boot/dts/allwinner/sun50i-a64-bananapi-m64.dts
|
||||
+++ b/arch/arm64/boot/dts/allwinner/sun50i-a64-bananapi-m64.dts
|
||||
@@ -51,6 +51,7 @@
|
||||
compatible = "sinovoip,bananapi-m64", "allwinner,sun50i-a64";
|
||||
|
||||
aliases {
|
||||
+ ethernet0 = &emac;
|
||||
serial0 = &uart0;
|
||||
serial1 = &uart1;
|
||||
};
|
||||
diff --git a/arch/arm64/boot/dts/allwinner/sun50i-a64-pine64.dts b/arch/arm64/boot/dts/allwinner/sun50i-a64-pine64.dts
|
||||
index 3b491c0e3b0d..8442eb6c9244 100644
|
||||
--- a/arch/arm64/boot/dts/allwinner/sun50i-a64-pine64.dts
|
||||
+++ b/arch/arm64/boot/dts/allwinner/sun50i-a64-pine64.dts
|
||||
@@ -51,6 +51,7 @@
|
||||
compatible = "pine64,pine64", "allwinner,sun50i-a64";
|
||||
|
||||
aliases {
|
||||
+ ethernet0 = &emac;
|
||||
serial0 = &uart0;
|
||||
};
|
||||
|
||||
--
|
||||
2.13.3
|
||||
|
||||
|
|
|
@ -0,0 +1,70 @@
|
|||
From patchwork Wed Jun 21 18:20:04 2017
|
||||
Content-Type: text/plain; charset="utf-8"
|
||||
MIME-Version: 1.0
|
||||
Content-Transfer-Encoding: 7bit
|
||||
Subject: pinctrl: bcm2835: Avoid warning from __irq_do_set_handler
|
||||
From: Stefan Wahren <stefan.wahren@i2se.com>
|
||||
X-Patchwork-Id: 9802555
|
||||
Message-Id: <1498069204-28154-1-git-send-email-stefan.wahren@i2se.com>
|
||||
To: Linus Walleij <linus.walleij@linaro.org>, Eric Anholt <eric@anholt.net>
|
||||
Cc: Stefan Wahren <stefan.wahren@i2se.com>, linux-gpio@vger.kernel.org,
|
||||
Phil Elwell <phil@raspberrypi.org>, linux-rpi-kernel@lists.infradead.org,
|
||||
linux-arm-kernel@lists.infradead.org
|
||||
Date: Wed, 21 Jun 2017 20:20:04 +0200
|
||||
|
||||
We get a warning during boot with enabled EARLY_PRINTK that
|
||||
we try to set a irq_chip without data. This is caused by ignoring
|
||||
the return value of irq_of_parse_and_map(). So avoid calling
|
||||
gpiochip_set_chained_irqchip() in error case.
|
||||
|
||||
Signed-off-by: Stefan Wahren <stefan.wahren@i2se.com>
|
||||
Fixes: 85ae9e512f43 ("pinctrl: bcm2835: switch to GPIOLIB_IRQCHIP")
|
||||
---
|
||||
drivers/pinctrl/bcm/pinctrl-bcm2835.c | 4 ++++
|
||||
1 file changed, 4 insertions(+)
|
||||
|
||||
diff --git a/drivers/pinctrl/bcm/pinctrl-bcm2835.c b/drivers/pinctrl/bcm/pinctrl-bcm2835.c
|
||||
index 1eb7a1a..2308831 100644
|
||||
--- a/drivers/pinctrl/bcm/pinctrl-bcm2835.c
|
||||
+++ b/drivers/pinctrl/bcm/pinctrl-bcm2835.c
|
||||
@@ -1048,6 +1048,10 @@ static int bcm2835_pinctrl_probe(struct platform_device *pdev)
|
||||
for (i = 0; i < BCM2835_NUM_IRQS; i++) {
|
||||
pc->irq[i] = irq_of_parse_and_map(np, i);
|
||||
pc->irq_group[i] = i;
|
||||
+
|
||||
+ if (pc->irq[i] == 0)
|
||||
+ continue;
|
||||
+
|
||||
/*
|
||||
* Use the same handler for all groups: this is necessary
|
||||
* since we use one gpiochip to cover all lines - the
|
||||
From 8aa99fe688734f249b07314cdd7c5e25651c9c6d Mon Sep 17 00:00:00 2001
|
||||
From: Phil Elwell <phil@raspberrypi.org>
|
||||
Date: Thu, 27 Oct 2016 16:21:19 +0100
|
||||
Subject: irq-bcm2836: Prevent spurious interrupts, and trap them early
|
||||
|
||||
The old arch-specific IRQ macros included a dsb to ensure the
|
||||
write to clear the mailbox interrupt completed before returning
|
||||
from the interrupt. The BCM2836 irqchip driver needs the same
|
||||
precaution to avoid spurious interrupts.
|
||||
|
||||
Signed-off-by: Phil Elwell <phil@raspberrypi.org>
|
||||
---
|
||||
drivers/irqchip/irq-bcm2836.c | 1 +
|
||||
1 file changed, 1 insertion(+)
|
||||
|
||||
diff --git a/drivers/irqchip/irq-bcm2836.c b/drivers/irqchip/irq-bcm2836.c
|
||||
index e7463e3..a8db33b 100644
|
||||
--- a/drivers/irqchip/irq-bcm2836.c
|
||||
+++ b/drivers/irqchip/irq-bcm2836.c
|
||||
@@ -175,6 +175,7 @@ __exception_irq_entry bcm2836_arm_irqchip_handle_irq(struct pt_regs *regs)
|
||||
u32 ipi = ffs(mbox_val) - 1;
|
||||
|
||||
writel(1 << ipi, mailbox0);
|
||||
+ dsb(sy);
|
||||
handle_IPI(ipi, regs);
|
||||
#endif
|
||||
} else if (stat) {
|
||||
--
|
||||
cgit v0.12
|
||||
|
|
@ -0,0 +1,48 @@
|
|||
From patchwork Tue Apr 25 16:45:08 2017
|
||||
Content-Type: text/plain; charset="utf-8"
|
||||
MIME-Version: 1.0
|
||||
Content-Transfer-Encoding: 7bit
|
||||
Subject: ARM: dts: Add devicetree for the Raspberry Pi 3, for arm32 (v6)
|
||||
From: Eric Anholt <eric@anholt.net>
|
||||
X-Patchwork-Id: 9698781
|
||||
Message-Id: <20170425164508.32242-1-eric@anholt.net>
|
||||
To: Lee Jones <lee@kernel.org>, Florian Fainelli <f.fainelli@gmail.com>,
|
||||
Olof Johansson <olof@lixom.net>, Rob Herring <robh+dt@kernel.org>,
|
||||
Mark Rutland <mark.rutland@arm.com>, devicetree@vger.kernel.org
|
||||
Cc: Stefan Wahren <stefan.wahren@i2se.com>, linux-kernel@vger.kernel.org,
|
||||
Eric Anholt <eric@anholt.net>, bcm-kernel-feedback-list@broadcom.com,
|
||||
Gerd Hoffmann <kraxel@redhat.com>, linux-arm-kernel@lists.infradead.org,
|
||||
linux-rpi-kernel@lists.infradead.org
|
||||
Date: Tue, 25 Apr 2017 09:45:08 -0700
|
||||
|
||||
Raspbian and Fedora have decided to support the Pi3 in 32-bit mode for
|
||||
now, so it's useful to be able to test that mode on an upstream
|
||||
kernel. It's also been useful for me to use the same board for 32-bit
|
||||
and 64-bit development.
|
||||
|
||||
Signed-off-by: Eric Anholt <eric@anholt.net>
|
||||
---
|
||||
arch/arm/boot/dts/Makefile | 1 +
|
||||
arch/arm/boot/dts/bcm2837-rpi-3-b.dts | 1 +
|
||||
2 files changed, 2 insertions(+)
|
||||
create mode 100644 arch/arm/boot/dts/bcm2837-rpi-3-b.dts
|
||||
|
||||
diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile
|
||||
index 011808490fed..eded842d9978 100644
|
||||
--- a/arch/arm/boot/dts/Makefile
|
||||
+++ b/arch/arm/boot/dts/Makefile
|
||||
@@ -72,6 +72,7 @@ dtb-$(CONFIG_ARCH_BCM2835) += \
|
||||
bcm2835-rpi-b-plus.dtb \
|
||||
bcm2835-rpi-a-plus.dtb \
|
||||
bcm2836-rpi-2-b.dtb \
|
||||
+ bcm2837-rpi-3-b.dtb \
|
||||
bcm2835-rpi-zero.dtb
|
||||
dtb-$(CONFIG_ARCH_BCM_5301X) += \
|
||||
bcm4708-asus-rt-ac56u.dtb \
|
||||
diff --git a/arch/arm/boot/dts/bcm2837-rpi-3-b.dts b/arch/arm/boot/dts/bcm2837-rpi-3-b.dts
|
||||
new file mode 100644
|
||||
index 000000000000..c72a27d908b6
|
||||
--- /dev/null
|
||||
+++ b/arch/arm/boot/dts/bcm2837-rpi-3-b.dts
|
||||
@@ -0,0 +1 @@
|
||||
+#include "../../../arm64/boot/dts/broadcom/bcm2837-rpi-3-b.dts"
|
|
@ -0,0 +1,83 @@
|
|||
From e199a012a0fb0be11ccd26b4a502ae830eb10db0 Mon Sep 17 00:00:00 2001
|
||||
From: Gerd Hoffmann <kraxel@redhat.com>
|
||||
Date: Tue, 21 Jun 2016 11:47:56 +0200
|
||||
Subject: arm64: dts: bcm2837: add &sdhci and &sdhost
|
||||
|
||||
For the raspberry pi 3 we'll need both sdhci (handles sdio wifi) and
|
||||
sdhost (handles sdcard).
|
||||
|
||||
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
|
||||
Acked-by: Eric Anholt <eric@anholt.net>
|
||||
---
|
||||
arch/arm64/boot/dts/broadcom/bcm2837-rpi-3-b.dts | 17 +++++++++++++++++
|
||||
1 file changed, 17 insertions(+)
|
||||
|
||||
diff --git a/arch/arm64/boot/dts/broadcom/bcm2837-rpi-3-b.dts b/arch/arm64/boot/dts/broadcom/bcm2837-rpi-3-b.dts
|
||||
index c309633..972f14d 100644
|
||||
--- a/arch/arm64/boot/dts/broadcom/bcm2837-rpi-3-b.dts
|
||||
+++ b/arch/arm64/boot/dts/broadcom/bcm2837-rpi-3-b.dts
|
||||
@@ -22,3 +22,20 @@
|
||||
&uart1 {
|
||||
status = "okay";
|
||||
};
|
||||
+
|
||||
+/* SDHCI is used to control the SDIO for wireless */
|
||||
+&sdhci {
|
||||
+ pinctrl-names = "default";
|
||||
+ pinctrl-0 = <&emmc_gpio34>;
|
||||
+ status = "okay";
|
||||
+ bus-width = <4>;
|
||||
+ non-removable;
|
||||
+};
|
||||
+
|
||||
+/* SDHOST is used to drive the SD card */
|
||||
+&sdhost {
|
||||
+ pinctrl-names = "default";
|
||||
+ pinctrl-0 = <&sdhost_gpio48>;
|
||||
+ status = "okay";
|
||||
+ bus-width = <4>;
|
||||
+};
|
||||
--
|
||||
cgit v0.12
|
||||
|
||||
From 0c1759bc4fc8884d790d4ab99b5276132559b5a1 Mon Sep 17 00:00:00 2001
|
||||
From: Gerd Hoffmann <kraxel@redhat.com>
|
||||
Date: Tue, 21 Jun 2016 10:00:58 +0200
|
||||
Subject: arm: dts: bcm283x: switch from &sdhci to &sdhost
|
||||
|
||||
sdcard access with the sdhost controller is faster.
|
||||
|
||||
Read access (dd with 64k blocks on rpi2):
|
||||
CONFIG_MMC_SDHCI_IPROC: 11-12 MB/s
|
||||
CONFIG_MMC_BCM2835: 19-20 MB/s
|
||||
|
||||
Differences on write access are pretty much in the noise.
|
||||
|
||||
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
|
||||
Acked-by: Eric Anholt <eric@anholt.net>
|
||||
---
|
||||
arch/arm/boot/dts/bcm2835-rpi.dtsi | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/arch/arm/boot/dts/bcm2835-rpi.dtsi b/arch/arm/boot/dts/bcm2835-rpi.dtsi
|
||||
index 8b95832..e36c392 100644
|
||||
--- a/arch/arm/boot/dts/bcm2835-rpi.dtsi
|
||||
+++ b/arch/arm/boot/dts/bcm2835-rpi.dtsi
|
||||
@@ -65,13 +65,13 @@
|
||||
&sdhci {
|
||||
pinctrl-names = "default";
|
||||
pinctrl-0 = <&emmc_gpio48>;
|
||||
- status = "okay";
|
||||
bus-width = <4>;
|
||||
};
|
||||
|
||||
&sdhost {
|
||||
pinctrl-names = "default";
|
||||
pinctrl-0 = <&sdhost_gpio48>;
|
||||
+ status = "okay";
|
||||
bus-width = <4>;
|
||||
};
|
||||
|
||||
--
|
||||
cgit v0.12
|
||||
|
|
@ -0,0 +1,171 @@
|
|||
From patchwork Thu Jul 20 19:37:07 2017
|
||||
Content-Type: text/plain; charset="utf-8"
|
||||
MIME-Version: 1.0
|
||||
Content-Transfer-Encoding: 7bit
|
||||
Subject: [1/3] ARM: bcm283x: Define UART pinmuxing on board level
|
||||
From: Stefan Wahren <stefan.wahren@i2se.com>
|
||||
X-Patchwork-Id: 9855625
|
||||
Message-Id: <1500579429-9101-2-git-send-email-stefan.wahren@i2se.com>
|
||||
To: Eric Anholt <eric@anholt.net>, Rob Herring <robh+dt@kernel.org>,
|
||||
Mark Rutland <mark.rutland@arm.com>
|
||||
Cc: Stefan Wahren <stefan.wahren@i2se.com>, devicetree@vger.kernel.org,
|
||||
Florian Fainelli <f.fainelli@gmail.com>,
|
||||
Scott Branden <sbranden@broadcom.com>,
|
||||
linux-rpi-kernel@lists.infradead.org,
|
||||
linux-arm-kernel@lists.infradead.org, Gerd Hoffmann <kraxel@redhat.com>
|
||||
Date: Thu, 20 Jul 2017 21:37:07 +0200
|
||||
|
||||
Until RPI 3 and Zero W the pl011 (uart0) was always on pin 14/15. So in
|
||||
order to take care of them and other boards in the future,
|
||||
we need to define UART pinmuxing on board level.
|
||||
|
||||
This work based on Eric Anholt's patch "ARM: bcm2385: Don't force pl011
|
||||
onto pins 14/15." and Fabian Vogt's patch "ARM64: dts: bcm2837: assign
|
||||
uart0 to BT and uart1 to pin headers".
|
||||
|
||||
Signed-off-by: Stefan Wahren <stefan.wahren@i2se.com>
|
||||
---
|
||||
arch/arm/boot/dts/bcm2835-rpi-a-plus.dts | 6 ++++++
|
||||
arch/arm/boot/dts/bcm2835-rpi-a.dts | 6 ++++++
|
||||
arch/arm/boot/dts/bcm2835-rpi-b-plus.dts | 6 ++++++
|
||||
arch/arm/boot/dts/bcm2835-rpi-b-rev2.dts | 6 ++++++
|
||||
arch/arm/boot/dts/bcm2835-rpi-b.dts | 6 ++++++
|
||||
arch/arm/boot/dts/bcm2835-rpi-zero.dts | 6 ++++++
|
||||
arch/arm/boot/dts/bcm2835-rpi.dtsi | 2 +-
|
||||
arch/arm/boot/dts/bcm2836-rpi-2-b.dts | 6 ++++++
|
||||
arch/arm64/boot/dts/broadcom/bcm2837-rpi-3-b.dts | 10 ++++++++++
|
||||
9 files changed, 53 insertions(+), 1 deletion(-)
|
||||
|
||||
diff --git a/arch/arm/boot/dts/bcm2835-rpi-a-plus.dts b/arch/arm/boot/dts/bcm2835-rpi-a-plus.dts
|
||||
index d070454..9f86649 100644
|
||||
--- a/arch/arm/boot/dts/bcm2835-rpi-a-plus.dts
|
||||
+++ b/arch/arm/boot/dts/bcm2835-rpi-a-plus.dts
|
||||
@@ -99,3 +99,9 @@
|
||||
&hdmi {
|
||||
hpd-gpios = <&gpio 46 GPIO_ACTIVE_LOW>;
|
||||
};
|
||||
+
|
||||
+&uart0 {
|
||||
+ pinctrl-names = "default";
|
||||
+ pinctrl-0 = <&uart0_gpio14>;
|
||||
+ status = "okay";
|
||||
+};
|
||||
diff --git a/arch/arm/boot/dts/bcm2835-rpi-a.dts b/arch/arm/boot/dts/bcm2835-rpi-a.dts
|
||||
index 46d078e..4b1af06 100644
|
||||
--- a/arch/arm/boot/dts/bcm2835-rpi-a.dts
|
||||
+++ b/arch/arm/boot/dts/bcm2835-rpi-a.dts
|
||||
@@ -94,3 +94,9 @@
|
||||
&hdmi {
|
||||
hpd-gpios = <&gpio 46 GPIO_ACTIVE_HIGH>;
|
||||
};
|
||||
+
|
||||
+&uart0 {
|
||||
+ pinctrl-names = "default";
|
||||
+ pinctrl-0 = <&uart0_gpio14>;
|
||||
+ status = "okay";
|
||||
+};
|
||||
diff --git a/arch/arm/boot/dts/bcm2835-rpi-b-plus.dts b/arch/arm/boot/dts/bcm2835-rpi-b-plus.dts
|
||||
index 432088e..a846f1e 100644
|
||||
--- a/arch/arm/boot/dts/bcm2835-rpi-b-plus.dts
|
||||
+++ b/arch/arm/boot/dts/bcm2835-rpi-b-plus.dts
|
||||
@@ -101,3 +101,9 @@
|
||||
&hdmi {
|
||||
hpd-gpios = <&gpio 46 GPIO_ACTIVE_LOW>;
|
||||
};
|
||||
+
|
||||
+&uart0 {
|
||||
+ pinctrl-names = "default";
|
||||
+ pinctrl-0 = <&uart0_gpio14>;
|
||||
+ status = "okay";
|
||||
+};
|
||||
diff --git a/arch/arm/boot/dts/bcm2835-rpi-b-rev2.dts b/arch/arm/boot/dts/bcm2835-rpi-b-rev2.dts
|
||||
index 4133bc2..e860964 100644
|
||||
--- a/arch/arm/boot/dts/bcm2835-rpi-b-rev2.dts
|
||||
+++ b/arch/arm/boot/dts/bcm2835-rpi-b-rev2.dts
|
||||
@@ -94,3 +94,9 @@
|
||||
&hdmi {
|
||||
hpd-gpios = <&gpio 46 GPIO_ACTIVE_LOW>;
|
||||
};
|
||||
+
|
||||
+&uart0 {
|
||||
+ pinctrl-names = "default";
|
||||
+ pinctrl-0 = <&uart0_gpio14>;
|
||||
+ status = "okay";
|
||||
+};
|
||||
diff --git a/arch/arm/boot/dts/bcm2835-rpi-b.dts b/arch/arm/boot/dts/bcm2835-rpi-b.dts
|
||||
index 4d56fe3..5d77f3f 100644
|
||||
--- a/arch/arm/boot/dts/bcm2835-rpi-b.dts
|
||||
+++ b/arch/arm/boot/dts/bcm2835-rpi-b.dts
|
||||
@@ -89,3 +89,9 @@
|
||||
&hdmi {
|
||||
hpd-gpios = <&gpio 46 GPIO_ACTIVE_HIGH>;
|
||||
};
|
||||
+
|
||||
+&uart0 {
|
||||
+ pinctrl-names = "default";
|
||||
+ pinctrl-0 = <&uart0_gpio14>;
|
||||
+ status = "okay";
|
||||
+};
|
||||
diff --git a/arch/arm/boot/dts/bcm2835-rpi-zero.dts b/arch/arm/boot/dts/bcm2835-rpi-zero.dts
|
||||
index 79a20d5..7036240 100644
|
||||
--- a/arch/arm/boot/dts/bcm2835-rpi-zero.dts
|
||||
+++ b/arch/arm/boot/dts/bcm2835-rpi-zero.dts
|
||||
@@ -103,3 +103,9 @@
|
||||
&hdmi {
|
||||
hpd-gpios = <&gpio 46 GPIO_ACTIVE_LOW>;
|
||||
};
|
||||
+
|
||||
+&uart0 {
|
||||
+ pinctrl-names = "default";
|
||||
+ pinctrl-0 = <&uart0_gpio14>;
|
||||
+ status = "okay";
|
||||
+};
|
||||
diff --git a/arch/arm/boot/dts/bcm2835-rpi.dtsi b/arch/arm/boot/dts/bcm2835-rpi.dtsi
|
||||
index e55b362..e36c392 100644
|
||||
--- a/arch/arm/boot/dts/bcm2835-rpi.dtsi
|
||||
+++ b/arch/arm/boot/dts/bcm2835-rpi.dtsi
|
||||
@@ -39,7 +39,7 @@
|
||||
};
|
||||
|
||||
alt0: alt0 {
|
||||
- brcm,pins = <4 5 7 8 9 10 11 14 15>;
|
||||
+ brcm,pins = <4 5 7 8 9 10 11>;
|
||||
brcm,function = <BCM2835_FSEL_ALT0>;
|
||||
};
|
||||
};
|
||||
diff --git a/arch/arm/boot/dts/bcm2836-rpi-2-b.dts b/arch/arm/boot/dts/bcm2836-rpi-2-b.dts
|
||||
index bf19e8c..e8de414 100644
|
||||
--- a/arch/arm/boot/dts/bcm2836-rpi-2-b.dts
|
||||
+++ b/arch/arm/boot/dts/bcm2836-rpi-2-b.dts
|
||||
@@ -39,3 +39,9 @@
|
||||
&hdmi {
|
||||
hpd-gpios = <&gpio 46 GPIO_ACTIVE_LOW>;
|
||||
};
|
||||
+
|
||||
+&uart0 {
|
||||
+ pinctrl-names = "default";
|
||||
+ pinctrl-0 = <&uart0_gpio14>;
|
||||
+ status = "okay";
|
||||
+};
|
||||
diff --git a/arch/arm64/boot/dts/broadcom/bcm2837-rpi-3-b.dts b/arch/arm64/boot/dts/broadcom/bcm2837-rpi-3-b.dts
|
||||
index 972f14d..20725ca 100644
|
||||
--- a/arch/arm64/boot/dts/broadcom/bcm2837-rpi-3-b.dts
|
||||
+++ b/arch/arm64/boot/dts/broadcom/bcm2837-rpi-3-b.dts
|
||||
@@ -19,7 +19,17 @@
|
||||
};
|
||||
};
|
||||
|
||||
+/* uart0 communicates with the BT module */
|
||||
+&uart0 {
|
||||
+ pinctrl-names = "default";
|
||||
+ pinctrl-0 = <&uart0_ctsrts_gpio30 &gpclk2_gpio43>;
|
||||
+ status = "okay";
|
||||
+};
|
||||
+
|
||||
+/* uart1 is mapped to the pin header */
|
||||
&uart1 {
|
||||
+ pinctrl-names = "default";
|
||||
+ pinctrl-0 = <&uart1_gpio14>;
|
||||
status = "okay";
|
||||
};
|
||||
|
|
@ -0,0 +1,42 @@
|
|||
From patchwork Thu Feb 9 18:16:00 2017
|
||||
Content-Type: text/plain; charset="utf-8"
|
||||
MIME-Version: 1.0
|
||||
Content-Transfer-Encoding: 7bit
|
||||
Subject: drm/vc4: Fix OOPSes from trying to cache a partially constructed BO.
|
||||
From: Eric Anholt <eric@anholt.net>
|
||||
X-Patchwork-Id: 138087
|
||||
Message-Id: <20170209181600.24048-1-eric@anholt.net>
|
||||
To: dri-devel@lists.freedesktop.org
|
||||
Cc: linux-kernel@vger.kernel.org, pbrobinson@gmail.com
|
||||
Date: Thu, 9 Feb 2017 10:16:00 -0800
|
||||
|
||||
If a CMA allocation failed, the partially constructed BO would be
|
||||
unreferenced through the normal path, and we might choose to put it in
|
||||
the BO cache. If we then reused it before it expired from the cache,
|
||||
the kernel would OOPS.
|
||||
|
||||
Signed-off-by: Eric Anholt <eric@anholt.net>
|
||||
Fixes: c826a6e10644 ("drm/vc4: Add a BO cache.")
|
||||
---
|
||||
drivers/gpu/drm/vc4/vc4_bo.c | 8 ++++++++
|
||||
1 file changed, 8 insertions(+)
|
||||
|
||||
diff --git a/drivers/gpu/drm/vc4/vc4_bo.c b/drivers/gpu/drm/vc4/vc4_bo.c
|
||||
index 5ec14f25625d..fd83a2807656 100644
|
||||
--- a/drivers/gpu/drm/vc4/vc4_bo.c
|
||||
+++ b/drivers/gpu/drm/vc4/vc4_bo.c
|
||||
@@ -314,6 +314,14 @@ void vc4_free_object(struct drm_gem_object *gem_bo)
|
||||
goto out;
|
||||
}
|
||||
|
||||
+ /* If this object was partially constructed but CMA allocation
|
||||
+ * had failed, just free it.
|
||||
+ */
|
||||
+ if (!bo->base.vaddr) {
|
||||
+ vc4_bo_destroy(bo);
|
||||
+ goto out;
|
||||
+ }
|
||||
+
|
||||
cache_list = vc4_get_cache_list_for_size(dev, gem_bo->size);
|
||||
if (!cache_list) {
|
||||
vc4_bo_destroy(bo);
|
|
@ -0,0 +1,41 @@
|
|||
From 0c1759bc4fc8884d790d4ab99b5276132559b5a1 Mon Sep 17 00:00:00 2001
|
||||
From: Gerd Hoffmann <kraxel@redhat.com>
|
||||
Date: Tue, 21 Jun 2016 10:00:58 +0200
|
||||
Subject: arm: dts: bcm283x: switch from &sdhci to &sdhost
|
||||
|
||||
sdcard access with the sdhost controller is faster.
|
||||
|
||||
Read access (dd with 64k blocks on rpi2):
|
||||
CONFIG_MMC_SDHCI_IPROC: 11-12 MB/s
|
||||
CONFIG_MMC_BCM2835: 19-20 MB/s
|
||||
|
||||
Differences on write access are pretty much in the noise.
|
||||
|
||||
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
|
||||
Acked-by: Eric Anholt <eric@anholt.net>
|
||||
---
|
||||
arch/arm/boot/dts/bcm2835-rpi.dtsi | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/arch/arm/boot/dts/bcm2835-rpi.dtsi b/arch/arm/boot/dts/bcm2835-rpi.dtsi
|
||||
index 8b95832..e36c392 100644
|
||||
--- a/arch/arm/boot/dts/bcm2835-rpi.dtsi
|
||||
+++ b/arch/arm/boot/dts/bcm2835-rpi.dtsi
|
||||
@@ -65,13 +65,13 @@
|
||||
&sdhci {
|
||||
pinctrl-names = "default";
|
||||
pinctrl-0 = <&emmc_gpio48>;
|
||||
- status = "okay";
|
||||
bus-width = <4>;
|
||||
};
|
||||
|
||||
&sdhost {
|
||||
pinctrl-names = "default";
|
||||
pinctrl-0 = <&sdhost_gpio48>;
|
||||
+ status = "okay";
|
||||
bus-width = <4>;
|
||||
};
|
||||
|
||||
--
|
||||
cgit v0.12
|
||||
|
|
@ -0,0 +1,32 @@
|
|||
From feb16722b5d5f05b7ae1278a43e717c3d35cd512 Mon Sep 17 00:00:00 2001
|
||||
From: Ian Molton <ian@mnementh.co.uk>
|
||||
Date: Wed, 28 Jun 2017 20:10:55 +0100
|
||||
Subject: Bluetooth: btbcm: Add entry for BCM43430 UART bluetooth
|
||||
|
||||
This patch adds the device ID for the bluetooth chip used in the
|
||||
Broadcom BCM43430 SDIO WiFi / UART BT chip.
|
||||
|
||||
Successfully tested using Firmware version 0x0182
|
||||
|
||||
Signed-off-by: Ian Molton <ian@mnementh.co.uk>
|
||||
Reported-by: Loic Poulain <loic.poulain@intel.com>
|
||||
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
|
||||
---
|
||||
drivers/bluetooth/btbcm.c | 1 +
|
||||
1 file changed, 1 insertion(+)
|
||||
|
||||
diff --git a/drivers/bluetooth/btbcm.c b/drivers/bluetooth/btbcm.c
|
||||
index 24f8c4e..9ab6cfb 100644
|
||||
--- a/drivers/bluetooth/btbcm.c
|
||||
+++ b/drivers/bluetooth/btbcm.c
|
||||
@@ -295,6 +295,7 @@ static const struct {
|
||||
{ 0x410e, "BCM43341B0" }, /* 002.001.014 */
|
||||
{ 0x4406, "BCM4324B3" }, /* 002.004.006 */
|
||||
{ 0x610c, "BCM4354" }, /* 003.001.012 */
|
||||
+ { 0x2209, "BCM43430A1" }, /* 001.002.009 */
|
||||
{ }
|
||||
};
|
||||
|
||||
--
|
||||
cgit v1.1
|
||||
|
54
kernel.spec
54
kernel.spec
|
@ -42,7 +42,7 @@ Summary: The Linux kernel
|
|||
# For non-released -rc kernels, this will be appended after the rcX and
|
||||
# gitX tags, so a 3 here would become part of release "0.rcX.gitX.3"
|
||||
#
|
||||
%global baserelease 300
|
||||
%global baserelease 301
|
||||
%global fedora_build %{baserelease}
|
||||
|
||||
# base_sublevel is the kernel version we're starting with and patching
|
||||
|
@ -585,23 +585,13 @@ Patch305: ARM-tegra-usb-no-reset.patch
|
|||
|
||||
Patch306: AllWinner-net-emac.patch
|
||||
|
||||
# http://www.spinics.net/lists/devicetree/msg163238.html
|
||||
Patch308: bcm2837-initial-support.patch
|
||||
|
||||
# http://www.spinics.net/lists/dri-devel/msg132235.html
|
||||
Patch309: drm-vc4-Fix-OOPSes-from-trying-to-cache-a-partially-constructed-BO..patch
|
||||
|
||||
# https://www.spinics.net/lists/arm-kernel/msg554183.html
|
||||
Patch311: arm-imx6-hummingboard2.patch
|
||||
Patch307: arm-imx6-hummingboard2.patch
|
||||
|
||||
Patch312: arm64-Add-option-of-13-for-FORCE_MAX_ZONEORDER.patch
|
||||
Patch308: arm64-Add-option-of-13-for-FORCE_MAX_ZONEORDER.patch
|
||||
|
||||
Patch313: bcm2835-clk-audio-jitter-issues.patch
|
||||
Patch314: bcm2835-fix-potential-null-pointer-dereferences.patch
|
||||
|
||||
# https://patchwork.freedesktop.org/patch/163300/
|
||||
# https://patchwork.freedesktop.org/patch/161978/
|
||||
Patch315: bcm283x-vc4-fix-vblank.patch
|
||||
# https://www.spinics.net/lists/linux-arm-msm/msg28203.html
|
||||
Patch309: qcom-display-iommu.patch
|
||||
|
||||
# https://patchwork.kernel.org/patch/9815555/
|
||||
# https://patchwork.kernel.org/patch/9815651/
|
||||
|
@ -609,22 +599,37 @@ Patch315: bcm283x-vc4-fix-vblank.patch
|
|||
# https://patchwork.kernel.org/patch/9820417/
|
||||
# https://patchwork.kernel.org/patch/9821151/
|
||||
# https://patchwork.kernel.org/patch/9821157/
|
||||
Patch316: qcom-msm89xx-fixes.patch
|
||||
Patch310: qcom-msm89xx-fixes.patch
|
||||
|
||||
Patch317: arm-thermal-fixes.patch
|
||||
# https://patchwork.kernel.org/patch/9802555/
|
||||
Patch318: pinctrl-bcm2835-Avoid-warning-from-__irq_do_set_handler.patch
|
||||
Patch311: arm-thermal-fixes.patch
|
||||
|
||||
# https://patchwork.kernel.org/patch/9831825/
|
||||
# https://patchwork.kernel.org/patch/9833721/
|
||||
Patch319: arm-tegra-fix-gpu-iommu.patch
|
||||
Patch312: arm-tegra-fix-gpu-iommu.patch
|
||||
|
||||
# https://www.spinics.net/lists/linux-arm-msm/msg28203.html
|
||||
Patch320: qcom-display-iommu.patch
|
||||
# https://patchwork.freedesktop.org/patch/163300/
|
||||
# https://patchwork.freedesktop.org/patch/161978/
|
||||
Patch320: bcm283x-vc4-fix-vblank.patch
|
||||
|
||||
# https://patchwork.kernel.org/patch/9802555/
|
||||
Patch321: bcm2835-pinctrl-Avoid-warning-from-__irq_do_set_handler.patch
|
||||
|
||||
Patch322: bcm2835-clk-audio-jitter-issues.patch
|
||||
Patch323: bcm2835-fix-potential-null-pointer-dereferences.patch
|
||||
|
||||
# http://www.spinics.net/lists/dri-devel/msg132235.html
|
||||
Patch324: bcm283x-drm-vc4-Fix-OOPSes-from-trying-to-cache-a-partially-constructed-BO..patch
|
||||
|
||||
Patch325: bcm2837-sdhost-fixes.patch
|
||||
Patch326: bcm283x-Define-UART-pinmuxing-on-board-level.patch
|
||||
Patch327: bt-bcm.patch
|
||||
|
||||
# http://www.spinics.net/lists/devicetree/msg163238.html
|
||||
Patch329: bcm2837-arm32-support.patch
|
||||
|
||||
# This breaks RPi booting with a LPAE kernel, we don't support the DSI ports currently
|
||||
# Revert it while I engage upstream to work out what's going on
|
||||
Patch321: Revert-ARM-dts-bcm2835-Add-the-DSI-module-nodes-and-.patch
|
||||
Patch330: Revert-ARM-dts-bcm2835-Add-the-DSI-module-nodes-and-.patch
|
||||
|
||||
# 400 - IBM (ppc/s390x) patches
|
||||
|
||||
|
@ -2240,6 +2245,9 @@ fi
|
|||
#
|
||||
#
|
||||
%changelog
|
||||
* Tue Jul 25 2017 Peter Robinson <pbrobinson@fedoraproject.org> 4.12.3-301
|
||||
- Bring in ARM patches from stabilization branch
|
||||
|
||||
* Mon Jul 24 2017 Justin M. Forbes <jforbes@fedoraproject.org> - 4.12.3-300
|
||||
- Linux v4.12.3
|
||||
- Fix rhbz 1431375
|
||||
|
|
Loading…
Reference in New Issue