Loading Documentation/devicetree/bindings/arm/coresight.txt +3 −0 Original line number Diff line number Diff line Loading @@ -84,6 +84,9 @@ its hardware characteristcs. * coresight-name: unique descriptive name of the component. * Additional required property for coresight-dummy devices: * qcom,dummy-source: Configure the device as source. * Optional properties for all components: * reg-names: names corresponding to each reg property value. Loading drivers/hwtracing/coresight/coresight-dummy.c +9 −2 Original line number Diff line number Diff line Loading @@ -84,8 +84,15 @@ static int dummy_probe(struct platform_device *pdev) drvdata->traceid = traceid++; if (of_property_read_bool(pdev->dev.of_node, "qcom,dummy-source")) { desc->type = CORESIGHT_DEV_TYPE_SOURCE; desc->subtype.source_subtype = CORESIGHT_DEV_SUBTYPE_SOURCE_PROC; desc->subtype.source_subtype = CORESIGHT_DEV_SUBTYPE_SOURCE_PROC; } else { dev_info(dev, "Device type not set.\n"); return -EINVAL; } desc->ops = &dummy_cs_ops; desc->pdata = pdev->dev.platform_data; desc->dev = &pdev->dev; Loading Loading
Documentation/devicetree/bindings/arm/coresight.txt +3 −0 Original line number Diff line number Diff line Loading @@ -84,6 +84,9 @@ its hardware characteristcs. * coresight-name: unique descriptive name of the component. * Additional required property for coresight-dummy devices: * qcom,dummy-source: Configure the device as source. * Optional properties for all components: * reg-names: names corresponding to each reg property value. Loading
drivers/hwtracing/coresight/coresight-dummy.c +9 −2 Original line number Diff line number Diff line Loading @@ -84,8 +84,15 @@ static int dummy_probe(struct platform_device *pdev) drvdata->traceid = traceid++; if (of_property_read_bool(pdev->dev.of_node, "qcom,dummy-source")) { desc->type = CORESIGHT_DEV_TYPE_SOURCE; desc->subtype.source_subtype = CORESIGHT_DEV_SUBTYPE_SOURCE_PROC; desc->subtype.source_subtype = CORESIGHT_DEV_SUBTYPE_SOURCE_PROC; } else { dev_info(dev, "Device type not set.\n"); return -EINVAL; } desc->ops = &dummy_cs_ops; desc->pdata = pdev->dev.platform_data; desc->dev = &pdev->dev; Loading