libata: transfer EHI control flags to slave ehc.i
ATA_EHI_NO_AUTOPSY and ATA_EHI_QUIET are used to control the behavior of EH. As only the master link is visible outside EH, these flags are set only for the master link although they should also apply to the slave link, which causes spurious EH messages during probe and suspend/resume. This patch transfers those two flags to slave ehc.i before performing slave autopsy and reporting. Signed-off-by: Tejun Heo <tj@kernel.org> Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
This commit is contained in:
		
					parent
					
						
							
								570106df6b
							
						
					
				
			
			
				commit
				
					
						848e4c68c4
					
				
			
		
					 2 changed files with 8 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -340,6 +340,9 @@ enum {
 | 
			
		|||
 | 
			
		||||
	ATA_EHI_DID_RESET	= ATA_EHI_DID_SOFTRESET | ATA_EHI_DID_HARDRESET,
 | 
			
		||||
 | 
			
		||||
	/* mask of flags to transfer *to* the slave link */
 | 
			
		||||
	ATA_EHI_TO_SLAVE_MASK	= ATA_EHI_NO_AUTOPSY | ATA_EHI_QUIET,
 | 
			
		||||
 | 
			
		||||
	/* max tries if error condition is still set after ->error_handler */
 | 
			
		||||
	ATA_EH_MAX_TRIES	= 5,
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue