Re: [PATCH v2 3/9] drivers/perf: hisi: Simplify the probe process of each L3C PMU version

From: Jonathan Cameron
Date: Tue Aug 26 2025 - 09:06:39 EST


On Thu, 21 Aug 2025 21:50:43 +0800
Yushan Wang <wangyushan12@xxxxxxxxxx> wrote:

> From: Yicong Yang <yangyicong@xxxxxxxxxxxxx>
>
> 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@xxxxxxxxxxxxx>
> Signed-off-by: Yushan Wang <wangyushan12@xxxxxxxxxx>
Acked-by: Jonathan Cameron <jonathan.cameron@xxxxxxxxxx>