coresight: etm4x: Drop pid argument from etm4_probe()
authorAnshuman Khandual <anshuman.khandual@arm.com>
Mon, 10 Jul 2023 06:24:57 +0000 (11:54 +0530)
committerSuzuki K Poulose <suzuki.poulose@arm.com>
Wed, 26 Jul 2023 15:46:25 +0000 (16:46 +0100)
commit5a1c7097472fcde5745654e3a59f55140903d9cc
tree0a95a4c2d479f27c8a05e37c3e641f6f22561cac
parent4e3b9a6eae987c80330e5253754dab35acc2a63b
coresight: etm4x: Drop pid argument from etm4_probe()

Coresight device pid can be retrieved from its iomem base address, which is
stored in 'struct etm4x_drvdata'. This drops pid argument from etm4_probe()
and 'struct etm4_init_arg'. Instead etm4_check_arch_features() derives the
coresight device pid with a new helper coresight_get_pid(), right before it
is consumed in etm4_hisi_match_pid().

Cc: Mathieu Poirier <mathieu.poirier@linaro.org>
Cc: Suzuki K Poulose <suzuki.poulose@arm.com>
Cc: Mike Leach <mike.leach@linaro.org>
Cc: Leo Yan <leo.yan@linaro.org>
Cc: coresight@lists.linaro.org
Cc: linux-arm-kernel@lists.infradead.org
Cc: linux-kernel@vger.kernel.org
Signed-off-by: Anshuman Khandual <anshuman.khandual@arm.com>
Signed-off-by: Suzuki K Poulose <suzuki.poulose@arm.com>
Link: https://lore.kernel.org/r/20230710062500.45147-4-anshuman.khandual@arm.com
drivers/hwtracing/coresight/coresight-etm4x-core.c
include/linux/coresight.h