Loading drivers/soc/qcom/pil-msa.c +10 −2 Original line number Diff line number Diff line /* Copyright (c) 2012-2016, The Linux Foundation. All rights reserved. /* Copyright (c) 2012-2017, The Linux Foundation. All rights reserved. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 and Loading Loading @@ -595,7 +595,15 @@ int pil_mss_reset_load_mba(struct pil_desc *pil) /* Load the MBA image into memory */ count = fw->size; if (count <= SZ_1M) { /* Ensures memcpy is done for max 1MB fw size */ memcpy(mba_dp_virt, data, count); } else { dev_err(pil->dev, "%s fw image loading into memory is failed due to fw size overflow\n", __func__); ret = -EINVAL; goto err_mba_data; } /* Ensure memcpy of the MBA memory is done before loading the DP */ wmb(); Loading Loading
drivers/soc/qcom/pil-msa.c +10 −2 Original line number Diff line number Diff line /* Copyright (c) 2012-2016, The Linux Foundation. All rights reserved. /* Copyright (c) 2012-2017, The Linux Foundation. All rights reserved. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 and Loading Loading @@ -595,7 +595,15 @@ int pil_mss_reset_load_mba(struct pil_desc *pil) /* Load the MBA image into memory */ count = fw->size; if (count <= SZ_1M) { /* Ensures memcpy is done for max 1MB fw size */ memcpy(mba_dp_virt, data, count); } else { dev_err(pil->dev, "%s fw image loading into memory is failed due to fw size overflow\n", __func__); ret = -EINVAL; goto err_mba_data; } /* Ensure memcpy of the MBA memory is done before loading the DP */ wmb(); Loading