mirror of
				git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
				synced 2025-09-18 22:14:16 +00:00 
			
		
		
		
	mfd: intel-lpss: Program REMAP register in PIO mode
According to documentation REMAP register has to be programmed in
either DMA or PIO mode of the slice.
Move the DMA capability check below to let REMAP register be programmed
in PIO mode.
Cc: stable@vger.kernel.org # 4.3+
Fixes: 4b45efe852 ("mfd: Add support for Intel Sunrisepoint LPSS devices")
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
			
			
This commit is contained in:
		
							parent
							
								
									704800dd3f
								
							
						
					
					
						commit
						d28b625208
					
				
					 1 changed files with 2 additions and 2 deletions
				
			
		|  | @ -275,11 +275,11 @@ static void intel_lpss_init_dev(const struct intel_lpss *lpss) | ||||||
| 
 | 
 | ||||||
| 	intel_lpss_deassert_reset(lpss); | 	intel_lpss_deassert_reset(lpss); | ||||||
| 
 | 
 | ||||||
|  | 	intel_lpss_set_remap_addr(lpss); | ||||||
|  | 
 | ||||||
| 	if (!intel_lpss_has_idma(lpss)) | 	if (!intel_lpss_has_idma(lpss)) | ||||||
| 		return; | 		return; | ||||||
| 
 | 
 | ||||||
| 	intel_lpss_set_remap_addr(lpss); |  | ||||||
| 
 |  | ||||||
| 	/* Make sure that SPI multiblock DMA transfers are re-enabled */ | 	/* Make sure that SPI multiblock DMA transfers are re-enabled */ | ||||||
| 	if (lpss->type == LPSS_DEV_SPI) | 	if (lpss->type == LPSS_DEV_SPI) | ||||||
| 		writel(value, lpss->priv + LPSS_PRIV_SSP_REG); | 		writel(value, lpss->priv + LPSS_PRIV_SSP_REG); | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		
		Reference in a new issue
	
	 Andy Shevchenko
						Andy Shevchenko