mirror of
				https://github.com/AetherDroid/android_kernel_samsung_on5xelte.git
				synced 2025-10-31 08:08:51 +01:00 
			
		
		
		
	Fixed MTP to work with TWRP
This commit is contained in:
		
						commit
						f6dfaef42e
					
				
					 50820 changed files with 20846062 additions and 0 deletions
				
			
		
							
								
								
									
										40
									
								
								drivers/misc/samsung/scsc/panicmon.c
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										40
									
								
								drivers/misc/samsung/scsc/panicmon.c
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,40 @@ | |||
| /****************************************************************************
 | ||||
|  * | ||||
|  *   Copyright (c) 2016 Samsung Electronics Co., Ltd. All rights reserved. | ||||
|  * | ||||
|  ****************************************************************************/ | ||||
| 
 | ||||
| #include <scsc/scsc_logring.h> | ||||
| 
 | ||||
| #include "panicmon.h" | ||||
| #include "scsc_mif_abs.h" | ||||
| #include "mxman.h" | ||||
| 
 | ||||
| static void panicmon_isr(int irq, void *data) | ||||
| { | ||||
| 	struct panicmon *panicmon = (struct panicmon *)data; | ||||
| 
 | ||||
| 	SCSC_TAG_DEBUG(PANIC_MON, "panicmon=%p panicmon->mx=%p mxman=%p\n", panicmon, panicmon->mx, scsc_mx_get_mxman(panicmon->mx)); | ||||
| 	/* Avoid unused parameter error */ | ||||
| 	(void)irq; | ||||
| 	mxman_fail(scsc_mx_get_mxman(panicmon->mx), SCSC_PANIC_CODE_FW << 15); | ||||
| } | ||||
| 
 | ||||
| 
 | ||||
| void panicmon_init(struct panicmon *panicmon, struct scsc_mx *mx) | ||||
| { | ||||
| 	struct scsc_mif_abs *mif; | ||||
| 
 | ||||
| 	panicmon->mx = mx; | ||||
| 	mif = scsc_mx_get_mif_abs(mx); | ||||
| 	/* register isr with mif abstraction */ | ||||
| 	mif->irq_reg_reset_request_handler(mif, panicmon_isr, (void *)panicmon); | ||||
| } | ||||
| 
 | ||||
| void panicmon_deinit(struct panicmon *panicmon) | ||||
| { | ||||
| 	struct scsc_mif_abs *mif; | ||||
| 
 | ||||
| 	mif = scsc_mx_get_mif_abs(panicmon->mx); | ||||
| 	mif->irq_unreg_reset_request_handler(mif); | ||||
| } | ||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 awab228
						awab228