arm: mvebu: a38x: update serdes error handling
Ensure appropriate error messages are generated. Previously all errors indicated that the serdes was already in use. Now appropriate error messages are given. Signed-off-by: Chris Packham <judge.packham@gmail.com> Signed-off-by: Stefan Roese <sr@denx.de>
This commit is contained in:
		
							parent
							
								
									148f00e7a7
								
							
						
					
					
						commit
						014a357bba
					
				| 
						 | 
				
			
			@ -835,6 +835,8 @@ u32 hws_serdes_topology_verify(enum serdes_type serdes_type, u32 serdes_id,
 | 
			
		|||
		}
 | 
			
		||||
	} else {
 | 
			
		||||
		test_result = SERDES_ALREADY_IN_USE;
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	if (test_result == SERDES_ALREADY_IN_USE) {
 | 
			
		||||
		printf("%s: Error: serdes lane %d is configured to type %s: type already in use\n",
 | 
			
		||||
		       __func__, serdes_id,
 | 
			
		||||
| 
						 | 
				
			
			@ -854,7 +856,6 @@ u32 hws_serdes_topology_verify(enum serdes_type serdes_type, u32 serdes_id,
 | 
			
		|||
		       serd_max_num);
 | 
			
		||||
		return MV_FAIL;
 | 
			
		||||
	}
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	return MV_OK;
 | 
			
		||||
}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue