[PATCH] QE: making cpm_muram_alloc_common into static

2016-01-26 Thread Saurabh Sengar
as cpm_muram_alloc_common is used only in this file, making it static Signed-off-by: Saurabh Sengar --- drivers/soc/fsl/qe/qe_common.c | 66 +- include/soc/fsl/qe/qe.h| 2 -- 2 files changed, 33 insertions(+), 35 deletions(-) diff --git a

[PATCH] QE: Use GFP_ATOMIC while spin_lock_irqsave is held

2016-01-24 Thread Saurabh Sengar
cpm_muram_alloc_common is called twice and both the times spin_lock_irqsave is held. Using GFP_KERNEL can sleep in spin_lock_irqsave context and cause deadlock Signed-off-by: Saurabh Sengar --- Let me know if there is any other way to fix it. Also, I would say this function should be static as