Re: [PATCH 01/11] coresight-etm4x: Adding CoreSight ETM4x driver

From: Ivan T. Ivanov
Date: Fri Apr 24 2015 - 11:05:36 EST



On Wed, 2015-04-22 at 16:40 -0600, Mathieu Poirier wrote:
> From: Pratik Patel <pratikp@xxxxxxxxxxxxxx>
>
> 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@xxxxxxxxxxxxxx>
> Signed-off-by: Kaixu Xia <xiakaixu@xxxxxxxxxx>
> Signed-off-by: Mathieu Poirier poirier@xxxxxxxxxx>

<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
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/