Merge "disp: msm: hdcp: set default topology as DOWN_REQUEST_TOPOLOGY"
Cette révision appartient à :

révisé par
Gerrit - the friendly Code Review server

révision
652628e747
@@ -1,5 +1,6 @@
|
|||||||
// SPDX-License-Identifier: GPL-2.0-only
|
// SPDX-License-Identifier: GPL-2.0-only
|
||||||
/*
|
/*
|
||||||
|
* Copyright (c) 2022 Qualcomm Innovation Center, Inc. All rights reserved.
|
||||||
* Copyright (c) 2018-2020, The Linux Foundation. All rights reserved.
|
* Copyright (c) 2018-2020, The Linux Foundation. All rights reserved.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
@@ -135,8 +136,8 @@ static ssize_t tp_show(struct device *dev, struct device_attribute *attr,
|
|||||||
|
|
||||||
ret += sizeof(struct HDCP_V2V1_MSG_TOPOLOGY);
|
ret += sizeof(struct HDCP_V2V1_MSG_TOPOLOGY);
|
||||||
|
|
||||||
/* clear the flag once data is read back to user space*/
|
/* reset the flag once the data is written back to user space */
|
||||||
hdcp->tp_msgid = -1;
|
hdcp->tp_msgid = DOWN_REQUEST_TOPOLOGY;
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
ret = -EINVAL;
|
ret = -EINVAL;
|
||||||
@@ -290,6 +291,8 @@ static int msm_hdcp_probe(struct platform_device *pdev)
|
|||||||
if (ret)
|
if (ret)
|
||||||
pr_err("unable to register msm_hdcp sysfs nodes\n");
|
pr_err("unable to register msm_hdcp sysfs nodes\n");
|
||||||
|
|
||||||
|
hdcp->tp_msgid = DOWN_REQUEST_TOPOLOGY;
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
error_cdev_add:
|
error_cdev_add:
|
||||||
device_destroy(hdcp->class, hdcp->dev_num);
|
device_destroy(hdcp->class, hdcp->dev_num);
|
||||||
|
Référencer dans un nouveau ticket
Bloquer un utilisateur