mirror of
				git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
				synced 2025-09-18 22:14:16 +00:00 
			
		
		
		
	coresight: etf: Release CLAIM tag after disabling the HW
This patch rectifies the sequence of events in function tmc_etb_disable_hw() by disabling the HW first and then releasing the CLAIM tag. Otherwise we could be corrupting the configuration done by an external agent that would have claimed the device after we have released it. Signed-off-by: Mathieu Poirier <mathieu.poirier@linaro.org> Reviewed-by: Suzuki K Poulose <suzuki.poulose@arm.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
		
							parent
							
								
									acaf5a06b9
								
							
						
					
					
						commit
						32c58c4d3b
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		|  | @ -86,8 +86,8 @@ static void __tmc_etb_disable_hw(struct tmc_drvdata *drvdata) | ||||||
| 
 | 
 | ||||||
| static void tmc_etb_disable_hw(struct tmc_drvdata *drvdata) | static void tmc_etb_disable_hw(struct tmc_drvdata *drvdata) | ||||||
| { | { | ||||||
| 	coresight_disclaim_device(drvdata->base); |  | ||||||
| 	__tmc_etb_disable_hw(drvdata); | 	__tmc_etb_disable_hw(drvdata); | ||||||
|  | 	coresight_disclaim_device(drvdata->base); | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| static void __tmc_etf_enable_hw(struct tmc_drvdata *drvdata) | static void __tmc_etf_enable_hw(struct tmc_drvdata *drvdata) | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		
		Reference in a new issue
	
	 Mathieu Poirier
						Mathieu Poirier