mirror of
				https://kernel.googlesource.com/pub/scm/linux/kernel/git/stable/linux-stable.git
				synced 2025-10-26 17:04:24 +10:00 
			
		
		
		
	e1000e: Add check for reset flags before displaying reset message
Some parts need to execute resets during normal operation. This flag check ensures that those parts reset without needlessly alarming the user. Other unexpected resets by other parts will dump debug info and message the reset action to the user, as originally intended. Signed-off-by: Carolyn Wyborny <carolyn.wyborny@intel.com> Acked-by: Bruce Allan <bruce.w.allan@intel.com> Tested-by: Emil Tantilov <emil.s.tantilov@intel.com> Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
		
							parent
							
								
									ff10e13cd0
								
							
						
					
					
						commit
						affa9dfb04
					
				| @ -4882,8 +4882,11 @@ static void e1000_reset_task(struct work_struct *work) | ||||
| 	struct e1000_adapter *adapter; | ||||
| 	adapter = container_of(work, struct e1000_adapter, reset_task); | ||||
| 
 | ||||
| 	e1000e_dump(adapter); | ||||
| 	e_err("Reset adapter\n"); | ||||
| 	if (!((adapter->flags & FLAG_RX_NEEDS_RESTART) && | ||||
| 	      (adapter->flags & FLAG_RX_RESTART_NOW))) { | ||||
| 		e1000e_dump(adapter); | ||||
| 		e_err("Reset adapter\n"); | ||||
| 	} | ||||
| 	e1000e_reinit_locked(adapter); | ||||
| } | ||||
| 
 | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user