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

Jonathan Cameron Jonathan.Cameron at huawei.com
Tue Aug 26 06:06:12 PDT 2025


On Thu, 21 Aug 2025 21:50:43 +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>
Acked-by: Jonathan Cameron <jonathan.cameron at huawei.com>





More information about the linux-arm-kernel mailing list