mirror of
				https://github.com/Ysurac/openmptcprouter.git
				synced 2025-03-09 15:40:20 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			33 lines
		
	
	
	
		
			1.1 KiB
		
	
	
	
		
			Diff
		
	
	
	
	
	
			
		
		
	
	
			33 lines
		
	
	
	
		
			1.1 KiB
		
	
	
	
		
			Diff
		
	
	
	
	
	
| From f4aedfa89b8c198a9513faa5b96589be05552bbb Mon Sep 17 00:00:00 2001
 | |
| From: James Hughes <james.hughes@raspberrypi.org>
 | |
| Date: Wed, 31 Oct 2018 13:00:46 +0000
 | |
| Subject: [PATCH 148/432] Increase firmware call buffer size to 48 bytes
 | |
| 
 | |
| An assumption was made in commit a1547e0bc that 32 bytes
 | |
| would be enough data buffer size for all firmware calls. However,
 | |
| the axi performance monitor driver uses a call with 44 bytes
 | |
| (RPI_FIRMWARE_GET_PERIPH_REG) to get the VC registers values.
 | |
| 
 | |
| Increase value to 48 to take this in to account.
 | |
| 
 | |
| Signed-off-by: James Hughes <james.hughes@raspberrypi.org>
 | |
| ---
 | |
|  drivers/firmware/raspberrypi.c | 2 +-
 | |
|  1 file changed, 1 insertion(+), 1 deletion(-)
 | |
| 
 | |
| diff --git a/drivers/firmware/raspberrypi.c b/drivers/firmware/raspberrypi.c
 | |
| index dc95fa38e5d6..a4225b74f154 100644
 | |
| --- a/drivers/firmware/raspberrypi.c
 | |
| +++ b/drivers/firmware/raspberrypi.c
 | |
| @@ -22,7 +22,7 @@
 | |
|  #define MBOX_DATA28(msg)		((msg) & ~0xf)
 | |
|  #define MBOX_CHAN_PROPERTY		8
 | |
|  
 | |
| -#define MAX_RPI_FW_PROP_BUF_SIZE	32
 | |
| +#define MAX_RPI_FW_PROP_BUF_SIZE	48
 | |
|  
 | |
|  static struct platform_device *rpi_hwmon;
 | |
|  
 | |
| -- 
 | |
| 2.19.1
 | |
| 
 |