kernel: bump 4.14 to 4.14.159
[openwrt/staging/wigyori.git] / target / linux / brcm2708 / patches-4.19 / 950-0148-Increase-firmware-call-buffer-size-to-48-bytes.patch
1 From 3118f1a2f29ae802a334963c2aded87d60bddd56 Mon Sep 17 00:00:00 2001
2 From: James Hughes <james.hughes@raspberrypi.org>
3 Date: Wed, 31 Oct 2018 13:00:46 +0000
4 Subject: [PATCH 148/806] Increase firmware call buffer size to 48 bytes
5
6 An assumption was made in commit a1547e0bc that 32 bytes
7 would be enough data buffer size for all firmware calls. However,
8 the axi performance monitor driver uses a call with 44 bytes
9 (RPI_FIRMWARE_GET_PERIPH_REG) to get the VC registers values.
10
11 Increase value to 48 to take this in to account.
12
13 Signed-off-by: James Hughes <james.hughes@raspberrypi.org>
14 ---
15 drivers/firmware/raspberrypi.c | 2 +-
16 1 file changed, 1 insertion(+), 1 deletion(-)
17
18 --- a/drivers/firmware/raspberrypi.c
19 +++ b/drivers/firmware/raspberrypi.c
20 @@ -22,7 +22,7 @@
21 #define MBOX_DATA28(msg) ((msg) & ~0xf)
22 #define MBOX_CHAN_PROPERTY 8
23
24 -#define MAX_RPI_FW_PROP_BUF_SIZE 32
25 +#define MAX_RPI_FW_PROP_BUF_SIZE 48
26
27 static struct platform_device *rpi_hwmon;
28