mirror of
				git://git.openwrt.org/openwrt/openwrt.git
				synced 2025-10-30 13:34:27 -04:00 
			
		
		
		
	https://cdn.kernel.org/pub/linux/kernel/v6.x/ChangeLog-6.1.104 All patches automatically rebased. 1 mm: restrict the pcp batch scale factor to avoid too long latency a new kconfig option (PCP_BATCH_SCALE_MAX) is added to set the max batch scale factor.Whose default value is 5, and users can reduce it when necessary. https://lore.kernel.org/all/20231016053002.756205-5-ying.huang@intel.com/T/#u Build system: bcm4908 bcm53xx Signed-off-by: Zxl hhyccc <zxlhhy@gmail.com> Link: https://github.com/openwrt/openwrt/pull/16141 Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
		
			
				
	
	
		
			55 lines
		
	
	
		
			1.5 KiB
		
	
	
	
		
			Diff
		
	
	
	
	
	
			
		
		
	
	
			55 lines
		
	
	
		
			1.5 KiB
		
	
	
	
		
			Diff
		
	
	
	
	
	
| From 947acacab5ea151291b861cdfbde16ff5cf1b08c Mon Sep 17 00:00:00 2001
 | |
| From: Christian Marangi <ansuelsmth@gmail.com>
 | |
| Date: Mon, 29 May 2023 18:32:41 +0200
 | |
| Subject: [PATCH 11/13] leds: trigger: netdev: expose netdev trigger modes in
 | |
|  linux include
 | |
| 
 | |
| Expose netdev trigger modes to make them accessible by LED driver that
 | |
| will support netdev trigger for hw control.
 | |
| 
 | |
| Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
 | |
| Reviewed-by: Andrew Lunn <andrew@lunn.ch>
 | |
| Signed-off-by: David S. Miller <davem@davemloft.net>
 | |
| ---
 | |
|  drivers/leds/trigger/ledtrig-netdev.c |  9 ---------
 | |
|  include/linux/leds.h                  | 10 ++++++++++
 | |
|  2 files changed, 10 insertions(+), 9 deletions(-)
 | |
| 
 | |
| --- a/drivers/leds/trigger/ledtrig-netdev.c
 | |
| +++ b/drivers/leds/trigger/ledtrig-netdev.c
 | |
| @@ -56,15 +56,6 @@ struct led_netdev_data {
 | |
|  	bool hw_control;
 | |
|  };
 | |
|  
 | |
| -enum led_trigger_netdev_modes {
 | |
| -	TRIGGER_NETDEV_LINK = 0,
 | |
| -	TRIGGER_NETDEV_TX,
 | |
| -	TRIGGER_NETDEV_RX,
 | |
| -
 | |
| -	/* Keep last */
 | |
| -	__TRIGGER_NETDEV_MAX,
 | |
| -};
 | |
| -
 | |
|  static void set_baseline_state(struct led_netdev_data *trigger_data)
 | |
|  {
 | |
|  	int current_brightness;
 | |
| --- a/include/linux/leds.h
 | |
| +++ b/include/linux/leds.h
 | |
| @@ -525,6 +525,16 @@ led_trigger_get_brightness(const struct
 | |
|  
 | |
|  #endif /* CONFIG_LEDS_TRIGGERS */
 | |
|  
 | |
| +/* Trigger specific enum */
 | |
| +enum led_trigger_netdev_modes {
 | |
| +	TRIGGER_NETDEV_LINK = 0,
 | |
| +	TRIGGER_NETDEV_TX,
 | |
| +	TRIGGER_NETDEV_RX,
 | |
| +
 | |
| +	/* Keep last */
 | |
| +	__TRIGGER_NETDEV_MAX,
 | |
| +};
 | |
| +
 | |
|  /* Trigger specific functions */
 | |
|  #ifdef CONFIG_LEDS_TRIGGER_DISK
 | |
|  void ledtrig_disk_activity(bool write);
 |