[PATCH 3/8] drivers/perf: hisi: Simplify the probe process of each L3C PMU version
Jonathan Cameron
Jonathan.Cameron at huawei.com
Thu Jul 31 05:17:06 PDT 2025
On Tue, 29 Jul 2025 23:38:18 +0800
Yushan Wang <wangyushan12 at huawei.com> wrote:
> From: Yicong Yang <yangyicong at hisilicon.com>
>
> Version 1 and 2 of L3C PMU also use different HID. Make use of
> struct acpi_device_id::driver_data for version specific information
> rather than judge the version register. This will help to
> simplify the probe process and also a bit easier for extension.
>
> Signed-off-by: Yicong Yang <yangyicong at hisilicon.com>
> Signed-off-by: Yushan Wang <wangyushan12 at huawei.com>
Reviewed-by: Jonathan Cameron <jonathan.cameron at huawei.com>
More information about the linux-arm-kernel
mailing list