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

Commit 4693ac90 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "drivers: soc: sdx_ext_ipc: Add option to change default policy"

parents f7317f27 8c7c07b6
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -21,6 +21,8 @@ Optional named gpio properties:

- qcom,ap2mdm-status2-gpio: gpio for APQ to indicate graceful shutdown to modem.

- qcom,default-policy-nop: Set default policy from PANIC to NOP.

Example:
	sdx_ext_ipc: qcom,sdx_ext_ipc {
		compatible = "qcom,sdx-ext-ipc";
+4 −1
Original line number Diff line number Diff line
@@ -196,6 +196,9 @@ static int sdx_ext_ipc_probe(struct platform_device *pdev)
	atomic_notifier_chain_register(&panic_notifier_list, &mdm->panic_blk);

	mutex_init(&mdm->policy_lock);
	if (of_property_read_bool(pdev->dev.of_node, "qcom,default-policy-nop"))
		mdm->policy = SUBSYS_NOP;
	else
		mdm->policy = SUBSYS_PANIC;

	ret = device_create_file(mdm->dev, &dev_attr_policy);