Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 20b49637 authored by Kyle Yan's avatar Kyle Yan Committed by Gerrit - the friendly Code Review server
Browse files

Merge "soc: qcom: Skip clearing modem FW region post load failure" into msm-4.9

parents 525ba5db 7b506d2d
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -928,6 +928,7 @@ int pil_boot(struct pil_desc *desc)
					desc->attrs);
			priv->region = NULL;
		}
		if (desc->clear_fw_region)
			pil_clear_segment(desc);
		pil_release_mmap(desc);
	}
+3 −1
Original line number Diff line number Diff line
/* Copyright (c) 2010-2016, The Linux Foundation. All rights reserved.
/* Copyright (c) 2010-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
@@ -35,6 +35,7 @@ struct pil_priv;
 * This defaults to iounmap if not specified.
 * @shutdown_fail: Set if PIL op for shutting down subsystem fails.
 * @modem_ssr: true if modem is restarting, false if booting for first time.
 * @clear_fw_region: Clear fw region on failure in loading.
 * @subsys_vmid: memprot id for the subsystem.
 */
struct pil_desc {
@@ -54,6 +55,7 @@ struct pil_desc {
	void *map_data;
	bool shutdown_fail;
	bool modem_ssr;
	bool clear_fw_region;
	u32 subsys_vmid;
};

+2 −1
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
@@ -637,6 +637,7 @@ struct q6v5_data *pil_q6v5_init(struct platform_device *pdev)
	if (ret)
		return ERR_PTR(ret);

	desc->clear_fw_region = false;
	desc->dev = &pdev->dev;

	drv->qdsp6v5_2_0 = of_device_is_compatible(pdev->dev.of_node,
+1 −1
Original line number Diff line number Diff line
@@ -99,7 +99,7 @@ struct ind_req_resp {
 */
struct qmi_client_info {
	int instance_id;
	int subsys_state;
	enum pd_subsys_state subsys_state;
	struct work_struct svc_arrive;
	struct work_struct svc_exit;
	struct work_struct svc_rcv_msg;
+1 −0
Original line number Diff line number Diff line
@@ -1035,6 +1035,7 @@ static int pil_tz_driver_probe(struct platform_device *pdev)
	d->desc.ops = &pil_ops_trusted;

	d->desc.proxy_timeout = PROXY_TIMEOUT_MS;
	d->desc.clear_fw_region = true;

	rc = of_property_read_u32(pdev->dev.of_node, "qcom,proxy-timeout-ms",
					&proxy_timeout);