[PATCH 01/11] coresight-etm4x: Adding CoreSight ETM4x driver
Ivan T. Ivanov
iivanov at mm-sol.com
Fri Apr 24 08:05:23 PDT 2015
On Wed, 2015-04-22 at 16:40 -0600, Mathieu Poirier wrote:
> From: Pratik Patel <pratikp at codeaurora.org>
>
> This driver manages the CoreSight ETMv4 (Embedded Trace Macrocell) IP block
> to support HW assisted tracing on ARMv7 and ARMv8 architectures.
>
> Signed-off-by: Pratik Patel <pratikp at codeaurora.org>
> Signed-off-by: Kaixu Xia <xiakaixu at huawei.com>
> Signed-off-by: Mathieu Poirier poirier at linaro.org>
<snip>
>
> + pm_runtime_put(&adev->dev);
> +
> + desc->type = CORESIGHT_DEV_TYPE_SOURCE;
> + desc->subtype.source_subtype = CORESIGHT_DEV_SUBTYPE_SOURCE_PROC;
> + desc->ops = &etm4_cs_ops;
> + desc->pdata = pdata;
> + desc->dev = dev;
> + desc->groups = coresight_etmv4_groups;
> + drvdata->csdev = coresight_register(desc);
> + if (IS_ERR(drvdata->csdev)) {
> + ret = PTR_ERR(drvdata->csdev);
> + goto err_arch_supported;
double runtime put.
> + }
> +
> + dev_info(dev, "%s initialized\n", (char *)id->data);
> +
> + if (boot_enable) {
> + coresight_enable(drvdata->csdev);
> + drvdata->boot_enable = true;
> + }
> +
> + return 0;
> +
> +err_arch_supported:
> + pm_runtime_put(&adev->dev);
> + if (--etm4_count == 0)
> + unregister_hotcpu_notifier(&etm4_cpu_notifier);
> + return ret;
> +}
Regards,
Ivan
More information about the linux-arm-kernel
mailing list